CN111885622B - Bridge acceleration compatible WIFI roaming method and device - Google Patents

Bridge acceleration compatible WIFI roaming method and device Download PDF

Info

Publication number
CN111885622B
CN111885622B CN202010678323.1A CN202010678323A CN111885622B CN 111885622 B CN111885622 B CN 111885622B CN 202010678323 A CN202010678323 A CN 202010678323A CN 111885622 B CN111885622 B CN 111885622B
Authority
CN
China
Prior art keywords
sta
message
main
arp
dns
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010678323.1A
Other languages
Chinese (zh)
Other versions
CN111885622A (en
Inventor
王通源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Youhua Software Technology Co ltd
Original Assignee
Shenzhen Youhua Software Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Youhua Software Technology Co ltd filed Critical Shenzhen Youhua Software Technology Co ltd
Priority to CN202010678323.1A priority Critical patent/CN111885622B/en
Publication of CN111885622A publication Critical patent/CN111885622A/en
Application granted granted Critical
Publication of CN111885622B publication Critical patent/CN111885622B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The invention relates to a WIFI roaming method and device compatible with bridge acceleration, which are used for a transition WIFI network connection of a Sta from a main AP to a slave AP, and the method comprises the following steps: receiving a message sent by a Sta; if the packet is matched with the arp or dns packet, reporting the arp or dns packet to a kernel of a main AP; acquiring port information of the Sta according to the arp or dns message, updating the FDB of the main AP, and learning and creating a new Sta bridge acceleration table item; and forwarding the service message received from the Sta according to the new Sta bridge acceleration table item. The invention can solve the problem of abnormal network forwarding without affecting forwarding performance and effectively improve roaming experience of users.

Description

Bridge acceleration compatible WIFI roaming method and device
Technical Field
The invention relates to the technical field of communication, in particular to a WIFI roaming method and device compatible with bridge acceleration.
Background
WiFi roaming is a technology in which a Sta (Station) associates and disassociates with a slave AP when moving to a critical area of the coverage of the master AP (Access Point) and the slave AP, and maintains an uninterrupted network connection during the process. In general, the AP device operates in a bridge mode, and the service message is directly forwarded through driving software or hardware instead of being forwarded through the kernel. The AP device receives Media Access Control (MAC) address information from all its ports, forms a MAC address table and maintains it. When a frame of data is received, it will decide whether to filter or forward the frame of data based on its own MAC address table. At this time, this maintained MAC table is called an FDB. The common service message is not forwarded by the kernel, so that the occupancy rate of the CPU can be reduced, the data forwarding performance of the equipment is improved, and the hardware configuration requirement on the equipment is reduced.
However, in WiFi MESH networking or WiFi relay networking, when the Sta roams from the master AP to the slave AP, the Sta changes the interface forwarded by the master AP. Many Sta devices will not send broadcast Sta messages after roaming, but unicast arp messages or even no arp messages, and the main AP cannot sense the change of the port of the Sta, and the data sent to the Sta is forwarded from the original port, so that the problem that the Sta network is not enabled occurs if the service message cannot be forwarded to the Sta correctly.
Disclosure of Invention
Based on this, it is necessary to provide a method and a device for roaming WIFI compatible with bridge acceleration, which can solve the problem of network forwarding abnormality without affecting forwarding performance, and effectively improve roaming experience of users.
In order to achieve the above object, the present invention adopts the following technical scheme.
The invention provides a WIFI roaming method compatible with bridge acceleration, which is used for a transition WIFI network connection of a Sta from a main AP to a slave AP, and comprises the following steps:
receiving a message sent by a Sta;
if the packet is matched with the arp or dns packet, reporting the arp or dns packet to a kernel of a main AP; if the messages are not matched with the arp or dns messages, forwarding the messages directly through bridge acceleration;
acquiring port information of the Sta according to the arp or dns message, updating the FDB of the main AP, and learning and creating a new Sta bridge acceleration table item;
forwarding a service message received from the Sta according to the new Sta bridge acceleration table entry;
acquiring port information of the Sta according to the arp or dns message, and updating the FDB of the main AP; the step of learning and creating a new Sta bridge acceleration table entry specifically includes:
the kernel of the main AP automatically senses whether the port information of the STAs changes or not through the arp or dns message;
if the port information of the Sta changes, automatically updating the FDB to update the port information sent to the Sta;
the old Sta bridge acceleration table entry is deleted, and a new Sta bridge acceleration table entry is learned and created.
Preferably, if the match is to an arp or dns message, the step of reporting the arp or dns message to the core of the main AP specifically includes:
if the message is sent by soft acceleration, matching is carried out through codes;
if the message is sent by the hard acceleration, matching is performed through a register related to the main AP.
Preferably, receiving a message sent by the Sta;
if the broadcast message is matched, reporting to a kernel of the main AP; if the broadcast message is not matched, forwarding the message directly through bridge acceleration;
acquiring port information of the Sta according to the broadcast message, and updating the FDB of the main AP; learning and creating a new Sta bridge acceleration table item;
forwarding a service message received from the Sta according to the new Sta bridge acceleration table entry;
if the broadcast message is matched, reporting the broadcast message to a core of the main AP specifically comprises the following steps:
if the message is a broadcast message, judging that the message is an arp or dns message;
reporting the message to a kernel of a main AP for processing;
the step of acquiring port information of the Sta according to the broadcast message and updating the FDB of the main AP specifically includes:
the kernel of the main AP automatically senses whether the port information of the Sta changes or not through the broadcast message;
and if the port information of the Sta is changed, automatically updating the FDB to update the port information sent to the Sta.
Preferably, before the step of forwarding the message directly through bridge acceleration, the method further includes the steps of:
judging whether the entry information of the message can be matched with the mac address in the FDB;
if yes, entering the next step; otherwise, discarding the message.
The invention also provides a WIFI roaming device compatible with bridge acceleration, which is used for the transition of the Sta from the main AP to the secondary AP to the WIFI network connection, and comprises the following steps:
the receiving module is used for receiving the message sent by the Sta;
the reporting module is used for reporting the message to the kernel of the main AP if the message is matched with the arp or dns message; if the messages are not matched with the arp or dns messages, forwarding the messages directly through bridge acceleration;
the updating module is used for acquiring port information of the Sta according to the arp or dns message and updating the FDB of the main AP; learning and creating a new Sta bridge acceleration table item;
the forwarding module is used for forwarding the service message received from the Sta according to the new Sta bridge acceleration table item;
the updating module is specifically configured to:
the kernel of the main AP automatically senses whether the port information of the STAs changes or not through the arp or dns message;
if the port information of the Sta changes, automatically updating the FDB to update the port information sent to the Sta;
the old Sta bridge acceleration table entry is deleted, and a new Sta bridge acceleration table entry is learned and created.
According to the characteristic that an arp message or a dns message is sent before the Sta accesses the network and the ingress information of the Sta is attached to the arp message and the dns message, the characteristics of the arp message and the dns message are matched, so that the two messages are not accelerated by walking, but are processed by a kernel, the update of the acceleration table of the Sta bridge is triggered, and the service message sent by the Sta is directly accelerated and forwarded from the bridge, thereby not only solving the problem of abnormal network forwarding during WIFI roaming, but also improving forwarding efficiency. Meanwhile, because the flows of the arp message and the dns message are not large, the load is not caused to the CPU of the AP, so that the roaming experience of the user is effectively improved under the condition that the forwarding performance is not influenced.
Drawings
Fig. 1 is a flow chart of a WIFI roaming method compatible with bridge acceleration in the first embodiment;
fig. 2 is a flow chart of a WIFI roaming method compatible with bridge acceleration in the second embodiment;
fig. 3 is a block diagram of a WIFI roaming device compatible with bridge acceleration in the third embodiment.
The achievement of the objectives of the present invention, as well as its function and principles, will be further described in connection with the accompanying drawings in the detailed description.
Detailed Description
Further description will be made with reference to the accompanying drawings and specific embodiments.
As shown in fig. 1, this embodiment provides a WIFI roaming method compatible with bridge acceleration, which is used for a Sta to transition from a master AP to a slave AP to connect to a WIFI network, and includes the steps of:
s1: receiving a message sent by a Sta;
s2: judging whether the packet is matched with an arp or dns packet;
s3: if yes, reporting the arp or dns message to a kernel of a main AP;
s4: acquiring port information of the Sta according to the arp or dns message, and updating the FDB of the main AP; learning and creating a new Sta bridge acceleration table item;
s5: and forwarding the service message received from the Sta according to the new Sta bridge acceleration table item.
When the Sta is connected to the network, various messages are sent to the master AP, the master AP forwards the messages, most of the messages are service messages, when the Sta moves to a critical area covered by the master AP and the slave AP, an arp message may be sent, some Sta may access the network after roaming without sending the arp message, the access network generally passes through a domain name, and a dns request needs to be sent first, and at this time, the master AP may receive the dns message.
In step S2, if the packet is matched to an arp or dns packet, the step of reporting the arp or dns packet to the core of the main AP specifically includes:
if the message is sent by soft acceleration, matching is carried out through codes;
if the message is sent by the hard acceleration, matching is performed through a register related to the main AP.
Since the arp or dns message may be accompanied by the port information of the sender, the step S3 specifically includes:
the kernel of the main AP automatically senses whether the port information of the STAs changes or not through the arp or dns message;
if the port information of the Sta changes, automatically updating the FDB to update the port information sent to the Sta;
the old Sta bridge acceleration table entry is deleted, and a new Sta bridge acceleration table entry is learned and created.
In this embodiment, the arp or dns message is sent to the kernel of the main AP to be processed, and if the entry of the Sta changes, the FDB update is triggered to update the interface information of the Sta.
After or while updating the FDB, the old Sta bridge acceleration table entry is deleted, and a new Sta bridge acceleration table entry is learned and created. The main AP forwards the service message received from the Sta through the bridge acceleration according to the new Sta bridge acceleration table item, thereby realizing uninterrupted forwarding of network data.
In addition, the embodiment further includes the following steps:
s6: and if the service message is not matched with the arp or dns message, directly forwarding the service message received from the Sta through bridge acceleration.
That is, the embodiment forwards the service message of the Sta directly through bridge acceleration without passing through the system kernel of the Sta, so that the CPU of the device is not occupied, the forwarding performance of the device is not affected, the forwarding rate of the device can be improved, and the roaming experience of the user is effectively improved.
Embodiment two:
referring to fig. 2, the present invention provides another WIFI roaming method compatible with bridge acceleration, which is used for a Sta to transition from a master AP to a slave AP to perform WIFI network connection, and mainly includes the following steps:
stp1: receiving a message sent by a Sta;
stp2: judging whether the broadcast message is matched or not;
stp3: if yes, reporting the broadcast message to a kernel of a main AP;
stp4: acquiring port information of the Sta according to the broadcast message, and updating the FDB of the main AP; learning and creating a new Sta bridge acceleration table item;
stp5: and forwarding the service message received from the Sta according to the new Sta bridge acceleration table item.
The step Stp2 specifically includes:
stp21: if the message is a broadcast message, judging that the message is matched with the broadcast message;
stp22: and reporting the message to a kernel of the main AP for processing.
Under the bridge acceleration scene, unicast messages (i.e. unicast service messages) can be directly forwarded in an acceleration way, an AP kernel is not reported, and only broadcast messages such as an arp message and a dns message can be sent to the AP kernel for processing, and interface information updating of STAs such as FDB and the like is triggered.
Thus, after step Stp2, the steps are also included:
stp6: if the broadcast message is not matched, the message is directly forwarded through bridge acceleration.
Many stas will not send a broadcast arp message after roaming, but rather a unicast arp message, even not an arp message. In this embodiment, by matching the characteristics of the packet, the unicast arp packet is also processed by the AP kernel, and the interface update of the Sta is triggered. And meanwhile, the dns message is sent to the AP kernel for processing, so that the problem that the network is accessed without sending an arp message in individual cases is solved.
Specifically, step Stp4 further comprises:
the kernel of the main AP automatically senses whether the port information of the Sta changes or not through the broadcast message;
and if the port information of the Sta is changed, automatically updating the FDB to update the port information sent to the Sta.
In addition, before the step of forwarding the message through the bridge acceleration, the method further comprises the steps of:
judging whether the entry information of the message can be matched with a mac address in the FDB;
if yes, entering the next step; otherwise, discarding the message.
The AP equipment only carries out bridge acceleration on the port corresponding to the MAC address table in the FDB, and if a message which is not matched with the entry information of the MAC address is received, the message is discarded.
Embodiment III:
referring to fig. 3, according to a first embodiment, the present embodiment correspondingly provides a WIFI roaming device 100 compatible with bridge acceleration, for a Sta to transition WIFI network connection from a master AP to a slave AP, including:
a receiving module 10, configured to receive a packet sent by the Sta;
the reporting module 20 is configured to report the packet to the kernel of the main AP if the packet is matched to an arp or dns packet;
the updating module 30 is configured to acquire port information of the Sta according to an arp or dns message, update an FDB of the main AP, learn and create a new Sta bridge acceleration table item;
and a forwarding module 40, configured to forward the service packet received from the Sta according to the new Sta bridge acceleration table entry.
The updating module is specifically configured to:
the kernel of the main AP automatically senses whether the port information of the STAs changes or not through the arp or dns message;
if the port information of the Sta changes, automatically updating the FDB to update the port information sent to the Sta;
the old Sta bridge acceleration table entry is deleted, and a new Sta bridge acceleration table entry is learned and created.
The specific functions and applications of the above modules in this embodiment may be described in the first embodiment, and will not be described herein.
In summary, according to the characteristics that an arp message or a dns message is sent before the Sta accesses the network and the ingress information of the Sta is attached to the arp message and the dns message, by matching the characteristics of the arp message and the dns message, the two messages are not accelerated by walking, but are processed by the kernel, so that the update of the Sta bridge acceleration table is triggered, the problem of network forwarding abnormality during WIFI roaming is solved, and the forwarding efficiency is improved. Meanwhile, because the flows of the arp message and the dns message are not large, the load is not caused to the CPU of the AP, so that the roaming experience of the user is effectively improved under the condition that the forwarding performance is not influenced.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the invention and are described in detail herein without thereby limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention.

Claims (5)

1. A WIFI roaming method compatible with bridge acceleration is used for a transition WIFI network connection of a Sta from a main AP to a slave AP, and is characterized by comprising the following steps:
receiving a message sent by a Sta;
if the packet is matched with the arp or dns packet, reporting the arp or dns packet to a kernel of a main AP; if the messages are not matched with the arp or dns messages, forwarding the messages directly through bridge acceleration;
acquiring port information of the Sta according to the arp or dns message, updating the FDB of the main AP, and learning and creating a new Sta bridge acceleration table item;
forwarding a service message received from the Sta according to the new Sta bridge acceleration table entry;
acquiring port information of the Sta according to the arp or dns message, and updating the FDB of the main AP; the step of learning and creating a new Sta bridge acceleration table entry specifically includes:
the kernel of the main AP automatically senses whether the port information of the STAs changes or not through the arp or dns message;
if the port information of the Sta changes, automatically updating the FDB to update the port information sent to the Sta;
the old Sta bridge acceleration table entry is deleted, and a new Sta bridge acceleration table entry is learned and created.
2. The method of claim 1, wherein the step of reporting the arp or dns message to the core of the master AP if the AP or dns message is matched specifically comprises:
if the message is sent by soft acceleration, matching is carried out through codes;
if the message is sent by the hard acceleration, matching is performed through a register related to the main AP.
3. A WIFI roaming method compatible with bridge acceleration is used for a transition WIFI network connection of a Sta from a main AP to a slave AP, and is characterized by comprising the following steps:
receiving a message sent by a Sta;
if the broadcast message is matched, reporting to a kernel of the main AP; if the broadcast message is not matched, forwarding the message directly through bridge acceleration;
acquiring port information of the Sta according to the broadcast message, and updating the FDB of the main AP; learning and creating a new Sta bridge acceleration table item;
forwarding a service message received from the Sta according to the new Sta bridge acceleration table entry;
if the broadcast message is matched, reporting the broadcast message to a core of the main AP specifically comprises the following steps:
if the message is a broadcast message, judging that the message is an arp or dns message;
reporting the message to a kernel of a main AP for processing;
the step of acquiring port information of the Sta according to the broadcast message and updating the FDB of the main AP specifically includes:
the kernel of the main AP automatically senses whether the port information of the Sta changes or not through the broadcast message;
and if the port information of the Sta is changed, automatically updating the FDB to update the port information sent to the Sta.
4. The method of claim 3, further comprising, prior to said step of forwarding said message directly through bridge acceleration, the step of:
judging whether the entry information of the message can be matched with the mac address in the FDB;
if yes, entering the next step; otherwise, discarding the message.
5. A bridge acceleration compatible WIFI roaming device for a Sta to transition from a master AP to a slave AP WIFI network connection, comprising:
the receiving module is used for receiving the message sent by the Sta;
the reporting module is used for reporting the message to the kernel of the main AP if the message is matched with the arp or dns message; if the messages are not matched with the arp or dns messages, forwarding the messages directly through bridge acceleration;
the updating module is used for acquiring port information of the Sta according to the arp or dns message and updating the FDB of the main AP; learning and creating a new Sta bridge acceleration table item;
the forwarding module is used for forwarding the service message received from the Sta according to the new Sta bridge acceleration table item;
the updating module is specifically configured to:
the kernel of the main AP automatically senses whether the port information of the STAs changes or not through the arp or dns message;
if the port information of the Sta changes, automatically updating the FDB to update the port information sent to the Sta;
the old Sta bridge acceleration table entry is deleted, and a new Sta bridge acceleration table entry is learned and created.
CN202010678323.1A 2020-07-15 2020-07-15 Bridge acceleration compatible WIFI roaming method and device Active CN111885622B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010678323.1A CN111885622B (en) 2020-07-15 2020-07-15 Bridge acceleration compatible WIFI roaming method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010678323.1A CN111885622B (en) 2020-07-15 2020-07-15 Bridge acceleration compatible WIFI roaming method and device

Publications (2)

Publication Number Publication Date
CN111885622A CN111885622A (en) 2020-11-03
CN111885622B true CN111885622B (en) 2023-08-01

Family

ID=73150829

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010678323.1A Active CN111885622B (en) 2020-07-15 2020-07-15 Bridge acceleration compatible WIFI roaming method and device

Country Status (1)

Country Link
CN (1) CN111885622B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651627A (en) * 2009-09-23 2010-02-17 杭州华三通信技术有限公司 Method and device for studying media access control (MAC) table items
CN109089263A (en) * 2018-07-25 2018-12-25 新华三技术有限公司 A kind of message processing method and device
CN110022569A (en) * 2018-12-17 2019-07-16 杭州全维技术股份有限公司 A kind of wireless performance optimization method of the inhibition arp and dhcp broadcasting packet based on kernel

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10868792B2 (en) * 2018-03-19 2020-12-15 Fortinet, Inc. Configuration of sub-interfaces to enable communication with external network devices

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651627A (en) * 2009-09-23 2010-02-17 杭州华三通信技术有限公司 Method and device for studying media access control (MAC) table items
CN109089263A (en) * 2018-07-25 2018-12-25 新华三技术有限公司 A kind of message processing method and device
CN110022569A (en) * 2018-12-17 2019-07-16 杭州全维技术股份有限公司 A kind of wireless performance optimization method of the inhibition arp and dhcp broadcasting packet based on kernel

Also Published As

Publication number Publication date
CN111885622A (en) 2020-11-03

Similar Documents

Publication Publication Date Title
US7730163B2 (en) Multimedia message service apparatus
WO2020200436A1 (en) Apparatus, method and computer program for group communication
US9058372B2 (en) Database management in a wireless communication system
US6751478B1 (en) Mobile-service switch, home memory node, and gateway switch
US6850760B2 (en) Method and devices for improved location updating in a mobile communication system
CN113194494B (en) Air interface resource control method, device, network side equipment and terminal
CN105045110B (en) Method and device for forwarding household appliance service call request
CN114051013A (en) Communication data transmission method and device
CN111885622B (en) Bridge acceleration compatible WIFI roaming method and device
RU2271076C2 (en) Method and system for requesting position information or status information of a node client in intellectual network
US20040037272A1 (en) Method of forwarding packet calls in mobile communication system
JP5194915B2 (en) Mobile communication system
WO2005006800A1 (en) Paging control method, paging control device, and wireless access network
JP4713817B2 (en) Login method of terminal device to packet data network
CN102857953A (en) Self-configuration method and device of base station
WO2007117825A2 (en) Method for routing calls in a mobile communication network
CN109040671B (en) Method for realizing LTE network mobile video monitoring
AU4619499A (en) Method for identifying a call in a telecommunications system
CN101163278B (en) Cluster short information service implementing method
CN113228598B (en) Cellular telecommunication network
KR100304937B1 (en) Method for managing a radio access network, the network is contacting to unequal MSCs in Mobile Communication System
CN115776665B (en) VN group configuration method, device, equipment and storage medium
CN113938349B (en) Wireless industrial bus communication method and system
CN113079539B (en) Information transmission method, terminal and network equipment
CN110072194B (en) Service scheduling method and device and cluster system without central node

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant