WO2020011135A1 - Packet transmission - Google Patents

Packet transmission Download PDF

Info

Publication number
WO2020011135A1
WO2020011135A1 PCT/CN2019/095137 CN2019095137W WO2020011135A1 WO 2020011135 A1 WO2020011135 A1 WO 2020011135A1 CN 2019095137 W CN2019095137 W CN 2019095137W WO 2020011135 A1 WO2020011135 A1 WO 2020011135A1
Authority
WO
WIPO (PCT)
Prior art keywords
arp request
request message
target
information
feature value
Prior art date
Application number
PCT/CN2019/095137
Other languages
French (fr)
Chinese (zh)
Inventor
单丽娜
Original Assignee
新华三技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 新华三技术有限公司 filed Critical 新华三技术有限公司
Publication of WO2020011135A1 publication Critical patent/WO2020011135A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • 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/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • H04W28/065Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Definitions

  • an access controller (English: Access Controller, AC for short) and an access point (English: Access Point, AP for short) are usually set in a wireless network.
  • the AC will establish and maintain at least one virtual basic service for the AP.
  • Set (English: Basic Service Set, referred to as BSS) interface.
  • the virtual BSS interface may belong to the same virtual local area network (English: Virtual Local Area Network, abbreviated as VLAN), or may belong to different VLANs.
  • the AC After the AC receives the first Address Resolution Protocol (ARP) request message sent by the sender in a certain VLAN, for each virtual BSS interface in the VLAN, the AC responds to the first The ARP request message is copied, and then the first ARP request is encapsulated for the virtual BSS interface to obtain a second ARP request message, and then the second ARP request message is sent to the target AP to which the virtual BSS interface belongs.
  • ARP Address Resolution Protocol
  • an AC supporting 2048 APs usually needs to maintain more than 60,000 virtual BSS interfaces. If these virtual BSS interfaces belong to the same VLAN, when the AC receives ARP request packets in this VLAN, the AC needs to apply More than 60,000 copies of the ARP request message are then encapsulated and then forwarded to each virtual BSS interface.
  • FIG. 1 is an example diagram of a network system provided by an embodiment of the present application.
  • FIG. 2 is a flowchart of a message transmission method according to an embodiment of the present application.
  • FIG. 3 is a flowchart of a method for modifying a second ARP request message according to an embodiment of the present application
  • FIG. 4 is a schematic structural diagram of a message transmission apparatus according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a message transmission apparatus according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a message transmission apparatus according to an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of an AC according to an embodiment of the present application.
  • the AC After the AC receives the first ARP request packet sent by the sender in a VLAN, the AC copies the first ARP request packet for each virtual BSS interface in the VLAN. Then encapsulate the first ARP request for the virtual BSS interface to obtain a second ARP request message, and then send the second ARP request message to the target AP to which the virtual BSS interface belongs.
  • the AC needs to consume a large amount of resources to process the replication and encapsulation of ARP request packets, resulting in low processing efficiency of the AC.
  • the embodiment of the present application provides a message transmission method, and the method can be applied to a scenario where an AC broadcasts an ARP request message.
  • FIG. 1 this is an example diagram of a network system provided in an embodiment of the present application.
  • the system includes: an AC, an access switch, AP1, AP2, terminal 1, terminal 2, and terminal 3.
  • the AC is connected to AP1 and AP2 through the access switch, and the service set identifiers (English: Service Set Identifier, SSID) provided by AP1 and AP2 are SSID1 and SSID2 respectively, and the AC is established by SSID1 of AP1 and SSID2 of AP2. It also maintains virtual BSS interface 1 and virtual BSS interface 2.
  • SSID Service Set Identifier
  • Terminals 1 and 2 access the network through AP1 and AP2, respectively, and terminal 3 accesses the network through the access switch.
  • the virtual BSS interface 1, the virtual BSS interface 2, the interface of the access switch connected to terminal 3, and the interface of the AC connected to the access switch belong to VLAN 1.
  • An embodiment of the present application provides a method for transmitting a message, and the method is applied to an AC.
  • the AC may determine the target virtual BSS interface corresponding to the VLAN to which the first ARP request message belongs and the target AP to which the target virtual BSS interface belongs according to the received first ARP request message, and then, according to the first ARP request message,
  • the first wireless payload and the pre-stored encapsulation information directly modify the pre-stored second ARP request message, eliminating the need to duplicate the first ARP request message, which improves the processing efficiency of the AC.
  • the specific processing flow is as follows:
  • Step 201 Receive a first ARP request message to be broadcast.
  • the first ARP request message carries a first wireless payload (English: Wireless Payload).
  • the terminal when a terminal needs to obtain the MAC address corresponding to the first terminal according to the Internet Protocol (English: Internet, Protocol, IP for short) address of another terminal (which may be referred to as the first terminal), the terminal may send an ARP request message.
  • the first wireless payload may include a sender IP address, a sender MAC address, and a receiver (ie, the first terminal) IP address.
  • the terminal when the terminal obtains its own IP address through Dynamic Host Configuration Protocol (English: Dynamic Host Configuration Protocol, DHCP), in order to prevent the acquired IP address from conflicting with the IP address of other terminals, the terminal can send an ARP request. Message.
  • Dynamic Host Configuration Protocol English: Dynamic Host Configuration Protocol, DHCP
  • the terminal 3 may query the MAC address of the terminal 2 in a locally pre-stored ARP table according to the IP address of the terminal 2. If the MAC address of terminal 2 is not stored in the ARP table, terminal 3 may send a first ARP request message to the access switch. For example, in the first wireless payload carried in the first ARP request message sent by the terminal 3, the sending end IP address is the IP address of the terminal 3, the sending end MAC address is the MAC address of the terminal 3, and the receiving end IP address Is the IP address of terminal 2.
  • the access switch may add VLAN information to the first ARP request message according to a preset VLAN policy. Subsequently, the access switch may send the first ARP request packet to the AC according to the VLAN information.
  • the AC may receive a first ARP request message sent by the terminal through the access switch, where the first ARP request message carries the first wireless payload and VLAN information.
  • the first ARP request message sent by the terminal may also carry a protocol header, which includes an Ethernet header, an IP header, and user data.
  • Report protocol English: UserDatagramProtocol, UDP for short
  • control and configuration protocol English: Control and Wireless Access Points Protocol, CAPWAP
  • the access switch queries the local pre-stored forwarding table according to the destination MAC address in the Ethernet header, and sends the first ARP request message to the AC through the interface connected to the AC.
  • Step 202 Determine a target virtual BSS interface corresponding to the VLAN to which the first ARP request message belongs, and a target AP to which the target virtual BSS interface belongs.
  • the AC may store the correspondence between the AP, the virtual BSS interface, and the VLAN in advance. After receiving the first ARP request message, the AC can analyze the first ARP request message to obtain the VLAN information carried in the first ARP request message. Then, the AC may query the target virtual BSS interface corresponding to the VLAN and the AP corresponding to the target virtual BSS interface (that is, the target AP) according to the VLAN information.
  • virtual BSS interface 1 and virtual BSS interface 3 both belong to AP1, and virtual BSS interface 1 belongs to VLAN 1, virtual BSS interface 3 belongs to VLAN 2, virtual BSS interface 2 and virtual BSS interface 4 belong to AP2, and Virtual BSS interface 2 belongs to VLAN1, virtual BSS interface 4 belongs to VLAN2, and the VLAN information carried in the first ARP request message is VLAN1.
  • the AC determines the target virtual BSS interface as virtual BSS interface 1 and virtual BSS interface 2 and AP1 and AP2 as target APs according to VLAN 1 carried in the first ARP request message.
  • Step 203 Modify the pre-stored second ARP request message according to the first wireless payload of the first ARP request message and the pre-stored encapsulation information.
  • the encapsulation information includes radio frequency information of the target virtual BSS interface and next hop address information corresponding to the target AP.
  • the AC can generate a forwarding table based on the information of the AP.
  • the forwarding table includes several forwarding entries, and each forwarding entry includes an index value, a destination address, and a next-hop VLAN. , Next hop MAC address and characteristic value.
  • the characteristic value is generated according to the forwarding information corresponding to the AP in the forwarding table.
  • each feature value in the forwarding table can uniquely identify the forwarding information corresponding to an AP.
  • the characteristic value is also updated accordingly.
  • the characteristic value may be a devil number or other character string, which is not limited in this application.
  • the characteristic value may be randomly assigned by the AC, or may be calculated by the AC according to a preset characteristic value algorithm (such as a hash algorithm) and forwarding information.
  • the index value is used to uniquely identify a forwarding entry; the destination address is the IP address of the AP; the next-hop VLAN and next-hop MAC address are the next-hop VLAN and next-hop MAC corresponding to the AP.
  • the AC may allocate a buffer space for the AP, and the buffer space may include a preset number of data blocks, where each data block may store a second ARP request message.
  • the number of data blocks (that is, the preset number) is greater than or equal to the number of virtual BSS interfaces corresponding to the AP.
  • the second ARP request packet is an ARP packet obtained by the AC, including a protocol header and a wireless payload.
  • the protocol header includes an Ethernet header, an IP header, a UDP header, and a CAPWAP header.
  • the encapsulation process of the second ARP request message may be as follows.
  • the AC may generate a second ARP request message according to the address information of the device, the address information of each AP, and the next hop address information of each AP in the current forwarding table.
  • the address information may include an IP address, a MAC address, a UDP port number, and the like, and the next hop address information may include a next hop VLAN, a next hop MAC address, and next hop exit information.
  • the AC can set the source MAC address in the Ethernet header to the MAC address of the AC, the destination MAC address to the next hop MAC address (that is, MAC1), and the VLAN to the next hop VLAN (that is, VLAN1). ; Set the source IP address in the IP header to the IP address of the AC, the destination IP to the IP address of AP1, the source port number in the UDP header to the UDP port number of the AC, and the destination port number to the UDP port of AP1 number.
  • the AC may also create the AP information table, and the AP information table is a table for storing AP information of each AP.
  • the AC may store the characteristic value and index value of the AP in the forwarding table into the AP information table, and set the characteristic value in the data block corresponding to the AP as the characteristic value of the AP in the forwarding table.
  • the characteristic value is generated according to the forwarding information corresponding to the AP.
  • each feature value in the AP information table can uniquely identify forwarding information corresponding to an AP (that is, an entry corresponding to the AP in the forwarding table).
  • the characteristic value of the AP in the forwarding table and the characteristic value of the AP in the AP information table can be compared to determine whether the forwarding information corresponding to the AP has been updated.
  • the characteristic value may be a devil number or other character string, which is not limited in this application.
  • the AP information table may further include next hop address information corresponding to the AP, and the next hop address information may include next hop VLAN, next hop MAC address, and next hop exit information.
  • the AC After the AC determines the target virtual BSS interface and target AP, it can randomly select a data block in the buffer space, and then modify the data block in the data block according to the first wireless payload of the first ARP request message and the pre-stored encapsulation information.
  • the second ARP request message After the AC determines the target virtual BSS interface and target AP, it can randomly select a data block in the buffer space, and then modify the data block in the data block according to the first wireless payload of the first ARP request message and the pre-stored encapsulation information.
  • the second ARP request message The second ARP request message.
  • next-hop MAC address and next-hop VLAN in the Ethernet header can be modified; the radio frequency information in the CAPWAP header; and the check field in the second ARP request message.
  • the specific modification process will be explained in detail later.
  • the AC can release the cache space corresponding to the AP.
  • the AC may select multiple data blocks in the buffer space, and according to the first wireless payload of the first ARP request message and the pre-stored encapsulation information, respectively, Modify the second ARP request message in each data block.
  • Step 204 Send the modified second ARP request message to the target AP.
  • the AC modifies the second ARP request message
  • it can send the modified second ARP request message to the target AP.
  • the AC can also determine whether the next hop address information corresponding to the target AP has changed, and then determine what needs to be modified in the second ARP request message according to the determination result.
  • the specific process is as follows:
  • Step 301 Obtain a first feature value corresponding to the target AP and a second feature value corresponding to a pre-stored second ARP request message.
  • the first feature value and the second feature value are generated according to the forwarding information corresponding to the target AP.
  • the AC determines the target virtual BSS interface and the target AP, it can obtain the first characteristic value corresponding to the target AP and the second characteristic value corresponding to the second ARP request message, and the second characteristic value corresponding to the second ARP request message.
  • the feature value is a feature value stored in a data block corresponding to the second ARP request message.
  • the number of second ARP request messages is multiple.
  • the implementation manners of obtaining the first feature value corresponding to the target AP may be various. The embodiments of this application provide several feasible ways, as follows:
  • Method one is to obtain the feature value corresponding to the target AP stored in the forwarding table.
  • the AC may directly query the feature value corresponding to the target AP in the forwarding table.
  • the step of obtaining the first characteristic value corresponding to the target AP may include: obtaining the IP address of the target AP corresponding to the forwarding table.
  • Obtaining a first feature value corresponding to the target AP for other second ARP request messages in the plurality of second ARP request messages includes: obtaining the feature value in the AP information of the target AP as the first feature value
  • the AC may obtain the index value and characteristic value corresponding to the target AP in the AP information table, and then transfer the The feature value corresponding to the target AP is queried during publishing (for convenience of distinction, it is called the third feature value). Then, the AC may determine whether the third feature value is the same as the feature value in the AP information of the target AP. If they are the same, it means that the next hop address information corresponding to the target AP in the forwarding table has not changed. The AC uses the characteristic value of the target AP in the AP information as the first characteristic value.
  • the AC can modify the characteristic value of the target AP in the AP information to a third characteristic value, and use the characteristic value of the target AP in the modified AP information as the first characteristic value. Subsequently, for other second ARP request messages in the multiple second ARP request messages, the AC can directly obtain the first characteristic value from the AP information of the target AP without querying the forwarding table. Due to the time required to query the forwarding table It is longer. Therefore, based on the above processing, query time can be effectively reduced, and AC processing efficiency is improved.
  • step 302 it is determined whether the first characteristic value is the same as the second characteristic value. If so, step 303 is performed; otherwise, step 304 is performed.
  • Step 303 Modify the pre-stored second ARP request message according to the first wireless payload of the first ARP request message and the radio frequency information of the target virtual BSS interface.
  • the first characteristic value is the same as the second characteristic value, it means that the destination MAC and VLAN in the Ethernet header in the second ARP request message need not be modified, and the AC only needs to perform
  • the first wireless payload and the radio frequency information of the target virtual BSS interface modify the second ARP request message.
  • the specific processing process includes the following steps:
  • Step 1 Modify the parameter value of the preset parameter in the second wireless payload of the second ARP request message to the parameter value of the preset parameter in the first wireless payload.
  • the preset parameter includes the sending end IP address, Sending MAC address and receiving IP address.
  • the AC may correspondingly modify the sender IP address, sender MAC address, and receiver IP address in the second wireless payload of the second ARP request message to the first carried in the first ARP request message.
  • the sending end IP address in the first wireless payload carried in the first ARP request message is 2.0.0.100
  • the sending end MAC address is 00: 00: 12: 12: 80: 15
  • the receiving end IP address is 2.0 .0.11
  • the AC can modify the sender's IP address in the second ARP request packet to 2.0.0.100
  • the sender's MAC address to 00: 00: 12: 12: 80: 15, and the receiver's IP address to 2.0 .0.11.
  • Step 2 Modify the radio frequency information in the CAPWAP header in the second ARP request message to the radio frequency information of the target virtual BSS interface.
  • the AC may correspondingly modify the radio frequency information in the CAPWAP header in the second ARP request message to the radio frequency information of the target virtual BSS interface. For example, if the radio frequency information of the target virtual BSS interface is 1, the AC may modify the radio frequency information in the CAPWAP header in the second ARP request packet to 1.
  • Step 3 Modify the ID field and the check field in the IP header of the second ARP request message according to the maximum transmission unit corresponding to the target AP.
  • the AC may modify the check field in the second ARP request message according to the maximum transmission unit corresponding to the target AP.
  • the AC can also determine whether the second ARP request message needs to be fragmented according to the maximum transmission unit. If so, the second ARP request message is fragmented and the encapsulation information is modified according to the maximum transmission unit. Fragment identification in the IP header in. The specific fragmentation process belongs to the prior art, which is not repeated in the embodiment of the present application.
  • Step 304 Modify the second ARP request message according to the first wireless payload of the first ARP request message, the next hop address information corresponding to the target AP, and the radio frequency information of the target virtual BSS interface.
  • the first characteristic value is different from the second characteristic value, it means that the destination MAC address and VLAN in the Ethernet header in the second ARP request packet need to be modified, and the AC needs to modify the The first wireless payload, the radio frequency information of the target virtual BSS interface, and the next hop address information corresponding to the target AP are used to modify the second ARP request message.
  • the specific processing process includes the following steps:
  • Step 1 Modify the parameter value of the preset parameter in the second wireless payload of the second ARP request message to the parameter value of the preset parameter in the first wireless payload.
  • the preset parameter includes the sending end IP address, Sending MAC address and receiving IP address.
  • step 1 in step 303 The specific processing procedure is similar to step 1 in step 303, and is not repeated here.
  • Step 2 Modify the radio frequency information in the CAPWAP header of the control and configuration protocol in the second ARP request message to the radio frequency information of the target virtual BSS interface.
  • step 303 The specific processing procedure is similar to step 2 in step 303, and details are not described herein again.
  • Step 3 Modify the ID field and the check field in the IP header of the second ARP request message according to the maximum transmission unit corresponding to the target AP.
  • step 3 The specific processing procedure is similar to step 3 in step 303, and details are not described herein again.
  • Step 4 Modify the destination MAC address and VLAN in the Ethernet header of the second ARP request message to the next hop MAC and next hop VLAN corresponding to the target AP.
  • the AC can obtain the next-hop VLAN and next-hop MAC address corresponding to the target AP from the AP information of the target AP, and then the destination MAC address and VLAN in the Ethernet header of the second ARP request packet can be obtained.
  • the next hop MAC address and next hop VLAN corresponding to the target AP correspond to the next hop MAC address and next hop VLAN corresponding to the target AP. For example, if the next-hop MAC address corresponding to the target AP is MAC1 and the next-hop VLAN is VLAN1, the AC changes the destination MAC address in the Ethernet header of the second ARP request packet to MAC1 and the VLAN to VLAN1.
  • the AC may also modify the characteristic value corresponding to the second ARP request message.
  • the specific process is as follows: If the first characteristic value is different from the second characteristic value, the second characteristic value corresponding to the second ARP request message is modified to the first characteristic value.
  • the AC modifies the Ethernet header in the second ARP request message according to the next-hop MAC and next-hop VLAN corresponding to the target AP.
  • the second characteristic value corresponding to the second ARP request packet may be modified to the first characteristic value. In this way, if the next-hop address information corresponding to the target AP does not change, there is no need to modify the Ethernet header in the second ARP request packet, thereby improving processing efficiency.
  • the AC may receive a first ARP request message to be broadcast, and the first ARP request message carries a first wireless payload.
  • the AC determines a target virtual BSS interface corresponding to the VLAN to which the first ARP request message belongs, and a target AP to which the target virtual BSS interface belongs, and then according to the first wireless payload and the pre-stored encapsulation information of the first ARP request message, Modify the pre-stored second ARP request message.
  • the encapsulation information includes the radio frequency information of the target virtual BSS interface and the next hop address information of the target AP, and send the modified second ARP request message to the target AP.
  • the AC only needs to modify the pre-stored second ARP request message according to the first wireless payload of the first ARP request message to be broadcast and the pre-stored encapsulation information, and does not need to duplicate the first ARP request message.
  • Improve AC processing efficiency
  • an embodiment of the present application further provides a device for transmitting a message.
  • the device is applied to an AC.
  • the device includes:
  • the receiving module 410 is configured to receive a first address resolution protocol ARP request message to be broadcast, where the first ARP request message carries a first wireless payload;
  • a determining module 420 configured to determine a target virtual BSS interface corresponding to a VLAN to which the first ARP request message belongs, and a target AP to which the target virtual BSS interface belongs;
  • the first modification module 430 is configured to modify the pre-stored second ARP request message according to the first wireless payload of the first ARP request message and the pre-stored encapsulation information, where the encapsulation information includes radio frequency information of the target virtual BSS interface and The next hop address information corresponding to the target AP;
  • the sending module 440 is configured to send a modified second ARP request message to the target AP.
  • the device further includes:
  • the obtaining module 450 is configured to obtain a first feature value corresponding to the target AP and a second feature value corresponding to a pre-stored second ARP request message, where the first feature value and the second feature value are corresponding to the target AP. Generated by forwarding information;
  • the first modification module 430 is specifically configured to:
  • the first characteristic value is the same as the second characteristic value, modifying the pre-stored second ARP request message according to the first wireless payload of the first ARP request message and the radio frequency information of the target virtual BSS interface;
  • the second ARP is modified according to the first wireless payload of the first ARP request message, the next hop address information corresponding to the target AP, and the radio frequency information of the target virtual BSS interface. Request message.
  • the first modification module 430 is specifically configured to:
  • the preset parameter includes the sending end IP address and the sending end MAC. Address and receiving end IP address;
  • next hop address information includes a next hop MAC address and a next hop VLAN
  • the first modification module 430 is specifically configured to:
  • the preset parameter includes the sending end IP address and the sending end MAC. Address and receiving end IP address;
  • the device further includes:
  • the second modification module 460 is configured to modify the second feature value corresponding to the second ARP request message to the first feature value if the first feature value is different from the second feature value.
  • the number of the second ARP request messages is multiple.
  • the obtaining module 450 is specifically configured to:
  • the third feature value is the same as the feature value in the AP information of the target AP stored in advance, using the feature value in the AP information as the first feature value;
  • the feature value in the AP information is modified to the third feature value, and the feature value in the modified AP information is used as the first Eigenvalues;
  • the obtaining module 450 is specifically configured to:
  • the AC may receive a first ARP request message to be broadcast, and the first ARP request message carries a first wireless payload.
  • the AC determines a target virtual BSS interface corresponding to the VLAN to which the first ARP request message belongs, and a target AP to which the target virtual BSS interface belongs, and then according to the first wireless payload and the pre-stored encapsulation information of the first ARP request message, Modify the pre-stored second ARP request message.
  • the encapsulation information includes the radio frequency information of the target virtual BSS interface and the next hop address information of the target AP, and send the modified second ARP request message to the target AP.
  • the AC only needs to modify the pre-stored second ARP request message according to the first wireless payload of the first ARP request message to be broadcast and the pre-stored encapsulation information, and does not need to duplicate the first ARP request message.
  • Improve AC processing efficiency
  • an embodiment of the present application further provides an AC.
  • the AC includes: a processor 701 and a machine-readable storage medium 702.
  • the machine-readable storage medium 702 stores Machine-executable instructions executed by the processor 701, the machine-executable instructions causing the processor 701 to:
  • machine-executable instructions further cause the processor 701 to:
  • the modifying the pre-stored second ARP request message according to the first wireless payload of the first ARP request message and the pre-stored encapsulation information includes:
  • first characteristic value is the same as the second characteristic value, modify the pre-stored second ARP according to the first wireless payload of the first ARP request message and the radio frequency information of the target virtual BSS interface. Request message
  • machine-executable instructions specifically cause the processor 701 to:
  • the next hop address information includes a next hop MAC address and a next hop VLAN
  • the machine-executable instructions specifically cause the processor 701 to:
  • machine-executable instructions further cause the processor 701 to:
  • the number of the second ARP request packets is multiple;
  • the machine-executable instructions specifically cause the processor 701 to:
  • the third feature value is the same as the feature value in the AP information of the target AP, using the feature value in the AP information as the first feature value;
  • the third feature value is different from the feature value in the AP information of the target AP, modify the feature value in the AP information to the third feature value, and modify the AP information after the modification The feature value in the first feature value;
  • the acquiring a first feature value corresponding to the target AP includes:
  • the network device may further include a communication bus 703.
  • the communication bus 703 may be a Peripheral Component Interconnect Standard (English: Peripheral Component Interconnect (PCI) for short) bus or an Extended Industry Standard Architecture (English: Extended Industry Standard Architecture (EISA) bus for short).
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the communication bus 703 can be divided into an address bus, a data bus, a control bus, and the like.
  • the machine-readable storage medium 702 may include random access memory (English: Random Access Memory, referred to as RAM), and may also include non-volatile memory (English: Non-Volatile Memory, referred to as NVM), such as at least one disk memory. .
  • the machine-readable storage medium 702 may also be at least one storage device located remote from the foregoing processor 701.
  • the processor 701 may be a general-purpose processor 701, including a central processing unit 701 (English: Central Processing Unit, abbreviated as: CPU), a network processor 701 (English: Network Processor, abbreviated as: NP), etc .; it may also be a digital signal processor 701 (English: Digital Signal Processing, referred to as DSP), Application Specific Integrated Circuit (English: Application Specific Integrated Circuit, referred to as ASIC), Field Programmable Gate Array (English: Field-Programmable Gate Array, FPGA) or other Programming logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • DSP Digital Signal Processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any one of the foregoing message transmissions is implemented. Steps of the method.
  • a computer program product containing instructions is also provided, which when executed on a computer, causes the computer to execute the steps of the method for transmitting a message in any of the above embodiments.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be from a website site, a computer, a server, or a data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes one or more available medium integration.
  • the available medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (Solid State Disk (SSD)), and the like.
  • relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that between these entities or operations There is any such actual relationship or order.
  • the terms "including”, “comprising”, or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or device that includes a series of elements includes not only those elements but also those that are not explicitly listed Or other elements inherent to such a process, method, article, or device.
  • the elements defined by the sentence “including a " do not exclude the existence of other identical elements in the process, method, article, or equipment that includes the elements.

