WO2023142844A1 - 分配aid的方法、装置和系统 - Google Patents

分配aid的方法、装置和系统 Download PDF

Info

Publication number
WO2023142844A1
WO2023142844A1 PCT/CN2022/142729 CN2022142729W WO2023142844A1 WO 2023142844 A1 WO2023142844 A1 WO 2023142844A1 CN 2022142729 W CN2022142729 W CN 2022142729W WO 2023142844 A1 WO2023142844 A1 WO 2023142844A1
Authority
WO
WIPO (PCT)
Prior art keywords
sta
aid
management device
message
aps
Prior art date
Application number
PCT/CN2022/142729
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 WO2023142844A1 publication Critical patent/WO2023142844A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/02Processing of mobility data, e.g. registration information at HLR [Home Location Register] or VLR [Visitor Location Register]; Transfer of mobility data, e.g. between HLR, VLR or external networks
    • H04W8/08Mobility data transfer
    • H04W8/14Mobility data transfer between corresponding nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support

Definitions

  • the present application relates to the technical field of network communication, in particular to a method, device and system for allocating AIDs.
  • wireless local area network wireless local area network
  • the access point access point, AP
  • association identifier association identifier
  • the AID is used to identify that the STA has established a corresponding relationship with the AP, and the STA and the AP can communicate.
  • the AP allocates AIDs to the STAs, they are allocated to the STAs in ascending order starting from 1.
  • the basic service set identifier (BSSID) of each AP is independent, and each AP manages the AID of its associated STA. Since the AID assigned by the AP to its associated STA is unique, in a network architecture identified by a BSSID, the AID can also replace the media access control (media access control, MAC) address in some messages to identify the STA. For example, the AID is used to distinguish the scheduling information corresponding to the STA.
  • media access control media access control
  • the present application provides a method, device, system, device and storage medium for allocating AIDs, which solves the problem that an AP cannot distinguish STAs in a network architecture identified by a BSSID.
  • the present application provides a method for allocating AIDs, the method is executed by a management device, and the method includes:
  • the management device obtains the parameters of the STA; the management device allocates an AID to the STA based on the parameters of the STA, and determines the first AP among the multiple APs managed by the management device, and the first AP is used to send the AID to the STA , the BSSIDs of the multiple APs are the same, at least one of the multiple APs receives the authentication request sent by the STA, and the first AP belongs to the at least one AP; the management device sends the AID and the STA to the first AP logo.
  • the management device uses the parameters of the STA to assign an AID to the STA.
  • the management device determines the first AP that sends the AID to the STA, and the management device sends the AID and the identifier of the STA to the first AP, so that the first AP sends the AID to the STA.
  • the management device assigns AIDs to STAs uniformly, so that the AIDs assigned to each STA under the network architecture are different, and then the STAs send messages carrying AIDs to APs without When carrying the source MAC address, the AID can also be used to distinguish STAs.
  • the method further includes: the management device sending the AID and the STA identifier to other APs in the multiple APs except the first AP.
  • the management device sending the AID and the STA identifier to other APs in the multiple APs except the first AP.
  • the method further includes: the management device detects that the STA is offline; the management device sends reclaim messages to the multiple APs respectively, where the reclaim messages are used to indicate reclaiming the AID.
  • the management device can notify each AP to reclaim the AID corresponding to the STA, so that the AID can be allocated to other STAs subsequently, saving AID resources.
  • the multiple APs and the management device form a fiber to the room (fiber to the room, FTTR) network architecture
  • the management device carries the AID and the identifier of the STA through an allocation message
  • the AID The identifier of the STA is located in the payload field of the assignment message, and the destination address of the assignment message is the identifier of the AP receiving the assignment message.
  • the identifier of each AP is used to uniquely identify the AP.
  • the multiple APs and the management device form an Ethernet architecture
  • the management device carries the AID and the STA identifier through an Ethernet frame, and the AID and the STA identifier are located in the Ethernet frame in the payload field of the .
  • the multiple APs and the management device form a passive optical network (passive optical network, PON) architecture, and the management device manages and controls the interface (ONU management and control interface, OMCI through the optical network unit) ) message carries the AID and the STA identifier, and the AID and the STA identifier are located in the message content field of the OMCI message.
  • PON passive optical network
  • the acquiring the parameters of the STA by the management device includes: the management device receives an authentication report message sent by at least one AP among the plurality of APs, the authentication report message includes the parameter of the STA; the management device Obtain the parameters of the STA from the authentication report message. In this way, the management device can obtain the parameters of the STA from the authentication report message.
  • the method further includes: the management device acquires characteristic information of the at least one AP, and the characteristic information of each AP includes load information, received interference information, and quality information for receiving signals sent by the STA
  • the determining the first AP among the multiple APs managed by the management device includes: the management device determines the connection quality between the at least one AP and the STA based on the characteristic information of the at least one AP, and the The AP with the highest connection quality among the at least one AP is determined as the first AP.
  • the management device uses the feature information of at least one AP, and among the at least one AP, determines the AP with the highest connection quality as the AP to be associated with by the STA.
  • at least one AP is the AP that sends an authentication report message to the management device, that is to say, at least one AP is the AP that receives the authentication request sent by the STA, then each of the at least one AP can communicate with the STA.
  • the AP with the highest connection quality is selected from these APs, so that the selected AP can communicate with the STA.
  • the method further includes: the management device detects that the STA moves from within the coverage of the first AP to within the coverage of the second AP among the plurality of APs; The second AP sends a notification message, where the notification message is used to instruct the second AP to connect with the STA.
  • the management device can notify the second AP to provide the STA with a function of forwarding packets, so that the STA will not be aware of switching APs.
  • the present application provides a method for allocating AIDs, the method is executed by a first AP, and the method includes:
  • the first AP receives the AID and the STA identifier sent by the management device, where the AID is the AID allocated by the management device to the STA; the first AP stores the STA identifier and the AID correspondingly.
  • the management device assigns AIDs to STAs uniformly, so that the AIDs assigned to each STA under the network architecture are different, and then the STAs send the AIDs carrying AIDs.
  • the AID can also be used to distinguish the STA.
  • the method further includes: in a case where the first AP is an AP designated by the management device and associated with the STA, the first AP sends the AID to the STA.
  • the AP designated by the management device sends the AID to the STA, which not only enables the STA to obtain its own corresponding AID, but also prevents the AID from being repeatedly received.
  • the method before the first AP receives the AID and the STA identifier sent by the management device, the method further includes: the first AP receives the authentication request sent by the STA, and the authentication request includes parameters of the STA; the The first AP sends an authentication report message to the management device, and the authentication report message includes the parameters of the STA; after the first AP receives the AID and the STA identifier sent by the management device, it further includes: In the case of the designated AP associated with the STA, the first AP sends an authentication response message to the STA.
  • the first AP after the first AP receives the authentication request sent by the STA, it notifies the management device, so that the management device assigns an AID to the STA, and when the first AP is designated as the AP associated with the STA , to send an authentication response message to the STA, so that the STA can continue to perform the process of accessing the network. Moreover, only the AP associated with the STA sends an authentication response message to the STA, so that the STA will not repeatedly receive the authentication response message.
  • the method further includes: the first AP receives a reclaim message sent by the management device, where the reclaim message is used to indicate reclaiming the AID; and the first AP reclaims the AID.
  • the first AP reclaims the AID after receiving the AID reclaim message, so that the AID can also be allocated to other STAs, saving AID resources.
  • the present application provides an apparatus for allocating AIDs, and the apparatus has a function of realizing the above-mentioned first aspect or any optional manner of the first aspect.
  • the device includes at least one module, and the at least one module is configured to implement the method for allocating AIDs provided in the first aspect or any optional manner of the first aspect.
  • the present application provides an apparatus for allocating AIDs, and the apparatus has the function of realizing the above-mentioned second aspect or any optional manner of the second aspect.
  • the device includes at least one module, and the at least one module is used to implement the method for allocating AIDs provided in the second aspect or any optional manner of the second aspect.
  • the present application provides a management device, which includes a network interface, a memory, and a processor connected to the memory;
  • the network interface is used to obtain the parameters of the STA, and send the identification and AID of the STA to the first AP;
  • the memory is used to store computer instructions
  • the processor is configured to execute the computer instructions, so that the management device implements the method for allocating AIDs provided in the first aspect or any optional manner of the first aspect.
  • the present application provides an AP, where the AP includes a network interface, a memory, and a processor connected to the memory;
  • the network interface is configured to receive the STA identification and AID sent by the management device;
  • the memory is used to store computer instructions
  • the processor is configured to execute the computer instructions, so that the AP implements the method for allocating AIDs provided in the second aspect or any optional manner of the second aspect.
  • the present application provides a computer-readable storage medium, in which at least one computer instruction is stored, and the computer instruction is read by a processor to enable the management device to execute any one of the above-mentioned first aspect or the first aspect.
  • a method for assigning AIDs provided in an optional manner.
  • the present application provides a computer-readable storage medium, in which at least one computer instruction is stored, and the computer instruction is read by a processor to enable the AP to perform any one of the above-mentioned second aspect or the second aspect.
  • a processor to enable the AP to perform any one of the above-mentioned second aspect or the second aspect.
  • the present application provides a computer program product, where the computer program product includes computer instructions, and the computer instructions are stored in a computer-readable storage medium.
  • the processor of the management device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the management device executes the method for allocating AIDs provided in the first aspect or any optional method of the first aspect .
  • the present application provides a computer program product, where the computer program product includes computer instructions, and the computer instructions are stored in a computer-readable storage medium.
  • the processor of the AP reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the AP executes the method for allocating AIDs provided in the second aspect or any optional manner of the second aspect.
  • the present application provides a system for allocating AIDs
  • the system includes a management device and an AP
  • the management device is used to implement the method for allocating AIDs provided in the first aspect or any optional method of the first aspect
  • the AP is configured to execute the method for allocating AIDs provided in the second aspect or any optional manner of the second aspect.
  • FIG. 1 is a schematic diagram of a traditional networking provided by an exemplary embodiment of the present application
  • FIG. 2 is a schematic diagram of multiple APs sharing a BSSID provided by an exemplary embodiment of the present application
  • FIG. 3 is a schematic structural diagram of a system for allocating AIDs provided by an exemplary embodiment of the present application
  • Fig. 4 is a schematic structural diagram of a device provided by an exemplary embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an AP provided by an exemplary embodiment of the present application.
  • FIG. 6 is a schematic flowchart of a method for allocating AIDs provided by an exemplary embodiment of the present application
  • FIG. 7 is a schematic flowchart of a method for allocating AIDs provided by an exemplary embodiment of the present application.
  • FIG. 8 is a schematic flowchart of a method for allocating AIDs provided by an exemplary embodiment of the present application.
  • FIG. 9 is a schematic diagram of an AID allocation field provided by an exemplary embodiment of the present application.
  • FIG. 10 is a schematic diagram of an AID allocation field provided by an exemplary embodiment of the present application.
  • Fig. 11 is a schematic diagram of an allocation message provided by an exemplary embodiment of the present application.
  • Fig. 12 is a schematic diagram of an Ethernet frame provided by an exemplary embodiment of the present application.
  • Fig. 13 is a schematic diagram of an OMCI message provided by an exemplary embodiment of the present application.
  • FIG. 14 is a schematic diagram of STA roaming provided by an exemplary embodiment of the present application.
  • Fig. 15 is a schematic flow chart of recovering AID provided by an exemplary embodiment of the present application.
  • FIG. 16 is a schematic diagram of an AID allocation field and an AID recycling field provided by an exemplary embodiment of the present application.
  • Fig. 17 is a schematic diagram of a recycling message provided by an exemplary embodiment of the present application.
  • FIG. 18 is a schematic structural diagram of an apparatus for allocating AIDs provided by an exemplary embodiment of the present application.
  • Fig. 19 is a schematic structural diagram of an apparatus for allocating AIDs provided by an exemplary embodiment of the present application.
  • each BSSID identifies a network architecture
  • each network architecture includes an AP
  • each AP in each network architecture manages the AID of its associated STA. Since the AID assigned by the AP to its associated STA is unique, in a network architecture identified by a BSSID, the AID can also replace the MAC address in certain messages to identify the STA.
  • the three network architectures include AP1, AP2, and AP3.
  • AP1 allocates AID1 to STA1
  • AP1 allocates AID2 to STA2
  • AP2 allocates AID1 to STA3
  • AP3 allocates AID1 to STA4
  • AP3 allocates AID2 to STA5. Since the BSSIDs of AP1 and AP2 are different, even if the messages sent by STA1 and STA3 only carry AID1, there will be no confusion.
  • a network architecture includes AP4 and AP5, AP4 allocates AID1 to STA6, AP5 allocates AID1 to STA7, and AP5 allocates AID2 to STA8. Since the MAC address of each AP is the same under the network architecture identified by a BSSID, when STA6 sends a message with AID1 and does not carry the source MAC address, when both AP4 and AP5 receive the message, they cannot distinguish whether the message belongs to STA6 or STA7 .
  • AP4 sends a beacon (beacon) frame, indicating that STA6 of AID1 has data to be transmitted, STA6 will be awakened from sleep, and STA7 will mistakenly think that it also has data to be transmitted, and sleep will also be woken up, affecting energy saving efficiency.
  • beacon beacon
  • the management device uniformly assigns AIDs to STAs, so that the AIDs assigned to each STA under the network architecture are different, and then the STAs send messages carrying AIDs to APs And when the source MAC address is not carried, the AID can also be used to distinguish STAs.
  • an embodiment of the present application provides a system 300 for allocating AIDs.
  • the system 300 includes multiple APs 301 and a management device 302 .
  • Multiple AP301s form a network architecture.
  • the BSSIDs of the AP301s are the same, and the MAC addresses of the AP301s are the same.
  • the coverage of two adjacent AP301s may or may not overlap.
  • AP 301 may be a router, switch, or optical anchor.
  • the management device 302 is used to allocate AIDs.
  • the management device 302 may be an AP in the network architecture. This AP is called a central AP, such as the AP with the strongest capability in the network architecture. It may also be an access point responsible for managing multiple APs 301. into the controller, etc. Wherein, the embodiment of the present application does not limit the number and type of APs.
  • the management device 302 can communicate with each AP 301 , such as through optical fiber communication, cable communication or wireless communication.
  • the management device 302 and multiple APs 301 form an FTTR network architecture
  • the management device 302 is an optical gateway
  • the multiple APs 301 are edge APs
  • the edge APs are used for STA access.
  • the management device 302 and multiple APs 301 form an Ethernet architecture.
  • the management device 302 and multiple APs 301 form a PON architecture, and the management device 302 and the multiple APs 301 are connected through optical fibers.
  • the structure of the PON formed by the management device 302 and multiple APs 301 is described here to illustrate that the network architecture between the management device 302 and multiple APs 301 is similar to a PON.
  • the device 400 shown in FIG. 4 is an example of the AP 301 and the management device 302 in the above system architecture.
  • the device 400 is configured as an AP 301, a management device 302, and the like.
  • the Device 400 is optionally implemented by a generic bus architecture.
  • the device 400 includes at least one processor 401 , a communication bus 402 , a memory 403 and at least one network interface 404 .
  • the processor 401 is, for example, a general-purpose central processing unit (central processing unit, CPU), a network processor (network processor, NP), a graphics processing unit (Graphics Processing Unit, GPU), a neural network processor (neural-network processing units, NPU) ), a data processing unit (Data Processing Unit, DPU), a microprocessor, or one or more integrated circuits used to implement the solution of this application.
  • the processor 401 includes an application-specific integrated circuit (application-specific integrated circuit, ASIC), a programmable logic device (programmable logic device, PLD) or a combination thereof.
  • the PLD is, for example, a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), a general array logic (generic array logic, GAL) or any combination thereof.
  • complex programmable logic device complex programmable logic device, CPLD
  • field-programmable gate array field-programmable gate array
  • GAL general array logic
  • the communication bus 402 is used to transfer information between the components described above.
  • the communication bus 402 can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 4 , but it does not mean that there is only one bus or one type of bus.
  • the memory 403 is, for example, a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, or a random access memory (random access memory, RAM) or a memory that can store information and instructions.
  • Other types of dynamic storage devices such as electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc Storage (including Compact Disc, Laser Disc, Optical Disc, Digital Versatile Disc, Blu-ray Disc, etc.), magnetic disk storage medium, or other magnetic storage device, or is capable of carrying or storing desired program code in the form of instructions or data structures and capable of Any other medium accessed by a computer, but not limited to.
  • the memory 403 exists independently, for example, and is connected to the processor 401 through the communication bus 402 .
  • the memory 403 can also be integrated with the processor 401 .
  • the memory 403 is used to store the AID allocated by the device 400 for the SAT and the like.
  • Network interface 404 uses any transceiver-like device for communicating with other devices or a communication network.
  • the network interface 404 includes a wired network interface, and may also include a wireless network interface.
  • the wired network interface may be an Ethernet interface, for example.
  • the Ethernet interface can be an optical interface, an electrical interface or a combination thereof.
  • the wireless network interface may be a WLAN interface, a cellular network interface or a combination thereof.
  • the processor 401 may include one or more CPUs.
  • the device 400 may include multiple processors.
  • processors can be a single-core processor (single-CPU) or a multi-core processor (multi-CPU).
  • a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data such as computer program instructions.
  • the memory 403 is used to store the program code 4031 for executing the solutions of the present application.
  • the program code 4031 is a computer instruction, and the processor 401 can execute the program code 4031 stored in the memory 403 . That is, the device 400 can implement the method for allocating an AID provided by the method embodiment through the processor 401 and the program code 4031 in the memory 403 .
  • FIG. 5 shows a schematic structural diagram of an AP301.
  • the AP301 includes a main control board 3011 and an interface board 3012.
  • the main control board 3011 belongs to the control plane of the AP301, and the interface board 3012 belongs to the data plane of the AP301.
  • the main control board 3011 includes a processor and memory.
  • the interface board 3012 includes a processor, a memory, and an interface card.
  • a communication connection is established between the main control board 3011 and the interface board 3012 .
  • the processor of the main control board 3011 may be a CPU or an ASIC or the like.
  • a processor may include one or more chips.
  • the memory of the main control board 3011 may be a ROM, a static storage device, a dynamic storage device or a RAM.
  • the memory of the main control board 3011 may store computer instructions, and when the computer instructions stored in the memory are executed by the processor, the processor of the main control board 3011 executes the method for allocating AIDs.
  • the processor of the interface board 3012 may be a CPU, an ASIC, and the like.
  • the processor of the interface board 3012 may include one or more chips.
  • the memory of the interface board 3012 may be ROM, static storage device, dynamic storage device or RAM.
  • the memory of the interface board 3012 may store computer instructions, and when the computer instructions stored in the memory are executed by the processor of the interface board 3012, the processor of the interface board 3012 executes the method for assigning an AID.
  • the interface card can realize the sending and receiving processing of messages.
  • the AP is AP301
  • the management device is management device 302.
  • step 601 the management device obtains parameters of STAs.
  • STA is any device that requests access to an AP, such as a mobile phone, a tablet, a speaker, or a notebook.
  • the management device determines that the STA requests authentication, and acquires parameters of the STA, including but not limited to the capability level and model of the STA.
  • Step 602 the management device assigns an AID to the STA based on the parameters of the STA, and determines the first AP among the multiple APs managed by the management device, the first AP is used to send the AID to the STA, and the basic service set identifiers of multiple APs
  • the BSSIDs are the same, and at least one of the multiple APs receives the authentication request sent by the STA.
  • the management device checks the parameters of the STA to determine whether the STA is allowed to go online. For example, the management device judges whether the model of the STA belongs to the model that is allowed to access, and judges whether the capability level of the STA meets the capability level required by the management device , if both of them match, it is determined that the STA is allowed to go online, otherwise, the STA is not allowed to go online. If the STA is allowed to go online, an AID is allocated to the STA. For the convenience of description, the AID is called a target AID. For example, the management device selects the AID with the smallest sequence number among the currently unallocated AIDs. If the STA is not allowed to go online, the management device sends an authentication failure message to an AP that has received the authentication request, so that the AP sends an authentication response message to the STA, and the authentication response message indicates authentication failure.
  • the management device determines the first AP among the multiple APs managed by itself, the first AP is used as the AP to be associated with the STA, and the first AP is used to send the target AID to the STA.
  • the management device is the central AP, if the central AP determines that it is the first AP, step 603 may not be performed.
  • the management device when the management device allocates AIDs, it may allocate them according to the access order of STAs from small to large.
  • the range of AIDs is 1 to 2007.
  • Each AID corresponds to an available flag bit, and the flag bit is set to 1 by default.
  • the mark position of the target AID is 0. In this way, when the management device allocates an AID to a STA, it allocates an AID with a flag position of 1, so that there is no STA using the same AID at the same time.
  • the multiple APs are APs that the STA may access.
  • the selected first AP since the selected first AP is to communicate with the STA, it should be able to communicate with the STA at present, then the first AP belongs to the AP that has received the authentication request sent by the STA.
  • Step 603 the management device sends the AID and the STA identifier to the first AP.
  • the management device After the management device determines the target AID and the first AP, it sends the target AID and the STA identifier to the first AP, where the STA identifier can be the STA's MAC address, or other unique ID that indicates the STA. logo.
  • the first AP is used as an example for illustration.
  • the first AP belongs to multiple APs managed by the management device. AP.
  • step 701 the first AP receives the AID and the STA identifier sent by the management device, where the AID is the AID allocated by the management device to the STA.
  • step 702 the first AP stores the STA identifier and the AID correspondingly.
  • the first AP stores the identity of the STA and the target AID correspondingly, so that when the first AP receives the message including the target AID, it determines that the message comes from the STA indicated by the identity of the STA, and makes the first AP
  • the AP only needs to carry the AID when sending a message to the STA.
  • the AID is generally 1 or 2 bytes, while the MAC address is 6 bytes. Compared with carrying the MAC address, carrying the AID can save the byte overhead of the message.
  • steps 701 to 702 refer to FIG. 7 for the flow of interaction between the management device and the first AP.
  • the management device assigns AIDs to STAs uniformly, so that the AIDs assigned to each STA under the network architecture are different, and can be carried when sending messages.
  • the AID is used to identify the STA.
  • the following describes the method of allocating AIDs from the perspectives of both the management device and the AP, referring to the flow shown in FIG. 8 .
  • step 801 the STA sends an authentication request, and the authentication request includes parameters of the STA.
  • the STA first scans the wireless network, and after the scanning is completed, the scanned wireless network is displayed on the screen, and the user selects to connect to a wireless network whose network architecture includes multiple APs (the network architecture corresponds to a BSSID), and the STA generates An authentication request, where the authentication request includes parameters of the STA, including but not limited to the capability level and model of the STA. STA sends the authentication request. This is only a possible way to trigger the STA to send the authentication request, which is not limited in this embodiment of the present application.
  • Step 802 the first AP receives the authentication request sent by the STA.
  • all APs currently covering the STA can receive the authentication request sent by the STA, and here it is assumed that the first AP receives the authentication request sent by the STA.
  • Step 803 the first AP sends an authentication report message to the management device, and the authentication report message includes the parameters of the STA.
  • Steps 802 to 803 only show that the first AP receives the authentication request sent by the STA and sends an authentication report message to the management device. There may be other APs that also receive the authentication request sent by the STA, and other APs also receive the authentication request sent by the STA. An authentication report message will be sent to the management device.
  • step 804 the management device receives an authentication report message sent by at least one of the multiple APs, where the authentication report message includes parameters of the STA.
  • the authentication report message is used to indicate that an authentication operation is requested to be performed for the STA.
  • At least one AP sends an authentication report message to the management device, and the management device receives the authentication report message sent by at least one AP.
  • Step 805 the management device obtains the parameters of the STA from the authentication report message.
  • a certain field in the authentication report message is specially used to store the parameters of the STA, and the management device can obtain the parameters of the STA from this field.
  • the management device obtains characteristic information of at least one AP, and the characteristic information of each AP includes at least one of load information, received interference information, and quality information of signals sent by receiving STAs.
  • At least one AP is an AP that receives the authentication request sent by the STA among the multiple APs.
  • the authentication report message when the AP sends an authentication report message to the management device, the authentication report message includes the characteristic information of the AP, and the characteristic information of the AP includes the load information of the AP, the interference information received, and the quality information of the signal sent by the receiving STA At least one of them, the load information of the AP refers to the number of currently associated STAs or the number of remaining STAs that can be associated, the interference information received by the AP refers to the interference value of the AP received by other APs, and the quality information of the signal sent by the receiving STA refers to the number of STAs received by the AP.
  • the management device can obtain the feature information of the AP from the authentication report message.
  • the authentication report message does not include feature information
  • the management device may send a request for acquiring feature information to the AP, and the AP reports the feature information to the management device.
  • the authentication report message does not include feature information
  • the management device may send a quality information acquisition request to the AP, and the AP reports to the management device the quality information of the signal sent by the receiving STA.
  • the management device can determine the number of STAs currently communicating with the AP. For example, when the management device designates the STA to associate with the AP for the first time, it will record the communication between the AP and the STA. When the STA roams from the currently communicating AP to another AP, the coverage When within the range, the management device will update the STA communicating with the AP.
  • the management device acquires the latest interference information reported by the AP, and determines it as the received interference information.
  • Step 807 the management device assigns a target AID to the STA based on the parameters of the STA, the management device determines the connection quality between the at least one AP and the STA based on the characteristic information of the at least one AP, and connects the AP with the highest quality among the at least one AP Determined as the first AP.
  • At least one AP is the AP that receives the authentication request sent by the STA.
  • an AP that can currently receive the authentication request sent by the STA should be selected so that the STA can communicate with the first AP.
  • step 602 refer to the description of step 602 for the process of the management device assigning the target AID to the STA, and details are not repeated here.
  • the characteristic information of at least one AP includes one type
  • the content included in the characteristic information of the AP is negatively correlated with the connection quality
  • the content included in the characteristic information is taken as the inverse number, and determined as the relationship between the AP and the STA.
  • Connection quality if the content included in the characteristic information of the AP is positively correlated with the connection quality, then determine the content included in the characteristic information as the connection quality between the AP and the STA.
  • the feature information includes load information
  • the load information is the number of STAs communicating with the AP
  • the reciprocal of the number of STAs is determined as the connection quality with the STAs.
  • the various contents of the feature information are weighted to obtain a weighted value, and the weighted value is determined as the connection quality.
  • the content that is negatively correlated with the connection quality is taken as the reciprocal, and the weighted processing is performed using the reciprocal content.
  • the weights of various contents in the feature information may be set according to actual needs, which is not limited in this embodiment of the present application.
  • the management device After determining the connection quality between the AP and the STA, the management device determines the AP with the highest connection quality as the first AP.
  • connection quality based on feature information is not limited in this embodiment of the present application.
  • Step 808 the management device sends the target AID and the STA identifier to the first AP. And the target AID and the STA identifier are sent to other APs in the multiple APs except the first AP.
  • the management device sends an allocation message to each AP, the allocation message includes an AID allocation field, and the AID allocation field includes the STA's identification field, the AID field, and the indication field for responding to the authentication request.
  • the STA's identification can be the STA's MAC address
  • the target AID is stored in the AID field, see the AID allocation field shown in FIG. 9 .
  • the content of the indication field in response to the authentication request is used to instruct the first AP to send the target AID to the STA.
  • the content of the indication field in response to the authentication request is used to indicate not to send the target AID to the STA.
  • the content of the indication field responding to the authentication request is 1, and in the AID allocation field sent to other APs, the content of the indication field responding to the authentication request is 0.
  • Method 2 The management device sends an allocation message to each AP.
  • the allocation message includes an AID allocation field, and the AID allocation field includes the AP's identification field, the STA's identification field, and the AID field, wherein the AP's identification field stores the first AP's ID, the ID of the first AP uniquely indicates the first AP, and the target AID is stored in the AID field, see the AID allocation field shown in FIG. 10 .
  • the AP that receives the AID allocation field judges whether its own identity is the same as the AP identity in the AID allocation field. If it is the same, it means that the AP is the first AP.
  • mode 1 and mode 2 after the management device sends the STA ID and target AID to other APs except the first AP, other APs store the target AID and STA ID. Roaming within the coverage of the AP to the coverage of other APs, even if the message carries the target AID but not the STA identity, other APs can identify the STA.
  • the AID allocation field includes a message identifier, and the message identifier takes different values to identify the allocation message and the recovery message respectively. For example, when the message identifier is 1, the message is an allocation message, and when the message identifier is 0, the message is a recycling message.
  • the AID allocation field shown in FIG. 9 and FIG. 10 may be part of the content of the AID allocation field.
  • the format of the message carrying the AID allocation field may be different.
  • multiple APs and management devices form an FTTR network architecture, and the management device and multiple APs are connected through optical fibers or wireless connections.
  • the message carrying the AID allocation field can be called an allocation message, referring to the allocation message shown in Figure 11, the allocation message includes an AID allocation field, a destination address field, a source address field, a message type field, a payload length field and a payload field, and the payload field It can also be called payload field.
  • the destination address is the AP’s ID
  • the AP’s ID uniquely indicates the AP. Different APs have different IDs.
  • the AP’s ID can be any content that can uniquely identify the AP, such as index number etc., for example, the destination address of the allocation message sent to the first AP is the index number of the first AP.
  • the source address is the identifier of the management device, and the identifier of the management device may be the MAC address of the management device, or an index identifier that uniquely identifies the management device. It should be noted that when the management device is the central AP, since the central AP has the same MAC address as other APs, the identifier of the management device is not the MAC address.
  • the message type field identifies that the assignment message is a control message, not a data message.
  • the allocation message further includes a reserved (reserved) field.
  • the format of the allocation message carrying the AID allocation field is an Ethernet frame. Referring to the Ethernet frame shown in FIG. 12 , the AID allocation field is located in the payload field of the Ethernet frame.
  • the management device is not the central AP under the network architecture, the source address is the MAC address of the management device, and the destination address is the virtual MAC address of the AP receiving the Ethernet frame. If the management device is the central AP under the network architecture, the source address is the virtual MAC address of the management device, and the destination address is the virtual MAC address of the AP receiving the Ethernet frame.
  • a virtual MAC address is assigned to each AP to distinguish different APs. For example, after each AP goes online, the management device assigns each AP a different virtual MAC address.
  • the virtual MAC address of each AP is invisible to the STA. When the AP communicates with the STA, it carries the MAC address of the AP instead of the virtual MAC address.
  • Ethernet frame also includes a type (type) field, a length (length) field, and a frame check sequence (frame check sequence, FCS) field, etc.
  • type type
  • length length
  • FCS frame check sequence
  • the format of the allocation message carrying the AID allocation field is the format of the OMCI message, refer to the OMCI message shown in 13, and the AID allocation field is located in the message content (Message Contents) field of the OMCI message.
  • the OMCI message also includes the passive optical access system encapsulation format (Gigabit-Capable PON encapsulation mode, GEM) header (Header) field, transaction correlation identifier (Transaction Correlation Identifier) field, message type (Message Type) field, Device Identifier (Device Identifier) field, Message Identifier (Message Identifier) field and OMCI end (Trailer) field, etc.
  • GEM passive optical access system encapsulation format
  • Header header
  • transaction correlation identifier Transaction Correlation Identifier
  • message type Message Type
  • Device Identifier Device Identifier
  • Message Identifier Identifier
  • OMCI end OMCI end
  • the GEM Header field includes GEM payload length, GEM port identifier, payload type indicator (payload type indicator, PTI) and header error check (header error check, HEC), etc.
  • GEM port identifiers are used to identify different APs.
  • the OMCI message carrying the GEM port identifier corresponding to itself may be determined as the OMCI message sent to itself.
  • the value of the Transaction Correlation Identifier field must be consistent in a set of corresponding request and response messages.
  • the Message Type field is used to identify the specific type of the message, for example, the content of the Message Type field is 0x20.
  • the Device Identifier field is used to identify the type of AP.
  • the Message Identifier field is used to identify the general type of the message, and the Message Type belongs to one of the general types identified by the Message Identifier.
  • the OMCI Trailer field is used for message verification.
  • Step 809 the first AP receives the target AID and the STA identifier sent by the management device.
  • Step 810 other APs except the first AP receive the target AID and STA identifier sent by the management device.
  • other APs except the first AP store the target AID and the STA identifier correspondingly, and only the second AP receives the target AID and the STA identifier in FIG. 8 .
  • Step 811 the first AP stores the STA identity and the target AID correspondingly.
  • the first AP stores the STA identifier and the target AID as a corresponding relationship, and records the STA capability information and the like in the corresponding relationship.
  • Step 812 in the case that the first AP is an AP designated by the management device and associated with the STA, the first AP sends an authentication response message to the STA.
  • the first AP when the first AP receives the target AID and the identifier of the STA, since the first AP is a device designated by the management device to respond to the STA, the first AP sends an authentication response message to the STA.
  • Step 813 the STA receives the authentication response message and sends an association request.
  • the STA after receiving the authentication response message sent by the first AP, the STA generates an association request, which includes but is not limited to the rate, channel, and quality of service (QoS) capabilities supported by the STA, and the selected Access authentication and encryption algorithms, etc., and then the STA sends an association request.
  • QoS quality of service
  • the STA since the MAC addresses of the APs with the same BSSID are the same, for the STA, only the AP with the MAC address sends an association request, and all APs covering the STA may receive the association request.
  • Step 814 the first AP receives the association request sent by the STA.
  • Step 815 in the case that the first AP is an AP designated by the management device to associate with the STA, the first AP sends an association response message to the STA, where the association response message includes the target AID.
  • the first AP is a device designated by the management device to associate with the STA, and the first AP sends an association response message to the STA, and the association response message includes the target AID.
  • other APs other than the first AP may also receive association requests, but since other APs are not devices designated to be associated with the STA, they will not reply an association response message to the STA.
  • the format of the authentication report message may be the same as that shown in FIG. 11 .
  • the format of the authentication report message may be the same as the format of the Ethernet frame shown in FIG. 12 .
  • the format of the authentication report message may be the same as the format of the OMCI message shown in FIG. 13 .
  • the management device sends the target AID and the STA identifier to the second AP.
  • the first AP sends The second AP sends the target AID and the identity of the STA.
  • the management device or the first AP when the management device or the first AP sends the target AID and STA identity to the second AP, it can also send the content negotiated when the first AP associates with the STA, such as the rate supported by the STA, the channel, the QoS capability, and the selected Access authentication and encryption algorithms, etc., so that after the STA roams within the coverage of the second AP, the second AP can directly communicate with the STA and provide the STA with the function of message forwarding.
  • the content negotiated when the first AP associates with the STA such as the rate supported by the STA, the channel, the QoS capability, and the selected Access authentication and encryption algorithms, etc.
  • the AP that provides forwarding processing for the STA's message can also be adjusted, and the processing process is as follows:
  • the first AP is responsible for forwarding the STA's message (the STA's message includes the message sent to the STA and the message received from the STA), and it is considered that the STA is currently In the coverage area of the first AP, the STA may move so as to move from the coverage area of the first AP to the coverage area of the second AP among the multiple APs.
  • the company where the user works includes multiple office areas. If the user moves from one office area to another, the user's STA may also move from the coverage area of the first AP to the coverage area of the second AP.
  • the management device may send a notification message to the second AP.
  • the notification message is called the first notification message
  • the first notification message instructs the second AP to connect with the STA.
  • the second AP is responsible for forwarding after receiving the message from the STA.
  • the second AP has already stored the identity of the STA and the target AID, so the second AP can distinguish the STA based on the AID.
  • the management device may send a second notification message to the first AP, where the second notification message instructs the first AP not to forward the message of the STA.
  • the second notification message instructs the first AP not to forward the message of the STA.
  • the first notification message and the second notification message may also carry the same time indicator, the time indicator indicates that the first AP will not forward the STA's message after the time, and indicates that the second AP will Then start to forward the message of STA.
  • the management device determines that the STA enters the coverage of the second AP, as follows:
  • the AP Each time the AP receives a message sent by the STA, it records the signal strength of the received message, and sends the signal strength and the STA identification to the management device, or sends the signal strength and the target AID to the management device. After the management device receives the signal strength and the target AID, the first AP receives the signal strength of the packet sent by the STA as the first strength, and the second AP receives the signal strength of the packet sent by the STA as the second strength. If the first strength If it is lower than the second strength, it is determined that the STA roams from the coverage of the first AP to the coverage of the second AP. Here, the AP can also periodically obtain the signal strength of the packets sent by the receiving STAs, and send them to the management device.
  • the STA roams from the coverage of the first AP to the coverage of the second AP.
  • the first notification message may carry the identifier of the STA and the identifier indicating to forward the packet
  • the second notification message may carry the identifier of the STA and the identifier indicating to stop forwarding the packet.
  • the AID allocated for the STA is reclaimed, and the reclaimed AID can be allocated to other APs to be connected to the wireless network. Refer to step 1501 to step 1505 in FIG. 15 for the recovery processing flow.
  • Step 1501 the management device detects that the STA is offline.
  • Method 1 Each time the AP receives a message sent by the STA, it records the signal strength of the received message, and sends the signal strength and the STA identification to the management device, or sends the signal strength and the target AID to the management device.
  • the management device determines that the STA is offline if it does not receive the signal strength of the message sent by the AP to and from the STA within the first period of time.
  • the first duration can be set according to actual needs.
  • Mode 2 when the AP associated with the STA detects that the STA is offline, the AP sends a message that the STA is offline to the management device, and the management device determines that the STA is offline after receiving the message.
  • the way the AP detects that the STA is offline is: the AP actively determines that the STA is offline, for example, after the STA has been associated with the AP, the administrator enters the access blacklist in the AP, if the STA is in the blacklist , the AP determines that the STA is offline.
  • the AP associated with the STA periodically sends a management frame to the AP, and the STA does not respond within a target number of cycles or a second time period, and it is determined that the STA is offline.
  • the target number and the second duration can be set according to actual needs.
  • the STA sends an offline message to the AP, and the AP determines that the STA is offline.
  • the STA switches wireless networks, the STA sends an offline message to the AP, and the AP determines that the STA is offline.
  • Mode 1 and Mode 2 are only two optional modes, which are not limited in this embodiment of the present application.
  • step 1502 the management device sends a recovery message to the first AP respectively, where the recovery message is used to indicate the recovery target AID.
  • the management device after determining that the STA is offline, the management device generates a reclaim message, where the reclaim message includes the identifier of the STA or the target AID.
  • the management device sends reclamation messages to multiple allocations.
  • the recycling message includes an AID recycling field
  • the AID recycling field includes an AID field
  • the AID recycling field includes an AID field and an STA identification field.
  • the AID recycling field includes an AID field, an STA identification field, and a message identifier field.
  • the AID field is used to store the target AID
  • the message identifier is used to indicate whether the message is a recycling message or an allocation message.
  • the value of the message identifier is 1
  • the message is an allocation message.
  • the message is a recovery message.
  • the format of the recovery message carrying the AID recovery field may be different.
  • multiple APs and management devices form an FTTR network architecture, and the management device and multiple APs are connected through optical fibers or wireless connections.
  • the recovery message shown in FIG. 17 the recovery message includes an AID recovery field, a destination address field, a source address field, a message type field, a payload length field and a payload field.
  • the destination address is the ID of the AP, which uniquely indicates the AP, and different APs have different IDs.
  • the source address is the identifier of the management device, and the identifier of the management device may be the MAC address of the management device, or an index identifier that uniquely identifies the management device.
  • the message type field identifies that the recycle message is a control message.
  • the recycling message also includes a reserved field.
  • multiple APs and the management device form an Ethernet architecture, and the management device and the multiple APs are respectively connected through optical fibers or cables.
  • the format of the recovery message carrying the AID recovery field is an Ethernet frame, and the AID recovery field is located in the payload field of the Ethernet frame.
  • For the source address and destination address refer to the source address and destination address of the Ethernet frame shown in FIG. 12 .
  • multiple APs and a management device form a PON architecture, and the management device and multiple APs are connected through an ODN.
  • the format of the recovery message carrying the AID recovery field is the format of the OMCI message, and the AID recovery field is located in the message content field of the OMCI message.
  • FIG. 13 refer to the structure of the OMCI message.
  • Step 1503 multiple APs respectively receive recovery messages sent by the management device.
  • Step 1504 multiple APs recover the target AID respectively.
  • each of the multiple APs deletes the target AID after receiving the recovery message.
  • the first AP among the multiple APs deletes the correspondence between the target AID and the STA identifier.
  • Step 1505 multiple APs respectively send recovery complete messages to the management device.
  • the management device may allocate the target AID to another STA to be accessed. In this way, after the STA goes offline, the target AID can also be provided to other STAs to improve the utilization rate of the AID.
  • the management device sets the flag position of the target AID to 1, indicating that the target AID can be allocated to other STAs.
  • Fig. 15 only it is shown that the management device sends a recovery message to the first AP, and the processing of the management device sending a recovery message to other APs is shown in Fig. 15 .
  • the management device only sends the AID and the STA identifier to the first AP, and the management device may only send a recovery message to the first AP, so that the first AP deletes the AID.
  • the management device sends the AID and STA identifiers to multiple APs managed by itself, and the management device may send a recycle message to the first AP, so that the first AP deletes the AID, and makes the first AP send a message to multiple APs.
  • the management device may send a recycle message to the first AP, so that the first AP deletes the AID, and makes the first AP send a message to multiple APs.
  • other APs except the first AP send recovery messages, so that other APs delete the AID.
  • a process for the management device to detect the status of the AP is also provided.
  • the process is: a heartbeat connection is established between the management device and each AP, and the management device periodically sends a heartbeat message to the AP. If the device does not receive the heartbeat reply message sent by an AP, it determines that the AP is faulty, and can send a prompt message to the management personnel's equipment, so that the management personnel can troubleshoot the AP in time.
  • the number of targets here can be set according to actual needs.
  • the management device in a network architecture identified by BSSID, the management device uniformly allocates AIDs, so that different STAs accessing the network architecture correspond to different AIDs, so that messages carrying AIDs between multiple APs and STAs will not Chaos ensues.
  • the AID can be used instead of the MAC address to identify the STA, saving byte overhead.
  • the MAC address is 6 bytes, but it can be reduced to 1 byte or 2 bytes by using AID.
  • Fig. 18 is a structural diagram of an apparatus for allocating AIDs provided by an embodiment of the present application.
  • the device can be implemented as part or all of the device through software, hardware or a combination of the two, and the device is applied to a management device.
  • the device provided in the embodiment of the present application can realize the process described in FIG. 6 of the embodiment of the present application, and the device includes: an acquisition module 1810, a determination module 1820, and a sending module 1830:
  • the acquiring module 1810 is configured to acquire the parameters of the STA, and may specifically be used to implement the acquisition function of step 601 and perform the implicit steps included in step 601;
  • a determining module 1820 configured to assign an AID to the STA based on parameters of the STA, and determine a first AP among the multiple APs managed by the management device, and the first AP is used to send the STA the
  • the AID, the BSSID of the multiple APs is the same, at least one of the multiple APs receives the authentication request sent by the STA, and the first AP belongs to the at least one AP, which can be used to implement step 602
  • the sending module 1830 is configured to send the AID and the identifier of the STA to the first AP, and may specifically be used to implement the sending function in step 603 and perform the implicit steps included in step 603 .
  • the sending module 1830 is further configured to:
  • the determining module 1820 is further configured to detect that the STA is offline;
  • the sending module 1830 is further configured to send reclaim messages to the multiple APs respectively, where the reclaim messages are used to indicate reclaiming the AID.
  • the multiple APs and the management device form a fiber-to-the-room FTTR network architecture
  • the management device carries the AID and the STA identifier through an allocation message
  • the AID and The identifier of the STA is located in the payload field of the assignment message
  • the destination address of the assignment message is the identifier of the AP receiving the assignment message.
  • the multiple APs and the management device form an Ethernet architecture
  • the management device carries the AID and the STA identifier through an Ethernet frame
  • the AID and the STA The identifier of is located in the payload field of the Ethernet frame.
  • the multiple APs and the management device form a PON architecture
  • the management device carries the AID and the STA identifier through an OMCI message, and the AID and the STA's The identifier is located in the message content field of the OMCI message.
  • the acquiring module 1810 is configured to:
  • the obtaining module 1810 is further configured to obtain characteristic information of the at least one AP, and the characteristic information of each AP includes load information, received interference information, and received signals sent by the STA. at least one of the quality information;
  • the determination module 1820 is configured to determine the connection quality between the at least one AP and the STA based on the characteristic information of the at least one AP, and determine the AP with the highest connection quality among the at least one AP as the first AP .
  • the determining module 1820 is further configured to detect that the STA moves from within the coverage of the first AP to within the coverage of a second AP among the plurality of APs;
  • the sending module 1830 is further configured to send a notification message to the second AP, where the notification message is used to instruct the second AP to connect with the STA.
  • FIG. 19 is a structural diagram of an apparatus for allocating AIDs provided by an embodiment of the present application.
  • the device may be implemented as part or all of the device through software, hardware or a combination of the two, and the device is applied to the first AP.
  • the device provided in the embodiment of the present application can implement part of the processing in the process described in Figure 7 of the embodiment of the present application, and the device includes: a receiving module 1910 and a processing module 1920:
  • the receiving module 1910 is configured to receive the AID and the STA identifier sent by the management device, the AID is the AID allocated by the management device to the STA, and can be specifically used to implement the receiving function in step 701 and execute the hidden information contained in step 701. with steps;
  • the processing module 1920 is configured to store the identity of the STA and the AID correspondingly, and may specifically be used to implement the processing function of step 702 and perform the implicit steps included in step 702 .
  • the apparatus further includes: a sending module, configured to send the STA to the STA when the first AP is the AP specified by the management device and associated with the STA. described AID.
  • the receiving module 1910 is further configured to receive an authentication request sent by the STA before receiving the AID and the STA identifier sent by the management device, and the authentication request includes parameters of the STA;
  • the apparatus further includes: a sending module, configured to send an authentication report message to the management device, where the authentication report message includes parameters of the STA;
  • the management device After receiving the AID and the STA identifier sent by the management device, if the first AP is the AP associated with the STA specified by the management device, send an authentication response message to the STA.
  • the receiving module 1910 is further configured to receive a recovery message sent by the management device, where the recovery message is used to indicate recovery of the AID;
  • the processing module 1920 is also used to recover the AID.
  • the apparatus for allocating AIDs shown in FIG. 18 is the management device 302 in FIG. 3
  • the apparatus for allocating AIDs shown in FIG. 19 is AP301 in FIG. 3 .
  • a computer program product comprising computer instructions stored in a computer readable storage medium.
  • the processor of the management device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the management device executes the process shown in FIG. 6 .
  • a computer program product comprising computer instructions stored in a computer readable storage medium.
  • the processor of the first AP reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the first AP executes part of the process shown in FIG. 7 .
  • the disclosed system architecture, device and method can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the modules is only a logical function division. In actual implementation, there may be other division methods.
  • multiple modules or components can be combined or can be Integrate into another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices or modules, and may also be electrical, mechanical or other forms of connection.
  • the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or may be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present application.
  • each module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or in the form of software modules.
  • the integrated module is realized in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of software products, and the computer software products are stored in a storage medium
  • several instructions are included to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods in the various embodiments of the present application.
  • the aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.
  • first and second are used to distinguish the same or similar items with basically the same function and function. It should be understood that there is no logic or sequence between “first” and “second” Dependencies on the above, and there are no restrictions on the number and execution order. It should also be understood that although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another. For example, a first AP could be termed a second AP, and, similarly, a second AP could be termed a first AP, without departing from the scope of the various examples. Both the first AP and the second AP may be APs, and in some cases, separate and distinct APs.

