WO2014056437A1 - Procédé et appareil pour traiter une trame wifi - Google Patents

Procédé et appareil pour traiter une trame wifi Download PDF

Info

Publication number
WO2014056437A1
WO2014056437A1 PCT/CN2013/084931 CN2013084931W WO2014056437A1 WO 2014056437 A1 WO2014056437 A1 WO 2014056437A1 CN 2013084931 W CN2013084931 W CN 2013084931W WO 2014056437 A1 WO2014056437 A1 WO 2014056437A1
Authority
WO
WIPO (PCT)
Prior art keywords
wifi
mac address
data frame
frame
base station
Prior art date
Application number
PCT/CN2013/084931
Other languages
English (en)
Chinese (zh)
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 WO2014056437A1 publication Critical patent/WO2014056437A1/fr

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/22Communication route or path selection, e.g. power-based or shortest path routing using selective relaying for reaching a BTS [Base Transceiver Station] or an access point

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and apparatus for processing a WiFi frame. Background technique
  • a WiFi relay can be installed at the junction between the indoor and outdoor (such as the window), as shown in Figure 1.
  • the WiFi relay receives the outdoor WiFi signal, and performs demodulation and regeneration to send to the indoor, so that the indoor WiFi terminal can receive a relatively strong WiFi signal.
  • the WiFi relay can also be installed indoors to achieve indoor WiFi signal enhancement.
  • the WiFi terminal here refers to a WiFi-enabled terminal, such as a WiFi-enabled mobile phone, a notebook, a tablet, and the like.
  • the base station AP can only perceive the WiFi relay, and the WiFi terminal is invisible to the base station AP, and the base station AP cannot sense the existence of the WiFi terminal. Therefore, for the operator, it cannot be very Good management of the WiFi terminal (such as IP address management, accounting, authentication, etc. based on Dynamic Host Configuration Protocol DHCP). Summary of the invention
  • the embodiment of the invention provides a method for processing a WiFi frame by using a WiFi relay, which is used to solve the problem that the operator cannot manage the WiFi terminal well.
  • the embodiment provides a method for processing a WiFi frame, which is applied to a WiFi relay, where the WiFi relay is used to implement communication between a WiFi terminal and a base station access point AP, and the method includes: Receiving a first association request sent by the WiFi terminal, where the source MAC address carried in the first association request is the first MAC address of the WiFi terminal;
  • the WiFi frame is a data frame and the first association list stores a source MAC address in the data frame
  • the source MAC address is a field of the first MAC address
  • the user data in the new data frame is the same as the user data in the received data frame
  • the user data of the WiFi terminal corresponding to the first MAC address performs service processing.
  • the method further includes:
  • the destination MAC address is a field of the first MAC address, in the new data frame
  • User data is the user data in the received second data frame
  • the second possible implementation form further includes:
  • the control frame is terminated, so that the control frame is not forwarded to the base station AP, and is sent back to the WiFi terminal and sent Control frame corresponding to the control frame, so that the WiFi terminal sends the data frame after receiving the corresponding control frame.
  • control frame sent by the WiFi terminal is an RTS control frame defined by the WiFi protocol
  • the control frame corresponding to the transmitted control frame is a CTS control frame defined by the WiFi protocol.
  • the reconfiguring a new data frame that can be sent to the base station AP includes: constructing the new data frame At the same time, the value of the BSSID field of the original data frame is modified, and the BSSID value originally identifying the WiFi relay is changed to the BSSID value of the base station AP.
  • the present embodiment provides a WiFi frame processing apparatus, which is applied to a WiFi relay, where the WiFi relay is used to implement communication between a WiFi terminal and a base station access point AP, and the apparatus includes:
  • a first association request receiving unit configured to receive a first association request sent by the WiFi terminal, where a source MAC address carried in the first association request is a first MAC address of the WiFi terminal;
  • a storage unit configured to store, by the first association request receiving unit, the first MAC address in the first association request to the first association list
  • a first association response sending unit configured to send the first association response to the WiFi terminal after the first association request receiving unit receives the first association request, thereby completing the WiFi termination The association between the end and the WiFi relay;
  • a second association request sending unit configured to send, after the first association request receiving unit receives the first association request, a second association request to the base station AP, where the source MAC address carried by the second association request
  • the base station AP acquires the first MAC address after receiving the second association request, and stores the first MAC address, and stores the first MAC address to the second association list.
  • a second association response receiving unit configured to receive the second association response, to complete an association between the WiFi terminal and the base station AP;
  • a WiFi frame receiving unit configured to receive a WiFi frame sent by the WiFi terminal
  • a first constructing unit configured to: when the WiFi frame received by the WiFi frame receiving unit is a data frame, and the first association list stores a source MAC address in the data frame, reconstruct a device that can be sent to the base station a new data frame of the AP, where the source MAC address carried in the new data frame is a field of the first MAC address, and user data in the new data frame is the same as user data in the received data frame;
  • a data frame sending unit configured to send the new data frame constructed by the first building unit to the base station AP, so that the base station AP receives the new data frame and determines that the second associated list is stored After the first MAC address carried in the new data frame, the user data of the WiFi terminal corresponding to the first MAC address is processed.
  • the apparatus further includes:
  • a second data frame receiving unit configured to receive a second data frame sent by the base station AP, where the destination MAC address carried in the second data frame is the first MAC address;
  • a second constructing unit configured to: when determining, according to the first association list, that the first MAC address in the second frame received by the second data frame receiving unit is located in the first association list, Constructing a new second data frame that can be sent to the WiFi terminal, where the destination MAC address carried in the new second data frame is a field of the first MAC address, and the user in the new data frame The data is the user data in the received second data frame;
  • a second data frame sending unit configured to send the new second data frame constructed by the second building unit to the WiFi terminal, so that the WiFi terminal acquires the user inside after receiving the new second data frame data.
  • the method further includes: a control frame processing unit, configured to: when the received WiFi terminal sends the When the WiFi frame is a control frame, the control frame is terminated, so that the control frame is not forwarded to the base station AP, and the control frame corresponding to the sent control frame is returned to the WiFi terminal, so that the WiFi is enabled. After receiving the corresponding control frame, the terminal sends the data frame.
  • a control frame processing unit configured to: when the received WiFi terminal sends the When the WiFi frame is a control frame, the control frame is terminated, so that the control frame is not forwarded to the base station AP, and the control frame corresponding to the sent control frame is returned to the WiFi terminal, so that the WiFi is enabled.
  • control frame sent by the WiFi terminal is an RTS control frame defined by the WiFi protocol; and the control corresponding to the sent control frame
  • the frame is a CTS control frame defined by the WiFi protocol.
  • the first building unit includes a BSSID modifying unit, configured to modify when constructing the new data frame The value of the BSSID field of the original data frame is changed from the BSSID value originally identifying the WiFi relay to the BSSID value identifying the base station AP.
  • the relay saves the first MAC address of the WiFi terminal, and the relay still uses the first MAC address to initiate an association request to the base station AP, so that After receiving the base station AP, the first MAC address of the WiFi terminal is also saved, so that the WiFi is associated with the relay and the base station AP.
  • the relay terminates the control frame sent by the terminal and replies to the response to the control frame, and adaptively modifies the data frame sent by the terminal to construct a new data frame and send it to the base station AP, so that the base station AP can receive
  • the new data frame processes the user data therein, thus realizing the "perception" of the base station AP to the terminal (ie, because the base station AP has the second associated list, it can know which terminal is the data), and the base station AP
  • operators deploy them. Therefore, operators can better manage WiFi terminals (for example, IP address management, accounting, authentication, etc. based on DHCP). Made).
  • FIG. 1 is a schematic diagram of communication between a WiFi terminal and a base station AP based on a WiFi relay;
  • FIG. 2 is a schematic flowchart of a relay processing a WiFi frame according to Embodiment 1;
  • FIG. 3 is a schematic structural diagram of a relay of Embodiment 2;
  • FIG. 4 is a schematic diagram of a WiFi terminal associated with a relay and a base station AP;
  • FIG. 5 is a schematic structural diagram of a WiFi frame;
  • FIG. 6 is a schematic diagram of correspondence between fields and frame types in a WiFi frame
  • FIG. 7 is a schematic diagram of sending a data frame after requesting permission by a control frame
  • Figure 8 is a schematic diagram of a new data frame
  • FIG. 9 is a schematic flow chart of the third embodiment relaying data sent by the base station AP to the WiFi terminal;
  • FIG. 10 is a schematic flowchart of a third embodiment of a base station AP transmitting a data frame through a control frame
  • FIG. 11 is a schematic structural diagram of a WiFi frame processing apparatus according to Embodiment 4;
  • FIG. 12 is another schematic structural diagram of a WiFi frame processing apparatus according to Embodiment 4.
  • FIG. 13 is a schematic diagram of a fifth embodiment of a WiFi relay structure. detailed description
  • Embodiment 1 The embodiment of the present invention provides a method for processing a WiFi frame by using a WiFi relay.
  • the application scenario of the WiFi relay may be referred to the application scenario shown in FIG. 1 , and the WiFi relay is used to demodulate the access point of the regenerated base station (Access Point). , AP ) signals are used by various WiFi terminals in the room.
  • the "base station AP” cartridge is also referred to as "AP”
  • the "WiFi relay” cartridge is referred to as "relay”.
  • the terminal "cartridge” is called “terminal”.
  • the WiFi signal sent by the base station AP is represented by an SSID (Service Set Identifier), assuming that SSID_1 is used here, and the WiFi signal identified by SSID_1 also has a BSSID identifier to identify the device providing the WiFi signal, assuming Here BSS_1 is used to identify that the base station AP provides this signal.
  • SSID Service Set Identifier
  • BSS_1 BSSID identifier
  • the embodiment provides a method for processing a WiFi frame by using a WiFi relay, which is applied to a WiFi relay.
  • the method includes the following steps:
  • the association request is a request defined by the WiFi protocol, and the prefix "first” is used to distinguish it from other “association requests” that appear later, and subsequent other prefixed (such as "second") association requests are also followed.
  • the association request here is similar, except that the sender and the object are different.
  • the sequence number prefix is also used to similarly define other nouns (such as MAC addresses), and will not be described in detail later.
  • the association request carries the source MAC address and the destination MAC address of a device. If the terminal sends the packet to the relay, the source MAC address is the MAC address of the terminal. Here, the first MAC address is used to represent the destination MAC address. The MAC address of the relay, which is not required in this step. The destination MAC address is specially processed, and the MAC address of the destination device to be sent (such as the relay in the step) is still filled.
  • the first association list is a logical concept.
  • the specific implementation is not limited. For example, physically, it can also be understood as a physical storage area, and the first MAC address is stored.
  • the relay will receive an association request from multiple terminals, so that the table will include the MAC address of one or more WiFi terminals.
  • the role of the association list is to let the relay know which devices need to be maintained. If the source MAC addresses in the WiFi frames sent by some terminals are not in their own association list, then the terminals do not have their own. To associate, then discard these frames directly.
  • the association list also has other terminal-related information (such as the assigned Association ID). This embodiment still uses the information and does not tamper with it.
  • the WiFi terminal After receiving the association response, the WiFi terminal indicates that the WiFi terminal has been associated with the WiFi relay, and the subsequent WiFi relay processes the data from the WiFi terminal.
  • the relay After receiving the first association request, the relay sends a second association request to the base station AP, and sets the source MAC address in the second association request as the first MAC address, and the destination MAC address does not change here, or is the real target device.
  • Address which is the address of the base station AP.
  • the base station AP After receiving the second association request, the base station AP is the first MAC address because the source MAC address is seen. Therefore, in the view of the base station AP, the association request is sent by the terminal identified by the first MAC address, so that the base station AP can The terminal is associated with the base station AP. Relay is equivalent to "pseudo" in this process
  • the source MAC address is created (normally because the relay is sent from the relay to the base station AP, and the source MAC address should be the relayed MAC address), so that the base station AP considers that the terminal sends the second association request.
  • the terminal does not directly initiate the association request to the base station AP, but completes it through the relay. Therefore, this process can be considered as an "indirect" association process.
  • the base station AP After receiving the second association request, the base station AP adds the first MAC address to the second association list for subsequent maintenance.
  • the principle is similar to the previous first association list (of course, some other information, such as the assigned Association ID) is added.
  • the implementation of this part of the base station AP can also be performed based on the existing process, and will not be described here.
  • the base station AP After receiving the second association request, the base station AP replies with a second association response (Association Request), where the destination MAC address is the first MAC address. That is, for the base station AP, the presence of the relay is not perceived, and only the terminal exists. After receiving the association from the first MAC address, the associated response is also for the first MAC address.
  • Association Request the second association response
  • the order in which the relay sends the second association request to the base station AP and the sequence in which the relay sends the first association response to the WiFi terminal are not limited.
  • the label S14 in this step does not mean that the step must be located after S13.
  • WiFi frame management (Management) frames, Control (Control) frames, and Data (Data) frames The management frame is used to transmit some management signals, such as the association request, association response, etc. mentioned above.
  • Control frames are used to transmit some control signals related to data transmission, such as RTS (Request to Send), CTS (Allow to Send) and other control signals.
  • Data frames are used to transfer user data. The specifics of these frames See Figure 6 for the meaning.
  • the WiFi frame is a control frame
  • the control frame is terminated, so that the control frame is not forwarded to the base station AP, and the control frame corresponding to the sent control frame is returned to the WiFi terminal, so that the WiFi terminal receives the corresponding Sending a data frame after controlling the frame;
  • This step is an optional step.
  • the data frame can be directly sent after the association, and the control frame does not need to be sent.
  • the control frame can also be sent to better control the data sent by the WiFi terminal.
  • the purpose of the control frame interaction between the WiFi terminal and the WiFi relay is to allow the WiFi terminal to apply for the transmission permission.
  • the control frame sent by the WiFi is received, the control frame is "terminated", so that the control frame is not forwarded to the data frame, and the corresponding control frame is returned to allow the terminal to send the data frame, so that the terminal receives the data.
  • Data can be sent after the control frame of the response.
  • the WiFi frame is a data frame and the first association list stores the source MAC address in the data frame, reconstruct a new data frame that can be sent to the base station AP, where the source MAC address carried in the new data frame is the first MAC address.
  • the field of the address, the user data in the new data frame is the same as the user data in the received data frame;
  • This step can be performed after S16, and does not need to be performed after step S17.
  • step S17 it can also be executed after S17 (first request to send data frame permission through S17, and then process the received data frame).
  • the source MAC address in the data frame in the first association list indicates that the data frame is associated with the relay and needs to be processed, that is, a new data frame is reconstructed.
  • the user data in the FRAMebody field
  • the data frame carries the source MAC address.
  • the terminal sends the relay to the relay the first MAC address It is located in the Address2 field. In this embodiment, the value of this field is still not modified, that is, it is still set to the first MAC address.
  • the base station AP In order to be able to send to the base station AP (that is, the base station AP can receive and perform normal processing, no discarding occurs, and an error occurs), some other fields need to be modified in this step, for example, in the Address1 field of the data frame received from the terminal.
  • the BSSID is changed from the original BSS_2 (identification relay) to BSS_1 (identification base station), in addition, the FCS field needs to be refilled (this field It is used to verify the data frame.
  • the remaining fields can be adaptively adjusted or remain unchanged, so that the new data frame can be transmitted to the base station AP.
  • the key here is to maintain the value of the field of the first MAC address unchanged, so that after receiving the second association list, the base station AP knows that the data is sent by the associated terminal, and then processes it.
  • the final purpose of the modification of the remaining fields is to maintain the integrity of the packet and to enable the packet to be transmitted to the AP of the base station, which may be modified according to actual conditions, and details are not described herein again.
  • the base station AP determines that the second association list stores the first MAC address carried in the new data frame, it performs service processing on the user data of the WiFi terminal corresponding to the first MAC address.
  • the specific processing may be determined according to the actual application, for example, the service request corresponding to the terminal user data may be determined, and then the corresponding service data is returned to the terminal.
  • the relay saves the first MAC address of the WiFi terminal, and the relay still uses the first MAC address to initiate an association request to the base station AP, so that After receiving the base station AP, the first MAC address of the WiFi terminal is also saved, so that the WiFi is associated with the relay and the base station AP.
  • the relay terminates the control frame sent by the terminal and replies to the response to the control frame, and adaptively modifies the data frame sent by the terminal to construct a new data frame and send it to the base station AP, so that the base station AP can receive
  • the new data frame processes the user data therein, thus realizing the "perception" of the base station AP to the terminal (ie, because the base station AP has the second associated list, it can know which terminal is the data), and the base station AP
  • operators deploy them. Therefore, operators can better manage WiFi terminals (for example, IP address management, accounting, and authentication based on DHCP).
  • the application scenario of the present embodiment can still be seen in the application scenario shown in FIG. 1 , where the internal structure of the WiFi relay is as shown in FIG. 3 , which mainly includes : RFIC (Radio Frequency Integrated Circuit), baseband processor, MAC (Medium Access Controller) controller, etc., where RFIC is used to transmit and receive RF signals (such as 2.4G RF signals) of WiFi protocol (in combination with antenna); Modulating the signal, transmitting it through the RFIC, or demodulating the signal received by the RFIC, and transmitting the demodulated signal to the MAC controller (in conjunction with an analog-to-digital converter ADC or a digital-to-analog converter DAC);
  • the device is used to process the signal demodulated by the baseband processor, or the signal to be transmitted is modulated by the baseband processor and then transmitted through the RFIC.
  • it can also include RAM, flash memory, etc.
  • RAM is generally used to store data during the running of the program.
  • the frame can be cached
  • the method in this embodiment may be performed based on the relay having the hardware architecture described above.
  • the hardware unit through which each method step passes is not specifically described herein.
  • the "processing” step can be understood as follows: the relay receives (via the antenna) through the RFIC to the wireless signal carrying the "some kind of frame”, and then demodulates the signal through the baseband processor to obtain the "some kind” The frame ", then the "some kind of frame” is passed to the MAC processor, and the MAC processor performs "some processing.”
  • the relay includes two modules, one of which is used to perform the function as a terminal with respect to the base station AP.
  • This embodiment is called a "relay terminal”, and the other module is used to perform the function as an AP with respect to the WiFi terminal.
  • "Relay AP” therefore, the relay will have two MAC addresses, named MAC0 (as the terminal) and MAC_Relay AP (as the AP). These two MAC addresses can be implemented using two different The physical MAC address of the physical chip, or a physical MAC address is also used.
  • relay terminal and “relay AP” are not physically strict areas.
  • the two modules are divided into a logical division. In actual use, you can share the same hardware (such as RFIC, baseband processor, etc.).
  • relay a person skilled in the art can judge which module is completed by the signal flow direction unless otherwise specified.
  • the relay may include other processing modules in a logical sense. Of course, some or even all functions of other processing modules may be placed on the two modules. One or two of them are implemented. Therefore, the relay is not strictly logically divided below, and those skilled in the art can implement the solution in combination with the steps given in this embodiment.
  • the two terminals include a first terminal and a second terminal, which use MAC1 and MAC2 to identify the MAC addresses of the two WiFi terminals, respectively.
  • the MAC address of the base station AP is identified by the MAC_Base Station AP.
  • the association phase in this embodiment corresponds to the steps S11-S14 in the embodiment, and is mainly used to complete the association between each terminal and the relay, and the association between each terminal and the AP.
  • the relay can be performed with the base station AP.
  • Communication also associates itself with the base station AP.
  • a rectangular box labeled "WiFi Terminal" in the upper left corner is used to indicate two WiFi terminals), including:
  • the relay sends an Association request to the AP.
  • the AP associates the relay with the AP, and sends an Association request to the relay.
  • the relay After the relay is powered on, the AP scans the signal.
  • the above methods are associated, obviously, this part of the function can be completed by the relay terminal module.
  • the association request is a management frame defined by the WiFi protocol. See FIG. 5, which is a structural diagram of a WiFi frame. The meaning of the specific field is defined in the standard, and is not described here. Those skilled in the art can send different frames (such as management frames, control frames, data frames, etc.) by setting the Type and Subtype sub-segments in the FRAMe Control field to different values. See Figure 6, the meaning of each frame represented by Type and Subtype:
  • the trunk After the trunk is associated with the AP, the trunk sets its own relay wireless parameters according to the wireless parameters of the AP, and enables its own "downlink relay AP" function.
  • the relay sets the wireless parameter SSID to the same SSID as the AP (assuming all are SSID_1), and sets the BSSID from the base station AP's BSSID (such as BSSID_1) to its own BSSID (such as BSSID_2).
  • the function of relay to enable its own “downlink relay AP” means that the relay itself becomes an "AP” through the MAC processor, baseband processor and RFIC (here "AP” does not mean “base station AP” It is used to provide a WiFi signal for the terminal in the room.
  • this function of the relay is referred to as a "downlink relay AP" function.
  • the above-mentioned relays are associated with each other, and the parameters are set to enable the downlink relay AP function to be known to those skilled in the art, and details are not described herein again.
  • steps S11-S14 specifically:
  • the first terminal sends an association request to the relay, and the source MAC address carried is its own MAC address, that is, MAC1, and the destination MAC address is the MAC address of the WiFi relay.
  • the WiFi relay is a "relative to the first terminal".
  • AP therefore, the destination MAC address uses the MAC_Relay AP;
  • the relay After receiving the association request, the relay sends a first terminal reply association response, and records the MAC1 of the first terminal in the first association list, so that the first terminal can be associated with the relay; After the association request sent by the first terminal, the association request is also sent to the base station AP. At this time, the relay does not use its own MAC address (MAC0), but still uses the address MAC1 of the first terminal as the source MAC address, the destination address.
  • MAC0 MAC0
  • the step of replying the association response to the first terminal and the step of sending the association request to the base station AP by the relay are not strictly sequential, as long as the two steps can be completed;
  • the base station AP After receiving the association request sent by the relay, the base station AP adds the MAC1 to the second association list, and sends an association response to the relay to complete the association between the first terminal and the base station AP.
  • the base station AP sends the association response, the source MAC address is filled with its own MAC address (MAC_base station AP), and the destination MAC address is filled with the MAC address of the first terminal (MAC1). This is because the base station AP does not pay attention to it. Which physical device is actually sent, it will only judge which terminal to send according to the received MAC address. Since it receives MAC1, the reply is also for MAC1.
  • the base station AP does not need to be modified relative to the prior art, and the manner of adding the association list and other methods can refer to the existing base station AP processing flow.
  • the association between the first terminal and the relay and the association between the first terminal and the base station AP can be completed. Since the first terminal does not directly send a message to the base station AP, the first terminal is associated with the base station AP by "forging" an association request with the source destination address being MAC1, from a certain point of view. It can also be considered that there is a "virtual terminal” (actually, it can be regarded as a functional module corresponding to the step of "associating with the base station AP"), and the association between the virtual terminal and the base station AP is completed by the virtual terminal, and Both the virtual terminal and the actual first terminal use the MAC 1 address. Therefore, the association between the first terminal and the base station AP is completed indirectly.
  • the specific processing method is similar to that of S42, and will not be described in detail here.
  • the execution time of S43 is not to be after S42. These two steps are parallel steps, and the order of execution is not strictly sequential.
  • the MAC address (MAC2) of the second terminal is also stored in the first association list of the relay and the second association list of the base station AP, and the second terminal and the relay and the base station AP are completed. The relationship between.
  • the data frame can be sent.
  • This method is also called Point Coordination Function.
  • the terminal sends data to the AP, it sends an RTS control frame first. A CTS control frame is replied, and the terminal starts transmitting data after receiving the CTS control frame.
  • the relay when the relay receives a control frame for requesting data transmission authority from the terminal, the relay returns a corresponding control frame to the terminal to allow the terminal to send the data frame. At the same time, the relay terminates the control frames sent by these terminals, and does not allow these control frames to be transmitted to the base station AP.
  • a flow chart of data transmission based on a control frame in this embodiment includes the following steps:
  • the WiFi terminal sends an RTS control frame to the WiFi relay, requests the sending permission, and the relay returns a CTS response to the WiFi terminal, and terminates the frame, and does not pass it to the base station AP.
  • the WiFi terminal in the step here is assumed to be the second WiFi terminal mentioned above, and the MAC address is MAC2, the time source MAC address of the RTS request is MAC2, and the destination MAC address is the MAC_Relay AP.
  • the relay responds to the CTS response, the destination MAC address is MAC2.
  • the WiFi terminal After receiving the CTS reply, the WiFi terminal starts to send a data frame, and the WiFi relay responds with an ACK response and buffers the data frame.
  • the source MAC address carried in the data frame is MAC2, and the destination MAC address is MAC_Relay AP.
  • the destination MAC address in the ACK response is MAC2.
  • the relay requests the base station AP to send the data frame permission through the control frame, and also sends the RTS control frame, but the source MAC address is filled in the MAC2, and is still "forged" into the second terminal to send to the base station AP, so that the base station AP is from the MAC2.
  • the control frame of this address is processed, and after receiving by the base station AP, the ACK control frame is returned for the MAC2 address.
  • the relay obtains the sending right after receiving the ACK control frame, and after constructing the new data frame by using the method shown in step S17, sending a data frame to the base station AP (using MAC2 as the source MAC address), so that the base station AP receives the data frame.
  • the user data in the data frame is then processed.
  • the base station AP also replies to the ACK control frame, notifying that the relay has received the data frame.
  • the step of refactoring is not strictly limited to be performed in this step. In practice, it is only necessary to complete the reconstruction before sending, for example, it may be reconstructed after being cached in step S52, or may be after the RTS is sent in step S53. Start refactoring and more.
  • the key to the reconstruction is to maintain the value of the field carrying the terminal MAC address in the data frame and the user data unchanged.
  • the upper part of Figure 8 is the frame format of a received WiFi frame
  • the table in the lower part of Figure 8 is an explanation of the meaning of the Address bit.
  • a data frame When a data frame is sent from a terminal to a relay, when the terminal constructs a data frame, it selects which field to carry its own source MAC address according to the sending direction (defined by To DS and From DS conditions), for example, when the direction is When the terminal sends the relay to the relay (To DS is 1 and From DS is 0), the terminal records its own MAC address in the Address2 field, and the To DS is 1 in the meaning table of the Address bit in the lower part of Figure 8.
  • the value of TA under the condition that From DS is 0 is the terminal MAC address, such as MAC1 or MAC2.
  • the relay When the relay receives the data frame to reconstruct a new data frame, the sending direction of the new data frame is relayed to the base station AP.
  • the address is still in the meaning of the Address bit table. From DS is a 0" transmission scenario.
  • the relay keeps the TA value in Address2 unchanged (still the terminal's MAC address, such as MAC1 or MAC2), and keeps the user data unchanged (the FRAMe Body field is used here to carry user data, therefore, the FRAMe Body field The value is unchanged, and the remaining values are adaptively modified so that the new data frame can be sent to the base station AP.
  • the RA value in Address1 is changed from the original BSS_2 (originally identified to the relay) to BSS_1 (now identified) Send to the base station AP); and recalculate the value of the FCS (ie, the check value).
  • FCS ie, the check value
  • this embodiment provides a method for how a relay processes a data frame sent by a base station AP. Referring to FIG. 9, the following steps are included:
  • the base station AP After the base station AP processes the message from the terminal, it can reply to a data frame. Since the base station AP directly "perceives" the WiFi terminal, the destination MAC address is the first MAC address, and the first MAC address in this embodiment. The meaning of "address" is the same as in the first embodiment.
  • the data frame sent by the relay processing base station AP is similar to the processing method of processing the data frame sent by the WiFi terminal, and is also constructed to construct a new data frame. Since this frame is to be forwarded to the WiFi terminal, when constructing the frame, the purpose is The MAC address is to be filled with the MAC address of the WiFi terminal, and the user data is kept unchanged. For the changes of the remaining fields (such as BSSID, FCS), refer to the description of the previous embodiment, and details are not described herein again.
  • the data sent by the base station AP can be transmitted to the WiFi terminal.
  • a flow diagram for obtaining a transmission right by using a control frame, and then transmitting a data frame includes the following steps:
  • the base station AP applies for sending permission by using each WiFi relay of the control frame.
  • the application is made through the RTS control frame, and the relay sends a CTS control frame to indicate the consent.
  • the destination MAC address used in the base station AP control frame is the MAC address of the target WiFi terminal (4 is set as the second terminal in the second embodiment, and the MAC address is MAC2);
  • the base station AP sends a data frame to the WiFi relay, and the relay responds to the response, and buffers the data frame.
  • the relay requests a sending permission to the WiFi terminal by using a control frame.
  • the source MAC address is the relay's own MAC address.
  • the MAC_Relay AP (which is an AP with respect to the terminal) is used
  • the destination MAC address is the MAC address of the WiFi terminal, that is, M AC2.
  • the relay After obtaining the transmission permission, the relay reconstructs a new data frame and sends it to the WiFi terminal.
  • the source MAC address is the MAC address of the "Relay AP" (MAC-Relay AP), and the destination MAC address is the MAC address (MAC2) of the WiFi terminal.
  • the WiFi terminal can also receive the response sent by the base station AP through the processing of the relay, thereby implementing data transmission between the WiFi terminal and the base station AP.
  • Embodiment 4
  • the present embodiment provides an apparatus for processing a WiFi frame, which is applied to a WiFi relay, where the WiFi relay is used to connect a WiFi terminal and a base station access point AP.
  • the device 110 is provided. Includes:
  • a first association request receiving unit 111 configured to receive a first association request sent by the WiFi terminal, where a source MAC address carried in the first association request is a first MAC address of the WiFi terminal, and a storage unit 112, configured to: The first MAC address in the first association request received by the first association request receiving unit 111 is stored in the first association list;
  • a first association response sending unit 113 configured to receive by the first association request receiving unit 111 After the first association request, sending a first association response to the WiFi terminal, thereby completing an association between the WiFi terminal and the WiFi relay;
  • the second association request sending unit 114 is configured to: after the first association request receiving unit 111 receives the first association request, send a second association request to the base station AP, where the second association request carries the source
  • the MAC address is the first MAC address, so that the base station AP acquires the first MAC address after receiving the second association request, and stores the first MAC address, and stores the information in the second association list.
  • the second association response receiving unit 115 is configured to receive the second association response, so as to complete an association between the WiFi terminal and the base station AP.
  • the WiFi frame receiving unit 116 is configured to receive the WiFi frame sent by the WiFi terminal, and the first constructing unit 117 is configured to: when the WiFi frame received by the WiFi frame receiving unit 116 is a data frame, and the first associated list is stored Reconstructing a new data frame that can be sent to the base station AP, where the source MAC address carried in the new data frame is a field of the first MAC address, the new The user data in the data frame is the same as the user data in the received data frame;
  • the data frame sending unit 118 is configured to send the new data frame constructed by the first building unit 117 to the base station AP, so that the base station AP receives the new data frame and determines that the second associated list is stored. After the first MAC address carried by the new data frame, the user data of the WiFi terminal corresponding to the first MAC address is processed.
  • the first building unit may include a BSSID modifying unit 1171, configured to modify a value of a BSSID field of an original data frame when the new data frame is constructed, and identify the WiFi data by the original The subsequent BSSID value is changed to identify the BSSID value of the base station AP.
  • a BSSID modifying unit 1171 configured to modify a value of a BSSID field of an original data frame when the new data frame is constructed, and identify the WiFi data by the original
  • the subsequent BSSID value is changed to identify the BSSID value of the base station AP.
  • the embodiment may further include:
  • a second data frame receiving unit 119 configured to receive a second data frame sent by the base station AP, where the destination MAC address carried in the second data frame is the first MAC address; a second constructing unit 120, configured to: when determining, according to the first association list, that the first MAC address in the second frame received by the second data frame receiving unit 119 is located in the first association list Reconstructing a new second data frame that can be sent to the WiFi terminal, where the destination MAC address carried in the new second data frame is a field of the first MAC address, and user data in the new data frame And the user data in the received second data frame;
  • a second data frame sending unit 121 configured to send the new second data frame constructed by the second building unit to the WiFi terminal, so that the WiFi terminal acquires the new second data frame User data.
  • the control frame processing unit 122 is configured to: when the received WiFi frame sent by the WiFi terminal is a control frame, terminate the control frame, so that the control frame is not forwarded to the base station AP, and Responding to the control frame corresponding to the sent control frame by the WiFi terminal, so that the WiFi terminal sends the data frame after receiving the corresponding control frame.
  • the control frame sent by the WiFi terminal is an RTS control frame defined by the WiFi protocol; and the control frame corresponding to the sent control frame is a CTS control frame defined by the WiFi protocol.
  • RTS control frame defined by the WiFi protocol
  • CTS control frame defined by the WiFi protocol
  • the association between the terminal and the relay and the base station AP is implemented by using the relay, so that the base station AP can "see" ("perceive") the terminal, and after the association, the relay can utilize the new data frame.
  • the method transmits the data sent by the terminal to the base station AP, so that the base station AP can process the data after receiving the data.
  • the base station AP is generally deployed by the operator, so the operator can achieve better management of the terminal.
  • This embodiment provides a WiFi relay, which is used to connect a WiFi terminal and a base station AP.
  • Figure 13 includes a processor 131 and a memory 132;
  • the memory 132 is configured to store program instructions
  • the processor 131 is configured to read and execute program instructions stored in the memory, wherein when the program instructions stored in the memory 132 are read and executed by the processor, performing the following steps :
  • the WiFi frame is a data frame and the first association list stores a source MAC address in the data frame
  • the source MAC address is a field of the first MAC address
  • the user data in the new data frame is the same as the user data in the received data frame
  • the user data of the WiFi terminal corresponding to the first MAC address performs service processing.
  • the method further includes the following steps: receiving a second data frame sent by the base station AP, and the destination carried in the second data frame
  • the MAC address is the first MAC address
  • the first MAC address is located in the first association list according to the first association list
  • the destination MAC address is a field of the first MAC address
  • the user data in the new data frame is the user data in the received second data frame
  • the control frame is terminated, so that the control frame is not forwarded to the base station AP, and is replied to the WiFi terminal. And a control frame corresponding to the sent control frame, so that the WiFi terminal sends the data frame after receiving the corresponding control frame.
  • control frame sent by the WiFi terminal is an RTS control frame defined by the WiFi protocol
  • control frame corresponding to the sent control frame is a CTS control frame defined by the WiFi protocol.
  • the value of the BSSID field of the original data frame is modified, and the BSSID value originally identifying the WiFi relay is changed to the BSSID value of the base station AP.
  • FIG. 13 is a schematic diagram of a trunking structure of a relay according to an embodiment of the present invention.
  • the processor in this embodiment may be the MAC controller in FIG. 3 or other processors having similar processing capabilities.
  • the memory in this embodiment may be the flash memory in FIG. 3 and the frame buffer RAM or other similar storage medium.
  • the processor can send and receive WiFi frames through physical layer processing devices (such as baseband processors, RFICs, antennas, etc.), and some of the techniques are those skilled in the art.
  • the well-known techniques are not described in detail in this embodiment.
  • the program may be implemented by a computer program to instruct related hardware, and the program may be stored in a computer readable storage medium, and when executed, the program may include the flow of an embodiment of the methods as described above.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

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

Abstract

L'invention concerne un procédé et un appareil pour traiter une trame WiFi. Le procédé est appliqué à un relais WiFi, et consiste : à associer un terminal WiFi à un relais par réception d'une demande d'association d'un terminal WiFi, et pendant ce temps, à envoyer, de la part du relais, la demande d'association à une station de base AP au moyen d'une adresse MAC du terminal afin d'associer ledit terminal à la station de base AP ; lorsqu'une trame WiFi reçue envoyée par le terminal est une trame de données et qu'une première liste d'association stocke une adresse MAC source dans la trame de données, à reconstruire une nouvelle trame de données qui peut être envoyée à la station de base AP, l'adresse MAC source présente dans la nouvelle trame de données étant un champ d'une première adresse MAC, et les données d'utilisateur présentes dans la nouvelle trame de données étant identiques aux données d'utilisateur présentes dans la trame de données reçue ; et à envoyer une nouvelle trame de données à la station de base AP, et après que la station de base AP reçoit la nouvelle trame de données et évalue qu'une deuxième liste d'association stocke une première adresse MAC présente dans la nouvelle trame de données, à exécuter le traitement du service sur les données d'utilisateur du terminal correspondant à la première adresse MAC. Le mode de réalisation décrit permet au côté AP d'une station de base de détecter un terminal, afin d'assurer une meilleure gestion de celui-ci.
PCT/CN2013/084931 2012-10-09 2013-10-09 Procédé et appareil pour traiter une trame wifi WO2014056437A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210379730.8A CN103716860B (zh) 2012-10-09 2012-10-09 一种处理WiFi帧的方法及装置
CN201210379730.8 2012-10-09

Publications (1)

Publication Number Publication Date
WO2014056437A1 true WO2014056437A1 (fr) 2014-04-17

Family

ID=50409315

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/084931 WO2014056437A1 (fr) 2012-10-09 2013-10-09 Procédé et appareil pour traiter une trame wifi

Country Status (2)

Country Link
CN (1) CN103716860B (fr)
WO (1) WO2014056437A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3557915A1 (fr) * 2018-04-17 2019-10-23 Huawei Technologies Co., Ltd. Procédé de communication dans un réseau local sans fil, dispositif et point d'accès

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104113425B (zh) * 2014-07-17 2017-12-05 普联技术有限公司 设置和检测计费方式的方法、MiFi设备及移动终端
WO2016032007A1 (fr) * 2014-08-29 2016-03-03 株式会社 東芝 Circuit intégré pour communication sans fil, terminal de communication sans fil et procédé de communication sans fil
CN105530681B (zh) 2014-09-28 2019-02-19 华为技术有限公司 业务处理方法及装置
CN105050154A (zh) * 2015-07-30 2015-11-11 青岛海尔智能家电科技有限公司 一种高频WiFi中转通信方法和装置
CN105684358A (zh) * 2016-01-17 2016-06-15 衣佳鑫 物联网的链接建立方法及系统
CN105873086A (zh) * 2016-06-16 2016-08-17 中国民用航空总局第二研究所 机场场面无线通信系统和无线终端

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110007692A1 (en) * 2008-03-14 2011-01-13 Yong Ho Seok Method and apparatus for transmitting data in dls wireless network
CN102469410A (zh) * 2010-11-02 2012-05-23 中国移动通信集团公司 一种数据传输方法、设备及系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050243769A1 (en) * 2004-04-28 2005-11-03 Walker Jesse R Apparatus and method capable of pre-keying associations in a wireless local area network
CN102143509B (zh) * 2010-12-16 2014-04-02 华为终端有限公司 Ap管理无线中继器的方法、装置及系统

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110007692A1 (en) * 2008-03-14 2011-01-13 Yong Ho Seok Method and apparatus for transmitting data in dls wireless network
CN102469410A (zh) * 2010-11-02 2012-05-23 中国移动通信集团公司 一种数据传输方法、设备及系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3557915A1 (fr) * 2018-04-17 2019-10-23 Huawei Technologies Co., Ltd. Procédé de communication dans un réseau local sans fil, dispositif et point d'accès

Also Published As

Publication number Publication date
CN103716860B (zh) 2017-02-01
CN103716860A (zh) 2014-04-09

Similar Documents

Publication Publication Date Title
US8325679B2 (en) Interworking of networks with single radio handover
WO2014056437A1 (fr) Procédé et appareil pour traiter une trame wifi
EP3139694B1 (fr) Procédé de répétition de dispositif de répétition sans fil et dispositif de répétition sans fil
US9008041B2 (en) Processing method supporting handover, communication apparatus, and communication system
JP2009500945A (ja) 無線ネットワークにおけるネットワーキング拡張範囲およびレガシーデバイスのためのmacレベル保護
US20140334438A1 (en) Systems and methods for wlan roaming
JP2017538345A (ja) 方法、装置およびシステム
US20080159242A1 (en) Personal area network implementation within an infrastructure network
WO2007149598A1 (fr) Système et procédé de fourniture d'appels d'urgence dans un réseau à ressources partagées
CN104066083B (zh) 一种接入无线局域网的方法和装置
WO2016109921A1 (fr) Procédé de transmission de données, station, point d'accès et dispositif de commande d'accès
CN102026163B (zh) 通过无线保真技术接入网选择接入因特网的方法及装置
WO2008106880A1 (fr) Procédés, systèmes de communication sans fil, stations de relais mobiles et stations de base d'entrée de réseau ms
WO2022048441A1 (fr) Procédé de transmission de données d'application, système et dispositif électronique
CN114071510A (zh) 一种通信方法及装置
EP4090081A1 (fr) Procédé et appareil d'accès automatique d'un dispositif de l'internet des objets à un réseau local sans fil
WO2006074592A1 (fr) Procede et dispositif de prise en charge de reseaux logiques multiples dans un reseau wlan
WO2010130198A1 (fr) Procédé, système et équipement de transfert entre réseaux d'accès
CN111917626B (zh) 一种Wlan AC业务数据的集中转发方法及电子设备
CN102006581A (zh) Ip地址强制续约的方法及装置
TWI416903B (zh) 於多重網路上進行通信之方法及裝置
WO2011091630A1 (fr) Procédé et système de transmission de données dans un réseau de fidélité sans fil (wifi)
TWI820874B (zh) 一種應用於通道直接鏈路建立的傳輸方法及裝置
TWI846025B (zh) 一種通信方法及通信裝置
JP2013066001A (ja) 無線通信装置

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

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

Country of ref document: EP

Kind code of ref document: A1