Landscapes

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

Abstract

A method comprises: an AC receiving a first address resolution protocol (ARP) request packet to be broadcasted, the first ARP request packet carrying a first wireless payload; determining a target virtual BSS interface corresponding to a VLAN to which the first ARP request packet belongs and a target AP covering the target virtual BSS interface; modifying a prestored second ARP request packet according to the first wireless payload of the first ARP request packet and prestored encapsulation information, the encapsulation information comprising radio frequency information of the target virtual BSS interface and next-hop address information corresponding to the target AP; and transmitting the modified second ARP request packet to the target AP. The present invention can enhance processing efficiency of an AC.

Description

报文传输Message transmission
相关申请的交叉引用Cross-reference to related applications
本申请要求于2018年7月9日提交中国专利局、申请号为201810744809.3发明名称为“一种报文传输的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority from a Chinese patent application filed with the Chinese Patent Office on July 9, 2018, with the application number 201810744809.3, and the invention name is "A Method and Device for Message Transmission", the entire contents of which are incorporated herein by reference. in.
背景技术Background technique
目前,在无线网络中通常设置有接入控制器(英文:Access Controller,简称:AC)和接入点(英文:Access Point,简称:AP),AC会为AP建立并维护至少一个虚拟基本服务集(英文:Basic Service Set,简称:BSS)接口。其中,上述虚拟BSS接口可以属于同一个虚拟局域网(英文:Virtual Local Area Network,简称:VLAN),也可以属于不同的VLAN。At present, an access controller (English: Access Controller, AC for short) and an access point (English: Access Point, AP for short) are usually set in a wireless network. The AC will establish and maintain at least one virtual basic service for the AP. Set (English: Basic Service Set, referred to as BSS) interface. The virtual BSS interface may belong to the same virtual local area network (English: Virtual Local Area Network, abbreviated as VLAN), or may belong to different VLANs.
AC在某个VLAN内接收到发送端发送的第一地址解析协议(英文:Address Resolution Protocol,简称:ARP)请求报文后,针对该VLAN中的每个虚拟BSS接口,AC会对该第一ARP请求报文进行复制,然后针对该虚拟BSS接口封装该第一ARP请求,得到第二ARP请求报文,然后将该第二ARP请求报文发送给该虚拟BSS接口所属的目标AP。例如,一个支持2048个AP的AC中通常需要维护6万多个虚拟BSS接口,如果这些虚拟BSS接口均属于同一个VLAN,则当AC在该VLAN内接收到ARP请求报文时,AC需要将该ARP请求报文复制6万多份,然后分别进行封装,进而转发至各虚拟BSS接口。After the AC receives the first Address Resolution Protocol (ARP) request message sent by the sender in a certain VLAN, for each virtual BSS interface in the VLAN, the AC responds to the first The ARP request message is copied, and then the first ARP request is encapsulated for the virtual BSS interface to obtain a second ARP request message, and then the second ARP request message is sent to the target AP to which the virtual BSS interface belongs. For example, an AC supporting 2048 APs usually needs to maintain more than 60,000 virtual BSS interfaces. If these virtual BSS interfaces belong to the same VLAN, when the AC receives ARP request packets in this VLAN, the AC needs to apply More than 60,000 copies of the ARP request message are then encapsulated and then forwarded to each virtual BSS interface.
附图简要说明Brief description of the drawings
图1为本申请实施例提供的网络系统的示例图;FIG. 1 is an example diagram of a network system provided by an embodiment of the present application; FIG.
图2为本申请实施例提供的一种报文传输的方法的流程图;2 is a flowchart of a message transmission method according to an embodiment of the present application;
图3为本申请实施例提供的一种修改第二ARP请求报文的方法的流程图;3 is a flowchart of a method for modifying a second ARP request message according to an embodiment of the present application;
图4为本申请实施例提供的一种报文传输的装置的结构示意图;4 is a schematic structural diagram of a message transmission apparatus according to an embodiment of the present application;
图5为本申请实施例提供的一种报文传输的装置的结构示意图;5 is a schematic structural diagram of a message transmission apparatus according to an embodiment of the present application;
图6为本申请实施例提供的一种报文传输的装置的结构示意图;6 is a schematic structural diagram of a message transmission apparatus according to an embodiment of the present application;
图7为本申请实施例提供的AC的结构示意图。FIG. 7 is a schematic structural diagram of an AC according to an embodiment of the present application.
具体实施方式detailed description
为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本申请作进一步详细的说明。In order to make the foregoing objects, features, and advantages of the present application more comprehensible, the present application is further described in detail below with reference to the accompanying drawings and specific embodiments.
现有技术中,当AC在某个VLAN内接收到发送端发送的第一ARP请求报文后,针对该VLAN中的每个虚拟BSS接口,AC会对该第一ARP请求报文进行复制,然后针对该虚拟BSS接口封装该第一ARP请求,得到第二ARP请求报文,然后将该第二ARP请求报文发送给该虚拟BSS接口所属的目标AP。这样一来,在同一VLAN中存在较多虚拟BSS接口的情况下,AC需要消耗大量资源处理ARP请求报文的复制和封装,导致AC的处理效率较低。In the prior art, after the AC receives the first ARP request packet sent by the sender in a VLAN, the AC copies the first ARP request packet for each virtual BSS interface in the VLAN. Then encapsulate the first ARP request for the virtual BSS interface to obtain a second ARP request message, and then send the second ARP request message to the target AP to which the virtual BSS interface belongs. In this case, when there are many virtual BSS interfaces in the same VLAN, the AC needs to consume a large amount of resources to process the replication and encapsulation of ARP request packets, resulting in low processing efficiency of the AC.
本申请实施例提供了一种报文传输的方法,该方法可以应用于AC广播ARP请求报文的场景。如图1所示,为本申请实施例提供的网络系统的示例图,该系统包括:AC、接入交换机、AP1、AP2、终端1、终端2和终端3。其中,AC通过接入交换机与AP1和AP2连接,AP1和AP2提供服务的服务集标识(英文:Service Set Identifier,简称:SSID)分别为SSID1和SSID2,AC分别为AP1的SSID1和AP2的SSID2建立并维护虚拟BSS接口1和虚拟BSS接口2,终端1和终端2分别通过AP1和AP2接入网络,终端3通过接入交换机接入网络。其中,虚拟BSS接口1、虚拟BSS接口2、接入交换机连接终端3的接口、以及AC与接入交换机相连的接口均属于VLAN1。The embodiment of the present application provides a message transmission method, and the method can be applied to a scenario where an AC broadcasts an ARP request message. As shown in FIG. 1, this is an example diagram of a network system provided in an embodiment of the present application. The system includes: an AC, an access switch, AP1, AP2, terminal 1, terminal 2, and terminal 3. Among them, the AC is connected to AP1 and AP2 through the access switch, and the service set identifiers (English: Service Set Identifier, SSID) provided by AP1 and AP2 are SSID1 and SSID2 respectively, and the AC is established by SSID1 of AP1 and SSID2 of AP2. It also maintains virtual BSS interface 1 and virtual BSS interface 2. Terminals 1 and 2 access the network through AP1 and AP2, respectively, and terminal 3 accesses the network through the access switch. Among them, the virtual BSS interface 1, the virtual BSS interface 2, the interface of the access switch connected to terminal 3, and the interface of the AC connected to the access switch belong to VLAN 1.
本申请实施例提供了一种报文传输的方法,该方法应用于AC。AC可以根据接收到的第一ARP请求报文,确定第一ARP请求报文所属的VLAN对应的目标虚拟BSS接口、以及目标虚拟BSS接口所属的目标AP,然后,根据第一ARP请求报文的第一无线有效载荷和预先存储的封装信息,直接修改预先存储的第二ARP请求报文,无需将第一ARP请求报文重复复制,提高了AC的处理效率。如图2所示,具体处理流程如下:An embodiment of the present application provides a method for transmitting a message, and the method is applied to an AC. The AC may determine the target virtual BSS interface corresponding to the VLAN to which the first ARP request message belongs and the target AP to which the target virtual BSS interface belongs according to the received first ARP request message, and then, according to the first ARP request message, The first wireless payload and the pre-stored encapsulation information directly modify the pre-stored second ARP request message, eliminating the need to duplicate the first ARP request message, which improves the processing efficiency of the AC. As shown in Figure 2, the specific processing flow is as follows:
步骤201,接收待广播的第一ARP请求报文。Step 201: Receive a first ARP request message to be broadcast.
其中,第一ARP请求报文携带有第一无线有效载荷(英文:Wireless Payload)。The first ARP request message carries a first wireless payload (English: Wireless Payload).
在实施中,当终端需要根据其他终端(可称为第一终端)的互联网协议(英文:Internet Protocol,简称:IP)地址,获取第一终端对应的MAC地址时,终端可以发送ARP请求报文。该场景下,第一无线有效载荷可以包括发送端IP地址、发送端MAC地址和接收端(即第一终端)IP地址。或者,当终端通过动态主机配置协议(英文:Dynamic Host Configuration Protocol,简称:DHCP)获取到自身的IP地址时,为了防止获取到的IP地址与其他终端的IP地址发送冲突,终端可以发送ARP请求报文。In implementation, when a terminal needs to obtain the MAC address corresponding to the first terminal according to the Internet Protocol (English: Internet, Protocol, IP for short) address of another terminal (which may be referred to as the first terminal), the terminal may send an ARP request message. . In this scenario, the first wireless payload may include a sender IP address, a sender MAC address, and a receiver (ie, the first terminal) IP address. Or, when the terminal obtains its own IP address through Dynamic Host Configuration Protocol (English: Dynamic Host Configuration Protocol, DHCP), in order to prevent the acquired IP address from conflicting with the IP address of other terminals, the terminal can send an ARP request. Message.
在一个示例中。参照图1,当终端3需要与终端2进行通信时,终端3可以根据终端2的IP地址,在本地预先存储的ARP表中查询终端2的MAC地址。如果ARP表中未存储有终端2的MAC地址,终端3则可以向接入交换机发送第一ARP请求报文。例如,在上述终端3发送的第一ARP请求报文中携带的第一无线有效载荷中,发送端IP地址为终端3的IP地址,发送端MAC地址为终端3的MAC地址,接收端IP地址为终端2的IP地址。接入交换机接收到该第一ARP请求报文后,可以根据预先设置的VLAN策略,在该第一ARP请求报文中添加VLAN信息。后续,接入交换机可以根据该VLAN信息,将该第一ARP请求报文发送给AC。In one example. Referring to FIG. 1, when the terminal 3 needs to communicate with the terminal 2, the terminal 3 may query the MAC address of the terminal 2 in a locally pre-stored ARP table according to the IP address of the terminal 2. If the MAC address of terminal 2 is not stored in the ARP table, terminal 3 may send a first ARP request message to the access switch. For example, in the first wireless payload carried in the first ARP request message sent by the terminal 3, the sending end IP address is the IP address of the terminal 3, the sending end MAC address is the MAC address of the terminal 3, and the receiving end IP address Is the IP address of terminal 2. After receiving the first ARP request message, the access switch may add VLAN information to the first ARP request message according to a preset VLAN policy. Subsequently, the access switch may send the first ARP request packet to the AC according to the VLAN information.
AC可以接收终端通过接入交换机发送的第一ARP请求报文,该第一ARP请求报文中携带有第一无线有效载荷和VLAN信息。The AC may receive a first ARP request message sent by the terminal through the access switch, where the first ARP request message carries the first wireless payload and VLAN information.
可选的,对于终端通过AP接入网络的情况,该终端(比如终端1)发送的第一ARP请求报文中还可以携带有协议头,该协议头包括以太网头、IP头、用户数据报协议(英文:UserDatagramProtocol,简称:UDP)头、无线接入点的控制和配置协议(英文:Control And Provisioning of Wireless Access Points Protocol Specification,简称:CAPWAP)头。接入交换机根据以太网头中的目的MAC地址,查询本地预先存储的转发表,将该第一ARP请求报文通过连接AC的接口发送给AC。Optionally, for the case where the terminal accesses the network through the AP, the first ARP request message sent by the terminal (such as terminal 1) may also carry a protocol header, which includes an Ethernet header, an IP header, and user data. Report protocol (English: UserDatagramProtocol, UDP for short) header, control and configuration protocol (English: Control and Wireless Access Points Protocol, CAPWAP) for wireless access point. The access switch queries the local pre-stored forwarding table according to the destination MAC address in the Ethernet header, and sends the first ARP request message to the AC through the interface connected to the AC.
步骤202,确定第一ARP请求报文所属的VLAN对应的目标虚拟BSS接口、以及目标虚拟BSS接口所属的目标AP。Step 202: Determine a target virtual BSS interface corresponding to the VLAN to which the first ARP request message belongs, and a target AP to which the target virtual BSS interface belongs.
在实施中,AC中可以预先存储有AP、虚拟BSS接口和VLAN三者的对应关系。AC在接收到第一ARP请求报文后,可以对该第一ARP请求报文进 行解析,得到该第一ARP请求报文携带的VLAN信息。然后,AC可以根据该VLAN信息,在上述对应关系中查询该VLAN对应的目标虚拟BSS接口、以及该目标虚拟BSS接口对应的AP(即目标AP)。In implementation, the AC may store the correspondence between the AP, the virtual BSS interface, and the VLAN in advance. After receiving the first ARP request message, the AC can analyze the first ARP request message to obtain the VLAN information carried in the first ARP request message. Then, the AC may query the target virtual BSS interface corresponding to the VLAN and the AP corresponding to the target virtual BSS interface (that is, the target AP) according to the VLAN information.
例如:如表一所示,虚拟BSS接口1和虚拟BSS接口3均属于AP1,且虚拟BSS接口1属于VLAN1,虚拟BSS接口3属于VLAN2,虚拟BSS接口2和虚拟BSS接口4均属于AP2,且虚拟BSS接口2属于VLAN1,虚拟BSS接口4属于VLAN2,第一ARP请求报文中携带的VLAN信息为VLAN1。AC根据第一ARP请求报文携带的VLAN1查询表一,确定目标虚拟BSS接口为虚拟BSS接口1和虚拟BSS接口2,AP1和AP2为目标AP。For example, as shown in Table 1, virtual BSS interface 1 and virtual BSS interface 3 both belong to AP1, and virtual BSS interface 1 belongs to VLAN 1, virtual BSS interface 3 belongs to VLAN 2, virtual BSS interface 2 and virtual BSS interface 4 belong to AP2, and Virtual BSS interface 2 belongs to VLAN1, virtual BSS interface 4 belongs to VLAN2, and the VLAN information carried in the first ARP request message is VLAN1. The AC determines the target virtual BSS interface as virtual BSS interface 1 and virtual BSS interface 2 and AP1 and AP2 as target APs according to VLAN 1 carried in the first ARP request message.
表一Table I
虚拟BSS接口Virtual BSS interface APAP VLANVLAN
11 AP1AP1 11
22 AP2AP2 11
33 AP1AP1 22
44 AP2AP2 22
步骤203,根据第一ARP请求报文的第一无线有效载荷和预先存储的封装信息,修改预先存储的第二ARP请求报文。Step 203: Modify the pre-stored second ARP request message according to the first wireless payload of the first ARP request message and the pre-stored encapsulation information.
其中,封装信息包括目标虚拟BSS接口的射频信息和目标AP对应的下一跳地址信息。The encapsulation information includes radio frequency information of the target virtual BSS interface and next hop address information corresponding to the target AP.
在实施中,在AC与AP建立连接的过程中,AC可以根据AP的信息生成转发表,该转发表包括若干条转发表项,每条转发表项包括索引值、目的地址、下一跳VLAN、下一跳MAC地址和特征值。其中,该特征值是根据转发表中该AP对应的转发信息生成的。在转发表中,转发表中的每个特征值可以唯一标识一个AP对应的转发信息。当转发表中的某AP对应的转发信息更新时,特征值也会相应的更新。特征值可以为魔鬼数字,也可以为其他字符串,本申请不作限定。另外,特征值可以AC随机分配的,或者,也可以是 AC根据预设的特征值算法(比如哈希算法)和转发信息计算出。In implementation, during the process of establishing a connection between the AC and the AP, the AC can generate a forwarding table based on the information of the AP. The forwarding table includes several forwarding entries, and each forwarding entry includes an index value, a destination address, and a next-hop VLAN. , Next hop MAC address and characteristic value. The characteristic value is generated according to the forwarding information corresponding to the AP in the forwarding table. In the forwarding table, each feature value in the forwarding table can uniquely identify the forwarding information corresponding to an AP. When the forwarding information corresponding to an AP in the forwarding table is updated, the characteristic value is also updated accordingly. The characteristic value may be a devil number or other character string, which is not limited in this application. In addition, the characteristic value may be randomly assigned by the AC, or may be calculated by the AC according to a preset characteristic value algorithm (such as a hash algorithm) and forwarding information.
参照表二,为本申请实施例提供的转发表示例。Refer to Table 2 for an example of forwarding representation provided in the embodiment of the present application.
表二Table II
索引值Index value 目的地址Destination address 下一跳VLANNext hop VLAN 下一跳MAC地址Next hop MAC address 特征值Eigenvalues
11 AP1AP1 VLAN1VLAN1 MAC1MAC1 0x5a5a5a5a0x5a5a5a5a
其中,索引值用于唯一标识一条转发表项;目的地址为AP的IP地址;下一跳VLAN和下一跳MAC地址为AP对应的下一跳VLAN和下一跳MAC。The index value is used to uniquely identify a forwarding entry; the destination address is the IP address of the AP; the next-hop VLAN and next-hop MAC address are the next-hop VLAN and next-hop MAC corresponding to the AP.
当某AP与AC建立连接后,AC可以为该AP分配一个缓存空间,该缓存空间可以包括预设数目个数据块,其中,每个数据块中可以存储有第二ARP请求报文。数据块的数目(即预设数目)大于或等于AP对应的虚拟BSS接口的数目。After an AP establishes a connection with the AC, the AC may allocate a buffer space for the AP, and the buffer space may include a preset number of data blocks, where each data block may store a second ARP request message. The number of data blocks (that is, the preset number) is greater than or equal to the number of virtual BSS interfaces corresponding to the AP.
第二ARP请求报文为AC进行封装得到的ARP报文,包括协议头和无线有效载荷。其中,协议头包括以太网头、IP头、UDP头、CAPWAP头。第二ARP请求报文的封装过程可以如下。The second ARP request packet is an ARP packet obtained by the AC, including a protocol header and a wireless payload. Among them, the protocol header includes an Ethernet header, an IP header, a UDP header, and a CAPWAP header. The encapsulation process of the second ARP request message may be as follows.
AC可以根据本设备的地址信息、各AP的地址信息、以及当前的转发表中的各AP对应的下一跳地址信息,生成第二ARP请求报文。其中,地址信息可以包括IP地址、MAC地址、UDP端口号等,下一跳地址信息可以包括下一跳VLAN、下一跳MAC地址和下一跳出口信息等。The AC may generate a second ARP request message according to the address information of the device, the address information of each AP, and the next hop address information of each AP in the current forwarding table. The address information may include an IP address, a MAC address, a UDP port number, and the like, and the next hop address information may include a next hop VLAN, a next hop MAC address, and next hop exit information.
例如,参照表二,AC可以将以太网头中的源MAC地址设置为AC的MAC地址,目的MAC地址设置为下一跳MAC地址(即MAC1),VLAN设置为下一跳VLAN(即VLAN1);将IP头中的源IP地址设置为AC的IP地址,目的IP设置为AP1的IP地址,将UDP头中的源端口号设置为AC的UDP端口号,目的端口号设置为AP1的UDP端口号。For example, referring to Table 2, the AC can set the source MAC address in the Ethernet header to the MAC address of the AC, the destination MAC address to the next hop MAC address (that is, MAC1), and the VLAN to the next hop VLAN (that is, VLAN1). ; Set the source IP address in the IP header to the IP address of the AC, the destination IP to the IP address of AP1, the source port number in the UDP header to the UDP port number of the AC, and the destination port number to the UDP port of AP1 number.
另外,针对每个AP,AC还可以建立该AP信息表,AP信息表是用于存储各AP的AP信息的表。AC可以将转发表中该AP的特征值和索引值存储至AP信息表中,并将该AP对应的数据块中的特征值设置为转发表中该AP的特征值。其中,特征值是根据AP对应的转发信息生成的。在AP信息表中, AP信息表中的每个特征值可以唯一标识一个AP对应的转发信息(即该AP在转发表中对应的表项)。后续,可以通过对比该AP在转发表中的特征值与该AP在AP信息表中的特征值,以判断该AP对应的转发信息是否发生更新。特征值可以为魔鬼数字,也可以为其他字符串,本申请不作限定。另外,AP信息表中,还可以包括AP对应的下一跳地址信息,下一跳地址信息可以包括下一跳VLAN、下一跳MAC地址和下一跳出口信息等。In addition, for each AP, the AC may also create the AP information table, and the AP information table is a table for storing AP information of each AP. The AC may store the characteristic value and index value of the AP in the forwarding table into the AP information table, and set the characteristic value in the data block corresponding to the AP as the characteristic value of the AP in the forwarding table. The characteristic value is generated according to the forwarding information corresponding to the AP. In the AP information table, each feature value in the AP information table can uniquely identify forwarding information corresponding to an AP (that is, an entry corresponding to the AP in the forwarding table). Subsequently, the characteristic value of the AP in the forwarding table and the characteristic value of the AP in the AP information table can be compared to determine whether the forwarding information corresponding to the AP has been updated. The characteristic value may be a devil number or other character string, which is not limited in this application. In addition, the AP information table may further include next hop address information corresponding to the AP, and the next hop address information may include next hop VLAN, next hop MAC address, and next hop exit information.
当AC确定目标虚拟BSS接口和目标AP后,可以在缓存空间中随机选取一个数据块,然后根据第一ARP请求报文的第一无线有效载荷和预先存储的封装信息,修改该数据块中的第二ARP请求报文。After the AC determines the target virtual BSS interface and target AP, it can randomly select a data block in the buffer space, and then modify the data block in the data block according to the first wireless payload of the first ARP request message and the pre-stored encapsulation information. The second ARP request message.
例如,可以修改以太网头中的下一跳MAC地址、下一跳VLAN;CAPWAP头中的射频信息;以及第二ARP请求报文中的校验字段等。具体的修改过程后续会进行详细说明。For example, the next-hop MAC address and next-hop VLAN in the Ethernet header can be modified; the radio frequency information in the CAPWAP header; and the check field in the second ARP request message. The specific modification process will be explained in detail later.
可选的,当某一AP下线后,AC可以释放该AP对应的缓存空间。Optionally, when an AP goes offline, the AC can release the cache space corresponding to the AP.
可选的,当目标虚拟BSS接口的数目为多个时,AC可以在缓存空间中选取多个数据块,并根据第一ARP请求报文的第一无线有效载荷和预先存储的封装信息,分别修改每个数据块中的第二ARP请求报文。Optionally, when the number of target virtual BSS interfaces is multiple, the AC may select multiple data blocks in the buffer space, and according to the first wireless payload of the first ARP request message and the pre-stored encapsulation information, respectively, Modify the second ARP request message in each data block.
步骤204,向目标AP发送修改后的第二ARP请求报文。Step 204: Send the modified second ARP request message to the target AP.
在实施中,AC对第二ARP请求报文进行修改后,可以将修改后的第二ARP请求报文发送给目标AP。In implementation, after the AC modifies the second ARP request message, it can send the modified second ARP request message to the target AP.
可选的,AC在对第二ARP请求报文进行修改前,还可以判断该目标AP对应的下一跳地址信息是否发生变化,然后根据判断结果确定第二ARP请求报文中需要修改的内容,如图3所示,具体处理过程如下:Optionally, before modifying the second ARP request message, the AC can also determine whether the next hop address information corresponding to the target AP has changed, and then determine what needs to be modified in the second ARP request message according to the determination result. As shown in Figure 3, the specific process is as follows:
步骤301,获取目标AP对应的第一特征值、以及预先存储的第二ARP请求报文对应的第二特征值。Step 301: Obtain a first feature value corresponding to the target AP and a second feature value corresponding to a pre-stored second ARP request message.
其中,第一特征值和第二特征值是根据目标AP对应的转发信息生成的。The first feature value and the second feature value are generated according to the forwarding information corresponding to the target AP.
在实施中,当AC确定目标虚拟BSS接口以及目标AP后,可以获取目标AP对应的第一特征值和第二ARP请求报文对应的第二特征值,第二ARP 请求报文对应的第二特征值,是第二ARP请求报文对应的数据块中存储的特征值。其中,第二ARP请求报文的数目为多个。本实施例中,获取目标AP对应的第一特征值的实现方式可以是多种多样的,本申请实施例提供了几种可行的方式,具体如下:In implementation, after the AC determines the target virtual BSS interface and the target AP, it can obtain the first characteristic value corresponding to the target AP and the second characteristic value corresponding to the second ARP request message, and the second characteristic value corresponding to the second ARP request message. The feature value is a feature value stored in a data block corresponding to the second ARP request message. The number of second ARP request messages is multiple. In this embodiment, the implementation manners of obtaining the first feature value corresponding to the target AP may be various. The embodiments of this application provide several feasible ways, as follows:
方式一,获取转发表中存储的目标AP对应的特征值。Method one is to obtain the feature value corresponding to the target AP stored in the forwarding table.
在实施中,AC在确定目标AP后,可以直接在转发表中查询该目标AP对应的特征值。In implementation, after determining the target AP, the AC may directly query the feature value corresponding to the target AP in the forwarding table.
方式二,针对多个第二ARP请求报文中的第一个第二ARP请求报文,获取目标AP对应的第一特征值的步骤可以包括:获取目标AP的IP地址在转发表中对应的索引值,根据该索引值,在转发表中查询该索引值对应的第三特征值;如果第三特征值与预先存储的目标AP的AP信息中的特征值相同,则将AP信息中的特征值作为第一特征值;如果第三特征值与预先存储的目标AP的AP信息中的特征值不相同,则将AP信息中的特征值修改为第三特征值,并将修改后的AP信息中的特征值作为第一特征值。针对多个第二ARP请求报文中的其他第二ARP请求报文,获取目标AP对应的第一特征值,包括:获取目标AP的AP信息中的特征值,作为第一特征值Manner 2: For the first second ARP request message in the plurality of second ARP request messages, the step of obtaining the first characteristic value corresponding to the target AP may include: obtaining the IP address of the target AP corresponding to the forwarding table. An index value, according to which the third feature value corresponding to the index value is queried in the forwarding table; if the third feature value is the same as the feature value in the AP information of the target AP stored in advance, the feature in the AP information is Value as the first feature value; if the third feature value is not the same as the feature value in the pre-stored AP information of the target AP, the feature value in the AP information is modified to the third feature value, and the modified AP information is modified The eigenvalue in is used as the first eigenvalue. Obtaining a first feature value corresponding to the target AP for other second ARP request messages in the plurality of second ARP request messages includes: obtaining the feature value in the AP information of the target AP as the first feature value
在实施中,针对多个第二ARP请求报文中的第一个第二ARP请求报文,AC可以在AP信息表中获取该目标AP对应的索引值和特征值,然后根据索引值在转发表中查询该目标AP对应的特征值(为了便于区分,称为第三特征值)。然后,AC可以判断第三特征值与目标AP的AP信息中的特征值是否相同。如果相同,则说明转发表中目标AP对应的下一跳地址信息未发生变化,AC将该AP信息中目标AP的特征值作为第一特征值;如果不相同,则说明转发表中目标AP对应的下一跳地址信息发生变化,AC可以将AP信息中目标AP的特征值修改为第三特征值,并将修改后的AP信息中目标AP的特征值作为第一特征值。后续,针对多个第二ARP请求报文中的其他第二ARP请求报文,AC可以直接从目标AP的AP信息中获取第一特征值,无需查询转发表,由于查询转发表所需的时间较长,因此,基于上述处理,能够有效的减少查询时间,提高了AC的处理效率。In implementation, for the first second ARP request message among multiple second ARP request messages, the AC may obtain the index value and characteristic value corresponding to the target AP in the AP information table, and then transfer the The feature value corresponding to the target AP is queried during publishing (for convenience of distinction, it is called the third feature value). Then, the AC may determine whether the third feature value is the same as the feature value in the AP information of the target AP. If they are the same, it means that the next hop address information corresponding to the target AP in the forwarding table has not changed. The AC uses the characteristic value of the target AP in the AP information as the first characteristic value. If it is not the same, it indicates that the target AP in the forwarding table corresponds to The AC's next hop address information changes, the AC can modify the characteristic value of the target AP in the AP information to a third characteristic value, and use the characteristic value of the target AP in the modified AP information as the first characteristic value. Subsequently, for other second ARP request messages in the multiple second ARP request messages, the AC can directly obtain the first characteristic value from the AP information of the target AP without querying the forwarding table. Due to the time required to query the forwarding table It is longer. Therefore, based on the above processing, query time can be effectively reduced, and AC processing efficiency is improved.
步骤302,判断第一特征值与第二特征值是否相同,如果是,则执行步骤 303,否则,执行步骤304。In step 302, it is determined whether the first characteristic value is the same as the second characteristic value. If so, step 303 is performed; otherwise, step 304 is performed.
步骤303,根据第一ARP请求报文的第一无线有效载荷和目标虚拟BSS接口的射频信息,修改预先存储的第二ARP请求报文。Step 303: Modify the pre-stored second ARP request message according to the first wireless payload of the first ARP request message and the radio frequency information of the target virtual BSS interface.
在实施中,如果第一特征值与第二特征值相同,则说明第二ARP请求报文中以太网头中的目的MAC和VLAN不需要进行修改,AC仅需要根据第一ARP请求报文的第一无线有效载荷和目标虚拟BSS接口的射频信息对第二ARP请求报文进行修改,具体的处理过程包括以下步骤:In implementation, if the first characteristic value is the same as the second characteristic value, it means that the destination MAC and VLAN in the Ethernet header in the second ARP request message need not be modified, and the AC only needs to perform The first wireless payload and the radio frequency information of the target virtual BSS interface modify the second ARP request message. The specific processing process includes the following steps:
步骤一,将第二ARP请求报文的第二无线有效载荷中的预设参数的参数值,修改为第一无线有效载荷中的预设参数的参数值,预设参数包括发送端IP地址、发送端MAC地址和接收端IP地址。Step 1: Modify the parameter value of the preset parameter in the second wireless payload of the second ARP request message to the parameter value of the preset parameter in the first wireless payload. The preset parameter includes the sending end IP address, Sending MAC address and receiving IP address.
在实施中,AC可以将第二ARP请求报文的第二无线有效载荷中的发送端IP地址、发送端MAC地址和接收端IP地址,对应修改为第一ARP请求报文中携带的第一无线有效载荷中的发送端IP地址、发送端MAC地址和接收端IP地址。In implementation, the AC may correspondingly modify the sender IP address, sender MAC address, and receiver IP address in the second wireless payload of the second ARP request message to the first carried in the first ARP request message. The sender IP address, sender MAC address, and receiver IP address in the wireless payload.
例如,第一ARP请求报文中携带的第一无线有效载荷中的发送端IP地址为2.0.0.100,发送端MAC地址为00:00:12:12:80:15,接收端IP地址为2.0.0.11,则AC可以将第二ARP请求报文中的发送端IP地址修改为2.0.0.100,发送端MAC地址修改为00:00:12:12:80:15,接收端IP地址修改为2.0.0.11。For example, the sending end IP address in the first wireless payload carried in the first ARP request message is 2.0.0.100, the sending end MAC address is 00: 00: 12: 12: 80: 15, and the receiving end IP address is 2.0 .0.11, the AC can modify the sender's IP address in the second ARP request packet to 2.0.0.100, the sender's MAC address to 00: 00: 12: 12: 80: 15, and the receiver's IP address to 2.0 .0.11.
步骤二,将第二ARP请求报文中的CAPWAP头中的射频信息,修改为目标虚拟BSS接口的射频信息。Step 2: Modify the radio frequency information in the CAPWAP header in the second ARP request message to the radio frequency information of the target virtual BSS interface.
在实施中,AC可以将第二ARP请求报文中的CAPWAP头中的射频信息对应修改为目标虚拟BSS接口的射频信息。例如,目标虚拟BSS接口的射频信息为1,则AC可以将第二ARP请求报文中的CAPWAP头中的射频信息修改为1。In implementation, the AC may correspondingly modify the radio frequency information in the CAPWAP header in the second ARP request message to the radio frequency information of the target virtual BSS interface. For example, if the radio frequency information of the target virtual BSS interface is 1, the AC may modify the radio frequency information in the CAPWAP header in the second ARP request packet to 1.
步骤三,根据目标AP对应的最大传输单元,修改第二ARP请求报文的IP头中的ID字段和校验字段。Step 3: Modify the ID field and the check field in the IP header of the second ARP request message according to the maximum transmission unit corresponding to the target AP.
在实施中,AC可以根据目标AP对应的最大传输单元,对第二ARP请求 报文中的校验字段进行修改。另外,AC还可以根据最大传输单元,判断是否需要对第二ARP请求报文进行文分片,如果是,则根据最大传输单元,对第二ARP请求报文进行分片处理,并修改封装信息中的IP头中的分片标识等。具体的分片过程属于现有技术,本申请实施例不再赘述。In implementation, the AC may modify the check field in the second ARP request message according to the maximum transmission unit corresponding to the target AP. In addition, the AC can also determine whether the second ARP request message needs to be fragmented according to the maximum transmission unit. If so, the second ARP request message is fragmented and the encapsulation information is modified according to the maximum transmission unit. Fragment identification in the IP header in. The specific fragmentation process belongs to the prior art, which is not repeated in the embodiment of the present application.
可选的,上述步骤一至步骤三的执行过程不分先后。Optionally, the execution process of the above steps 1 to 3 is in no particular order.
步骤304,根据第一ARP请求报文的第一无线有效载荷、目标AP对应的下一跳地址信息和目标虚拟BSS接口的射频信息,修改第二ARP请求报文。Step 304: Modify the second ARP request message according to the first wireless payload of the first ARP request message, the next hop address information corresponding to the target AP, and the radio frequency information of the target virtual BSS interface.
在实施中,如果第一特征值与第二特征值不相同,则说明第二ARP请求报文中以太网头中的目的MAC地址和VLAN需要进行修改,AC需要根据第一ARP请求报文的第一无线有效载荷、目标虚拟BSS接口的射频信息和目标AP对应的下一跳地址信息,对第二ARP请求报文进行修改,具体的处理过程包括以下步骤:In implementation, if the first characteristic value is different from the second characteristic value, it means that the destination MAC address and VLAN in the Ethernet header in the second ARP request packet need to be modified, and the AC needs to modify the The first wireless payload, the radio frequency information of the target virtual BSS interface, and the next hop address information corresponding to the target AP are used to modify the second ARP request message. The specific processing process includes the following steps:
步骤一,将第二ARP请求报文的第二无线有效载荷中的预设参数的参数值,修改为第一无线有效载荷中的预设参数的参数值,预设参数包括发送端IP地址、发送端MAC地址和接收端IP地址。Step 1: Modify the parameter value of the preset parameter in the second wireless payload of the second ARP request message to the parameter value of the preset parameter in the first wireless payload. The preset parameter includes the sending end IP address, Sending MAC address and receiving IP address.
具体处理过程与步骤303中的步骤一类似,此处不再赘述。The specific processing procedure is similar to step 1 in step 303, and is not repeated here.
步骤二,将第二ARP请求报文中的控制和配置协议CAPWAP头中的射频信息,修改为目标虚拟BSS接口的射频信息。Step 2: Modify the radio frequency information in the CAPWAP header of the control and configuration protocol in the second ARP request message to the radio frequency information of the target virtual BSS interface.
具体处理过程与步骤303中的步骤二类似,此处不再赘述。The specific processing procedure is similar to step 2 in step 303, and details are not described herein again.
步骤三,根据目标AP对应的最大传输单元,修改第二ARP请求报文的IP头中的ID字段和校验字段。Step 3: Modify the ID field and the check field in the IP header of the second ARP request message according to the maximum transmission unit corresponding to the target AP.
具体处理过程与步骤303中的步骤三类似,此处不再赘述。The specific processing procedure is similar to step 3 in step 303, and details are not described herein again.
步骤四,将第二ARP请求报文的以太网头中的目的MAC地址和VLAN,修改为目标AP对应的下一跳MAC和下一跳VLAN。Step 4: Modify the destination MAC address and VLAN in the Ethernet header of the second ARP request message to the next hop MAC and next hop VLAN corresponding to the target AP.
在实施中,AC可以从目标AP的AP信息中,获取目标AP对应的下一跳VLAN和下一跳MAC地址后,可以将第二ARP请求报文的以太网头中的目的MAC地址和VLAN对应修改为目标AP对应的下一跳MAC地址和下一 跳VLAN。例如,目标AP对应的下一跳MAC地址为MAC1,下一跳VLAN为VALN1,则AC将第二ARP请求报文的以太网头中的目的MAC地址修改为MAC1,将VLAN修改VLAN1。In implementation, the AC can obtain the next-hop VLAN and next-hop MAC address corresponding to the target AP from the AP information of the target AP, and then the destination MAC address and VLAN in the Ethernet header of the second ARP request packet can be obtained. Correspond to the next hop MAC address and next hop VLAN corresponding to the target AP. For example, if the next-hop MAC address corresponding to the target AP is MAC1 and the next-hop VLAN is VLAN1, the AC changes the destination MAC address in the Ethernet header of the second ARP request packet to MAC1 and the VLAN to VLAN1.
可选的,上述步骤一至步骤四的执行过程不分先后。Optionally, the execution process of the above steps 1 to 4 is in no particular order.
可选的,AC将根据目标AP对应的下一跳MAC和下一跳VLAN修改第二ARP请求报文时,还可以对第二ARP请求报文对应的特征值进行修改,具体处理过程如下:如果第一特征值与第二特征值不相同,则将第二ARP请求报文对应的第二特征值修改为第一特征值。Optionally, when the AC will modify the second ARP request message according to the next-hop MAC and next-hop VLAN corresponding to the target AP, the AC may also modify the characteristic value corresponding to the second ARP request message. The specific process is as follows: If the first characteristic value is different from the second characteristic value, the second characteristic value corresponding to the second ARP request message is modified to the first characteristic value.
在实施中,为了防止对第二ARP请求报文中的以太网头进行重复修改,AC在根据目标AP对应的下一跳MAC和下一跳VLAN修改第二ARP请求报文的以太网头中的目的MAC和VLAN后,可以将第二ARP请求报文对应的第二特征值修改为第一特征值。这样,如果目标AP对应的下一跳地址信息未发生变化时,无需对第二ARP请求报文中的以太网头进行修改,从而提高处理效率。In implementation, in order to prevent repeated modification of the Ethernet header in the second ARP request message, the AC modifies the Ethernet header in the second ARP request message according to the next-hop MAC and next-hop VLAN corresponding to the target AP. After the destination MAC and VLAN are set, the second characteristic value corresponding to the second ARP request packet may be modified to the first characteristic value. In this way, if the next-hop address information corresponding to the target AP does not change, there is no need to modify the Ethernet header in the second ARP request packet, thereby improving processing efficiency.
本申请实施例中,AC可以接收待广播的第一ARP请求报文,第一ARP请求报文携带有第一无线有效载荷。AC确定第一ARP请求报文所属的VLAN对应的目标虚拟BSS接口、以及目标虚拟BSS接口所属的目标AP,然后,根据第一ARP请求报文的第一无线有效载荷和预先存储的封装信息,修改预先存储的第二ARP请求报文,封装信息包括目标虚拟BSS接口的射频信息和目标AP对应的下一跳地址信息,向目标AP发送修改后的第二ARP请求报文。这样,AC仅需要根据待广播的第一ARP请求报文的第一无线有效载荷和预先存储的封装信息修改预先存储的第二ARP请求报文,无需将第一ARP请求报文重复复制,可以提高AC的处理效率。In the embodiment of the present application, the AC may receive a first ARP request message to be broadcast, and the first ARP request message carries a first wireless payload. The AC determines a target virtual BSS interface corresponding to the VLAN to which the first ARP request message belongs, and a target AP to which the target virtual BSS interface belongs, and then according to the first wireless payload and the pre-stored encapsulation information of the first ARP request message, Modify the pre-stored second ARP request message. The encapsulation information includes the radio frequency information of the target virtual BSS interface and the next hop address information of the target AP, and send the modified second ARP request message to the target AP. In this way, the AC only needs to modify the pre-stored second ARP request message according to the first wireless payload of the first ARP request message to be broadcast and the pre-stored encapsulation information, and does not need to duplicate the first ARP request message. Improve AC processing efficiency.
基于相同的技术构思,如图4所示,本申请实施例还提供了一种报文传输的装置,该装置应用于AC,该装置包括:Based on the same technical concept, as shown in FIG. 4, an embodiment of the present application further provides a device for transmitting a message. The device is applied to an AC. The device includes:
接收模块410,用于接收待广播的第一地址解析协议ARP请求报文,第一ARP请求报文携带有第一无线有效载荷;The receiving module 410 is configured to receive a first address resolution protocol ARP request message to be broadcast, where the first ARP request message carries a first wireless payload;
确定模块420,用于确定第一ARP请求报文所属的VLAN对应的目标虚拟BSS接口、以及目标虚拟BSS接口所属的目标AP;A determining module 420, configured to determine a target virtual BSS interface corresponding to a VLAN to which the first ARP request message belongs, and a target AP to which the target virtual BSS interface belongs;
第一修改模块430,用于根据第一ARP请求报文的第一无线有效载荷和预先存储的封装信息,修改预先存储的第二ARP请求报文,封装信息包括目标虚拟BSS接口的射频信息和目标AP对应的下一跳地址信息;The first modification module 430 is configured to modify the pre-stored second ARP request message according to the first wireless payload of the first ARP request message and the pre-stored encapsulation information, where the encapsulation information includes radio frequency information of the target virtual BSS interface and The next hop address information corresponding to the target AP;
发送模块440,用于向目标AP发送修改后的第二ARP请求报文。The sending module 440 is configured to send a modified second ARP request message to the target AP.
可选的,如图5所示,该装置还包括:Optionally, as shown in FIG. 5, the device further includes:
获取模块450,用于获取目标AP对应的第一特征值、以及预先存储的第二ARP请求报文对应的第二特征值,其中,第一特征值和第二特征值是根据目标AP对应的转发信息生成的;The obtaining module 450 is configured to obtain a first feature value corresponding to the target AP and a second feature value corresponding to a pre-stored second ARP request message, where the first feature value and the second feature value are corresponding to the target AP. Generated by forwarding information;
第一修改模块430,具体用于:The first modification module 430 is specifically configured to:
如果第一特征值与第二特征值相同,则根据第一ARP请求报文的第一无线有效载荷和目标虚拟BSS接口的射频信息,修改预先存储的第二ARP请求报文;If the first characteristic value is the same as the second characteristic value, modifying the pre-stored second ARP request message according to the first wireless payload of the first ARP request message and the radio frequency information of the target virtual BSS interface;
如果第一特征值与第二特征值不相同,则根据第一ARP请求报文的第一无线有效载荷、目标AP对应的下一跳地址信息和目标虚拟BSS接口的射频信息,修改第二ARP请求报文。If the first characteristic value is different from the second characteristic value, the second ARP is modified according to the first wireless payload of the first ARP request message, the next hop address information corresponding to the target AP, and the radio frequency information of the target virtual BSS interface. Request message.
可选的,第一修改模块430,具体用于:Optionally, the first modification module 430 is specifically configured to:
将第二ARP请求报文的第二无线有效载荷中的预设参数的参数值,修改为第一无线有效载荷中的预设参数的参数值,预设参数包括发送端IP地址、发送端MAC地址和接收端IP地址;Modify the parameter value of the preset parameter in the second wireless payload of the second ARP request message to the parameter value of the preset parameter in the first wireless payload. The preset parameter includes the sending end IP address and the sending end MAC. Address and receiving end IP address;
将第二ARP请求报文中的控制和配置协议CAPWAP头中的射频信息,修改为目标虚拟BSS接口的射频信息;Modify the radio frequency information in the control and configuration protocol CAPWAP header in the second ARP request message into radio frequency information of the target virtual BSS interface;
根据目标AP对应的最大传输单元,修改第二ARP请求报文的IP头中的ID字段和校验字段。Modify the ID field and the check field in the IP header of the second ARP request message according to the maximum transmission unit corresponding to the target AP.
可选的,下一跳地址信息包括下一跳MAC地址和下一跳VLAN;Optionally, the next hop address information includes a next hop MAC address and a next hop VLAN;
第一修改模块430,具体用于:The first modification module 430 is specifically configured to:
将第二ARP请求报文的以太网头中的目的MAC地址和VLAN,修改为目标AP对应的下一跳MAC和下一跳VLAN;Modify the destination MAC address and VLAN in the Ethernet header of the second ARP request message to the next hop MAC and next hop VLAN corresponding to the target AP;
将第二ARP请求报文的第二无线有效载荷中的预设参数的参数值,修改为第一无线有效载荷中的预设参数的参数值,预设参数包括发送端IP地址、发送端MAC地址和接收端IP地址;Modify the parameter value of the preset parameter in the second wireless payload of the second ARP request message to the parameter value of the preset parameter in the first wireless payload. The preset parameter includes the sending end IP address and the sending end MAC. Address and receiving end IP address;
将第二ARP请求报文中的控制和配置协议CAPWAP头中的射频信息,修改为目标虚拟BSS接口的射频信息;Modify the radio frequency information in the control and configuration protocol CAPWAP header in the second ARP request message into radio frequency information of the target virtual BSS interface;
根据目标AP对应的最大传输单元,修改第二ARP请求报文的IP头中的ID字段和校验字段。Modify the ID field and the check field in the IP header of the second ARP request message according to the maximum transmission unit corresponding to the target AP.
可选的,如图6所示,该装置还包括:Optionally, as shown in FIG. 6, the device further includes:
第二修改模块460,用于如果第一特征值与第二特征值不相同,则将第二ARP请求报文对应的第二特征值修改为第一特征值。The second modification module 460 is configured to modify the second feature value corresponding to the second ARP request message to the first feature value if the first feature value is different from the second feature value.
可选的,第二ARP请求报文的数目为多个,针对多个第二ARP请求报文中的第一个第二ARP请求报文,获取模块450,具体用于:Optionally, the number of the second ARP request messages is multiple. For the first second ARP request message in the multiple second ARP request messages, the obtaining module 450 is specifically configured to:
获取目标AP的IP地址在转发表中对应的索引值;Obtain the corresponding index value of the target AP's IP address in the forwarding table;
根据索引值,在转发表中查询索引值对应的第三特征值;Querying the third feature value corresponding to the index value in the forwarding table according to the index value;
如果第三特征值与预先存储的目标AP的AP信息中的特征值相同,则将AP信息中的特征值作为第一特征值;If the third feature value is the same as the feature value in the AP information of the target AP stored in advance, using the feature value in the AP information as the first feature value;
如果第三特征值与预先存储的目标AP的AP信息中的特征值不相同,则将AP信息中的特征值修改为第三特征值,并将修改后的AP信息中的特征值作为第一特征值;If the third feature value is not the same as the feature value in the AP information of the target AP stored in advance, the feature value in the AP information is modified to the third feature value, and the feature value in the modified AP information is used as the first Eigenvalues;
针对多个第二ARP请求报文中的其他第二ARP请求报文,获取模块450,具体用于:For other second ARP request messages in the plurality of second ARP request messages, the obtaining module 450 is specifically configured to:
获取目标AP的AP信息中的特征值,作为第一特征值。Acquire a feature value in the AP information of the target AP as the first feature value.
本申请实施例中,AC可以接收待广播的第一ARP请求报文,第一ARP 请求报文携带有第一无线有效载荷。AC确定第一ARP请求报文所属的VLAN对应的目标虚拟BSS接口、以及目标虚拟BSS接口所属的目标AP,然后,根据第一ARP请求报文的第一无线有效载荷和预先存储的封装信息,修改预先存储的第二ARP请求报文,封装信息包括目标虚拟BSS接口的射频信息和目标AP对应的下一跳地址信息,向目标AP发送修改后的第二ARP请求报文。这样,AC仅需要根据待广播的第一ARP请求报文的第一无线有效载荷和预先存储的封装信息修改预先存储的第二ARP请求报文,无需将第一ARP请求报文重复复制,可以提高AC的处理效率。In the embodiment of the present application, the AC may receive a first ARP request message to be broadcast, and the first ARP request message carries a first wireless payload. The AC determines a target virtual BSS interface corresponding to the VLAN to which the first ARP request message belongs, and a target AP to which the target virtual BSS interface belongs, and then according to the first wireless payload and the pre-stored encapsulation information of the first ARP request message, Modify the pre-stored second ARP request message. The encapsulation information includes the radio frequency information of the target virtual BSS interface and the next hop address information of the target AP, and send the modified second ARP request message to the target AP. In this way, the AC only needs to modify the pre-stored second ARP request message according to the first wireless payload of the first ARP request message to be broadcast and the pre-stored encapsulation information, and does not need to duplicate the first ARP request message. Improve AC processing efficiency.
基于相同的技术构思,如图7所示,本申请实施例还提供了一种AC,该AC包括:处理器701和机器可读存储介质702,所述机器可读存储介质702存储有能够被所述处理器701执行的机器可执行指令,所述机器可执行指令促使所述处理器701:Based on the same technical concept, as shown in FIG. 7, an embodiment of the present application further provides an AC. The AC includes: a processor 701 and a machine-readable storage medium 702. The machine-readable storage medium 702 stores Machine-executable instructions executed by the processor 701, the machine-executable instructions causing the processor 701 to:
接收待广播的第一地址解析协议ARP请求报文,所述第一ARP请求报文携带有第一无线有效载荷;Receiving a first address resolution protocol ARP request message to be broadcast, where the first ARP request message carries a first wireless payload;
确定所述第一ARP请求报文所属的VLAN对应的目标虚拟基本服务集BSS接口、以及所述目标虚拟BSS接口所属的目标AP;Determining a target virtual basic service set BSS interface corresponding to a VLAN to which the first ARP request message belongs, and a target AP to which the target virtual BSS interface belongs;
根据所述第一ARP请求报文的第一无线有效载荷和预先存储的封装信息,修改预先存储的第二ARP请求报文,所述封装信息包括所述目标虚拟BSS接口的射频信息和所述目标AP对应的下一跳地址信息;Modifying a pre-stored second ARP request message according to a first wireless payload of the first ARP request message and pre-stored encapsulation information, where the encapsulation information includes radio frequency information of the target virtual BSS interface and the The next hop address information corresponding to the target AP;
向所述目标AP发送修改后的第二ARP请求报文。Sending a modified second ARP request message to the target AP.
在本申请的一个可选实施例中,所述机器可执行指令还促使所述处理器701:In an optional embodiment of the present application, the machine-executable instructions further cause the processor 701 to:
获取所述目标AP对应的第一特征值、以及预先存储的所述第二ARP请求报文对应的第二特征值,其中,所述第一特征值和所述第二特征值是根据所述目标AP对应的转发信息生成的;Obtaining a first feature value corresponding to the target AP and a second feature value corresponding to the second ARP request message stored in advance, wherein the first feature value and the second feature value are based on the Generated by the forwarding information corresponding to the target AP;
所述根据所述第一ARP请求报文的第一无线有效载荷和预先存储的封装 信息,修改预先存储的第二ARP请求报文,包括:The modifying the pre-stored second ARP request message according to the first wireless payload of the first ARP request message and the pre-stored encapsulation information includes:
如果所述第一特征值与所述第二特征值相同,则根据所述第一ARP请求报文的第一无线有效载荷和所述目标虚拟BSS接口的射频信息,修改预先存储的第二ARP请求报文;If the first characteristic value is the same as the second characteristic value, modify the pre-stored second ARP according to the first wireless payload of the first ARP request message and the radio frequency information of the target virtual BSS interface. Request message
如果所述第一特征值与所述第二特征值不相同,则根据所述第一ARP请求报文的第一无线有效载荷、所述目标AP对应的下一跳地址信息和所述目标虚拟BSS接口的射频信息,修改所述第二ARP请求报文。If the first characteristic value is different from the second characteristic value, according to the first wireless payload of the first ARP request message, the next hop address information corresponding to the target AP, and the target virtual value Radio frequency information of the BSS interface, and modify the second ARP request message.
在本申请的一个可选实施例中,所述机器可执行指令具体促使所述处理器701:In an optional embodiment of the present application, the machine-executable instructions specifically cause the processor 701 to:
将所述第二ARP请求报文的第二无线有效载荷中的预设参数的参数值,修改为所述第一无线有效载荷中的所述预设参数的参数值,所述预设参数包括发送端IP地址、发送端MAC地址和接收端IP地址;Modify a parameter value of a preset parameter in a second wireless payload of the second ARP request message to a parameter value of the preset parameter in the first wireless payload, and the preset parameter includes Sender IP address, sender MAC address, and receiver IP address;
将所述第二ARP请求报文中的控制和配置协议CAPWAP头中的射频信息,修改为所述目标虚拟BSS接口的射频信息;Modifying the radio frequency information in the control and configuration protocol CAPWAP header in the second ARP request message into radio frequency information of the target virtual BSS interface;
根据目标AP对应的最大传输单元,修改所述第二ARP请求报文的IP头中的身份标识ID字段和校验字段。Modifying the ID field and the check field in the IP header of the second ARP request message according to the maximum transmission unit corresponding to the target AP.
在本申请的一个可选实施例中,所述下一跳地址信息包括下一跳MAC地址和下一跳VLAN;In an optional embodiment of the present application, the next hop address information includes a next hop MAC address and a next hop VLAN;
所述机器可执行指令具体促使所述处理器701:The machine-executable instructions specifically cause the processor 701 to:
将所述第二ARP请求报文的以太网头中的目的MAC地址和VLAN,修改为所述目标AP对应的下一跳MAC和下一跳VLAN;Modifying the destination MAC address and VLAN in the Ethernet header of the second ARP request message to the next hop MAC and next hop VLAN corresponding to the target AP;
将所述第二ARP请求报文的第二无线有效载荷中的预设参数的参数值,修改为所述第一无线有效载荷中的所述预设参数的参数值,所述预设参数包括发送端IP地址、发送端MAC地址和接收端IP地址;Modify a parameter value of a preset parameter in a second wireless payload of the second ARP request message to a parameter value of the preset parameter in the first wireless payload, and the preset parameter includes Sender IP address, sender MAC address, and receiver IP address;
将所述第二ARP请求报文中的控制和配置协议CAPWAP头中的射频信息,修改为所述目标虚拟BSS接口的射频信息;Modifying the radio frequency information in the control and configuration protocol CAPWAP header in the second ARP request message into radio frequency information of the target virtual BSS interface;
根据目标AP对应的最大传输单元,修改所述第二ARP请求报文的IP头中的身份标识ID字段和校验字段。Modifying the ID field and the check field in the IP header of the second ARP request message according to the maximum transmission unit corresponding to the target AP.
在本申请的一个可选实施例中,所述机器可执行指令还促使所述处理器701:In an optional embodiment of the present application, the machine-executable instructions further cause the processor 701 to:
如果所述第一特征值与所述第二特征值不相同,则将所述第二ARP请求报文对应的第二特征值修改为所述第一特征值。If the first characteristic value is different from the second characteristic value, modify the second characteristic value corresponding to the second ARP request message to the first characteristic value.
在本申请的一个可选实施例中,所述第二ARP请求报文的数目为多个;In an optional embodiment of the present application, the number of the second ARP request packets is multiple;
所述机器可执行指令具体促使所述处理器701:The machine-executable instructions specifically cause the processor 701 to:
针对多个第二ARP请求报文中的第一个第二ARP请求报文,获取所述目标AP的IP地址在转发表中对应的索引值;For a first second ARP request message among multiple second ARP request messages, obtaining an index value corresponding to the IP address of the target AP in the forwarding table;
根据所述索引值,在所述转发表中查询所述索引值对应的第三特征值;Querying a third feature value corresponding to the index value in the forwarding table according to the index value;
如果所述第三特征值与所述目标AP的AP信息中的特征值相同,则将所述AP信息中的特征值作为第一特征值;If the third feature value is the same as the feature value in the AP information of the target AP, using the feature value in the AP information as the first feature value;
如果所述第三特征值与所述目标AP的AP信息中的特征值不相同,则将所述AP信息中的特征值修改为所述第三特征值,并将修改后的所述AP信息中的特征值作为第一特征值;If the third feature value is different from the feature value in the AP information of the target AP, modify the feature value in the AP information to the third feature value, and modify the AP information after the modification The feature value in the first feature value;
针对所述多个第二ARP请求报文中的其他第二ARP请求报文,所述获取所述目标AP对应的第一特征值,包括:For other second ARP request messages among the plurality of second ARP request messages, the acquiring a first feature value corresponding to the target AP includes:
获取所述目标AP的AP信息中的特征值,作为第一特征值。Acquire a feature value in the AP information of the target AP as a first feature value.
如图7所示,网络设备还可以包括通信总线703。通过通信总线703,处理器701、机器可读存储介质702之间完成通信交互。通信总线703可以是外设部件互连标准(英文:Peripheral Component Interconnect,简称:PCI)总线或扩展工业标准结构(英文:Extended Industry Standard Architecture,简称:EISA)总线等。该通信总线703可以分为地址总线、数据总线、控制总线等。As shown in FIG. 7, the network device may further include a communication bus 703. Through the communication bus 703, the processor 701 and the machine-readable storage medium 702 complete communication interaction. The communication bus 703 may be a Peripheral Component Interconnect Standard (English: Peripheral Component Interconnect (PCI) for short) bus or an Extended Industry Standard Architecture (English: Extended Industry Standard Architecture (EISA) bus for short). The communication bus 703 can be divided into an address bus, a data bus, a control bus, and the like.
机器可读存储介质702可以包括随机存取存储器(英文:Random Access Memory,简称:RAM),也可以包括非易失性存储器(英文:Non-Volatile  Memory,简称:NVM),例如至少一个磁盘存储器。另外,机器可读存储介质702还可以是至少一个位于远离前述处理器701的存储装置。The machine-readable storage medium 702 may include random access memory (English: Random Access Memory, referred to as RAM), and may also include non-volatile memory (English: Non-Volatile Memory, referred to as NVM), such as at least one disk memory. . In addition, the machine-readable storage medium 702 may also be at least one storage device located remote from the foregoing processor 701.
处理器701可以是通用处理器701,包括中央处理器701(英文:Central Processing Unit,简称:CPU)、网络处理器701(英文:Network Processor,简称:NP)等;还可以是数字信号处理器701(英文:Digital Signal Processing,简称:DSP)、专用集成电路(英文:Application Specific Integrated Circuit,简称:ASIC)、现场可编程门阵列(英文:Field-Programmable Gate Array,简称:FPGA)或其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The processor 701 may be a general-purpose processor 701, including a central processing unit 701 (English: Central Processing Unit, abbreviated as: CPU), a network processor 701 (English: Network Processor, abbreviated as: NP), etc .; it may also be a digital signal processor 701 (English: Digital Signal Processing, referred to as DSP), Application Specific Integrated Circuit (English: Application Specific Integrated Circuit, referred to as ASIC), Field Programmable Gate Array (English: Field-Programmable Gate Array, FPGA) or other Programming logic devices, discrete gate or transistor logic devices, discrete hardware components.
在本申请提供的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述任一报文传输的方法的步骤。In still another embodiment provided by the present application, a computer-readable storage medium is also provided. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any one of the foregoing message transmissions is implemented. Steps of the method.
在本申请提供的又一实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例中任一报文传输的方法的步骤。In yet another embodiment provided by the present application, a computer program product containing instructions is also provided, which when executed on a computer, causes the computer to execute the steps of the method for transmitting a message in any of the above embodiments.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present application are wholly or partially generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be from a website site, a computer, a server, or a data center. Transmission via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) to another website site, computer, server, or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes one or more available medium integration. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (Solid State Disk (SSD)), and the like.
可选的,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Optionally, in this article, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that between these entities or operations There is any such actual relationship or order. Moreover, the terms "including", "comprising", or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or device that includes a series of elements includes not only those elements but also those that are not explicitly listed Or other elements inherent to such a process, method, article, or device. Without more restrictions, the elements defined by the sentence "including a ..." do not exclude the existence of other identical elements in the process, method, article, or equipment that includes the elements.
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner, and the same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, as for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant part may refer to the description of the method embodiment.
以上所述仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本申请的保护范围内。The above descriptions are merely preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Any modification, equivalent replacement, and improvement made within the spirit and principle of this application are included in the protection scope of this application.

