CN108712782B - Tunnel establishment method and device, electronic equipment and readable storage medium - Google Patents

Tunnel establishment method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN108712782B
CN108712782B CN201810231206.3A CN201810231206A CN108712782B CN 108712782 B CN108712782 B CN 108712782B CN 201810231206 A CN201810231206 A CN 201810231206A CN 108712782 B CN108712782 B CN 108712782B
Authority
CN
China
Prior art keywords
openflow
tunnel
user terminal
forwarding
online
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
CN201810231206.3A
Other languages
Chinese (zh)
Other versions
CN108712782A (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201810231206.3A priority Critical patent/CN108712782B/en
Publication of CN108712782A publication Critical patent/CN108712782A/en
Application granted granted Critical
Publication of CN108712782B publication Critical patent/CN108712782B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/12Setup of transport tunnels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Abstract

The embodiment of the application provides an OpenFlow tunnel establishment method, an OpenFlow tunnel establishment device, electronic equipment and a readable storage medium, which are applied to the technical field of wireless communication, wherein the method comprises the following steps: after receiving an online request message sent by a user terminal, determining a forwarding mode corresponding to BSSID information carried in the online request message according to a corresponding relation between BSSID information stored in an AP and the forwarding mode; when the determined forwarding mode is local forwarding, judging whether the AP establishes an OpenFlow tunnel with the AC associated with the AP or not; and if the AP does not establish the OpenFlow tunnel with the AC, establishing the OpenFlow tunnel with the AC. According to the tunnel establishment method, the OpenFlow tunnel is established when the user terminal corresponding to the local forwarding is accessed on the AP, and compared with the OpenFlow tunnel established in advance in the prior art, resources of the AC are saved.

Description

Tunnel establishment method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of wireless communication technologies, and in particular, to an OpenFlow tunnel establishment method and apparatus, an electronic device, and a readable storage medium.
Background
With the gradual upgrade of the wireless hotspot construction, the Access Point (AP) Access quantity is larger and larger, and how to ensure the reliability of the wireless Access becomes important. In the centralized forwarding mode, an AC (Access Controller) undertakes the state maintenance and data forwarding work of a large number of APs. Referring to fig. 1, fig. 1 is a schematic view of an application scenario of the embodiment of the present application, where an AC manages an AP through a switch, and an 802.1x user terminal accesses a wireless network through the AP. In order to release the larger pressure of the AC control plane and realize the separation of the control plane and the data plane, the OpenFlow network model is introduced in the prior art. The communication is carried out between the AC And the AP through an OpenFlow tunnel established based on an OpenFlow protocol, so that the interaction of the authentication message between the AP And the AC in the process of locally forwarding the corresponding user terminal on line such as 802.1x authentication And the like is realized through the OpenFlow tunnel, the partial pressure of a capwap (controlled And Provisioning of Wireless Access Point protocol) tunnel between the AC And the AP is further relieved, And the AP management capability And the forwarding performance of the AC are improved.
In the related art, the OpenFlow tunnel is established immediately after the capwap tunnel associated between the AC and the AP is established successfully, and the OpenFlow tunnel between the AC and the AP is disconnected only after the capwap tunnel is disconnected.
In fact, the AP will only interact with the AC using an OpenFlow tunnel in order to implement 802.1x authentication when providing local forwarding for the user terminal. However, some APs may not receive the local forwarding request of the user terminal during the OpenFlow tunnel establishment and disconnection, and in this case, the OpenFlow tunnel that has been established in advance is not used, which causes waste of resources such as a Central Processing Unit (CPU) and a memory of the AC. Usually, one AC manages a plurality of APs, and if the APs managed by the AC all have the above situation, the waste of AC resources is more obvious.
Disclosure of Invention
An object of the embodiments of the present application is to provide an OpenFlow tunnel establishment method, an OpenFlow tunnel establishment device, an electronic device, and a readable storage medium, so as to reduce waste of AC resources. The specific technical scheme is as follows:
the embodiment of the application provides an OpenFlow tunnel establishment method, which is applied to an AP, and comprises the following steps:
after receiving an online request message sent by a user terminal, determining a forwarding mode corresponding to BSSID information carried in the online request message according to a corresponding relation between BSSID (basic service Set Identifier) information and the forwarding mode stored by the AP;
when the determined forwarding mode is local forwarding, judging whether the AP establishes an OpenFlow tunnel with the AC associated with the AP or not;
and if the AP does not establish an OpenFlow tunnel with the AC, establishing the OpenFlow tunnel with the AC.
An embodiment of the present application provides an OpenFlow tunnel establishment device, which is applied to an AP, and the device includes:
the local forwarding judgment module is used for determining a forwarding mode corresponding to BSSID information carried in an on-line request message according to the corresponding relation between the BSSID information and the forwarding mode stored in the AP after the on-line request message sent by a user terminal is received;
an OpenFlow tunnel determination module, configured to determine whether the AP has established an OpenFlow tunnel with an AC associated with the AP when the determined forwarding manner is local forwarding;
an OpenFlow tunnel establishment module, configured to establish an OpenFlow tunnel with the AC if the AP does not establish an OpenFlow tunnel with the AC.
An embodiment of the present application provides an electronic device, including: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: and realizing the steps of the OpenFlow tunnel establishment method.
Embodiments of the present application provide a machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to: and realizing the steps of the OpenFlow tunnel establishment method.
According to the method, the device, the electronic equipment and the readable storage medium for establishing the OpenFlow tunnel, after an online request message sent by a user terminal is received, a forwarding mode corresponding to BSSID information carried in the online request message is determined according to the corresponding relation between BSSID information and the forwarding mode stored in an AP; when the determined forwarding mode is local forwarding, judging whether the AP establishes an OpenFlow tunnel with the AC associated with the AP or not; and if the AP does not establish the OpenFlow tunnel with the AC, establishing the OpenFlow tunnel with the AC. In the embodiment of the application, the OpenFlow tunnel is established again when the user terminal corresponding to the local forwarding is accessed on the AP, that is, the OpenFlow tunnel is established only when the OpenFlow tunnel needs to be used. Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of an application scenario of an embodiment of the present application;
fig. 2 is a flowchart of an OpenFlow tunnel establishment method according to an embodiment of the present application;
fig. 3 is another flowchart of an OpenFlow tunnel establishment method according to an embodiment of the present application;
fig. 4 is a flowchart of breaking an OpenFlow tunnel according to an embodiment of the present application;
fig. 5 is a structural diagram of an OpenFlow tunnel establishment apparatus according to an embodiment of the present application;
fig. 6 is another structural diagram of an OpenFlow tunnel establishment apparatus according to an embodiment of the present application;
fig. 7 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to solve the problem of resource waste of an OpenFlow tunnel when the OpenFlow tunnel is established between an AP and an AC, embodiments of the present application provide an OpenFlow tunnel establishment method, apparatus, electronic device, and readable storage medium, so as to reduce the waste of AC resources.
Referring to fig. 2, fig. 2 is a flowchart of an OpenFlow tunnel establishment method according to an embodiment of the present application, which is applied to an AP, and includes the following steps:
s201, after receiving an on-line request message sent by a user terminal, determining a forwarding mode corresponding to BSSID information carried in the on-line request message according to a corresponding relationship between BSSID information and forwarding modes stored in an AP.
And S202, when the determined forwarding mode is local forwarding, judging whether the AP establishes an OpenFlow tunnel with the AC associated with the AP.
And S203, if the AP does not establish the OpenFlow tunnel with the AC, establishing the OpenFlow tunnel with the AC.
The embodiment shown in fig. 2 has the beneficial effects that the OpenFlow tunnel is established again when the AP has the user terminal access corresponding to the local forwarding, that is, the OpenFlow tunnel is established only when the OpenFlow tunnel needs to be used, and compared with the OpenFlow tunnel established in advance in the prior art, resources of the AC are saved.
Referring to fig. 3, fig. 3 is another flowchart of an OpenFlow tunnel establishment method according to an embodiment of the present application, which is applied to an AP, and includes the following steps:
s301, receiving an online request message sent by a user terminal.
S302, according to the corresponding relation between the BSSID information and the forwarding mode stored in the AP, whether the forwarding mode corresponding to the BSSID information carried in the on-line request message is local forwarding is determined.
In the embodiment of the application, after the AP and the AC are successfully associated, a capwap tunnel is established between the AP and the AC, and then the AC may send the correspondence between the BSSID information and the forwarding manner (local forwarding or centralized forwarding) to the AP. In this way, after receiving the on-line request message sent by the user terminal, the AP can determine whether the forwarding mode corresponding to the BSSID information carried in the on-line request message is locally forwarded according to the correspondence between the BSSID information and the forwarding mode locally stored in the AP. Executing S304 when the determined forwarding mode is local forwarding; otherwise, the OpenFlow tunnel is not required to be used, S303 is executed, that is, the OpenFlow tunnel is established without the AC associated with the AP, and the process ends.
S304, judging whether the AP establishes an OpenFlow tunnel with the AC associated with the AP or not; if yes, executing S306; otherwise, S305 is executed.
Specifically, if the determined forwarding mode is local forwarding, the user terminal that sends the online request message needs to authenticate on the AC, and after the AC authenticates the user terminal, the data message sent by the user terminal is forwarded on the AP. Since the authentication of the user terminal is completed by the AC, the AP needs to forward the on-line request message to the AC after receiving the on-line request message. In this embodiment of the application, the AP may forward the online request packet to the AC through the OpenFlow tunnel. Therefore, it needs to first determine whether the AP has already established an OpenFlow tunnel with the AC associated with the AP, and if the AP has not established an OpenFlow tunnel with the AC, execute S305, and if the AP has already established an OpenFlow tunnel with the AC, execute S306.
In an implementation manner of the present application, the AP may store an establishment state of an OpenFlow tunnel between the AP and the AC, for example, the establishment state of the OpenFlow tunnel includes: open and close, which are only used to represent the setup state of two OpenFlow tunnels: the OpenFlow tunnel is established and the OpenFlow tunnel is not established, and the establishment state of the OpenFlow tunnel is not limited to the above manner. The establishment state of the OpenFlow tunnel can be initially set to be closed, when the OpenFlow tunnel is successfully established, the establishment state of the OpenFlow tunnel is modified to be opened, and the establishment state of the OpenFlow tunnel is modified to be closed after the OpenFlow tunnel is disconnected. Then, the method for determining whether the AP has established an OpenFlow tunnel with an AC associated with the AP may be: acquiring an establishment state of an OpenFlow tunnel between an AP and an AC; if the establishment state of the OpenFlow tunnel is open, determining that the AP establishes the OpenFlow tunnel with the AC; and if the establishment state of the OpenFlow tunnel is closed, determining that the AP does not establish the OpenFlow tunnel with the AC.
S305, establishing an OpenFlow tunnel with the AC associated with the AP.
In this embodiment of the application, in order to forward the online request packet to the AC through the OpenFlow tunnel to reduce AC resource consumption, the AP may establish the OpenFlow tunnel with the AC based on a TCP (transmission control Protocol) under the condition that the AP does not establish the OpenFlow tunnel with the AC, and then execute S306. A specific process of establishing the OpenFlow tunnel is prior art, and is not described herein again.
And S306, sending the online request message to the AC through the established OpenFlow tunnel so that the AC authenticates the user terminal.
In the embodiment of the application, for the user terminal corresponding to the local forwarding, since the user terminal needs to be authenticated on the AC when accessing the AP, the AP sends the online request message to the AC through the established OpenFlow tunnel, so that the AC authenticates the user terminal. Certainly, the established OpenFlow tunnel is established when an online request message sent by another user terminal is received and the OpenFlow tunnel is not established.
Specifically, in this step, the online request packet may be packaged as an OpenFlow protocol packet and then sent to the AC through the established OpenFlow tunnel.
S307, if the message which is sent by the AC and passes the authentication of the user terminal is received, the user terminal is determined to be successfully on line, and the data message sent by the user terminal is forwarded.
Specifically, if the AC passes the authentication of the user terminal, the AP sends a message that the authentication of the user terminal passes to the AP, and the AP determines that the user terminal is successfully on line. Because the forwarding mode corresponding to the BSSID information carried in the on-line request message sent by the user terminal is local forwarding, the data message for the user terminal to communicate with other user terminals or servers accessing the AP is forwarded by the AP.
In the OpenFlow tunnel establishment method in the embodiment of the application, after an online request message sent by a user terminal is received, a forwarding mode corresponding to BSSID information carried in the online request message is determined according to a corresponding relationship between BSSID information and forwarding modes stored by an AP; when the determined forwarding mode is local forwarding, judging whether the AP establishes an OpenFlow tunnel with the AC associated with the AP or not; and if the AP does not establish the OpenFlow tunnel with the AC, establishing the OpenFlow tunnel with the AC. And sending the online request message to the AC through the established OpenFlow tunnel so that the AC authenticates the user terminal, and after the AC passes the authentication of the user terminal, the AP forwards the data message sent by the user terminal. According to the OpenFlow tunnel establishment method, the OpenFlow tunnel is established again when the user terminal corresponding to local forwarding is accessed on the AP, namely the OpenFlow tunnel is established when the OpenFlow tunnel needs to be used. In addition, tests also find that the method and the device can reduce the risk that the AC service cannot be normally used due to abnormal problems such as hanging of an OpenFlow process or leakage of a process memory and the like when batch APs are simultaneously or repeatedly loaded and unloaded or when a next hop interface of the AP-associated AC is repeatedly changed.
Referring to fig. 4, fig. 4 is a flowchart of an OpenFlow tunnel disconnection in the embodiment of the present application, which is applied to an AP, and includes the following steps:
s401, judging whether all the user terminals corresponding to the local forwarding are off-line. If yes, go to step S402, if no, go to step S403.
Specifically, the number of the online user terminals corresponding to each BSSID information is determined according to the established online user terminal record table; the information of the online user terminal corresponding to each BSSID information in the online user terminal record list is added after the user terminal is successfully online. In the embodiment of the application, when the forwarding mode corresponding to the BSSID information carried in the on-line request message sent by each user terminal is local forwarding, after the user terminal is successfully on-line, the information of the user terminal can be added to the on-line user terminal record list according to the BSSID information carried in the on-line request message, and accordingly, when the user terminal is off-line, the user terminal is deleted from the on-line user terminal record list.
If the sum of the numbers of the online user terminals corresponding to all BSSID information in the online user terminal record list is 0, determining that all the user terminals corresponding to local forwarding are offline, and executing S402; otherwise, determining that all the user terminals corresponding to the local forwarding are not offline, and executing S403.
S402, disconnecting the OpenFlow tunnel established with the AC.
Specifically, if it is determined that all the user terminals corresponding to the local forwarding are offline, the OpenFlow tunnel established with the AC may be disconnected through TCP four-way handshake.
And S403, reserving the OpenFlow tunnel established with the AC.
The OpenFlow tunnel disconnection process shown in fig. 4 can be applied to the embodiments shown in fig. 2 or fig. 3. Thus, in this embodiment, based on the embodiment in fig. 2 or the embodiment in fig. 3, waste of AC resources can be further reduced.
Corresponding to the above method embodiment, an OpenFlow tunnel establishment device is further provided in an embodiment of the present application, and is applied to an AP, referring to fig. 5, where fig. 5 is a structural diagram of the OpenFlow tunnel establishment device in the embodiment of the present application, and includes:
a local forwarding judgment module 501, configured to determine, after receiving an online request message sent by a user terminal, a forwarding mode of an access service corresponding to BSSID information carried in the online request message according to a correspondence between BSSID information stored in an AP and the forwarding mode;
an OpenFlow tunnel determination module 502, configured to determine whether an AP has established an OpenFlow tunnel with an AC associated with the AP when the determined forwarding manner is local forwarding;
the OpenFlow tunnel establishing module 503 is configured to establish an OpenFlow tunnel with the AC if the AP does not establish the OpenFlow tunnel with the AC.
After receiving an online request message sent by a user terminal, the OpenFlow tunnel establishment device of the embodiment of the application determines a forwarding mode corresponding to BSSID information carried in the online request message according to a corresponding relationship between BSSID information stored by an AP and the forwarding mode; when the determined forwarding mode is local forwarding, judging whether the AP establishes an OpenFlow tunnel with the AC associated with the AP or not; and if the AP does not establish the OpenFlow tunnel with the AC, establishing the OpenFlow tunnel with the AC. In the embodiment of the application, the OpenFlow tunnel is established again when the user terminal corresponding to the local forwarding is accessed on the AP, that is, the OpenFlow tunnel is established only when the OpenFlow tunnel needs to be used.
It should be noted that the apparatus in the embodiment of the present application is an apparatus applying the OpenFlow tunnel establishment method, and all embodiments of the OpenFlow tunnel establishment method are applicable to the apparatus and can achieve the same or similar beneficial effects.
Referring to fig. 6, fig. 6 is another structural diagram of an OpenFlow tunnel establishment apparatus according to an embodiment of the present application, including:
a local forwarding judgment module 601, configured to determine, after receiving an online request message sent by a user terminal, a forwarding mode of an access service corresponding to BSSID information carried in the online request message according to a correspondence between BSSID information stored in an AP and the forwarding mode;
an OpenFlow tunnel determination module 602, configured to determine whether an AP has established an OpenFlow tunnel with an AC associated with the AP when the determined forwarding manner is local forwarding;
an OpenFlow tunnel establishing module 603, configured to establish an OpenFlow tunnel with the AC if the AP does not establish an OpenFlow tunnel with the AC;
a message sending module 604, configured to send the online request message to the AC through the established OpenFlow tunnel, so that the AC authenticates the user terminal;
the message forwarding module 605 is configured to determine that the user terminal is successfully online if a message that is sent by the AC and passes authentication of the user terminal is received, and forward a data message sent by the user terminal.
After receiving an online request message sent by a user terminal, the OpenFlow tunnel establishment device of the embodiment of the application determines a forwarding mode corresponding to BSSID information carried in the online request message according to a corresponding relationship between BSSID information stored by an AP and the forwarding mode; when the determined forwarding mode is local forwarding, judging whether the AP establishes an OpenFlow tunnel with the AC associated with the AP or not; and if the AP does not establish the OpenFlow tunnel with the AC, establishing the OpenFlow tunnel with the AC. And sending the online request message to the AC through the established OpenFlow tunnel so that the AC authenticates the user terminal, and after the AC passes the authentication of the user terminal, the AP forwards the data message sent by the user terminal. In the embodiment of the application, the OpenFlow tunnel is established again when the user terminal corresponding to the local forwarding is accessed on the AP, that is, the OpenFlow tunnel is established only when the OpenFlow tunnel needs to be used. In addition, tests also find that the method and the device can reduce the risk that the AC service cannot be normally used due to abnormal problems such as hanging of an OpenFlow process or leakage of a process memory and the like when batch APs are simultaneously or repeatedly loaded and unloaded or when a next hop interface of the AP-associated AC is repeatedly changed.
In an implementation manner of the present application, the OpenFlow tunnel determination module is specifically configured to obtain an establishment state of an OpenFlow tunnel between an AP and an AC associated with the AP; if the establishment state of the OpenFlow tunnel is open, determining that the AP establishes the OpenFlow tunnel with the AC; and if the establishment state of the OpenFlow tunnel is closed, determining that the AP does not establish the OpenFlow tunnel with the AC.
In an implementation manner of the present application, the OpenFlow tunnel establishing apparatus further includes:
the offline judging module is used for judging whether all the user terminals corresponding to the local forwarding are offline;
and the OpenFlow tunnel disconnection module is used for disconnecting the OpenFlow tunnel established with the AC if all the corresponding user terminals are offline in the local forwarding.
In an implementation manner of the application, the offline judgment module is specifically configured to determine, according to an established online user terminal record table, the number of online user terminals corresponding to each BSSID information; the information of the online user terminal corresponding to each BSSID information in the online user terminal record list is added after the user terminal is successfully online; if the sum of the numbers of the online user terminals corresponding to all BSSID information in the online user terminal record list is 0, determining that all the user terminals corresponding to local forwarding are offline; otherwise, determining that all the user terminals corresponding to the local forwarding are not offline.
An embodiment of the present application further provides an electronic device, referring to fig. 7, where fig. 7 is a structural diagram of the electronic device according to the embodiment of the present application, including: a processor 701 and a machine-readable storage medium 702, the machine-readable storage medium 702 storing machine-executable instructions capable of being executed by the processor 701, the processor 701 being caused by the machine-executable instructions to implement the steps of the OpenFlow tunnel establishment method in the embodiment shown in fig. 2 or the embodiment shown in fig. 3.
The processor 701 may be a general-purpose processor, and includes: CPU, NP (Network Processor), and the like; but also a DSP (Digital Signal Processing), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
The machine-readable storage medium 702 may include RAM (Random Access Memory), and may also include non-volatile Memory (e.g., at least one disk Memory), and may also be at least one storage device located remotely from the processor.
In the electronic device of the embodiment of the application, after receiving an online request message sent by a user terminal by executing a machine executable instruction stored in a machine readable storage medium, a processor determines a forwarding mode corresponding to BSSID information carried in the online request message according to a corresponding relationship between BSSID information and forwarding modes stored in an AP; when the determined forwarding mode is local forwarding, judging whether the AP establishes an OpenFlow tunnel with the AC associated with the AP or not; and if the AP does not establish the OpenFlow tunnel with the AC, establishing the OpenFlow tunnel with the AC. In the embodiment of the application, the OpenFlow tunnel is established again when the user terminal corresponding to the local forwarding is accessed on the AP, that is, the OpenFlow tunnel is established only when the OpenFlow tunnel needs to be used.
Embodiments of the present application also provide a machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to: and implementing any OpenFlow tunnel establishment method.
When a processor executes a machine executable instruction stored in a machine readable storage medium of the embodiment of the application, after an online request message sent by a user terminal is received, a forwarding mode corresponding to BSSID information carried in the online request message is determined according to a corresponding relation between BSSID information and the forwarding mode stored in an AP; when the determined forwarding mode is local forwarding, judging whether the AP establishes an OpenFlow tunnel with the AC associated with the AP or not; and if the AP does not establish the OpenFlow tunnel with the AC, establishing the OpenFlow tunnel with the AC. In the embodiment of the application, the OpenFlow tunnel is established again when the user terminal corresponding to the local forwarding is accessed on the AP, that is, the OpenFlow tunnel is established only when the OpenFlow tunnel needs to be used.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the embodiments of the OpenFlow tunnel establishment apparatus, the electronic device, and the readable storage medium, since they are substantially similar to the embodiments of the method, the description is relatively simple, and for relevant points, reference may be made to the partial description of the embodiments of the method.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (10)

1. An OpenFlow tunnel establishment method is applied to an Access Point (AP), and comprises the following steps:
after receiving an online request message sent by a user terminal, determining a forwarding mode corresponding to BSSID information carried in the online request message according to a corresponding relation between basic service set identifier BSSID information stored by the AP and the forwarding mode;
when the determined forwarding mode is local forwarding, judging whether the AP establishes an OpenFlow tunnel with an Access Controller (AC) associated with the AP or not;
and if the AP does not establish an OpenFlow tunnel with the AC, establishing the OpenFlow tunnel with the AC.
2. The OpenFlow tunnel establishment method according to claim 1, wherein the determining whether the AP has established an OpenFlow tunnel with an access controller AC associated with the AP includes:
acquiring an establishment state of an OpenFlow tunnel between the AP and the AC associated with the AP;
if the establishment state of the OpenFlow tunnel is open, determining that the AP establishes an OpenFlow tunnel with the AC;
and if the establishment state of the OpenFlow tunnel is closed, determining that the AP does not establish the OpenFlow tunnel with the AC.
3. The OpenFlow tunnel establishment method of claim 1, further comprising:
judging whether all user terminals corresponding to local forwarding are offline;
and if all the user terminals corresponding to the local forwarding are offline, disconnecting the OpenFlow tunnel established with the AC.
4. The OpenFlow tunnel establishment method according to claim 3, wherein the determining whether all user terminals corresponding to local forwarding are offline includes:
determining the number of online user terminals corresponding to each BSSID information according to the established online user terminal record table; the information of the online user terminal corresponding to each BSSID information in the online user terminal record list is added after the user terminal is successfully online;
if the sum of the numbers of the online user terminals corresponding to all BSSID information in the online user terminal record list is 0, determining that all user terminals corresponding to local forwarding are offline;
otherwise, determining that all the user terminals corresponding to the local forwarding are not offline.
5. An OpenFlow tunnel establishment apparatus, applied to an access point AP, the apparatus comprising:
the local forwarding judgment module is used for determining a forwarding mode corresponding to BSSID information carried in an online request message according to the corresponding relation between the basic service set identifier BSSID information and the forwarding mode stored by the AP after the online request message sent by a user terminal is received;
the OpenFlow tunnel judgment module is configured to, when the determined forwarding manner is local forwarding, judge whether the AP has established an OpenFlow tunnel with an access controller AC associated with the AP;
an OpenFlow tunnel establishment module, configured to establish an OpenFlow tunnel with the AC if the AP does not establish an OpenFlow tunnel with the AC.
6. The OpenFlow tunnel establishment device according to claim 5, wherein the OpenFlow tunnel determination module is specifically configured to acquire an establishment state of an OpenFlow tunnel between the AP and the AC associated with the AP; if the establishment state of the OpenFlow tunnel is open, determining that the AP establishes an OpenFlow tunnel with the AC; and if the establishment state of the OpenFlow tunnel is closed, determining that the AP does not establish the OpenFlow tunnel with the AC.
7. The OpenFlow tunnel establishment apparatus of claim 5, wherein the apparatus further comprises:
the offline judging module is used for judging whether all the user terminals corresponding to the local forwarding are offline;
and the OpenFlow tunnel disconnection module is configured to disconnect an OpenFlow tunnel established with the AC if all the corresponding user terminals are offline through local forwarding.
8. The OpenFlow tunnel establishment device according to claim 7, wherein the offline determination module is specifically configured to determine, according to an established online user terminal record table, the number of online user terminals corresponding to each BSSID information; the information of the online user terminal corresponding to each BSSID information in the online user terminal record list is added after the user terminal is successfully online; if the sum of the numbers of the online user terminals corresponding to all BSSID information in the online user terminal record list is 0, determining that all user terminals corresponding to local forwarding are offline; otherwise, determining that all the user terminals corresponding to the local forwarding are not offline.
9. An electronic device, comprising: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: steps of implementing the OpenFlow tunnel establishment method of any of claims 1-4.
10. A machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to: steps of implementing the OpenFlow tunnel establishment method of any of claims 1-4.
CN201810231206.3A 2018-03-20 2018-03-20 Tunnel establishment method and device, electronic equipment and readable storage medium Active CN108712782B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810231206.3A CN108712782B (en) 2018-03-20 2018-03-20 Tunnel establishment method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810231206.3A CN108712782B (en) 2018-03-20 2018-03-20 Tunnel establishment method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN108712782A CN108712782A (en) 2018-10-26
CN108712782B true CN108712782B (en) 2020-09-04

Family

ID=63866220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810231206.3A Active CN108712782B (en) 2018-03-20 2018-03-20 Tunnel establishment method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN108712782B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116056123B (en) * 2023-03-24 2023-06-20 新华三技术有限公司 Equipment detection method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281594A (en) * 2011-09-06 2011-12-14 华为技术有限公司 Message forwarding method, wireless access point (AP) and message forwarding system
CN103491005A (en) * 2013-09-06 2014-01-01 福建星网锐捷网络有限公司 Method for controlling transmission of message, access point device and relevant system
CN104349396A (en) * 2013-08-09 2015-02-11 华为技术有限公司 Data packet forwarding method, device and system
CN105101274A (en) * 2014-05-16 2015-11-25 华为技术有限公司 Configuration method and device of message forwarding mode
CN106507414A (en) * 2016-10-12 2017-03-15 杭州迪普科技股份有限公司 Message forwarding method and device
CN107666443A (en) * 2016-07-29 2018-02-06 华为技术有限公司 A kind of message forwarding method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281594A (en) * 2011-09-06 2011-12-14 华为技术有限公司 Message forwarding method, wireless access point (AP) and message forwarding system
CN104349396A (en) * 2013-08-09 2015-02-11 华为技术有限公司 Data packet forwarding method, device and system
CN103491005A (en) * 2013-09-06 2014-01-01 福建星网锐捷网络有限公司 Method for controlling transmission of message, access point device and relevant system
CN105101274A (en) * 2014-05-16 2015-11-25 华为技术有限公司 Configuration method and device of message forwarding mode
CN107666443A (en) * 2016-07-29 2018-02-06 华为技术有限公司 A kind of message forwarding method and device
CN106507414A (en) * 2016-10-12 2017-03-15 杭州迪普科技股份有限公司 Message forwarding method and device

Also Published As

Publication number Publication date
CN108712782A (en) 2018-10-26

Similar Documents

Publication Publication Date Title
US11425604B2 (en) User plane resource management method, user plane network element, and control plane network element
EP3166349A1 (en) Internet access traffic sharing method, device and terminal
CN108667699B (en) Method and device for interconnecting terminal equipment and gateway equipment
CN111542081B (en) Communication switching method and device and Internet of things communication module
CN110912854A (en) Safety protection method, equipment and system
US10448253B2 (en) Wireless terminal
CN107135548B (en) Method and device for updating BSSID and connecting network
CN108882278B (en) Data link monitoring method, device, apparatus and computer readable storage medium
CN115022980B (en) Method and device for randomly accessing terminal to network
US11516180B2 (en) Method and device for installing a node in a home network
CN107948063B (en) Method for establishing aggregation link and access equipment
US10390217B2 (en) Wireless configuration of wireless distribution system (WDS) Wi-Fi range extenders using non-Wi-Fi-wireless communication channels
EP2557846B1 (en) Terminal called processing/testing method and long time evolution system
CN103199990B (en) A kind of method and apparatus of Routing Protocol certification migration
CN108712782B (en) Tunnel establishment method and device, electronic equipment and readable storage medium
CN108900441B (en) Network switching method, first electronic device and readable storage medium
CN108512679B (en) Gateway equipment management method and device
CN108462984A (en) A kind of method and terminal carrying out access network management
RU2693903C1 (en) Method, apparatus and processing system for expanded port
CN108574615B (en) Content transmission method, device and system based on multipath MPTCP
CN107566418B (en) Security management method and access device
CN109286575A (en) Message priority configuration method, device and the network equipment
CN107360574A (en) A kind of terminal equipment managing method, a kind of cloud controller and a kind of WAP
CN114125023A (en) Data connection determining method and device, storage medium and electronic device
TWI776982B (en) Reliable server management method and device supporting wireless network switching

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