Abstract

本申请提供了一种分配AID的方法、装置和系统,属于网络通信技术领域。该方法包括:管理设备获取STA的参数,该管理设备基于该STA的参数,为该STA分配AID,并在该管理设备管理的多个AP中确定第一AP,该第一AP用于向该STA发送该AID,该多个AP的BSSID相同,该多个AP中至少一个AP接收到该STA发送的认证请求,第一AP属于该至少一个AP。该管理设备向该第一AP发送该AID和该STA的标识。采用本申请的方案,能够使得不同STA对应不同的AID,进而使得STA发送携带AID的消息给AP且未携带源MAC地址时,AP能够区分STA。

Description

分配AID的方法、装置和系统
本申请要求于2022年1月25日提交中国国家知识产权局、申请号为202210087389.2、申请名称为“分配AID的方法、装置和系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及网络通信技术领域,特别涉及一种分配AID的方法、装置和系统。
背景技术
在无线局域网(wireless local area network,WLAN)中,站点(station,STA)在接入WLAN时,接入点(access point,AP)会为STA分配一个关联标识符(association identifier,AID),该AID用于标识该STA与该AP已建立对应关系,该STA与该AP可以进行通信,通常AP在为STA分配AID时,按照从1开始逐渐递增的顺序分配给STA。
在传统的组网中,每个AP的基本服务集标识符(basic service set identifier,BSSID)独立,每个AP各自管理自身关联的STA的AID。由于AP为其关联的STA分配的AID唯一,所以在一个BSSID标识的网络架构中,AID也可以在某些消息中代替媒体访问控制(media access control,MAC)地址对STA进行标识。例如,用AID区分对应STA的调度信息。
然而随着通信技术的发展,出现多个AP共用一个BSSID的网络架构,若还使用传统的分配方式进行AID的分配(如在该网络架构中多个AP分别为接入自己的AP分配AID),则有可能会使得两个AP为不同STA分配相同的AID。这样,由于在一个BSSID标识的网络架构中存在相同AID的STA,所以在STA发送携带AID的消息给AP且未携带源MAC地址时,会导致AP无法区分STA。
发明内容
本申请提供了一种分配AID的方法、装置、系统、设备和存储介质,解决了在一个BSSID标识的网络架构中AP无法区分STA的问题。
第一方面,本申请提供了一种分配AID方法,该方法由管理设备执行,该方法包括:
管理设备获取STA的参数;该管理设备基于该STA的参数,为该STA分配AID,并在该管理设备管理的多个AP中确定第一AP,该第一AP用于向该STA发送该AID,该多个AP的BSSID相同,该多个AP中至少一个AP接收到该STA发送的认证请求,该第一AP属于该至少一个AP;该管理设备向该第一AP发送该AID和该STA的标识。
本申请所示的方案,管理设备使用STA的参数,为STA分配AID。管理设备确定向STA发送AID的第一AP,管理设备向第一AP发送AID和STA的标识,使得第一AP向STA发送AID。这样,在多个AP共用一个BSSID的网络架构中,由管理设备统一为STA分配AID,使得为该网络架构下各STA分配的AID不相同,进而使得在STA发送携带AID的消息给AP且未携带源MAC地址时,也可以使用AID区分STA。
在一种可能的实现方式中,该方法还包括:该管理设备向该多个AP中除该第一AP之外的其它AP发送该AID和该STA的标识。这样,由于其它AP中也会记录AID与该STA对 应,所以在该STA漫游至其它AP后,不需要重新进行认证以及关联,可以节约接入网络时长。
在一种可能的实现方式中,该方法还包括:该管理设备检测到该STA离线;该管理设备向该多个AP分别发送回收消息,该回收消息用于指示回收该AID。
本申请所示的方案,在STA离线后,管理设备可以通知各个AP回收该STA对应的AID,使得后续该AID可以被分配给其它STA,节约AID的资源。
在一种可能的实现方式中,该多个AP与该管理设备形成光纤到房间(fiber to the room,FTTR)的网络架构,该管理设备通过分配消息携带该AID和该STA的标识,该AID和该STA的标识位于该分配消息的载荷字段中,该分配消息的目的地址为接收该分配消息的AP的标识。其中,每个AP的标识用于唯一标识该AP。
在一种可能的实现方式中,该多个AP与该管理设备形成以太网架构,该管理设备通过以太网帧携带该AID和该STA的标识,该AID和该STA的标识位于该以太网帧的载荷字段中。
在一种可能的实现方式中,该多个AP与该管理设备形成无源光网络(passive optical network,PON)的架构,该管理设备通过光网络单元管理控制接口(ONU management and control interface,OMCI)消息携带该AID和该STA的标识,该AID和该STA的标识位于该OMCI消息的消息内容字段中。
在一种可能的实现方式中,该管理设备获取STA的参数,包括:该管理设备接收该多个AP中至少一个AP发送的认证上报消息,该认证上报消息包括该STA的参数;该管理设备从该认证上报消息中,获取该STA的参数。这样,管理设备可以从认证上报消息中,获取STA的参数。
在一种可能的实现方式中,该方法还包括:该管理设备获取该至少一个AP的特征信息,每个AP的特征信息包括负载信息、受到的干扰信息和接收该STA发送的信号的质量信息中的至少一种;该在该管理设备管理的多个AP中确定第一AP,包括:该管理设备基于该至少一个AP的特征信息,确定该至少一个AP分别与该STA的连接质量,将该至少一个AP中连接质量最高的AP确定为第一AP。
本申请所示的方案,管理设备使用至少一个AP的特征信息,在该至少一个AP中,确定连接质量最高的AP,作为STA待关联的AP。这样,至少一个AP为向管理设备发送认证上报消息的AP,也就是说至少一个AP为接收到STA发送的认证请求的AP,那么该至少一个AP中每个AP均能与STA进行通信,在这些AP中选取出连接质量最高的AP,能够使得选取到的AP能够与STA进行通信。
在一种可能的实现方式中,该方法还包括:该管理设备检测到该STA从该第一AP的覆盖范围内移动至该多个AP中第二AP的覆盖范围内;该管理设备向该第二AP发送通知消息,该通知消息用于指示该第二AP与该STA进行连接。这样,在STA漫游至第二AP的覆盖范围内后,管理设备可以通知第二AP为STA提供转发报文的功能,使得STA不会感知切换AP。
第二方面,本申请提供了一种分配AID的方法,该方法由第一AP执行,该方法包括:
第一AP接收管理设备发送的AID和STA的标识,该AID为该管理设备为该STA分配的AID;该第一AP将该STA的标识和该AID对应存储。
本申请所示的方案,在多个AP共用一个BSSID的网络架构中,由管理设备统一为STA分配AID,使得为该网络架构下各STA分配的AID不相同,进而使得在STA发送携带AID 的消息给AP且未携带源MAC地址时,也可以使用AID区分STA。
在一种可能的实现方式中,该方法还包括:在该第一AP为该管理设备指定的与该STA关联的AP的情况下,该第一AP向该STA发送该AID。这样,管理设备指定的AP向STA发送AID,不仅使得STA能够获取到自身对应的AID,而且不会重复接收到AID。
在一种可能的实现方式中,该第一AP接收管理设备发送的AID和STA的标识之前,还包括:该第一AP接收该STA发送的认证请求,该认证请求包括该STA的参数;该第一AP向该管理设备发送认证上报消息,该认证上报消息包括该STA的参数;该第一AP接收管理设备发送的AID和STA的标识之后,还包括:在该第一AP为该管理设备指定的与该STA关联的AP的情况下,该第一AP向该STA发送认证响应消息。
本申请所示的方案,在第一AP接收到STA发送的认证请求后,通报给管理设备,使得管理设备为STA分配AID,并且在第一AP被指定为与该STA关联的AP的情况下,向STA发送认证响应消息,使得STA能够继续执行接入网络的过程。而且仅由与该STA关联的AP向STA发送认证响应消息,使得STA不会重复接收到认证响应消息。
在一种可能的实现方式中,该方法还包括:该第一AP接收该管理设备发送的回收消息,该回收消息用于指示回收该AID;该第一AP回收该AID。
本申请所示的方案,在第一AP接收到AID的回收消息后,回收AID,使得AID还能够被分配给其它STA,节约AID的资源。
第三方面,本申请提供了一种分配AID的装置,该装置具有实现上述第一方面或第一方面任一种可选方式的功能。该装置包括至少一个模块,至少一个模块用于实现上述第一方面或第一方面任一种可选方式所提供的分配AID的方法。
第四方面,本申请提供了一种分配AID的装置,该装置具有实现上述第二方面或第二方面任一种可选方式的功能。该装置包括至少一个模块,至少一个模块用于实现上述第二方面或第二方面任一种可选方式所提供的分配AID的方法。
第五方面,本申请提供了一种管理设备,该管理设备包括网络接口、存储器和与所述存储器连接的处理器;
所述网络接口用于获取STA的参数,向第一AP发送STA的标识和AID;
所述存储器用于存储计算机指令;
所述处理器用于执行所述计算机指令,以使管理设备实现上述第一方面或第一方面任一种可选方式所提供的分配AID的方法。
第六方面,本申请提供了一种AP,该AP包括网络接口、存储器和与所述存储器连接的处理器;
所述网络接口,用于接收管理设备发送的STA的标识和AID;
所述存储器用于存储计算机指令;
所述处理器用于执行所述计算机指令,以使AP实现上述第二方面或第二方面任一种可选方式所提供的分配AID的方法。
第七方面,本申请提供了一种计算机可读存储介质,该存储介质中存储有至少一条计算机指令,该计算机指令由处理器读取以使管理设备执行上述第一方面或第一方面任一种可选方式所提供的分配AID的方法。
第八方面,本申请提供了一种计算机可读存储介质,该存储介质中存储有至少一条计算机指令,该计算机指令由处理器读取以使AP执行上述第二方面或第二方面任一种可选方式所提供的分配AID的方法。
第九方面,本申请提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中。管理设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该管理设备执行上述第一方面或第一方面任一种可选方式所提供的分配AID的方法。
第十方面,本申请提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中。AP的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该AP执行上述第二方面或第二方面任一种可选方式所提供的分配AID的方法。
第十一方面,本申请提供了一种分配AID的系统,该系统包括管理设备和AP,管理设备用于执行上述第一方面或第一方面任一种可选方式所提供的分配AID的方法,AP用于执行上述第二方面或第二方面任一种可选方式所提供的分配AID的方法。
附图说明
图1是本申请一个示例性实施例提供的传统组网的示意图;
图2是本申请一个示例性实施例提供的多个AP共用一个BSSID的示意图;
图3是本申请一个示例性实施例提供的分配AID的系统的架构示意图;
图4是本申请一个示例性实施例提供的设备的结构示意图;
图5是本申请一个示例性实施例提供的AP的结构示意图;
图6是本申请一个示例性实施例提供的分配AID的方法的流程示意图;
图7是本申请一个示例性实施例提供的分配AID的方法的流程示意图;
图8是本申请一个示例性实施例提供的分配AID的方法的流程示意图;
图9是本申请一个示例性实施例提供的AID分配字段的示意图;
图10是本申请一个示例性实施例提供的AID分配字段的示意图;
图11是本申请一个示例性实施例提供的分配消息的示意图;
图12是本申请一个示例性实施例提供的以太网帧的示意图;
图13是本申请一个示例性实施例提供的OMCI消息的示意图;
图14是本申请一个示例性实施例提供的STA漫游的示意图;
图15是本申请一个示例性实施例提供的回收AID的流程示意图;
图16是本申请一个示例性实施例提供的AID分配字段和AID回收字段的示意图;
图17是本申请一个示例性实施例提供的回收消息的示意图;
图18是本申请一个示例性实施例提供的分配AID的装置的结构示意图;
图19是本申请一个示例性实施例提供的分配AID的装置的结构示意图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
下面描述相关技术的方案。
相关技术中,在传统的组网中,每个BSSID标识一个网络架构,在每个网络架构中包括一个AP,每个网络架构中的AP各自管理自身关联的STA的AID。由于AP为其关联的STA分配的AID唯一,所以在一个BSSID标识的网络架构中,AID也可以在某些消息中代替MAC 地址对STA进行标识。例如,如图1所示,三个网络架构分别包括AP1、AP2和AP3,AP1为STA1分配AID1,AP1为STA2分配AID2,AP2为STA3分配AID1,AP3为STA4分配AID1,AP3为STA5分配AID2。由于AP1和AP2的BSSID不相同,所以即使STA1与STA3在发送的消息中仅携带AID1,也不会混淆。
然而随着通信技术的发展,出现多个AP共用一个BSSID的网络架构,若该网络架构中多个AP分别为接入自己的STA分配AID,则有可能会使得两个AP为不同STA分配相同的AID。这样,由于在一个BSSID标识的网络架构中存在相同AID的STA,所以在STA发送携带AID的消息给AP且未携带源MAC地址时,会导致AP无法区分STA,并且在AP向自身关联的STA发送携带AID的消息时,STA侧将发生混淆。例如,如图2所示,在一个网络架构下包括AP4和AP5,AP4为STA6分配AID1,AP5为STA7分配AID1,AP5为STA8分配AID2。由于一个BSSID标识的网络架构下,各个AP的MAC地址相同,所以STA6发送带AID1且未携带源MAC地址的消息时,AP4和AP5均会收到该消息时,无法区分该消息属于STA6还是STA7。AP4发送信标(beacon)帧,指示AID1的STA6有数据待传输,STA6的休眠将被唤醒,同时STA7会误认为自身也有数据待传输,休眠也将被唤醒,影响节能效率。
本申请中,在多个AP共用一个BSSID的网络架构中,由管理设备统一为STA分配AID,使得为该网络架构下各STA分配的AID不相同,进而使得在STA发送携带AID的消息给AP且未携带源MAC地址时,也可以使用AID区分STA。
下面,按照分配AID的系统、系统中各类设备的硬件结构、分配AID的方法的顺序,从多个角度对本申请实施例提供的技术方案进行具体描述。
以下介绍本申请实施例提供的分配AID的系统。
参见图3,本申请实施例提供了一种分配AID的系统300。系统300包括多个AP301和管理设备302。多个AP301组成一个网络架构,在该网络架构中,AP301的BSSID相同,各AP301的MAC地址相同,相邻的两个AP301的覆盖范围可以有重叠,也可以没有重叠。例如,AP301可以是路由器、交换机或光锚等。管理设备302用于分配AID,管理设备302可以是网络架构中的某个AP,该AP称为是中心AP,如网络架构中能力最强的AP等,也可以是负责管理多个AP301的接入控制器等。其中,本申请实施例不对AP的数目和类型进行限制。
管理设备302与每个AP301能够通信,如通过光纤通信、通过线缆通信或通过无线通信等。在一种实现中,管理设备302与多个AP301形成FTTR的网络架构,管理设备302为光网关,多个AP301为边缘AP,边缘AP用于供STA接入,光网关与边缘AP之间通过光纤连接、通过无线连接或通过线缆连接。在另一种实现中,管理设备302与多个AP301形成以太网的架构。在另一种实现中,管理设备302与多个AP301形成PON的架构,管理设备302与多个AP301通过光纤连接。此处描述管理设备302与多个AP301形成PON的架构,是说明管理设备302和多个AP301之间的网络架构类似于PON。
上面介绍了本申请实施例提供的系统架构,下面对上述系统架构中设备的硬件结构进行介绍。
请参见图4,图4所示的设备400是对上述系统架构中AP301以及管理设备302的举例说明。可选地,设备400配置为AP301和管理设备302等。
设备400可选地由一般性的总线体系结构来实现。设备400包括至少一个处理器401、通信总线402、存储器403以及至少一个网络接口404。
处理器401例如是通用中央处理器(central processing unit,CPU)、网络处理器(network processer,NP)、图形处理器(Graphics Processing Unit,GPU)、神经网络处理器(neural-network processing units,NPU)、数据处理单元(Data Processing Unit,DPU)、微处理器或者一个或多个用于实现本申请方案的集成电路。例如,处理器401包括专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。PLD例如是复杂可编程逻辑器件(complex programmable logic device,CPLD)、现场可编程逻辑门阵列(field-programmable gate array,FPGA)、通用阵列逻辑(generic array logic,GAL)或其任意组合。
通信总线402用于在上述组件之间传送信息。通信总线402可以分为地址总线、数据总线、控制总线等。为便于表示,附图4中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
存储器403例如是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其它类型的静态存储设备,又如是随机存取存储器(random access memory,RAM)或者可存储信息和指令的其它类型的动态存储设备,又如是电可擦可编程只读存储器(electrically erasable programmable read-only Memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其它光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其它磁存储设备,或者是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质,但不限于此。存储器403例如是独立存在,并通过通信总线402与处理器401相连接。存储器403也可以和处理器401集成在一起。
可选地,存储器403用于保存设备400为SAT分配的AID等。
网络接口404使用任何收发器一类的装置,用于与其它设备或通信网络通信。网络接口404包括有线网络接口,还可以包括无线网络接口。其中,有线网络接口例如可以为以太网接口。以太网接口可以是光接口,电接口或其组合。无线网络接口可以为WLAN接口,蜂窝网络网络接口或其组合等。
在具体实现中,作为一种实施例,处理器401可以包括一个或多个CPU。
在具体实现中,作为一种实施例,设备400可以包括多个处理器。这些处理器中的每一个可以是一个单核处理器(single-CPU),也可以是一个多核处理器(multi-CPU)。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(如计算机程序指令)的处理核。
在一些实施例中,存储器403用于存储执行本申请方案的程序代码4031,程序代码4031为计算机指令,处理器401可以执行存储器403中存储的程序代码4031。也即是,设备400可以通过处理器401以及存储器403中的程序代码4031,来实现方法实施例提供的分配AID的方法。
在另一种实现方式中,图5示出了AP301的结构示意图,AP301包括主控板3011和接口板3012,主控板3011属于AP301的控制面,接口板3012属于AP301的数据面。主控板3011包括处理器和存储器。接口板3012包括处理器、存储器和接口卡。
主控板3011和接口板3012之间建立有通信连接。
主控板3011的处理器可以是CPU或者ASIC等。处理器可以包括一个或多个芯片。主控板3011的存储器可以是ROM、静态存储设备、动态存储设备或者RAM。主控板3011的存储器可以存储计算机指令,当该存储器中存储的计算机指令被处理器执行时,主控板3011的处理器执行分配AID的方法。
接口板3012的处理器可以是CPU、ASIC等。接口板3012的处理器可以包括一个或多个芯片。接口板3012的存储器可以是ROM、静态存储设备、动态存储设备或者RAM。接口板3012的存储器可以存储计算机指令,当该存储器中存储的计算机指令被接口板3012的处理器执行时,接口板3012的处理器执行分配AID的方法。接口卡可以实现消息的发送和接收处理。
下面描述本申请实施例中分配AID的方法流程中管理设备的处理,参见图6中步骤601至步骤603。在后文中,AP为AP301,管理设备为管理设备302。
步骤601,管理设备获取STA的参数。
其中,STA为任一请求接入AP的设备,如手机、平板、音箱或笔记本等。
在本实施例中,管理设备确定STA请求认证,获取STA的参数,该参数包括但不限于STA的能力等级和型号等。
步骤602,管理设备基于STA的参数,为STA分配AID,并在管理设备管理的多个AP中确定第一AP,第一AP用于向STA发送该AID,多个AP的基本服务集标识符BSSID相同,多个AP中至少一个AP接收到STA发送的认证请求。
在本实施例中,管理设备校验STA的参数,判断是否准许STA上线,如管理设备判断STA的型号是否属于准许接入的型号,并且判断STA的能力等级是否符合管理设备所要求的能力等级,若二者均符合,则确定准许STA上线,否则不准许STA上线。若准许STA上线,则为STA分配AID,为了方便描述该AID称为是目标AID,如管理设备在当前未分配的AID中选取序号最小的AID。若不准许STA上线,则管理设备向接收到认证请求的某个AP发送认证失败消息,以使得该AP向STA发送认证响应消息,该认证响应消息指示认证失败。
并且管理设备在自身管理的多个AP中,确定第一AP,第一AP作为STA待关联的AP,第一AP用于向STA发送目标AID。在管理设备为中心AP时,若中心AP确定自身是第一AP,则可以不执行步骤603。
可选的,管理设备在分配AID时,可以按照STA的接入顺序由小到大分配,AID的范围为1至2007,每个AID对应一个可用标记位,该标记位默认置为1。在目标AID被分配给STA后,目标AID的标记位置为0。这样,管理设备在为STA分配AID时,是分配标记位置为1的AID,使得同一时刻不存在使用相同AID的STA。
需要说明的是,多个AP为STA有可能会接入的AP。另外,由于选取的第一AP是为了与STA通信,所以当前应该能与STA进行通信,那么第一AP属于接收到STA发送的认证请求的AP。
步骤603,管理设备向第一AP发送该AID和STA的标识。
在本实施例中,管理设备确定出目标AID和第一AP后,向第一AP发送目标AID和STA的标识,其中,STA的标识可以是STA的MAC地址,也可以是其它唯一指示STA的标识。
下面描述本申请实施例中分配AID的方法流程中AP的处理,参见步骤701至步骤702,在步骤701至步骤702是以第一AP为例进行说明,第一AP属于管理设备管理的多个AP。
步骤701,第一AP接收管理设备发送的AID和STA的标识,该AID为管理设备为STA分配的AID。
步骤702,第一AP将STA的标识和AID对应存储。
在本实施例中,第一AP将STA的标识与目标AID对应存储,使得在第一AP接收到包括目标AID的消息时,确定该消息来自于该STA的标识指示的STA,并且使得第一AP向STA发送消息时携带AID即可。这样,AID一般是1个或2个字节,而MAC地址是6个字 节,携带AID相比携带MAC地址能够节约消息的字节开销。
结合图6和步骤701至步骤702,管理设备与第一AP交互的流程参见图7。
基于图7所示的流程,在多个AP共用一个BSSID的网络架构中,由管理设备统一为STA分配AID,使得为该网络架构下各个STA分配的AID不相同,进而在发送消息时可以携带AID用于标识STA。
下面对从管理设备和AP两侧的角度对分配AID的方法进行说明,参见图8所示的流程。
步骤801,STA发送认证请求,该认证请求包括STA的参数。
在本实施例中,STA先扫描无线网络,在扫描完成后,在屏幕中显示扫描到的无线网络,用户选择连接网络架构包括多个AP的无线网络(该网络架构对应一个BSSID),STA生成认证请求,该认证请求包括STA的参数,该参数包括但不限于STA的能力等级和型号等。STA发送该认证请求。此处仅是一种可能的方式来触发STA发送认证请求,本申请实施例对此不进行限定。
步骤802,第一AP接收STA发送的认证请求。
在本实施例中,当前覆盖STA的AP均能接收到STA发送的认证请求,此处是假定第一AP接收到STA发送的认证请求。
步骤803,第一AP向管理设备发送认证上报消息,认证上报消息包括STA的参数。
步骤802至步骤803中仅示出第一AP接收到STA发送的认证请求,并向管理设备发送认证上报消息,此处有可能还有其它AP也接收到该STA发送的认证请求,其它AP也会向管理设备发送认证上报消息。
步骤804,管理设备接收多个AP中至少一个AP发送的认证上报消息,认证上报消息包括STA的参数。
其中,认证上报消息用于指示请求为STA执行认证操作。
在本实施例中,至少一个AP会向管理设备发送认证上报消息,管理设备会接收到至少一个AP发送的认证上报消息。
步骤805,管理设备从认证上报消息中,获取STA的参数。
在本实施例中,认证上报消息中某个字段专门用于存放STA的参数,管理设备可以从该字段中获取到STA的参数。
步骤806,管理设备获取至少一个AP的特征信息,每个AP的特征信息包括负载信息、受到的干扰信息和接收STA发送的信号的质量信息中的至少一种。
其中,至少一个AP为多个AP中接收到STA发送的认证请求的AP。
在一种实现中,AP在向管理设备发送认证上报消息时,认证上报消息中包括AP的特征信息,AP的特征信息包括AP的负载信息、受到的干扰信息和接收STA发送的信号的质量信息中至少一种,AP的负载信息指当前关联的STA的数目或者剩余可关联STA的数目,AP受到的干扰信息指AP受到其它AP的干扰值,接收STA发送的信号的质量信息指AP接收到STA发送的认证请求的信号强度等。管理设备可以从认证上报消息中获取到AP的特征信息。
在另一种实现中,认证上报消息中不包括特征信息,管理设备可以向AP发送特征信息的获取请求,AP向管理设备上报特征信息。
在另一种实现中,认证上报消息中不包括特征信息,对于质量信息,管理设备可以向AP发送质量信息的获取请求,AP向管理设备上报接收STA发送的信号的质量信息。对于负载信息,管理设备可以确定当前与AP通信的STA的数目,如管理设备第一次指定STA关联AP时,会记录AP与STA通信,在STA从当前通信的AP漫游至另一个AP的覆盖范围内时, 管理设备会更新与AP通信的STA。对于受到的干扰信息,管理设备获取最近一次AP上报的干扰信息,确定为受到的干扰信息。
步骤807,管理设备基于STA的参数,为STA分配目标AID,管理设备基于该至少一个AP的特征信息,确定该至少一个AP分别与STA的连接质量,将该至少一个AP中连接质量最高的AP确定为第一AP。
其中,至少一个AP为接收到STA发送的认证请求的AP。此处由于选取的第一AP是用于与STA进行通信,所以应该选取当前能接收到STA发送的认证请求的AP,使得STA能够与第一AP通信。
在本实施例中,管理设备为STA分配目标AID的过程参见步骤602的描述,此处不再赘述。
在至少一个AP的特征信息包括一种的情况下,对于任一AP,若该AP的特征信息包括的内容与连接质量负相关,则将特征信息包括的内容取倒数,确定为AP与STA的连接质量,若该AP的特征信息包括的内容与连接质量正相关,则将特征信息包括的内容,确定为AP与STA的连接质量。例如,特征信息包括负载信息,负载信息为与AP通信的STA的数目,将STA的数目的倒数确定为与STA的连接质量。
在至少一个AP的特征信息包括多种的情况下,对于任一AP,对特征信息的各种内容进行加权,获得加权值,将加权值确定为连接质量。此处,在加权时,与连接质量负相关的内容取倒数,使用取倒数的内容进行加权处理。具体的,特征信息中的各种内容的权重可以根据实际需要设置,本申请实施例不进行限定。
管理设备在确定出AP与STA的连接质量后,将连接质量最高的AP确定为第一AP。
需要说明的是,上述仅是基于特征信息确定连接质量的一种示例性的方式,本申请实施例不进行限定。
步骤808,管理设备向第一AP发送目标AID和STA的标识。并且向多个AP中除第一AP之外的其它AP发送目标AID和STA的标识。
在本实施例中,管理设备有多种方式通知目标AID,如下提供两种可行的方式。
方式一,管理设备向每个AP发送分配消息,分配消息包括AID分配字段,AID分配字段中包括STA的标识字段、AID字段和响应认证请求的指示字段,STA的标识可以是STA的MAC地址,AID字段中存放目标AID,参见图9所示的AID分配字段。对于发送给第一AP的AID分配字段中,响应认证请求的指示字段的内容用于指示第一AP向STA发送目标AID。对于发送给多个AP中除第一AP之外的其它AP的AID分配字段中,响应认证请求的指示字段的内容用于指示不向STA发送目标AID。例如,在发送给第一AP的AID分配字段中,响应认证请求的指示字段的内容为1,在发送给其它AP的AID分配字段中,响应认证请求的指示字段的内容为0。
方式二,管理设备向每个AP发送分配消息,分配消息包括AID分配字段,AID分配字段中包括AP的标识字段、STA的标识字段和AID字段,其中,AP的标识字段中存放第一AP的标识,第一AP的标识唯一指示第一AP,AID字段中存放目标AID,参见图10所示的AID分配字段。接收到该AID分配字段的AP判断自身的标识是否与AID分配字段中AP的标识相同,若相同,说明该AP为第一AP,若不相同,则说明该AP是多个AP中除第一AP之外的其它AP。
在方式一和方式二中,管理设备向多个AP中除第一AP之外的其它AP发送STA的标识和目标AID后,其它AP存储有目标AID和STA的标识,这样,STA从第一AP的覆盖范围 内漫游至其它AP的覆盖范围内,即使消息中携带目标AID而不携带STA的标识,其它AP也能识别到STA。
可选的,为了区分分配消息和后文提到的回收消息,AID分配字段包括消息标识符,消息标识符取不同的值,分别标识分配消息和回收消息。例如,消息标识符为1时,消息为分配消息,消息标识符为0时,消息为回收消息。
需要说明的是,在图9和图10所示的AID分配字段,可以是AID分配字段的部分内容。
示例性的,在不同的网络架构中,承载AID分配字段的消息格式有可能不相同。例如,多个AP与管理设备形成FTTR的网络架构,管理设备与多个AP之间分别通过光纤连接或者无线连接等。承载AID分配字段的消息可以称为是分配消息,参见图11所示的分配消息,分配消息包括AID分配字段、目的地址字段、源地址字段、消息类型字段、载荷长度字段和载荷字段,载荷字段也可以称为是净荷字段。对于发送给任一AP的分配消息,目的地址为该AP的标识,AP的标识唯一指示该AP,不同AP具有不同的标识,此处AP的标识可以是任意可以唯一标识AP的内容,如索引号等,例如,发送给第一AP的分配消息的目的地址为第一AP的索引号。源地址为管理设备的标识,管理设备的标识可以是管理设备的MAC地址,或者是唯一标识管理设备的索引标识。值得注意的是,在管理设备为中心AP时,由于中心AP与其它AP的MAC地址相同,所以管理设备的标识不是MAC地址。消息类型字段标识分配消息是控制消息,而不是数据消息。
可选的,分配消息还包括保留(reserved)字段。
多个AP与管理设备形成以太网架构,管理设备与多个AP分别通过光纤或电缆连接。承载AID分配字段的分配消息格式是以太网帧,参见图12所示的以太网帧,AID分配字段位于以太网帧的载荷字段中。在图12所示的以太网帧中,若管理设备不是网络架构下的中心AP,则源地址为管理设备的MAC地址,目的地址为接收以太网帧的AP的虚拟MAC地址。若管理设备是网络架构下的中心AP,则源地址为管理设备的虚拟MAC地址,目的地址为接收以太网帧的AP的虚拟MAC地址。此处,在一个BSSID标识的网络架构内,由于每个AP的MAC地址相同,所以为了区分不同的AP,为每个AP分配一个虚拟MAC地址,用于区分不同的AP。例如,在每个AP上线后,管理设备为每个AP分配不同的虚拟MAC地址。另外,每个AP的虚拟MAC地址对STA不可见,在AP与STA通信时,携带的是AP的MAC地址,而非虚拟MAC地址。
另外,以太网帧还包括类型(type)字段、长度(length)字段和帧校验序列(frame check sequence,FCS)字段等。
多个AP与管理设备形成PON的架构,管理设备与多个AP之间通过光分配网络(optical distribution network,ODN)连接。承载AID分配字段的分配消息格式是OMCI消息的格式,参见13所示的OMCI消息,AID分配字段位于OMCI消息的消息内容(Message Contents)字段中。在图13所示的OMCI消息中,OMCI消息还包括无源光接入系统封装格式(Gigabit-Capable PON encapsulation mode,GEM)头(Header)字段、事务相关标识(Transaction Correlation Identifier)字段、消息类型(Message Type)字段、设备标识(Device Identifier)字段、消息标识(Message Identifier)字段和OMCI末尾(Trailer)字段等。
其中,GEM Header字段包括GEM载荷长度、GEM端口标识、载荷类型标识(payload type indicator,PTI)和信头差错校验(header error check,HEC)等,不同GEM端口标识用于标识不同AP,AP接收到OMCI消息后,可以将携带自身对应的GEM端口标识的OMCI消息,确定为发送给自己的OMCI消息。
Transaction Correlation Identifier字段的值在一组对应请求和响应的消息要一致。Message Type字段用于标识消息的具体类型,例如,Message Type字段的内容为0x20。Device Identifier字段用于标识AP的类型。Message Identifier字段用于标识消息的总类型,Message Type属于Message Identifier标识的总类型中的一种。OMCI Trailer字段用于消息校验。
步骤809,第一AP接收管理设备发送的目标AID和STA的标识。
步骤810,除第一AP之外的其它AP接收管理设备发送的目标AID和STA的标识。
在本实施例中,除第一AP之外的其它AP将目标AID和STA的标识对应存储,在图8中仅示出第二AP接收目标AID和STA的标识。
步骤811,第一AP将STA的标识和目标AID对应存储。
在本实施例中,第一AP将STA的标识与目标AID存储为对应关系,并且在该对应关系中记录STA的能力信息等。
步骤812,在第一AP为管理设备指定的与STA关联的AP的情况下,第一AP向STA发送认证响应消息。
在本实施例中,第一AP接收到目标AID和STA的标识时,由于第一AP是管理设备指定的响应STA的设备,所以第一AP向STA发送认证响应消息。
步骤813,STA接收认证响应消息,发送关联请求。
在本实施例中,STA接收第一AP发送的认证响应消息后,生成关联请求,关联请求包括但不限于STA支持的速率、信道、服务质量(quality of service,QoS)的能力,以及选择的接入认证和加密算法等,然后STA发送关联请求。此处由于相同BSSID的AP的MAC地址相同,所以对于STA来说,只是向该MAC地址的AP发送关联请求,覆盖STA的AP均可能接收到关联请求。
步骤814,第一AP接收STA发送的关联请求。
步骤815,在第一AP为管理设备指定的与STA关联的AP的情况下,第一AP向STA发送关联响应消息,关联响应消息包括目标AID。
在本实施例中,第一AP是管理设备指定的与STA关联的设备,第一AP向STA发送关联响应消息,在该关联响应消息中包括目标AID。
另外,对于除第一AP之外的其它AP也有可能接收到关联请求,但是由于其它AP并不是指定与STA关联的设备,所以不会向该STA回复关联响应消息。
需要说明的是,在多个AP与管理设备形成FTTR的网络架构的情况下,在步骤803中,认证上报消息的格式可以与图11所示的消息的格式相同。在多个AP与管理设备形成以太网架构的情况下,在步骤803中,认证上报消息的格式可以与图12所示的以太网帧的格式相同。在多个AP与管理设备形成PON的架构的情况下,在步骤803中,认证上报消息的格式可以与图13所示的OMCI消息的格式相同。
还需要说明是,在图8所示的流程中,管理设备向第二AP发送目标AID和STA的标识,在步骤808中,也可以是在第一AP与STA关联完成后,第一AP向第二AP发送目标AID和STA的标识。另外,管理设备或第一AP向第二AP发送目标AID和STA的标识时,还可以发送第一AP与STA关联时协商的内容,如STA支持的速率、信道、QoS的能力,以及选择的接入认证和加密算法等,这样,STA漫游至第二AP的覆盖范围内后,第二AP可以直接与STA通信,为STA提供报文转发的功能。
本申请实施例中,在STA移动后,还可以调整为STA的报文提供转发处理的AP,处理过程如下:
经过图8所示的流程STA与第一AP关联之后,第一AP负责对STA的报文(STA的报文包括发往STA的报文以及接收自STA的报文)进行转发,认为STA当前处于第一AP的覆盖范围,STA有可能会发生移动,使得从第一AP的覆盖范围内移动至多个AP中第二AP的覆盖范围内。例如,用户所在的公司包括多个办公区域,用户从一个办公区域移动至另一个办公区域,用户的STA也可能从第一AP的覆盖范围内移动至第二AP的覆盖范围内。参见图14,管理设备可以向第二AP发送通知消息,为了和后文中的通知消息区分,该通知消息称为是第一通知消息,该第一通知消息指示第二AP与STA进行连接。第二AP接收到该第一通知消息后,后续再接收到该STA的报文后,负责进行转发处理。此处第二AP已经存储有STA的标识和目标AID,所以第二AP能够基于AID区分STA。
可选的,管理设备可以向第一AP发送第二通知消息,第二通知消息指示第一AP不再转发STA的报文。这样,在第一AP与第二AP的覆盖范围有重叠时,也是同一时刻仅有一个AP负责转发STA的报文。
示例性的,第一通知消息和第二通知消息还可以携带相同的时间指示标识,该时间指示标识指示第一AP在该时间之后不再转发STA的报文,并指示第二AP在该时间之后开始转发STA的报文。
示例性的,管理设备确定STA进入第二AP的覆盖范围内的处理为:
每次AP接收到STA发送的报文后,记录接收报文的信号强度,向管理设备发送该信号强度和STA的标识,或者向管理设备发送该信号强度和目标AID。管理设备接收到该信号强度和目标AID后,第一AP接收STA发送的报文的信号强度为第一强度,第二AP接收STA发送的报文的信号强度为第二强度,若第一强度低于第二强度,则确定STA从第一AP的覆盖范围内漫游至第二AP的覆盖范围内。此处AP也可以周期性获取接收STA发送的报文的信号强度,向管理设备发送。
可选的,若在一段时间内第一强度持续低于第二强度,则确定STA从第一AP的覆盖范围内漫游至第二AP的覆盖范围内。
需要说明的是,第一通知消息中可以携带STA的标识以及指示转发报文的标识,第二通知消息中可以携带STA的标识以及指示停止转发报文的标识。
还需要说明的是,STA发出报文时,覆盖该STA的AP均有可能接收到该报文,但是由于某一时刻管理设备仅指定一个AP与STA进行连接,所以不会存在多个AP同时处理STA的报文。另外,由于多个AP的MAC地址相同,所以从STA的角度看,STA认为始终接入一个无线网络。
本申请实施例中,为了使得更多的STA接入无线网络,在STA从无线网络离线后,回收为该STA分配的AID,被回收的AID可以分配给其它待接入无线网络的AP。回收处理流程参见图15的步骤1501至步骤1505。
步骤1501,管理设备检测到STA离线。
在本实施例中,管理设备检测STA离线有多种方式,此处提供两种可行的方式:
方式一,每次AP接收到STA发送的报文后,记录接收报文的信号强度,向管理设备发送该信号强度和STA的标识,或者向管理设备发送该信号强度和目标AID。管理设备在第一时长内未接收到AP发送接收STA的报文的信号强度,则确定STA离线。第一时长可以根据实际需要设置。
方式二,与STA关联的AP检测到STA离线,该AP向管理设备发送STA离线的消息,管理设备接收到该消息后,确定STA离线。示例性的,该AP检测到STA离线的方式为:AP 主动确定STA离线,例如,在STA已经关联至该AP后,管理人员在该AP中输入接入黑名单,若STA位于该黑名单中,则该AP确定STA离线。再例如,与STA关联的AP会周期性向AP发送管理帧,STA在目标数目个周期或者第二时长内未响应,确定STA离线。目标数目和第二时长可以根据实际需要设置。
或者,STA在某些情况下,向AP发送离线消息,该AP确定STA离线。例如,STA切换无线网络,STA向该AP发送离线消息,该AP确定STA离线。
方式一和方式二仅是两种可选的方式,本申请实施例对此不进行限定。
步骤1502,管理设备向第一AP分别发送回收消息,回收消息用于指示回收目标AID。
在本实施例中,管理设备确定STA离线后,生成回收消息,该回收消息包括STA的标识或者目标AID。管理设备向多个分配发送回收消息。
示例性的,回收消息包括AID回收字段,AID回收字段中包括AID字段,或者AID回收字段包括AID字段和STA的标识字段。或者,AID回收字段包括AID字段、STA的标识字段和消息标识符字段,AID字段用于存放目标AID,消息标识符用于指示消息是回收消息还是分配消息,在消息标识符取值为1时,消息是分配消息,在消息标识符取值为0时,消息是回收消息,例如,参见图16所示的AID回收字段,以及AID分配字段。
示例性的,在不同的网络架构中,承载AID回收字段的回收消息格式有可能不相同。例如,多个AP与管理设备形成FTTR的网络架构,管理设备与多个AP之间分别通过光纤连接或者无线连接等。参见图17所示的回收消息,回收消息包括AID回收字段、目的地址字段、源地址字段、消息类型字段、载荷长度字段和载荷字段。对于发送给任一AP的回收消息,目的地址为该AP的标识,AP的标识唯一指示该AP,不同AP具有不同的标识。源地址为管理设备的标识,管理设备的标识可以是管理设备的MAC地址,或者是唯一标识管理设备的索引标识。消息类型字段标识回收消息是控制消息。
可选的,回收消息还包括保留字段。
再例如,多个AP与管理设备形成以太网架构,管理设备与多个AP分别通过光纤或电缆连接。承载AID回收字段的回收消息格式是以太网帧,AID回收字段位于以太网帧的载荷字段中。源地址和目的地址参见图12所示的以太网帧的源地址和目的地址。
再例如,多个AP与管理设备形成PON的架构,管理设备与多个AP之间通过ODN连接。承载AID回收字段的回收消息格式是OMCI消息的格式,AID回收字段位于OMCI消息的消息内容字段中。此处,OMCI消息的结构参见图13。
步骤1503,多个AP分别接收管理设备发送的回收消息。
步骤1504,多个AP分别回收目标AID。
在本实施例中,多个AP中的每个AP接收到回收消息后,将目标AID删除。例如,多个AP中第一AP将目标AID和STA的标识的对应关系删除。
步骤1505,多个AP分别向管理设备发送回收完成消息。
在本实施例中,在AP将目标AID删除后,STA的标识与目标AID不存在对应关系。管理设备接收到多个AP中每个AP发送的回收完成消息后,管理设备可以将目标AID分配给待接入的另一STA。这样,在STA离线后,目标AID还可以提供给其它STA使用,提高AID的利用率。
可选的,在目标AID被回收后,管理设备设置目标AID的标记位置为1,说明目标AID可以分配给其它STA。
需要说明的是,在图15中仅示出了管理设备向第一AP发送回收消息,管理设备向其它 AP发送回收消息的处理参见图15。
在另一种实现中,管理设备仅向第一AP发送AID和STA的标识,管理设备可以仅向第一AP发送回收消息,使得第一AP将AID删除。
在另一种实现中,管理设备向自身管理的多个AP均发送AID和STA的标识,管理设备可以向第一AP发送回收消息,使得第一AP将AID删除,并且使得第一AP向多个AP中除第一AP之外的其它AP发送回收消息,使得其它AP将AID删除。
本申请实施例中,还提供了管理设备检测AP的状态的过程,处理为:管理设备与各AP之间建立心跳连接,管理设备周期性向AP发送心跳消息,若连续目标数目个周期内,管理设备未接收到某个AP发送的心跳答复消息,则确定该AP故障,可以向管理人员的设备发送提示消息,使得管理人员及时对该AP进行故障排查。此处目标数目可以根据实际需要设置。
本申请实施例中,在一个BSSID标识的网络架构中,由管理设备统一分配AID,使得接入该网络架构中不同STA对应不同的AID,使得多个AP与STA之间携带AID的消息不会发生混乱。而且由于一个AID唯一对应一个STA,所以可以使用AID代替MAC地址标识STA,节约字节开销。例如,MAC地址为6字节,而使用AID可以降低至1字节或者2字节。
下面介绍本申请实施例提供的装置。
图18是本申请实施例提供的分配AID的装置的结构图。该装置可以通过软件、硬件或者两者的结合实现成为装置中的部分或者全部,该装置应用于管理设备。本申请实施例提供的装置可以实现本申请实施例图6所述的流程,该装置包括:获取模块1810、确定模块1820和发送模块1830:
获取模块1810,用于获取STA的参数,具体可以用于实现步骤601的获取功能以及执行步骤601包含的隐含步骤;
确定模块1820,用于基于所述STA的参数,为所述STA分配AID,并在所述管理设备管理的多个AP中确定第一AP,所述第一AP用于向所述STA发送所述AID,所述多个AP的BSSID相同,所述多个AP中至少一个AP接收到所述STA发送的认证请求,所述第一AP属于所述至少一个AP,具体可以用于实现步骤602的确定功能以及执行步骤602包含的隐含步骤;
发送模块1830,用于向所述第一AP发送所述AID和所述STA的标识,具体可以用于实现步骤603的发送功能以及执行步骤603包含的隐含步骤。
在一种可能的实现方式中,所述发送模块1830,还用于:
向所述多个AP中除所述第一AP之外的其它AP发送所述AID和所述STA的标识。
在一种可能的实现方式中,所述确定模块1820,还用于检测到所述STA离线;
所述发送模块1830,还用于向所述多个AP分别发送回收消息,所述回收消息用于指示回收所述AID。
在一种可能的实现方式中,所述多个AP与所述管理设备形成光纤到房间FTTR的网络架构,所述管理设备通过分配消息携带所述AID和所述STA的标识,所述AID和所述STA的标识位于所述分配消息的载荷字段中,所述分配消息的目的地址为接收所述分配消息的AP的标识。
在一种可能的实现方式中,所述多个AP与所述管理设备形成以太网架构,所述管理设备通过以太网帧携带所述AID和所述STA的标识,所述AID和所述STA的标识位于所述以太网帧的载荷字段中。
在一种可能的实现方式中,所述多个AP与所述管理设备形成PON的架构,所述管理设备通过OMCI消息携带所述AID和所述STA的标识,所述AID和所述STA的标识位于所述OMCI消息的消息内容字段中。
在一种可能的实现方式中,所述获取模块1810,用于:
接收所述多个AP中至少一个AP发送的认证上报消息,所述认证上报消息包括所述STA的参数;
从所述认证上报消息中,获取所述STA的参数。
在一种可能的实现方式中,所述获取模块1810,还用于获取所述至少一个AP的特征信息,每个AP的特征信息包括负载信息、受到的干扰信息和接收所述STA发送的信号的质量信息中的至少一种;
所述确定模块1820,用于基于所述至少一个AP的特征信息,确定所述至少一个AP分别与所述STA的连接质量,将所述至少一个AP中连接质量最高的AP确定为第一AP。
在一种可能的实现方式中,所述确定模块1820,还用于检测到所述STA从所述第一AP的覆盖范围内移动至所述多个AP中第二AP的覆盖范围内;
所述发送模块1830,还用于向所述第二AP发送通知消息,所述通知消息用于指示所述第二AP与所述STA进行连接。
图19是本申请实施例提供的分配AID的装置的结构图。该装置可以通过软件、硬件或者两者的结合实现成为装置中的部分或者全部,该装置应用于第一AP。本申请实施例提供的装置可以实现本申请实施例图7所述的流程中部分处理,该装置包括:接收模块1910和处理模块1920:
接收模块1910,用于接收管理设备发送的AID和STA的标识,所述AID为所述管理设备为所述STA分配的AID,具体可以用于实现步骤701的接收功能以及执行步骤701包含的隐含步骤;
处理模块1920,用于将所述STA的标识和所述AID对应存储,具体可以用于实现步骤702的处理功能以及执行步骤702包含的隐含步骤。
在一种可能的实现方式中,所述装置还包括:发送模块,用于在所述第一AP为所述管理设备指定的与所述STA关联的AP的情况下,向所述STA发送所述AID。
在一种可能的实现方式中,所述接收模块1910,还用于接收管理设备发送的AID和STA的标识之前,接收所述STA发送的认证请求,所述认证请求包括所述STA的参数;
所述装置还包括:发送模块,用于向所述管理设备发送认证上报消息,所述认证上报消息包括所述STA的参数;
接收管理设备发送的AID和STA的标识之后,在所述第一AP为所述管理设备指定的与所述STA关联的AP的情况下,向所述STA发送认证响应消息。
在一种可能的实现方式中,所述接收模块1910,还用于接收所述管理设备发送的回收消息,所述回收消息用于指示回收所述AID;
所述处理模块1920,还用于回收所述AID。
图18和图19所示的分配AID的装置在分配AID的详细过程请参照前面各个实施例中的描述,在这里不进行重复说明。图18所示的分配AID的装置是附图3中的管理设备302,图19所示的分配AID的装置是附图3中的AP301。
在一些实施例中,提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中。管理设备的处理器从计算机可读存储介质读取该 计算机指令,处理器执行该计算机指令,使得该管理设备执行图6所示的流程。
在一些实施例中,提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中。第一AP的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得第一AP执行图7所示的部分流程。
本领域普通技术人员可以意识到,结合本申请中所公开的实施例中描述的各方法步骤和单元,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各实施例的步骤及组成。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。本领域普通技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统架构、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,该模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或模块的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。
该作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本申请实施例方案的目的。
另外,在本申请各个实施例中的各模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以是两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件模块的形式实现。
该集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例中方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
本申请中术语“第一”“第二”等字样用于对作用和功能基本相同的相同项或相似项进行区分,应理解,“第一”、“第二”之间不具有逻辑或时序上的依赖关系,也不对数量和执行顺序进行限定。还应理解,尽管以下描述使用术语第一、第二等来描述各种元素,但这些元素不应受术语的限制。这些术语只是用于将一元素与另一元素区别分开。例如,在不脱离各种示例的范围的情况下,第一AP可以被称为第二AP,并且类似地,第二AP可以被称为第一AP。第一AP和第二AP都可以是AP,并且在某些情况下,可以是单独且不同的AP。
本申请中术语“至少一个”的含义是指一个或多个,本申请中术语“多个”的含义是指两个或两个以上。
以上描述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (26)

  1. 一种分配关联标识符AID的方法,其特征在于,所述方法包括:
    管理设备获取站点STA的参数;
    所述管理设备基于所述STA的参数,为所述STA分配AID,并在所述管理设备管理的多个接入点AP中确定第一AP,所述第一AP用于向所述STA发送所述AID,所述多个AP的基本服务集标识符BSSID相同,所述多个AP中至少一个AP接收到所述STA发送的认证请求,所述第一AP属于所述至少一个AP;
    所述管理设备向所述第一AP发送所述AID和所述STA的标识。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    所述管理设备向所述多个AP中除所述第一AP之外的其它AP发送所述AID和所述STA的标识。
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    所述管理设备检测到所述STA离线;
    所述管理设备向所述多个AP分别发送回收消息,所述回收消息用于指示回收所述AID。
  4. 根据权利要求1至3任一项所述的方法,其特征在于,所述多个AP与所述管理设备形成光纤到房间FTTR的网络架构,所述管理设备通过分配消息携带所述AID和所述STA的标识,所述AID和所述STA的标识位于所述分配消息的载荷字段中,所述分配消息的目的地址为接收所述分配消息的AP的标识。
  5. 根据权利要求1至3任一项所述的方法,其特征在于,所述多个AP与所述管理设备形成以太网架构,所述管理设备通过以太网帧携带所述AID和所述STA的标识,所述AID和所述STA的标识位于所述以太网帧的载荷字段中。
  6. 根据权利要求1至3任一项所述的方法,其特征在于,所述多个AP与所述管理设备形成无源光网络PON的架构,所述管理设备通过光网络单元管理控制接口OMCI消息携带所述AID和所述STA的标识,所述AID和所述STA的标识位于所述OMCI消息的消息内容字段中。
  7. 根据权利要求1至5任一项所述的方法,其特征在于,所述管理设备获取STA的参数,包括:
    所述管理设备接收所述多个AP中至少一个AP发送的认证上报消息,所述认证上报消息包括所述STA的参数;
    所述管理设备从所述认证上报消息中,获取所述STA的参数。
  8. 根据权利要求1至7任一项所述的方法,其特征在于,所述方法还包括:
    所述管理设备获取所述至少一个AP的特征信息,每个AP的特征信息包括负载信息、受到的干扰信息和接收所述STA发送的信号的质量信息中的至少一种;
    所述在所述管理设备管理的多个AP中确定第一AP,包括:
    所述管理设备基于所述至少一个AP的特征信息,确定所述至少一个AP分别与所述STA的连接质量,将所述至少一个AP中连接质量最高的AP确定为所述第一AP。
  9. 根据权利要求1至8任一项所述的方法,其特征在于,所述方法还包括:
    所述管理设备检测到所述STA从所述第一AP的覆盖范围内移动至所述多个AP中第二AP的覆盖范围内;
    所述管理设备向所述第二AP发送通知消息,所述通知消息用于指示所述第二AP与所述STA进行连接。
  10. 一种分配关联标识符AID的方法,其特征在于,所述方法包括:
    第一接入点AP接收管理设备发送的AID和站点STA的标识,所述AID为所述管理设备为所述STA分配的AID;
    所述第一AP将所述STA的标识和所述AID对应存储。
  11. 根据权利要求10所述的方法,其特征在于,所述方法还包括:
    在所述第一AP为所述管理设备指定的与所述STA关联的AP的情况下,所述第一AP向所述STA发送所述AID。
  12. 根据权利要求10或11所述的方法,其特征在于,所述第一AP接收管理设备发送的AID和STA的标识之前,还包括:
    所述第一AP接收所述STA发送的认证请求,所述认证请求包括所述STA的参数;
    所述第一AP向所述管理设备发送认证上报消息,所述认证上报消息包括所述STA的参数;
    所述第一AP接收管理设备发送的AID和STA的标识之后,还包括:
    在所述第一AP为所述管理设备指定的与所述STA关联的AP的情况下,所述第一AP向所述STA发送认证响应消息。
  13. 根据权利要求10至12任一项所述的方法,其特征在于,所述方法还包括:
    所述第一AP接收所述管理设备发送的回收消息,所述回收消息用于指示回收所述AID;
    所述第一AP回收所述AID。
  14. 一种分配关联标识符AID的装置,其特征在于,所述装置应用于管理设备,所述装置包括:
    获取模块,用于获取站点STA的参数;
    确定模块,用于基于所述STA的参数,为所述STA分配AID,并在所述管理设备管理的多个接入点AP中确定第一AP,所述第一AP用于向所述STA发送所述AID,所述多个AP的基本服务集标识符BSSID相同,所述多个AP中至少一个AP接收到所述STA发送的认证请求,所述第一AP属于所述至少一个AP;
    发送模块,用于向所述第一AP发送所述AID和所述STA的标识。
  15. 根据权利要求14所述的装置,其特征在于,所述发送模块,还用于:
    向所述多个AP中除所述第一AP之外的其它AP发送所述AID和所述STA的标识。
  16. 根据权利要求15所述的装置,其特征在于,所述确定模块,还用于检测到所述STA离线;
    所述发送模块,还用于向所述多个AP分别发送回收消息,所述回收消息用于指示回收所述AID。
  17. 根据权利要求14至16任一项所述的装置,其特征在于,所述多个AP与所述管理设备形成光纤到房间FTTR的网络架构,所述管理设备通过分配消息携带所述AID和所述STA的标识,所述AID和所述STA的标识位于所述分配消息的载荷字段中,所述分配消息的目的地址为接收所述分配消息的AP的标识。
  18. 根据权利要求14至16任一项所述的装置,其特征在于,所述多个AP与所述管理设备形成以太网架构,所述管理设备通过以太网帧携带所述AID和所述STA的标识,所述AID和所述STA的标识位于所述以太网帧的载荷字段中。
  19. 根据权利要求14至16任一项所述的装置,其特征在于,所述多个AP与所述管理设 备形成无源光网络PON的架构,所述管理设备通过光网络单元管理控制接口OMCI消息携带所述AID和所述STA的标识,所述AID和所述STA的标识位于所述OMCI消息的消息内容字段中。
  20. 根据权利要求14至19任一项所述的装置,其特征在于,所述获取模块,用于:
    接收所述多个AP中至少一个AP发送的认证上报消息,所述认证上报消息包括所述STA的参数;
    从所述认证上报消息中,获取所述STA的参数。
  21. 根据权利要求14至20任一项所述的装置,其特征在于,所述获取模块,还用于获取所述至少一个AP的特征信息,每个AP的特征信息包括负载信息、受到的干扰信息和接收所述STA发送的信号的质量信息中的至少一种;
    所述确定模块,用于基于所述至少一个AP的特征信息,确定所述至少一个AP分别与所述STA的连接质量,将所述至少一个AP中连接质量最高的AP确定为所述第一AP。
  22. 根据权利要求14至21任一项所述的装置,其特征在于,所述确定模块,还用于检测到所述STA从所述第一AP的覆盖范围内移动至所述多个AP中第二AP的覆盖范围内;
    所述发送模块,还用于向所述第二AP发送通知消息,所述通知消息用于指示所述第二AP与所述STA进行连接。
  23. 一种分配关联标识符AID的装置,其特征在于,所述装置应用于第一接入点AP,所述装置包括:
    接收模块,用于接收管理设备发送的AID和站点STA的标识,所述AID为所述管理设备为所述STA分配的AID;
    处理模块,用于将所述STA的标识和所述AID对应存储。
  24. 根据权利要求23所述的装置,其特征在于,所述装置还包括:发送模块,用于在所述第一AP为所述管理设备指定的与所述STA关联的AP的情况下,向所述STA发送所述AID。
  25. 根据权利要求23或24所述的装置,其特征在于,所述接收模块,还用于接收所述管理设备发送的回收消息,所述回收消息用于指示回收所述AID;
    所述处理模块,还用于回收所述AID。
  26. 一种分配AID的系统,其特征在于,所述系统包括管理设备和接入点AP;
    所述管理设备用于执行权利要求1至9中任一项所述的方法;
    所述AP用于执行权利要求10至13任一项所述的方法。
PCT/CN2022/142729 2022-01-25 2022-12-28 分配aid的方法、装置和系统 WO2023142844A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210087389.2 2022-01-25
CN202210087389.2A CN116546482A (zh) 2022-01-25 2022-01-25 分配aid的方法、装置和系统

Publications (1)

Publication Number Publication Date
WO2023142844A1 true WO2023142844A1 (zh) 2023-08-03

Family

ID=87442303

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/142729 WO2023142844A1 (zh) 2022-01-25 2022-12-28 分配aid的方法、装置和系统

Country Status (2)

Country Link
CN (1) CN116546482A (zh)
WO (1) WO2023142844A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103297954A (zh) * 2012-02-24 2013-09-11 华为技术有限公司 一种关联标识符分配方法及装置
CN103959681A (zh) * 2011-11-24 2014-07-30 Lg电子株式会社 用于在无线lan系统中基于分组收发数据的方法和用于支持该方法的装置
CN104038989A (zh) * 2013-03-05 2014-09-10 华为终端有限公司 无线局域网中进行通信的方法、装置和系统
CN112956247A (zh) * 2018-11-01 2021-06-11 思科技术公司 用于具有多个接入点的网络的业务指示符图
CA3183394A1 (en) * 2020-07-01 2022-01-06 Ming GAN Aid allocation method for multi-link device and related apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103959681A (zh) * 2011-11-24 2014-07-30 Lg电子株式会社 用于在无线lan系统中基于分组收发数据的方法和用于支持该方法的装置
CN103297954A (zh) * 2012-02-24 2013-09-11 华为技术有限公司 一种关联标识符分配方法及装置
CN104038989A (zh) * 2013-03-05 2014-09-10 华为终端有限公司 无线局域网中进行通信的方法、装置和系统
CN112956247A (zh) * 2018-11-01 2021-06-11 思科技术公司 用于具有多个接入点的网络的业务指示符图
CA3183394A1 (en) * 2020-07-01 2022-01-06 Ming GAN Aid allocation method for multi-link device and related apparatus

Also Published As

Publication number Publication date
CN116546482A (zh) 2023-08-04

Similar Documents

Publication Publication Date Title
JP7273180B2 (ja) ネットワークアクセス装置に接続する方法、端末及びコンピュータ読み取り可能な記憶媒体
US10419531B2 (en) Method for setting gateway device identity, and management gateway device
US20220158972A1 (en) Communication Method and Electronic Device
AU2021243081B2 (en) Communication method applied to multi-link device in wireless local area network, and device
WO2016184317A1 (zh) 一种对ap进行配置的方法、装置和系统
WO2010075822A1 (zh) 一种资源管理的方法、网络设备、用户设备及系统
KR101644248B1 (ko) 무선근거리통신망에서의 식별자 할당 방법 및 장치
US20180077628A1 (en) Terminal Discovery Method, Terminal, Server, Base Station, Management Entity, and System
CN114342332B (zh) 一种通信方法、装置及系统
KR102329095B1 (ko) 네트워크 접속 방법, 관련 기기 및 시스템
WO2021244302A1 (zh) 一种服务质量管理方法和装置
EP4061092A1 (en) Access point supporting at least two virtual networks and method performed thereby for communicating with wireless device
WO2012109849A1 (zh) Mac地址分配方法和设备
US20230148056A1 (en) Request and Response Method for Probing MLD, Station, and Access Point
WO2007001152A1 (en) Apparatus and method for performing fast handover
JP2022544638A (ja) 無線通信ネットワークにおけるセッション確立のための方法、装置、およびシステム
US20210359912A1 (en) Network slicing in radio interface
WO2023142844A1 (zh) 分配aid的方法、装置和系统
WO2021068990A1 (zh) 波束赋型报告传输方法、通信节点及计算机可读存储介质
US20210250850A1 (en) Network access method and apparatus
JP5307078B2 (ja) 仮想化された無線ネットワーク・カードを有する無線端末装置
WO2023040606A1 (zh) 组网设备着色方法、网络设备及存储介质
WO2023138328A1 (zh) 通信恢复方法、通信装置和通信系统
US20230180319A1 (en) Wireless transmission method and apparatus, and network device and storage medium
EP4358476A1 (en) Message processing method, apparatus and system, and computer-readable storage medium

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

Country of ref document: EP

Kind code of ref document: A1