Claims (13)

  1. 一种报文传输的方法,所述方法应用于AC,所述方法包括:A method for message transmission. The method is applied to AC. The method includes:
    接收待广播的第一地址解析协议ARP请求报文,所述第一ARP请求报文携带有第一无线有效载荷;Receiving a first address resolution protocol ARP request message to be broadcast, where the first ARP request message carries a first wireless payload;
    确定所述第一ARP请求报文所属的虚拟局域网VLAN对应的目标虚拟基本服务集BSS接口、以及所述目标虚拟BSS接口所属的目标AP;Determining a target virtual basic service set BSS interface corresponding to the virtual local area network VLAN to which the first ARP request message belongs, and a target AP to which the target virtual BSS interface belongs;
    根据所述第一ARP请求报文的第一无线有效载荷和预先存储的封装信息,修改预先存储的第二ARP请求报文,所述封装信息包括所述目标虚拟BSS接口的射频信息和所述目标AP对应的下一跳地址信息;Modifying a pre-stored second ARP request message according to a first wireless payload of the first ARP request message and pre-stored encapsulation information, where the encapsulation information includes radio frequency information of the target virtual BSS interface and the The next hop address information corresponding to the target AP;
    向所述目标AP发送修改后的第二ARP请求报文。Sending a modified second ARP request message to the target AP.
  2. 根据权利要求1所述的方法,所述方法还包括:The method according to claim 1, further comprising:
    获取所述目标AP对应的第一特征值、以及预先存储的所述第二ARP请求报文对应的第二特征值,其中,所述第一特征值和所述第二特征值是根据所述目标AP对应的转发信息生成的;Obtaining a first feature value corresponding to the target AP and a second feature value corresponding to the second ARP request message stored in advance, wherein the first feature value and the second feature value are based on the Generated by the forwarding information corresponding to the target AP;
    所述根据所述第一ARP请求报文的第一无线有效载荷和预先存储的封装信息,修改预先存储的第二ARP请求报文,包括:The modifying the pre-stored second ARP request message according to the first wireless payload of the first ARP request message and the pre-stored encapsulation information includes:
    如果所述第一特征值与所述第二特征值相同,则根据所述第一ARP请求报文的第一无线有效载荷和所述目标虚拟BSS接口的射频信息,修改预先存储的第二ARP请求报文;If the first characteristic value is the same as the second characteristic value, modify the pre-stored second ARP according to the first wireless payload of the first ARP request message and the radio frequency information of the target virtual BSS interface. Request message
    如果所述第一特征值与所述第二特征值不相同,则根据所述第一ARP请求报文的第一无线有效载荷、所述目标AP对应的下一跳地址信息和所述目标虚拟BSS接口的射频信息,修改所述第二ARP请求报文。If the first characteristic value is different from the second characteristic value, according to the first wireless payload of the first ARP request message, the next hop address information corresponding to the target AP, and the target virtual value Radio frequency information of the BSS interface, and modify the second ARP request message.
  3. 根据权利要求2所述的方法,所述根据所述第一ARP请求报文的第一无线有效载荷和所述目标虚拟BSS接口的射频信息,修改预先存储的第二ARP请求报文,包括:The method according to claim 2, wherein the modifying a pre-stored second ARP request message according to a first wireless payload of the first ARP request message and radio frequency information of the target virtual BSS interface comprises:
    将所述第二ARP请求报文的第二无线有效载荷中的预设参数的参数值,修改为所述第一无线有效载荷中的所述预设参数的参数值,所述预设参数包 括发送端IP地址、发送端MAC地址和接收端IP地址;Modify a parameter value of a preset parameter in a second wireless payload of the second ARP request message to a parameter value of the preset parameter in the first wireless payload, and the preset parameter includes Sender IP address, sender MAC address, and receiver IP address;
    将所述第二ARP请求报文中的控制和配置协议CAPWAP头中的射频信息,修改为所述目标虚拟BSS接口的射频信息;Modifying the radio frequency information in the control and configuration protocol CAPWAP header in the second ARP request message into radio frequency information of the target virtual BSS interface;
    根据目标AP对应的最大传输单元,修改所述第二ARP请求报文的IP头中的身份标识ID字段和校验字段。Modifying the ID field and the check field in the IP header of the second ARP request message according to the maximum transmission unit corresponding to the target AP.
  4. 根据权利要求2所述的方法,所述下一跳地址信息包括下一跳MAC地址和下一跳VLAN;The method according to claim 2, wherein the next hop address information includes a next hop MAC address and a next hop VLAN;
    所述根据所述第一ARP请求报文的第一无线有效载荷、所述目标AP对应的下一跳地址信息和所述目标虚拟BSS接口的射频信息,修改所述第二ARP请求报文,包括:Modifying the second ARP request message according to the first wireless payload of the first ARP request message, next hop address information corresponding to the target AP, and radio frequency information of the target virtual BSS interface, include:
    将所述第二ARP请求报文的以太网头中的目的MAC地址和VLAN,修改为所述目标AP对应的下一跳MAC和下一跳VLAN;Modifying the destination MAC address and VLAN in the Ethernet header of the second ARP request message to the next hop MAC and next hop VLAN corresponding to the target AP;
    将所述第二ARP请求报文的第二无线有效载荷中的预设参数的参数值,修改为所述第一无线有效载荷中的所述预设参数的参数值,所述预设参数包括发送端IP地址、发送端MAC地址和接收端IP地址;Modify a parameter value of a preset parameter in a second wireless payload of the second ARP request message to a parameter value of the preset parameter in the first wireless payload, and the preset parameter includes Sender IP address, sender MAC address, and receiver IP address;
    将所述第二ARP请求报文中的控制和配置协议CAPWAP头中的射频信息,修改为所述目标虚拟BSS接口的射频信息;Modifying the radio frequency information in the control and configuration protocol CAPWAP header in the second ARP request message into radio frequency information of the target virtual BSS interface;
    根据目标AP对应的最大传输单元,修改所述第二ARP请求报文的IP头中的身份标识ID字段和校验字段。Modifying the ID field and the check field in the IP header of the second ARP request message according to the maximum transmission unit corresponding to the target AP.
  5. 根据权利要求2所述的方法,所述方法还包括:The method according to claim 2, further comprising:
    如果所述第一特征值与所述第二特征值不相同,则将所述第二ARP请求报文对应的第二特征值修改为所述第一特征值。If the first characteristic value is different from the second characteristic value, modify the second characteristic value corresponding to the second ARP request message to the first characteristic value.
  6. 根据权利要求2所述的方法,所述第二ARP请求报文的数目为多个;The method according to claim 2, wherein the number of the second ARP request messages is multiple;
    针对多个第二ARP请求报文中的第一个第二ARP请求报文,所述获取所述目标AP对应的第一特征值,包括:For the first second ARP request message among the plurality of second ARP request messages, obtaining the first feature value corresponding to the target AP includes:
    获取所述目标AP的IP地址在转发表中对应的索引值;Obtaining the corresponding index value of the IP address of the target AP in the forwarding table;
    根据所述索引值,在所述转发表中查询所述索引值对应的第三特征值;Querying a third feature value corresponding to the index value in the forwarding table according to the index value;
    如果所述第三特征值与所述目标AP的AP信息中的特征值相同,则将所述AP信息中的特征值作为第一特征值;If the third feature value is the same as the feature value in the AP information of the target AP, using the feature value in the AP information as the first feature value;
    如果所述第三特征值与所述目标AP的AP信息中的特征值不相同,则将所述AP信息中的特征值修改为所述第三特征值,并将修改后的所述AP信息中的特征值作为第一特征值;If the third feature value is different from the feature value in the AP information of the target AP, modify the feature value in the AP information to the third feature value, and modify the AP information after the modification The feature value in the first feature value;
    针对所述多个第二ARP请求报文中的其他第二ARP请求报文,所述获取所述目标AP对应的第一特征值,包括:For other second ARP request messages among the plurality of second ARP request messages, the acquiring a first feature value corresponding to the target AP includes:
    获取所述目标AP的AP信息中的特征值,作为第一特征值。Acquire a feature value in the AP information of the target AP as a first feature value.
  7. 一种AC,所述AC包括:处理器和机器可读存储介质,所述机器可读存储介质存储有能够被所述处理器执行的机器可执行指令,所述机器可执行指令促使所述处理器:An AC, comprising: a processor and a machine-readable storage medium, the machine-readable storage medium storing machine-executable instructions executable by the processor, the machine-executable instructions causing the processing Device:
    接收待广播的第一地址解析协议ARP请求报文,所述第一ARP请求报文携带有第一无线有效载荷;Receiving a first address resolution protocol ARP request message to be broadcast, where the first ARP request message carries a first wireless payload;
    确定所述第一ARP请求报文所属的虚拟局域网VLAN对应的目标虚拟基本服务集BSS接口、以及所述目标虚拟BSS接口所属的目标AP;Determining a target virtual basic service set BSS interface corresponding to the virtual local area network VLAN to which the first ARP request message belongs, and a target AP to which the target virtual BSS interface belongs;
    根据所述第一ARP请求报文的第一无线有效载荷和预先存储的封装信息,修改预先存储的第二ARP请求报文,所述封装信息包括所述目标虚拟BSS接口的射频信息和所述目标AP对应的下一跳地址信息;Modifying a pre-stored second ARP request message according to a first wireless payload of the first ARP request message and pre-stored encapsulation information, where the encapsulation information includes radio frequency information of the target virtual BSS interface and the The next hop address information corresponding to the target AP;
    向所述目标AP发送修改后的第二ARP请求报文。Sending a modified second ARP request message to the target AP.
  8. 根据权利要求7所述的AC,所述机器可执行指令还促使所述处理器:The AC of claim 7, the machine-executable instructions further cause the processor:
    获取所述目标AP对应的第一特征值、以及预先存储的所述第二ARP请求报文对应的第二特征值,其中,所述第一特征值和所述第二特征值是根据所述目标AP对应的转发信息生成的;Obtaining a first feature value corresponding to the target AP and a second feature value corresponding to the second ARP request message stored in advance, wherein the first feature value and the second feature value are based on the Generated by the forwarding information corresponding to the target AP;
    所述根据所述第一ARP请求报文的第一无线有效载荷和预先存储的封装 信息,修改预先存储的第二ARP请求报文,包括:The modifying the pre-stored second ARP request message according to the first wireless payload of the first ARP request message and the pre-stored encapsulation information includes:
    如果所述第一特征值与所述第二特征值相同,则根据所述第一ARP请求报文的第一无线有效载荷和所述目标虚拟BSS接口的射频信息,修改预先存储的第二ARP请求报文;If the first characteristic value is the same as the second characteristic value, modify the pre-stored second ARP according to the first wireless payload of the first ARP request message and the radio frequency information of the target virtual BSS interface. Request message
    如果所述第一特征值与所述第二特征值不相同,则根据所述第一ARP请求报文的第一无线有效载荷、所述目标AP对应的下一跳地址信息和所述目标虚拟BSS接口的射频信息,修改所述第二ARP请求报文。If the first characteristic value is different from the second characteristic value, according to the first wireless payload of the first ARP request message, the next hop address information corresponding to the target AP, and the target virtual value Radio frequency information of the BSS interface, and modify the second ARP request message.
  9. 根据权利要求8所述的AC,所述机器可执行指令具体促使所述处理器:The AC of claim 8, the machine-executable instructions specifically cause the processor:
    将所述第二ARP请求报文的第二无线有效载荷中的预设参数的参数值,修改为所述第一无线有效载荷中的所述预设参数的参数值,所述预设参数包括发送端IP地址、发送端MAC地址和接收端IP地址;Modify a parameter value of a preset parameter in a second wireless payload of the second ARP request message to a parameter value of the preset parameter in the first wireless payload, and the preset parameter includes Sender IP address, sender MAC address, and receiver IP address;
    将所述第二ARP请求报文中的控制和配置协议CAPWAP头中的射频信息,修改为所述目标虚拟BSS接口的射频信息;Modifying the radio frequency information in the control and configuration protocol CAPWAP header in the second ARP request message into radio frequency information of the target virtual BSS interface;
    根据目标AP对应的最大传输单元,修改所述第二ARP请求报文的IP头中的身份标识ID字段和校验字段。Modifying the ID field and the check field in the IP header of the second ARP request message according to the maximum transmission unit corresponding to the target AP.
  10. 根据权利要求8所述的AC,所述下一跳地址信息包括下一跳MAC地址和下一跳VLAN;The AC according to claim 8, wherein the next hop address information includes a next hop MAC address and a next hop VLAN;
    所述机器可执行指令具体促使所述处理器:The machine-executable instructions specifically cause the processor:
    将所述第二ARP请求报文的以太网头中的目的MAC地址和VLAN,修改为所述目标AP对应的下一跳MAC和下一跳VLAN;Modifying the destination MAC address and VLAN in the Ethernet header of the second ARP request message to the next hop MAC and next hop VLAN corresponding to the target AP;
    将所述第二ARP请求报文的第二无线有效载荷中的预设参数的参数值,修改为所述第一无线有效载荷中的所述预设参数的参数值,所述预设参数包括发送端IP地址、发送端MAC地址和接收端IP地址;Modify a parameter value of a preset parameter in a second wireless payload of the second ARP request message to a parameter value of the preset parameter in the first wireless payload, and the preset parameter includes Sender IP address, sender MAC address, and receiver IP address;
    将所述第二ARP请求报文中的控制和配置协议CAPWAP头中的射频信息,修改为所述目标虚拟BSS接口的射频信息;Modifying the radio frequency information in the control and configuration protocol CAPWAP header in the second ARP request message into radio frequency information of the target virtual BSS interface;
    根据目标AP对应的最大传输单元,修改所述第二ARP请求报文的IP头中的身份标识ID字段和校验字段。Modifying the ID field and the check field in the IP header of the second ARP request message according to the maximum transmission unit corresponding to the target AP.
  11. 根据权利要求8所述的AC,所述机器可执行指令还促使所述处理器:The AC of claim 8, the machine-executable instructions further cause the processor:
    如果所述第一特征值与所述第二特征值不相同,则将所述第二ARP请求报文对应的第二特征值修改为所述第一特征值。If the first characteristic value is different from the second characteristic value, modify the second characteristic value corresponding to the second ARP request message to the first characteristic value.
  12. 根据权利要求8所述的AC,所述第二ARP请求报文的数目为多个;The AC according to claim 8, the number of the second ARP request messages is multiple;
    所述机器可执行指令具体促使所述处理器:The machine-executable instructions specifically cause the processor:
    针对多个第二ARP请求报文中的第一个第二ARP请求报文,获取所述目标AP的IP地址在转发表中对应的索引值;For a first second ARP request message among multiple second ARP request messages, obtaining an index value corresponding to the IP address of the target AP in the forwarding table;
    根据所述索引值,在所述转发表中查询所述索引值对应的第三特征值;Querying a third feature value corresponding to the index value in the forwarding table according to the index value;
    如果所述第三特征值与所述目标AP的AP信息中的特征值相同,则将所述AP信息中的特征值作为第一特征值;If the third feature value is the same as the feature value in the AP information of the target AP, using the feature value in the AP information as the first feature value;
    如果所述第三特征值与所述目标AP的AP信息中的特征值不相同,则将所述AP信息中的特征值修改为所述第三特征值,并将修改后的所述AP信息中的特征值作为第一特征值;If the third feature value is different from the feature value in the AP information of the target AP, modify the feature value in the AP information to the third feature value, and modify the AP information after the modification The feature value in the first feature value;
    针对所述多个第二ARP请求报文中的其他第二ARP请求报文,所述获取所述目标AP对应的第一特征值,包括:For other second ARP request messages among the plurality of second ARP request messages, the acquiring a first feature value corresponding to the target AP includes:
    获取所述目标AP的AP信息中的特征值,作为第一特征值。Acquire a feature value in the AP information of the target AP as a first feature value.
  13. 一种机器可读存储介质,存储有机器可执行指令,在被处理器调用和执行时,所述机器可执行指令促使所述处理器:实现权利要求1-6任一所述的方法步骤。A machine-readable storage medium stores machine-executable instructions. When called and executed by a processor, the machine-executable instructions cause the processor to: implement the method steps of any one of claims 1-6.
PCT/CN2019/095137 2018-07-09 2019-07-08 Packet transmission WO2020011135A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810744809.3 2018-07-09
CN201810744809.3A CN108989173B (en) 2018-07-09 2018-07-09 Message transmission method and device

Publications (1)

Publication Number Publication Date
WO2020011135A1 true WO2020011135A1 (en) 2020-01-16

Family

ID=64536477

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/095137 WO2020011135A1 (en) 2018-07-09 2019-07-08 Packet transmission

Country Status (2)

Country Link
CN (1) CN108989173B (en)
WO (1) WO2020011135A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108989173B (en) * 2018-07-09 2020-04-28 新华三技术有限公司 Message transmission method and device
CN111385209B (en) * 2018-12-28 2021-06-22 华为技术有限公司 Message processing method, message forwarding method, device and equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1972230A (en) * 2006-11-09 2007-05-30 杭州华为三康技术有限公司 A broadcasting method and access controller for wireless LAN address resolution protocol
US20080002703A1 (en) * 2006-06-30 2008-01-03 Sun Microsystems, Inc. System and method for virtual network interface cards based on internet protocol addresses
CN103079229A (en) * 2012-12-28 2013-05-01 上海寰创通信科技股份有限公司 Directional broadcast transmission method for access controller
US20160080415A1 (en) * 2014-09-17 2016-03-17 Shadow Networks, Inc. Network intrusion diversion using a software defined network
US20170048154A1 (en) * 2015-08-11 2017-02-16 Luxar Tech, Inc. Redirection ip packet through switch fabric
CN108989173A (en) * 2018-07-09 2018-12-11 新华三技术有限公司 A kind of method and device of message transmissions

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201132055A (en) * 2010-03-04 2011-09-16 Gemtek Technology Co Ltd Routing device and related packet processing circuit
CN103166874B (en) * 2013-03-25 2016-03-02 杭州华三通信技术有限公司 A kind of message forwarding method and equipment
CN104079466B (en) * 2014-07-03 2017-10-03 新华三技术有限公司 A kind of message processing method and equipment
CN111093198B (en) * 2015-07-23 2023-04-28 中移(杭州)信息技术有限公司 Wireless local area network data transmission method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080002703A1 (en) * 2006-06-30 2008-01-03 Sun Microsystems, Inc. System and method for virtual network interface cards based on internet protocol addresses
CN1972230A (en) * 2006-11-09 2007-05-30 杭州华为三康技术有限公司 A broadcasting method and access controller for wireless LAN address resolution protocol
CN103079229A (en) * 2012-12-28 2013-05-01 上海寰创通信科技股份有限公司 Directional broadcast transmission method for access controller
US20160080415A1 (en) * 2014-09-17 2016-03-17 Shadow Networks, Inc. Network intrusion diversion using a software defined network
US20170048154A1 (en) * 2015-08-11 2017-02-16 Luxar Tech, Inc. Redirection ip packet through switch fabric
CN108989173A (en) * 2018-07-09 2018-12-11 新华三技术有限公司 A kind of method and device of message transmissions

Also Published As

Publication number Publication date
CN108989173B (en) 2020-04-28
CN108989173A (en) 2018-12-11

Similar Documents

Publication Publication Date Title
US9712559B2 (en) Identifying frames
US11606223B2 (en) Broadband remote access server (BRAS) system-based packet encapsulation
JP2017079488A (en) System and method for accessing network
US9628435B2 (en) Duplicate address detection based on distributed bloom filter
US20060280138A1 (en) Wireless access point repeater
US9756148B2 (en) Dynamic host configuration protocol release on behalf of a user
US20220060881A1 (en) Group management method, apparatus, and system
WO2021052399A1 (en) Interface extension method, apparatus and system
US20150117420A1 (en) Communicating with a Distribution System via an Uplink Access Point
CN104468866A (en) Fast roaming method for multi-gateway terminal in wireless local area network
US10075410B2 (en) Apparatus and methods for assigning internetwork addresses
EP2536099A2 (en) Method and access node for preventing address conflict
US9923814B2 (en) Media access control address resolution using internet protocol addresses
CN106507414B (en) Message forwarding method and device
WO2020011135A1 (en) Packet transmission
US9450880B2 (en) Load condition based transfer of processing responsibility
US20040177146A1 (en) Router apparatus, communication apparatus, network address management system, network address management method and network address management program
WO2017041534A1 (en) Power line network communication method and device, and computer storage media
WO2021184862A1 (en) Message sending method, first network device, and network system
EP3706373B1 (en) Establishing a vxlan between a wireless access point and a node
US20170222970A1 (en) Ipv6 address assignment method and apparatus
CN109981462B (en) Message processing method and device
WO2015027474A1 (en) Data packet header encapsulation method, data packet header decapsulation method, apparatus and device
CN110958124A (en) Multicast group management method, device, readable storage medium and computer
WO2023273957A1 (en) Computing power release method and apparatus, and computing power update method and apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19833062

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19833062

Country of ref document: EP

Kind code of ref document: A1