CN111865748A - Communication system and communication method - Google Patents
Communication system and communication method Download PDFInfo
- Publication number
- CN111865748A CN111865748A CN202010520768.7A CN202010520768A CN111865748A CN 111865748 A CN111865748 A CN 111865748A CN 202010520768 A CN202010520768 A CN 202010520768A CN 111865748 A CN111865748 A CN 111865748A
- Authority
- CN
- China
- Prior art keywords
- message
- sta
- destination
- address
- exists
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000004891 communication Methods 0.000 title claims abstract description 48
- 238000012545 processing Methods 0.000 claims abstract description 18
- 238000004806 packaging method and process Methods 0.000 claims abstract description 5
- 239000002699 waste material Substances 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 5
- 230000006855 networking Effects 0.000 description 4
- 238000005538 encapsulation Methods 0.000 description 3
- OVGWMUWIRHGGJP-WVDJAODQSA-N (z)-7-[(1s,3r,4r,5s)-3-[(e,3r)-3-hydroxyoct-1-enyl]-6-thiabicyclo[3.1.1]heptan-4-yl]hept-5-enoic acid Chemical compound OC(=O)CCC\C=C/C[C@@H]1[C@@H](/C=C/[C@H](O)CCCCC)C[C@@H]2S[C@H]1C2 OVGWMUWIRHGGJP-WVDJAODQSA-N 0.000 description 1
- 101100161473 Arabidopsis thaliana ABCB25 gene Proteins 0.000 description 1
- 101100310920 Caenorhabditis elegans sra-2 gene Proteins 0.000 description 1
- 101000988961 Escherichia coli Heat-stable enterotoxin A2 Proteins 0.000 description 1
- 101000829425 Homo sapiens Steroid receptor RNA activator 1 Proteins 0.000 description 1
- 101000711846 Homo sapiens Transcription factor SOX-9 Proteins 0.000 description 1
- 101100096893 Mus musculus Sult2a1 gene Proteins 0.000 description 1
- 101150081243 STA1 gene Proteins 0.000 description 1
- 102100023706 Steroid receptor RNA activator 1 Human genes 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/10—Mapping addresses of different types
- H04L61/103—Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application provides a communication system and a communication method, wherein the system comprises an AC, a first AP and a second AP; the first AP is used for receiving a first message which is sent by a source STA and comprises a destination IP address; judging whether an STA identifier corresponding to the destination IP address exists in the first STA list or not; if not, packaging the first message to obtain a second message, and sending the second message to the AC; the AC is used for receiving a second message sent by the first AP and performing decapsulation processing on the second message to obtain a first message; judging whether an STA identifier corresponding to the destination IP address exists in the second STA list or not; if the STA identifier exists, determining a second AP accessed by the target STA corresponding to the STA identifier, and sending a second message to the second AP; the second AP is used for receiving a second message sent by the AC; and de-encapsulating the second message to obtain a first message, and sending the first message to the destination STA.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a communication system and a communication method.
Background
With the large-scale development of wireless networks, when a large number of wireless Access Points (APs) are deployed, high management cost is brought to users by performing management work such as software upgrade, configuration and adjustment of radio frequency parameters and the like on the APs. In order to solve the problem, a Wireless Local Area Network (WLAN) adopts an AC + file AP architecture, that is, an Access Controller (AC) is used to perform centralized control and management on an Access AP. The AP does not need any configuration, the AC stores the configuration information of the AP, and the AC sends the configuration information to the AP. Meanwhile, the AC performs unified management and maintenance on the AP, and a Wireless Access Point (CAPWAP) tunnel is adopted between the AC and the AP to transmit data messages and control messages.
When Stations (STA) in the same Virtual Local Area Network (VLAN) communicate with each other, if the STA (e.g., a terminal) communicates with each other for the first time, the source STA sends an ARP broadcast message to perform detection when it is determined that the destination STA and the source STA are in the same Network segment.
After the AP1 accessed by the source STA receives the ARP packet, if the forwarding mode of the packet is a centralized forwarding mode, the AP1 encapsulates the ARP packet into a CAPWAP packet, and the AP1 sends the CAPWAP packet to the AC. And the AC judges the VLAN to which the CAPWAP message belongs and sends the CAPWAP message to the AP (including the AP1) with the STA online in the VLAN. If the forwarding mode of the message is a local forwarding mode, the AP1 sends an ARP message to all STAs accessed in the VLAN and other APs in the VLAN where the STAs are online. In the foregoing two forwarding manners, only the AP2 to which the destination STA accesses receives the message will respond to the ARP message, and the other APs discard the ARP message.
When the STA of the same VLAN communicates for the first time, the ARP broadcast message sent by the source STA can be sent to the AC and the AP accessed by the non-target STA in the VLAN and is discarded, so that the resources of the AC and the AP accessed by the non-target STA are consumed, and unnecessary network overhead is increased.
Disclosure of Invention
In view of the above, the present application provides a communication system and a communication method, so as to solve the problems of resource waste and unnecessary network overhead of the AC and the AP accessed by the non-destination STA in the prior art.
In a first aspect, the present application provides a communication system, the system including an access controller AC, a first access point AP, and a second AP, the first AP and the second AP accessing the AC;
the first AP is used for receiving a first message sent by a source STA, wherein the first message comprises a destination IP address; judging whether an STA mark corresponding to the destination IP address exists in a first STA list or not; if not, packaging the first message to obtain a second message, and sending the second message to the AC;
the AC is used for receiving the second message sent by the first AP, and performing decapsulation processing on the second message to obtain the first message; judging whether an STA identifier corresponding to the destination IP address exists in a second STA list or not; if the STA identifier exists, determining a second AP accessed by the target STA corresponding to the STA identifier, and sending the second message to the second AP;
The second AP is configured to receive the second packet sent by the AC; and de-encapsulating the second message to obtain the first message, and sending the first message to the destination STA.
In a second aspect, the present application provides a communication method, where the method is applied to a first AP, where the first AP accesses an AC, and the method includes:
receiving a first message sent by a source STA, wherein the first message comprises a destination IP address;
judging whether an STA mark corresponding to the destination IP address exists in a first STA list or not;
if not, packaging the first message to obtain a second message;
sending the second message to the AC, so that the AC performs decapsulation processing on the second message to obtain the first message; judging whether an STA identifier corresponding to the destination IP address exists in a second STA list or not; and if the STA identifier exists, determining a second AP accessed by the target STA corresponding to the STA identifier, and sending the second message to the second AP.
In a third aspect, the present application provides a communication method, where the method is applied to an AC, and a first AP and a second AP access the AC, and the method includes:
Receiving a first message sent by the first AP;
decapsulating the first message to obtain a second message, wherein the second message comprises a destination IP address;
judging whether an STA mark corresponding to the destination IP address exists in a first STA list or not;
if the first message exists, determining a second AP accessed by a target STA corresponding to the STA identification, and sending the first message to the second AP, so that the second AP obtains the second message after decapsulating the first message, and the second AP sends the second message to the target STA.
Therefore, by applying the communication system and the communication method provided by the present application, after receiving a first packet including a destination IP address sent by a source STA, a first AP determines whether an STA identifier corresponding to the destination IP address exists in a first STA list. And if not, the first AP packages the first message into a second message and sends the second message to the AC. And after receiving the second message, the AC judges whether an STA identifier corresponding to the destination IP address exists in the second STA list. If the first message exists, the AC sends a second message to a second AP accessed by the target STA corresponding to the STA identification, so that the second AP obtains the first message from the second message and forwards the first message to the target STA.
Therefore, the message sent by the source STA can be forwarded to the target STA through the accessed first AP, or forwarded to the second AP accessed by the target STA through the accessed first AP and the AC without being forwarded to other APs in the same VLAN, so that the resource waste of the AC and the AP is reduced, and the network overhead is reduced. The problems of resource waste of the AC and the AP accessed by the non-target STA and unnecessary network overhead caused in the prior art are solved.
Drawings
Fig. 1 is a schematic diagram of a communication system networking provided in an embodiment of the present application;
fig. 2 is a flowchart of a communication method according to an embodiment of the present application;
fig. 3 is a flowchart of another communication method provided in an embodiment of the present application;
fig. 4 is a structural diagram of a communication device according to an embodiment of the present application;
fig. 5 is a structural diagram of a communication device according to an embodiment of the present application;
fig. 6 is a hardware structure diagram of a network device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the corresponding listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The communication system provided in the embodiments of the present application is explained in detail below. Referring to fig. 1, fig. 1 is a schematic diagram illustrating a networking of a communication system according to an embodiment of the present application. Included in the networking is an AC, a PoE switch, a plurality of APs (AP1, AP2, … … APn), and a plurality of STAs (STA1, STA2, … … STAn). A plurality of APs are accessed to the AC through the PoE switch and are uniformly configured, managed and maintained by the AC. And a CAPWAP tunnel is adopted between the AP and the AC to transmit data messages and control messages. The AP is in the same VLAN as the STA. Multiple STAs may choose to access the AP according to the actual scenario. For example, SRA1 accesses AP1, SRA2 accesses AP2 … … SRAn accesses APn.
The procedure of performing communication between STAs under the above-described networking for the first time is described in detail below.
Specifically, the source STA prepares to communicate with the destination STA. The source STA accesses the first AP, and the first AP accesses the AC.
After obtaining the destination IP address of the destination STA, the source STA judges whether the destination IP address is in the same network segment with the source IP address of the source STA. And if the destination IP address and the source IP address are in the same network segment, the source STA sends a first message to the first AP. The first message may be specifically an ARP broadcast message. And if the destination IP address and the source IP address are not in the same network segment, the source STA sends a first message to the access gateway, and the access gateway processes the first message.
After receiving a first message sent by a source STA, a first AP acquires a destination IP address from the first message. The first AP judges whether an STA identification corresponding to the destination IP address exists in the first STA list or not. And if the STA identification corresponding to the destination IP address does not exist in the first STA list, the first AP packages the first message to obtain a second message, and sends the second message to the AC. If the STA identification corresponding to the destination IP address exists in the first STA list, the first AP determines the destination STA corresponding to the STA identification and sends a first message to the destination STA.
It should be noted that the first STA list stores information of all STAs online at the first AP, where the information of the STAs includes, by way of example and not limitation, VLAN, IP address, MAC address, BSSID, BSS port, and the like. The first AP packages the first message in a CAPWAP mode, and the second message can be a CAPWAP message specifically.
After receiving the second message sent by the first AP, the AC decapsulates the second message to obtain the first message. And the AC acquires the destination IP address from the first message. The AC judges whether an STA identification corresponding to the destination IP address exists in the second STA list.
If the STA identification corresponding to the destination IP address exists in the second STA list, the AC determines a second AP accessed by the destination STA corresponding to the STA identification through the second STA list, and encapsulates the first message again to obtain a second message. And the AC sends a second message to the second AP.
If the STA identification corresponding to the destination IP address does not exist in the second STA list, the AC encapsulates the first message again to obtain a second message. And the AC broadcasts a second message through all interfaces belonging to the same VLAN with the destination STA corresponding to the destination IP.
It should be noted that stored in the second STA list is STA information that accesses all the APs of the second STA and comes online at each AP, where the STA information includes, by way of example and not limitation, a VLAN, an IP address, a MAC address, a BSSID, a BSS port, and the like. And the second AP packages the first message by CAPWAP, and the second message can be a CAPWAP message.
And after receiving a second message sent by the AC, the second AP carries out decapsulation processing on the second message to obtain a first message. And the second AP acquires a destination IP address from the first message and sends the first message to the destination STA according to the destination IP address.
Therefore, by applying the communication system provided by the present application, after receiving the first packet including the destination IP address sent by the source STA, the first AP determines whether the STA identifier corresponding to the destination IP address exists in the first STA list. And if not, the first AP packages the first message into a second message and sends the second message to the AC. And after receiving the second message, the AC judges whether an STA identifier corresponding to the destination IP address exists in the second STA list. If the first message exists, the AC sends a second message to a second AP accessed by the target STA corresponding to the STA identification, so that the second AP obtains the first message from the second message and forwards the first message to the target STA.
Therefore, the message sent by the source STA can be forwarded to the target STA through the accessed first AP, or forwarded to the second AP accessed by the target STA through the accessed first AP and the AC without being forwarded to other APs in the same VLAN, so that the resource waste of the AC and the AP is reduced, and the network overhead is reduced. The problems of resource waste of the AC and the AP accessed by the non-target STA and unnecessary network overhead caused in the prior art are solved.
The following describes the communication method provided in the embodiments of the present application in detail. Referring to fig. 2, fig. 2 is a flowchart illustrating a communication method according to an embodiment of the present application. The method is applied to the first AP. The communication method provided by the embodiment of the application can comprise the following steps.
Specifically, the source STA prepares to communicate with the destination STA. The source STA accesses the first AP, the target STA accesses the second AP, and the first AP and the second AP access the AC together.
After obtaining the destination IP address of the destination STA, the source STA judges whether the destination IP address is in the same network segment with the source IP address of the source STA. And if the destination IP address and the source IP address are in the same network segment, the source STA sends a first message to the first AP. The first message may be specifically an ARP broadcast message. And if the destination IP address and the source IP address are not in the same network segment, the source STA sends a first message to the access gateway, and the access gateway processes the first message.
After receiving a first message sent by a source STA, a first AP acquires a destination IP address from the first message.
Specifically, the first AP determines whether an STA id corresponding to the destination IP address exists in the first STA list. If the STA id corresponding to the destination IP address does not exist in the first STA list, step 230 is executed. If the STA identification corresponding to the destination IP address exists in the first STA list, the first AP determines the destination STA corresponding to the STA identification and sends a first message to the destination STA.
It should be noted that the first STA list stores information of all STAs online at the first AP, where the information of the STAs includes, by way of example and not limitation, VLAN, IP address, MAC address, BSSID, BSS port, and the like.
And step 230, if the first message does not exist, performing encapsulation processing on the first message to obtain a second message.
Specifically, according to the judgment in step 220, if the STA identifier corresponding to the destination IP address does not exist in the first STA list, the first AP performs encapsulation processing on the first packet to obtain the second packet.
The first AP packages the first message in a CAPWAP mode, and the second message can be a CAPWAP message specifically.
Specifically, after obtaining the second message, the first AP sends the second message to the AC. After receiving the second message sent by the first AP, the AC decapsulates the second message to obtain the first message. And the AC acquires the destination IP address from the first message. The AC judges whether an STA identification corresponding to the destination IP address exists in the second STA list.
If the STA identification corresponding to the destination IP address exists in the second STA list, the AC determines a second AP accessed by the destination STA corresponding to the STA identification through the second STA list, and encapsulates the first message again to obtain a second message. And the AC sends a second message to the second AP.
If the STA identification corresponding to the destination IP address does not exist in the second STA list, the AC encapsulates the first message again to obtain a second message. And the AC broadcasts a second message through all interfaces belonging to the same VLAN with the destination STA corresponding to the destination IP.
It should be noted that stored in the second STA list is STA information that accesses all the APs of the second STA and comes online at each AP, where the STA information includes, by way of example and not limitation, a VLAN, an IP address, a MAC address, a BSSID, a BSS port, and the like. And the second AP packages the first message by CAPWAP, and the second message can be a CAPWAP message.
And after receiving a second message sent by the AC, the second AP carries out decapsulation processing on the second message to obtain a first message. And the second AP acquires a destination IP address from the first message and sends the first message to the destination STA according to the destination IP address.
Therefore, by applying the communication method provided by the embodiment of the present application, after receiving the first packet including the destination IP address sent by the source STA, the first AP determines whether the STA identifier corresponding to the destination IP address exists in the first STA list. And if not, the first AP packages the first message into a second message and sends the second message to the AC. And after receiving the second message, the AC judges whether an STA identifier corresponding to the destination IP address exists in the second STA list. If the first message exists, the AC sends a second message to a second AP accessed by the target STA corresponding to the STA identification, so that the second AP obtains the first message from the second message and forwards the first message to the target STA.
Therefore, the message sent by the source STA can be forwarded to the target STA through the accessed first AP, or forwarded to the second AP accessed by the target STA through the accessed first AP and the AC without being forwarded to other APs in the same VLAN, so that the resource waste of the AC and the AP is reduced, and the network overhead is reduced. The problems of resource waste of the AC and the AP accessed by the non-target STA and unnecessary network overhead caused in the prior art are solved.
Optionally, in this embodiment of the application, if the first AP is an AP connected to the destination STA, at this time, the first AP receives a third packet sent by the AC, and decapsulates the third packet to obtain a fourth packet. And the first AP acquires the destination IP address from the fourth message. And according to the destination IP address, the first AP sends a fourth message to a destination STA corresponding to the destination IP address.
That is, the first AP performs the same procedure as the second AP as an AP connected to the destination STA, and the description is not repeated again.
The following describes the communication method provided in the embodiments of the present application in detail. Referring to fig. 3, fig. 3 is a flowchart illustrating another communication method according to an embodiment of the present application. The method is applied to AC. The communication method provided by the embodiment of the application can comprise the following steps.
Specifically, after obtaining the destination IP address of the destination STA, the source STA determines whether the destination IP address is in the same network segment as the source IP address of the source STA. If the destination IP address and the source IP address are in the same network segment, the source STA sends a second packet (referred to as a second packet in this embodiment) to the first AP. The second message may be specifically an ARP broadcast message. And if the destination IP address and the source IP address are not in the same network segment, the source STA sends a second message to the access gateway, and the access gateway processes the second message.
And after receiving a second message sent by the source STA, the first AP acquires the destination IP address from the second message. The first AP judges whether an STA identification corresponding to the destination IP address exists in the first STA list or not.
And if the STA identification corresponding to the destination IP address does not exist in the first STA list, the first AP packages the second message to obtain a first message, and sends the first message to the AC.
And if the STA identification corresponding to the destination IP address exists in the first STA list, the first AP determines the destination STA corresponding to the STA identification and sends a second message to the destination STA.
It should be noted that the first STA list stores information of all STAs online at the first AP, where the information of the STAs includes, by way of example and not limitation, VLAN, IP address, MAC address, BSSID, BSS port, and the like. And the first AP packages the second message by CAPWAP, and the first message can be a CAPWAP message.
The AC receives a first message sent by the first AP.
And 320, performing decapsulation processing on the first message to obtain a second message, wherein the second message comprises a destination IP address.
Specifically, after receiving a first packet sent by a first AP, the AC decapsulates the first packet to obtain a second packet. The second message includes a destination IP address.
Specifically, the AC acquires the destination IP address from the second packet. The AC judges whether an STA identification corresponding to the destination IP address exists in the second STA list. If the STA id corresponding to the destination IP address exists in the second STA list, step 340 is executed.
If the STA identification corresponding to the destination IP address does not exist in the second STA list, the AC encapsulates the second message again to obtain the first message. And the AC broadcasts the first message through all interfaces belonging to the same VLAN with the destination STA corresponding to the destination IP.
It should be noted that stored in the second STA list is STA information that accesses all the APs of the second STA and comes online at each AP, where the STA information includes, by way of example and not limitation, a VLAN, an IP address, a MAC address, a BSSID, a BSS port, and the like. And the second AP packages the first message by CAPWAP, and the second message can be a CAPWAP message.
Specifically, according to the judgment in step 330, if the STA identifier corresponding to the destination IP address exists in the second STA list, the AC determines, through the second STA list, the second AP to which the destination STA corresponding to the STA identifier is accessed, and encapsulates the second packet again to obtain the first packet.
And the AC sends the first message to the second AP.
And after receiving a second message sent by the AC, the second AP carries out decapsulation processing on the first message to obtain the second message. And the second AP acquires the destination IP address from the second message and sends the second message to the destination STA according to the destination IP address.
Based on the same inventive concept, the embodiment of the application also provides a communication device corresponding to the communication method. Referring to fig. 4, fig. 4 is a structural diagram of a communication apparatus according to an embodiment of the present application, where the apparatus is applied to a first AP, and the first AP accesses an AC, and the apparatus includes:
a receiving unit 410, configured to receive a first packet sent by a source STA, where the first packet includes a destination IP address;
a determining unit 420, configured to determine whether an STA identifier corresponding to the destination IP address exists in the first STA list;
an encapsulating unit 430, configured to perform encapsulation processing on the first packet if the first packet does not exist, to obtain a second packet;
A sending unit 440, configured to send the second packet to the AC, so that the AC performs decapsulation processing on the second packet to obtain the first packet; judging whether an STA identifier corresponding to the destination IP address exists in a second STA list or not; and if the STA identifier exists, determining a second AP accessed by the target STA corresponding to the STA identifier, and sending the second message to the second AP.
Optionally, the sending unit 440 is further configured to, if the first packet exists, determine a destination STA corresponding to the STA identifier, and send the first packet to the destination STA.
Optionally, the receiving unit 410 is further configured to receive a third packet sent by the AC, and perform decapsulation processing on the third packet to obtain a fourth packet, where the fourth packet includes the destination IP address;
the sending unit 440 is further configured to send the fourth packet to the destination STA corresponding to the destination IP address according to the destination IP address.
Based on the same inventive concept, the embodiment of the application also provides a communication device corresponding to the communication method. Referring to fig. 5, fig. 5 is a structural diagram of a communication device according to an embodiment of the present application, where the device is applied to an AC, and a first AP and a second AP access the AC, and the device includes:
A receiving unit 510, configured to receive a first packet sent by the first AP;
an encapsulating unit 520, configured to perform decapsulation processing on the first packet to obtain a second packet, where the second packet includes a destination IP address;
a determining unit 530, configured to determine whether an STA identifier corresponding to the destination IP address exists in the first STA list;
a sending unit 540, configured to determine, if the STA identifier exists, the second AP to which the destination STA corresponding to the STA identifier is accessed, and send the first packet to the second AP, so that the second AP obtains the second packet after decapsulating the first packet, and the second AP sends the second packet to the destination STA.
Optionally, the sending unit 540 is further configured to, if the first packet does not exist, broadcast the first packet through all interfaces of which the destination STA corresponding to the destination IP address belongs to the same VLAN.
Therefore, by applying the communication device provided by the present application, after receiving the first packet including the destination IP address sent by the source STA, the first AP determines whether the STA identifier corresponding to the destination IP address exists in the first STA list. And if not, the first AP packages the first message into a second message and sends the second message to the AC. And after receiving the second message, the AC judges whether an STA identifier corresponding to the destination IP address exists in the second STA list. If the first message exists, the AC sends a second message to a second AP accessed by the target STA corresponding to the STA identification, so that the second AP obtains the first message from the second message and forwards the first message to the target STA.
Therefore, the message sent by the source STA can be forwarded to the target STA through the accessed first AP, or forwarded to the second AP accessed by the target STA through the accessed first AP and the AC without being forwarded to other APs in the same VLAN, so that the resource waste of the AC and the AP is reduced, and the network overhead is reduced. The problems of resource waste of the AC and the AP accessed by the non-target STA and unnecessary network overhead caused in the prior art are solved.
Based on the same inventive concept, the embodiment of the present application further provides a network device, as shown in fig. 6, including a processor 610, a transceiver 620, and a machine-readable storage medium 630, where the machine-readable storage medium 630 stores machine-executable instructions capable of being executed by the processor 610, and the processor 610 is caused by the machine-executable instructions to perform the communication system and the communication method provided by the embodiment of the present application. The communication apparatus shown in fig. 4 and 5 can be implemented by using the hardware structure of the network device shown in fig. 6.
The computer-readable storage medium 630 may include a Random Access Memory (RAM) or a Non-volatile Memory (NVM), such as at least one disk Memory. Optionally, the computer-readable storage medium 630 may also be at least one memory device located remotely from the processor 610.
The Processor 610 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In the embodiment of the present application, the processor 610 reads the machine executable instructions stored in the machine readable storage medium 630, and the machine executable instructions cause the processor 610 itself and the transceiver 620 to be able to execute the communication system and the communication method described in the foregoing embodiments of the present application.
Additionally, embodiments of the present application provide a machine-readable storage medium 630, where the machine-readable storage medium 630 stores machine-executable instructions, and when invoked and executed by the processor 610, the machine-executable instructions cause the processor 610 itself and the invoking transceiver 620 to perform the flow control methods described in the embodiments of the present application.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
As for the embodiments of the communication apparatus and the machine-readable storage medium, since the contents of the related methods are substantially similar to those of the foregoing embodiments of the methods, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the embodiments of the methods.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.
Claims (9)
1. A communication system, the system comprising an access controller, AC, a first access point, AP, and a second AP, the first AP and the second AP accessing the AC;
the first AP is used for receiving a first message sent by a source STA, wherein the first message comprises a destination IP address; judging whether an STA mark corresponding to the destination IP address exists in a first STA list or not; if not, packaging the first message to obtain a second message, and sending the second message to the AC;
the AC is used for receiving the second message sent by the first AP, and performing decapsulation processing on the second message to obtain the first message; judging whether an STA identifier corresponding to the destination IP address exists in a second STA list or not; if the STA identifier exists, determining a second AP accessed by the target STA corresponding to the STA identifier, and sending the second message to the second AP;
the second AP is configured to receive the second packet sent by the AC; and de-encapsulating the second message to obtain the first message, and sending the first message to the destination STA.
2. The system according to claim 1, wherein the first AP is further configured to determine, if the first AP exists, a destination STA corresponding to the STA identifier, and send the first packet to the destination STA.
3. The system of claim 1, wherein the AC is further configured to, if not, broadcast the second packet through all interfaces belonging to the same VLAN as a destination STA corresponding to the destination IP.
4. The system of claim 1 wherein the source STA is further configured to determine whether the destination IP address is in a same network segment as a source IP address of the source STA;
and if so, sending the first message to the first AP.
5. A communication method is applied to a first AP, wherein the first AP accesses an AC, and the method comprises the following steps:
receiving a first message sent by a source STA, wherein the first message comprises a destination IP address;
judging whether an STA mark corresponding to the destination IP address exists in a first STA list or not;
if not, packaging the first message to obtain a second message;
sending the second message to the AC, so that the AC performs decapsulation processing on the second message to obtain the first message; judging whether an STA identifier corresponding to the destination IP address exists in a second STA list or not; and if the STA identifier exists, determining a second AP accessed by the target STA corresponding to the STA identifier, and sending the second message to the second AP.
6. The method of claim 5, further comprising:
and if so, determining a destination STA corresponding to the STA identification, and sending the first message to the destination STA.
7. The method of claim 5, further comprising:
receiving a third message sent by the AC, and performing decapsulation processing on the third message to obtain a fourth message, wherein the fourth message comprises the destination IP address;
and sending the fourth message to a destination STA corresponding to the destination IP address according to the destination IP address.
8. A communication method is applied to an AC (access controller), wherein a first AP and a second AP access the AC, and the method comprises the following steps:
receiving a first message sent by the first AP;
decapsulating the first message to obtain a second message, wherein the second message comprises a destination IP address;
judging whether an STA mark corresponding to the destination IP address exists in a first STA list or not;
if the first message exists, determining a second AP accessed by a target STA corresponding to the STA identification, and sending the first message to the second AP, so that the second AP obtains the second message after decapsulating the first message, and the second AP sends the second message to the target STA.
9. The method of claim 8, further comprising:
and if the first message does not exist, broadcasting the first message through all interfaces of which the destination STA corresponding to the destination IP address belongs to the same VLAN.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010520768.7A CN111865748B (en) | 2020-06-10 | 2020-06-10 | Communication system and communication method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010520768.7A CN111865748B (en) | 2020-06-10 | 2020-06-10 | Communication system and communication method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111865748A true CN111865748A (en) | 2020-10-30 |
| CN111865748B CN111865748B (en) | 2023-10-20 |
Family
ID=72987651
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010520768.7A Active CN111865748B (en) | 2020-06-10 | 2020-06-10 | Communication system and communication method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111865748B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114500412A (en) * | 2022-01-26 | 2022-05-13 | 山东核电有限公司 | Method and system for processing mirror image flow data |
Citations (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101127707A (en) * | 2007-09-21 | 2008-02-20 | 杭州华三通信技术有限公司 | Data forwarding method and access point device |
| CN101141493A (en) * | 2007-10-11 | 2008-03-12 | 杭州华三通信技术有限公司 | Address analysis method and access point of wireless LAN |
| WO2010097004A1 (en) * | 2009-02-27 | 2010-09-02 | 西安西电捷通无线网络通信有限公司 | Method for realizing integration of wapi and capwap by separated mac mode |
| CN102595333A (en) * | 2012-02-06 | 2012-07-18 | 福建星网锐捷网络有限公司 | Message transmitting method and wireless access equipment |
| CN102790722A (en) * | 2012-08-28 | 2012-11-21 | 北京傲天动联技术有限公司 | DHCP (dynamic host configuration protocol) message forwarding method and wireless access control equipment |
| CN102946358A (en) * | 2012-11-23 | 2013-02-27 | 武汉虹信通信技术有限责任公司 | Quick message three-layer transmitting method for automatic control (AC) device in wireless local area network (WLAN) network |
| CN103491005A (en) * | 2013-09-06 | 2014-01-01 | 福建星网锐捷网络有限公司 | Method for controlling transmission of message, access point device and relevant system |
| CN103532850A (en) * | 2013-09-29 | 2014-01-22 | 福建星网锐捷网络有限公司 | Uplink message forwarding method, device and AP (access point) equipment |
| WO2014194492A1 (en) * | 2013-06-05 | 2014-12-11 | 华为技术有限公司 | Access point selection method and device |
| CN104363158A (en) * | 2014-11-17 | 2015-02-18 | 京信通信系统(中国)有限公司 | Method, device and system for transmitting data by CAPWAP tunnel |
| CN105940722A (en) * | 2014-08-27 | 2016-09-14 | 华为技术有限公司 | A kind of AC, STA, AP and control method |
| CN106879005A (en) * | 2017-01-17 | 2017-06-20 | 新华三技术有限公司 | The collocation method and device of a kind of AP |
| CN107251636A (en) * | 2015-02-24 | 2017-10-13 | 日本电信电话株式会社 | Wireless communication system, wireless communication method, wireless LAN base station device, and wireless LAN terminal device |
| CN107548143A (en) * | 2017-08-29 | 2018-01-05 | 新华三技术有限公司 | Message sending and receiving method, device, radio reception device and terminal device |
| CN107612991A (en) * | 2017-09-14 | 2018-01-19 | 上海斐讯数据通信技术有限公司 | The method and system of link keep-alive between a kind of AP and AC, AC and AP |
-
2020
- 2020-06-10 CN CN202010520768.7A patent/CN111865748B/en active Active
Patent Citations (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101127707A (en) * | 2007-09-21 | 2008-02-20 | 杭州华三通信技术有限公司 | Data forwarding method and access point device |
| CN101141493A (en) * | 2007-10-11 | 2008-03-12 | 杭州华三通信技术有限公司 | Address analysis method and access point of wireless LAN |
| WO2010097004A1 (en) * | 2009-02-27 | 2010-09-02 | 西安西电捷通无线网络通信有限公司 | Method for realizing integration of wapi and capwap by separated mac mode |
| CN102595333A (en) * | 2012-02-06 | 2012-07-18 | 福建星网锐捷网络有限公司 | Message transmitting method and wireless access equipment |
| CN102790722A (en) * | 2012-08-28 | 2012-11-21 | 北京傲天动联技术有限公司 | DHCP (dynamic host configuration protocol) message forwarding method and wireless access control equipment |
| CN102946358A (en) * | 2012-11-23 | 2013-02-27 | 武汉虹信通信技术有限责任公司 | Quick message three-layer transmitting method for automatic control (AC) device in wireless local area network (WLAN) network |
| WO2014194492A1 (en) * | 2013-06-05 | 2014-12-11 | 华为技术有限公司 | Access point selection method and device |
| CN103491005A (en) * | 2013-09-06 | 2014-01-01 | 福建星网锐捷网络有限公司 | Method for controlling transmission of message, access point device and relevant system |
| CN103532850A (en) * | 2013-09-29 | 2014-01-22 | 福建星网锐捷网络有限公司 | Uplink message forwarding method, device and AP (access point) equipment |
| CN105940722A (en) * | 2014-08-27 | 2016-09-14 | 华为技术有限公司 | A kind of AC, STA, AP and control method |
| CN104363158A (en) * | 2014-11-17 | 2015-02-18 | 京信通信系统(中国)有限公司 | Method, device and system for transmitting data by CAPWAP tunnel |
| CN107251636A (en) * | 2015-02-24 | 2017-10-13 | 日本电信电话株式会社 | Wireless communication system, wireless communication method, wireless LAN base station device, and wireless LAN terminal device |
| CN106879005A (en) * | 2017-01-17 | 2017-06-20 | 新华三技术有限公司 | The collocation method and device of a kind of AP |
| CN107548143A (en) * | 2017-08-29 | 2018-01-05 | 新华三技术有限公司 | Message sending and receiving method, device, radio reception device and terminal device |
| CN107612991A (en) * | 2017-09-14 | 2018-01-19 | 上海斐讯数据通信技术有限公司 | The method and system of link keep-alive between a kind of AP and AC, AC and AP |
Non-Patent Citations (3)
| Title |
|---|
| LIANFEN HUANG: "A method to simulate a large number of AP upline" * |
| 岳超;: "基于瘦AP+AC模式的组网技术研究" * |
| 高波;吴非;林睿;沈成彬;: "热点WLAN AP设备能效及指标评估方法的研究" * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114500412A (en) * | 2022-01-26 | 2022-05-13 | 山东核电有限公司 | Method and system for processing mirror image flow data |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111865748B (en) | 2023-10-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11838120B2 (en) | Apparatus, method and computer program for user plane function control by a set of controllers | |
| US10673494B2 (en) | Grouping management method, apparatus and system in coordinated multiple points | |
| CA2973048C (en) | Bridged local area network communication between a device and a cellular access network node | |
| US9119121B2 (en) | Systems and methods for WLAN roaming | |
| US9438555B2 (en) | Communicating with a distribution system via an uplink access point | |
| CN120897187A (en) | Multi-band communication, interface parameter update methods, AP devices and ML devices | |
| CN101764751A (en) | Method, system and equipment for forwarding roaming messages for wireless user terminal travelling across VLAN | |
| US10939485B2 (en) | Mechanism for realizing LWA/LWIP aggregator function | |
| EP4304155B1 (en) | Bluetooth message transmission method and apparatus, and bluetooth network | |
| TWI820874B (en) | Transmission method and apparatus applied to channel direct link establishment | |
| WO2014022216A1 (en) | System and method for universal wireless distribution | |
| JP2025526010A (en) | Method, module, and storage medium for changing communication links for multi-link devices on a mobile wireless local area network | |
| WO2021179111A1 (en) | Channel switching method, apparatus, device, and readable storage medium | |
| CN104754521B (en) | A kind of message forwarding method, wireless access point, wireless controller and system | |
| CN111865748B (en) | Communication system and communication method | |
| CN103973570A (en) | Message transmission method, AP (access point) and message transmission system | |
| CN111277959B (en) | Message forwarding method and device | |
| US20250324475A1 (en) | Media access control address randomization support for multi-link devices | |
| US20240146660A1 (en) | Method and device for managing messages broadcast in a local area network | |
| US20250330422A1 (en) | Systems and methods for packet management | |
| CN106982424A (en) | A kind of method and its system of the automatic discovery associate device locked based on cloud | |
| WO2025255545A1 (en) | Media access control address randomization support for multi-link devices | |
| CN107484160A (en) | Data aggregation method and device | |
| CN115695084A (en) | Message processing method, device and communication system | |
| Chaves-Dieguez et al. | Improving effective contact duration in vehicular delay-tolerant networks |
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 |