CN105338660B - A kind of message processing method and device - Google Patents

A kind of message processing method and device Download PDF

Info

Publication number
CN105338660B
CN105338660B CN201410324215.9A CN201410324215A CN105338660B CN 105338660 B CN105338660 B CN 105338660B CN 201410324215 A CN201410324215 A CN 201410324215A CN 105338660 B CN105338660 B CN 105338660B
Authority
CN
China
Prior art keywords
message
group
sent
reminding
empty
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410324215.9A
Other languages
Chinese (zh)
Other versions
CN105338660A (en
Inventor
傅嘉嘉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201410324215.9A priority Critical patent/CN105338660B/en
Priority to PCT/CN2015/083538 priority patent/WO2016004868A1/en
Publication of CN105338660A publication Critical patent/CN105338660A/en
Application granted granted Critical
Publication of CN105338660B publication Critical patent/CN105338660B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/564Enhancement of application control based on intercepted application data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/289Intermediate processing functionally located close to the data consumer application, e.g. in same machine, in same home or in same sub-network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

This application discloses a kind of message processing method, this method includes:When the buffer queue of each AP in the AP groups is not all sky, intermediate APs of the AC into the AP groups sends reminder message, makes the intermediate AP that the reminder message to be sent to other AP in the AP groups;When the AC receives the query message that any AP is sent, the downstream message in the buffer queue of the AP is sent to the AP.Based on same inventive concept, the application also proposes a kind of message process device, can reduce HTTP connection numbers and the message count by the Internet transmission, to reduce the occupancy to Internet bandwidth.

Description

Message processing method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for processing a packet.
Background
When a Wireless Controller (AC) and a Wireless Access Point (AP) communicate with each other through the internet, control and Provisioning of Wireless Access Point (CAPWAP) messages often cannot pass through various firewalls in the internet directly, and Hypertext Transfer Protocol (HTTP) messages are usually not filtered by the firewalls, so that the CAPWAP HTTP is a natural choice. The AC side is directed to a public network address, thus acting as an HTTP server; the AP side is usually located in the intranet and thus serves as an HTTP client.
Due to the mechanism native to HTTP, an AC as a server cannot push messages directly to an AP as a client, and must be enabled to push messages to the AP through some mechanism.
In the existing implementation, the AC and each AP establish two HTTP connections, which are uplink connection and downlink connection, respectively. The downlink connection adopts a long polling mechanism, and the AC always sends an HTTP Response (Response) message to the AP after receiving an HTTP Query (Query) message of the AP until a downlink message is sent to the AP, and carries the downlink message. The AP pushes an empty Query message to maintain a long polling state when receiving a Response message from the uplink connection; and the uplink connection receives and transmits HTTP messages in a normal mode.
Disclosure of Invention
In view of this, the present application provides a message processing method and apparatus to reduce the pressure of the AC for maintaining the HTTP connection and the occupation of the internet bandwidth.
In order to solve the technical problem, the technical scheme of the application is realized as follows:
a method of message processing, the method comprising:
the method comprises the steps that a wireless controller AC allocates a buffer queue for each AP in a wireless access point AP group for buffering downlink messages;
when the cache queues of all the APs in the AP group are not completely empty, the AC sends a reminding message to a middle AP in the AP group, so that the middle AP sends the reminding message to other APs in the AP group; the reminding message is used for informing whether a cache queue corresponding to each AP in the AP group is empty or not; the middle AP is the first on-line AP in the AP group;
and when the AC receives the query message sent by any AP, the AC sends the downlink message in the cache queue of the AP to the AP.
A method of message processing, the method comprising:
the wireless access point AP is used as a middle AP in the AP group, and when receiving the reminding message sent by the wireless controller AC, the reminding message is sent to other APs in the AP group; when determining that the corresponding cache queue is not empty according to the reminding message, sending a query message to the AC, and receiving a downlink message sent by the AC;
the AP serving as an AP except the middle AP in the AP group sends a query message to the AC and receives a downlink message sent by the AC when receiving a reminding message sent by the middle AP and determining that a corresponding buffer queue is not empty according to the reminding message;
wherein the cache queue is allocated to the AP by the AC; the middle AP is the first on-line AP in the AP group; and the reminding message is used for informing whether the cache queue corresponding to each AP in the AP group is empty or not.
A message processing device is applied to a wireless controller (AC), and the device comprises: the device comprises a caching unit, a sending unit and a receiving unit;
the cache unit is used for allocating a cache queue to each AP in the wireless access point AP group; caching the downlink of the AP in a cache queue of the AP;
the sending unit is configured to send the reminding message to other APs in the AP group to an intermediate AP in the AP group when the buffer queues of the APs in the AP group configured by the buffer unit are not all empty; the reminding message is used for informing whether a cache queue corresponding to each AP in the AP group is empty or not; the middle AP is the first on-line AP in the AP group; when the receiving unit receives an inquiry message sent by any AP, the receiving unit sends a downlink message in a cache queue of the AP in the cache unit to the AP;
the receiving unit is configured to receive an inquiry packet sent by an AP.
A message processing device is applied to a wireless Access Point (AP), and the device comprises: a receiving unit, a transmitting unit and a determining unit;
the receiving unit is used for receiving downlink messages; when the AP serves as a middle AP in the AP group, receiving a reminding message sent by the wireless controller AC; when the AP is used as an AP except the middle AP in the AP group, receiving a reminding message sent by the middle AP; the middle AP is an AP on line first in the AP group; the reminding message is used for informing whether the cache queue corresponding to each AP in the AP group is empty;
the sending unit is used for sending the reminding message to other APs in the AP group when receiving the reminding message sent by the AC; when the determining unit determines that the corresponding buffer queue is not empty, sending a query message to the AC;
the determining unit is used for determining whether the corresponding buffer queue is empty according to the received reminding message; wherein the cache queue is allocated to the AP by the AC.
To sum up, the AC of the application distributes the reminding message through the middle AP in the AP group so as to solve the problem that the AC actively pushes the message to the AP in the CAPWAP Over HTTP network, and can reduce the number of HTTP connections and the number of messages transmitted through the Internet, thereby reducing the occupation of the Internet bandwidth.
Drawings
Fig. 1 is a schematic flow chart of a method for processing an AC packet in an embodiment of the present application;
fig. 2 is a schematic flow chart of a method for processing a packet by an AP in the embodiment of the present application;
FIG. 3 is a diagram illustrating a CAPWAP over HTTP network networking of the present application;
fig. 4 is a schematic diagram of a hardware structure of an AC including a message processing apparatus in the embodiment of the present application;
fig. 5 is a schematic diagram of a hardware structure of an AP including a message processing apparatus in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application are described in further detail below with reference to the accompanying drawings.
According to the message processing method provided by the embodiment of the application, the AC distributes the reminding message through the middle AP in the AP group so as to solve the problem that the AC actively pushes the message to the AP in the CAPWAP Over HTTP network, and the number of HTTP connections and the number of messages can be reduced, so that the occupation of the bandwidth of the Internet is reduced.
The AC configures the AP group locally and records the information of each AP in the AP group, such as identification, address and the like. When the AC needs to communicate with the APs in the multiple AP groups, a globally unique identifier is allocated to each AP group to distinguish each AP group.
In specific implementation, which APs belong to the same AP group are divided according to actual needs, as if the APs in a local area network are divided into one AP group.
The AC allocates a buffer queue to each AP in the AP group for buffering the downlink message, that is, the APs correspond to the buffer queues one to one.
The AC establishes a long connection non-polling HTTP connection with each AP (including the intermediate AP) in the AP group, and is used for receiving the query message sent by the AP and the downlink message pushed by the AC to the AP.
The AC establishes a long-connection long-polling HTTP connection with the intermediate AP in the AP group, and is used for sending a reminding message to the intermediate AP.
The long connection means that after the connection is established, the connection is not reestablished or quitted until the program quits or the program fails.
The long polling refers to that the intermediate AP sends a query request to the AC, the AC holds the connection after receiving the request, the reminding message is not sent until new downlink messages in the cache queue need to be pushed, and the AP sends the new query request to the server after finishing processing the response message (reminding message). This achieves the advantage that there are no frequent requests without messages.
The intermediate AP in one AP group is determined by the AC, and the first on-line AP in the AP group is determined as the intermediate AP of the AP.
Referring to fig. 1, fig. 1 is a schematic flow chart of a method for processing a message by an AC in the embodiment of the present application. The method comprises the following specific steps:
step 101, when the buffer queues of the APs in the AP group are not completely empty, the AC sends a reminding message to the intermediate AP in the AP group, so that the intermediate AP sends the reminding message to other APs in the AP group.
After receiving the query message sent by the intermediate AP, if the cache queues corresponding to the APs in the AP group are all empty, the AC does not send a notification message to the intermediate AP until the cache queues of at least one AP are not empty, that is, the cache queues of the APs in the AP group are not all empty, the AC needs to send a notification message to the intermediate AP through the established long connection long polling HTTP connection, where the notification message is used to notify whether the cache queues corresponding to the APs in the AP group are empty.
When each AP in the AP group finishes processing the reminding message, the intermediate AP sends a query message to the AC again through the long-connection long-polling HTTP connection.
In specific implementation, the reminding message can be implemented by carrying the AP identifier whose upper buffer queue is not empty in the reminding message, or can also be implemented by using a status bitmap carried in the reminding message to notify each AP of which buffer queue has a downlink message and of which buffer queue is empty.
If the state bitmap is used to notify each AP, the AC is required to first notify each AP of the state of each AP in the state bitmap through the intermediate APs. Or appointing a corresponding position in the bitmap with each AP according to the identification of the AP.
When the AC sends a reminding message to a middle AP in the AP group, the reminding message carries a state bitmap, and whether a cache queue of the AP is empty is identified at the position of the state of each AP in the state bitmap, if the cache queue is an empty 1 identifier, the cache queue is not an empty 0 identifier; and each AP learns whether the buffer queue is empty or not through the position of each AP in the state bitmap, and sends a query message to the AC when the buffer queue is not empty.
When the intermediate AP in the AP group receives the reminding message, if all the APs in the AP group belong to the same local area network, the reminding message is sent to all the APs in the local area network, namely other APs in the AP group in a multicast mode.
When all APs in the AP group, including the intermediate AP, receive the reminding message, determine whether downlink messages exist in the cache queue of the AP according to the message content, if so, send query messages to the AC through the long connection established with the AC without polling HTTP connection; otherwise, the message is discarded and is not processed.
And when the buffer queues of all the APs in the AP group are all empty, the AC does not send a reminding message to the middle AP.
Because the buffer queues of the APs in the AP group are all empty, the intermediate AP is not sent a warning message, and therefore the intermediate AP may not receive the warning message within a certain time. And when the intermediate AP is at the first preset time and the reminding message sent by the AC is not received, sending empty reminding messages to other APs in the AP group to protect the intermediate AP.
When any AP except the middle AP in the AP group arrives at the second preset time, the reminding message sent by the middle AP is not received, and a request message for judging whether the AP is switched to the middle AP is sent to the AC.
When the AC receives a request message which is sent by any AP and whether the AP is switched to the intermediate AP, the AC determines whether the current intermediate AP in the AP group is on-line or not, and if so, the AC informs the AP not to switch the intermediate AP; otherwise, informing the AP to switch to the middle AP of the AP group.
When the AP receives the notification of switching to the middle AP, the AP is switched to the middle AP, and when the first preset time is up, the reminding message sent by the AC is not received, and empty reminding messages are sent to other APs in the AP group.
And when the AP receives the notice that the AP is not switched to the middle AP and is sent by the AC, continuing to wait for receiving the reminding message, and if the AP waits for the second preset time again and does not receive the reminding message, sending a request message for judging whether the AP is switched to the middle AP or not to the AC again.
Step 102, when the AC receives the query message sent by any AP, the AC sends the downlink message in the cache queue of the AP to the AP.
When the step is specifically realized, the method specifically comprises the following steps:
when the AC receives the query message sent by any AP, if more than one downlink message exists in the cache queue of the AP, when one downlink message is sent to the AP, the identifier of the downlink message still exists in the cache queue is carried, so that the AP sends the query message to the AC again, and the identifier of the downlink message still exists is not carried until the last downlink message in the cache queue is sent.
How the AP implements packet processing is described in detail below with reference to the accompanying drawings.
Referring to fig. 2, fig. 2 is a schematic flow chart of a method for processing a packet by an AP in the embodiment of the present application. The method comprises the following specific steps:
step 201, an AP serves as a middle AP in an AP group, and when receiving a reminder message sent by an AC, sends the reminder message to other APs in the AP group; and when determining that the corresponding buffer queue is not empty according to the reminding message, sending a query message to the AC, and receiving a downlink message sent by the AC.
The AC allocates a buffer queue to each AP, and therefore, the AP determines whether the buffer queue corresponding to the AP is empty according to the alert message, that is, determines whether a downlink message exists in the buffer queue allocated to the AP by the AC.
When the intermediate AP sends the reminding message to other APs in the AP group, the intermediate AP sends the reminding message to other APs in the same local area network in a multicast mode;
and the intermediate AP receives the reminding message sent by the AC through the long-connection long-polling HTTP connection established with the AC.
Step 202, when the AP is an AP other than the intermediate AP in the AP group, and receives a reminding message sent by the intermediate AP, and determines that the corresponding buffer queue is not empty according to the reminding message, the AP sends a query message to the AC, and receives a downlink message sent by the AC.
The execution of step 201 and step 202 does not have a precedence relationship, and is a processing flow of APs in different roles.
Each AP in the AP group sends a query message through the long connection established with the AC and the HTTP connection which is not polled, and receives downlink messages.
When the AP receives the downlink message sent by the AC and carries the identifier of the downlink message in the cache queue, the AP sends the query message to the AC again until the received downlink message does not carry the identifier of the downlink message in the cache queue, and the AP does not send the query message to the AC any more.
In specific implementation, the reminding message can be implemented by carrying the AP identifier whose upper buffer queue is not empty in the reminding message, or can also be implemented by using a status bitmap carried in the reminding message to notify each AP of which buffer queue has a downlink message and of which buffer queue is empty.
If the state bitmap is used to notify each AP, the AC is required to first notify each AP of the state of each AP in the state bitmap through the intermediate APs. Or appointing a corresponding position in the bitmap with each AP according to the identification of the AP.
When the AC sends a reminding message to the middle AP in the AP group, the reminding message carries a state bitmap, and whether the cache queue of the AP is empty is identified at the position of the state of each AP in the state bitmap, if the cache queue is an empty 1 identifier, the cache queue is not an empty 0 identifier.
When the intermediate AP receives the reminding message, whether the buffer queue of the intermediate AP is empty or not is known according to the position of the intermediate AP in the state bitmap, and when the buffer queue of the intermediate AP is not empty, a query message is sent to the AC; and when the buffer queue of the device is empty, directly discarding the reminding message and not sending the query message to the AC.
The AC does not send the alert message to the intermediate AP when determining that the buffer queues of all APs in the AP group are empty, so the intermediate AP may not receive the alert message for a long time.
And when the first preset time is up and the reminding message sent by the AC is not received, the middle AP sends an empty reminding message to other APs in the AP group so as to protect the middle AP in the AP group.
When the intermediate AP fails or the link between the intermediate AP and another AP fails, the AP other than the intermediate AP in the AP group cannot receive the alert message sent by the intermediate AP.
When the second preset time is up and the reminding message sent by the middle AP is not received, the AP except the middle AP in the AP group sends a request message for judging whether to switch to the middle AP to the AC, and when the AP is informed to be switched to the middle AP because the AC determines that the middle AP is not on line, the AP is switched to the middle AP, and the reminding message is sent and received; and when the received AC determines that the intermediate AP is on line and informs the AP not to switch to the intermediate AP, continuing to wait for the reception of the reminding message.
Through the technical scheme provided by the application, the minimum value of the number of the internet messages between the AC and the AP is as follows: the total number of the uplink messages and the total number of the downlink messages and the total number of the AP groups, namely, each reminding message covers the reminding of all the APs in the AP group, so that (N-1) times of inquiry messages are reduced; the maximum number of internet messages between the AC and the AP is: (number of uplink messages +2 number of downlink messages) total number of APs, that is, each alert message only contains an alert for an AP, which is equivalent to sending an inquiry for each AP.
However, in the existing implementation, that is, in the implementation of establishing two HTTP connections between an AC and each AP, the number of internet messages between the AC and the AP is: (number of uplink messages +2 number of downlink messages) total number of APs.
Because it is impossible that the cache queue of only one AP is not empty every time the AC sends the alert message, the present application greatly reduces the number of internet messages between the AC and the AP compared with the existing implementation.
And the AC only establishes the HTTP connection with long connection and long polling with the intermediate AP, so the number of the HTTP connections maintained by the AC is greatly reduced.
The following describes the interaction process between the AC and the AP in detail with reference to the drawings. Referring to fig. 3, fig. 3 is a schematic diagram of a CAPWAP overHTTP network networking in the present application.
In fig. 3, two AP groups, namely AP group 1 and AP group 2, are configured on the AC, where AP group 1 includes AP1, AP2, and AP3, and AP1, AP2, and AP3 are APs in the same lan; the AP group 2 includes AP4 and AP5, AP4 and AP5 are APs in the same lan, and the AP in the AP group 1 and the AP in the AP group 2 are not APs in the same lan.
In the following, the AP in the AP group 1 communicates with the AC as an example. The AC establishes a long connection non-polling HTTP connection with AP1, AP2, and AP3, respectively.
The AC allocates a buffer queue for each AP for buffering the downlink message, and the buffer queues correspond to the APs one by one; when the reminding state of the cache queue corresponding to each AP is displayed in a bitmap list form, determining the position in the reminding bitmap of each AP, and representing the position and the reminding state of each AP by using 1 bit; and notifying the position of each AP in the bitmap to each AP, wherein during specific notification, the notification can be processed as the following reminding message, and the notification is firstly sent to the intermediate AP and then sent to other APs in a multicast mode by the intermediate AP, so that each AP can know the position of the AP in the bitmap.
In a specific implementation, the AP identifier may also be the position of each AP arranged in the bitmap, so that each AP automatically obtains the position in the bitmap, that is, the AP and the AC agree on the position of the AP in the bitmap.
If there are three APs in the AP group 1, 3 bits are used for representing, 1 represents that there is a downlink message in the buffer queue of the AP, and 0 represents that there is no downlink message in the buffer queue of the AP, that is, it is empty.
When the first bit is used for identifying the AP1, the second bit is used for identifying the AP2, and the third bit is used for identifying the AP3, if 001, it indicates that no downlink message exists in the buffer queues of the AP1 and the AP2, that is, both of them are empty; there is a downstream message in the buffer queue of AP 3.
The AC establishes a long-connection long-polling HTTP connection with a first on-line AP in the AP group, and the first on-line AP is used as a middle AP of the AP group, namely an AP for transferring messages.
When there is an AP whose cache queue is not empty in the AP group 1, the AC sends a reminder message through a long connection long polling HTTP connection established with the AP1, and carries the reminder state of each AP in the reminder message, that is, carries a bitmap to identify whether a downlink message is cached in the cache queue of each AP, where the bitmap is 001, if the bitmap is carried.
When the AP1 receives the alert message, the alert message is multicast within the AP group, i.e., the alert message is multicast in the local area network.
The APs receiving the reminding message comprise an AP1, an AP2 and an AP3, and whether downlink messages exist in a cache queue of the AP is determined according to the position of the AP in a bitmap and the value of a bit on the position according to the position of the AP in the bitmap, wherein the position of the AP is locally stored; when the value on the corresponding bit is 1, determining that the downlink message exists in the cache; and when the value on the corresponding bit is 0, determining that no downlink message exists in the cache.
Since the bitmap is 001, only the buffer queue corresponding to the AP3 has the downlink message. AP1 and AP2 did not do anything; the AP3 sends a request cache query message over a long connection established with the AC without polling the HTTP connection, and the AC sends the messages in the cache queue to the AP using the cache request message.
The AC sends a downlink message to the AP3 each time, and if there are N downlink messages in the buffer queue, the AC carries a more flag when sending the 1 st to N-1 st downlink messages, indicating that there are downlink messages in the buffer queue.
When receiving the 1 st to the N-1 st downlink messages, the AP3 finds that the more mark is carried, and sends an inquiry message to the AC when receiving each downlink message; and (4) the query message is not sent until the received downlink message does not carry the more mark, and the communication is ended.
When all the buffer queues of the AP1, the AP2 and the AP3 are empty, no alert message is sent to the AP 1. Thus, when the AP1 does not receive the alert message from the AC at the first predetermined time, the AP1 sends an empty multicast alert message to the AP2 and the AP3 to keep the AP1 alive for the role of the intermediate AP.
And if the reminding message sent by the AP1 is not received by the AP2 or the AP3 when the second preset time is up, sending a request message for switching to the intermediate AP to the AC, and assuming that the AP2 sends the message firstly.
When the AC receives a request message sent by the AP2, whether the AP2 is switched to be an intermediate AP is determined according to the online state of the AP1, and when the AP1 is online currently, the AP2 is informed not to switch the intermediate AP; when AP1 is not currently online, AP2 is notified to switch to an intermediate AP and establish a long-connection long-polled HTTP connection with AP2 due to the sending of the alert message.
The AC in the embodiment of the present application is a programmable device that can combine software and hardware, and from a hardware level, specifically refer to fig. 4, where fig. 4 is a schematic diagram of a hardware structure of an AC that includes a message processing apparatus in the embodiment of the present application. The AC comprises: nonvolatile memory, CPU, forwarding chip and memory;
wherein,
a non-volatile memory for storing instruction codes; the operations performed by the instruction codes when executed by the CPU are mainly functions performed by the message processing apparatus in the memory.
CPU, is used for communicating with transmitting the chip, carry on the receiving and dispatching of reminding message, downstream message and inquiry message; the message device is used for communicating with the nonvolatile memory, reading and executing the instruction codes stored in the nonvolatile memory, completing the functions completed by the cache unit, the receiving unit and the sending unit in the message device, and processing the query message sent from the forwarding chip.
The forwarding chip is connected to the AP through a port on the chip, is responsible for receiving and sending processing of messages and messages, sends downlink messages and reminding messages sent by the CPU to the AP, and sends query messages sent by the AP to the CPU;
and the memory is used for cooperating with the CPU to run so as to instantiate the instruction codes and form a cache unit, a sending unit and a receiving unit so as to finish the processing of the message.
From the software aspect, a packet processing apparatus applied to an AC includes: a buffer unit 401, a transmission unit 402, and a reception unit 403;
a buffer unit 401, configured to allocate a buffer queue to each AP in the AP group of the wireless access point; caching the AP message in a cache queue of the AP;
a sending unit 402, configured to send the alert message to other APs in the AP group to an intermediate AP in the AP group when the buffer queues of the APs in the AP group configured by the buffer unit 401 are not all empty; the reminding message is used for informing whether a cache queue corresponding to each AP in the AP group is empty or not; the middle AP is the first on-line AP in the AP group; when receiving unit 403 receives an inquiry packet sent by any AP, sending a downlink message in a cache queue of the AP in cache unit 401 to the AP;
a receiving unit 403, configured to receive an inquiry packet sent by an AP.
In addition, the first and second substrates are,
a sending unit 402, configured to, when sending a notification message to an intermediate AP, enable the intermediate AP to send the notification message to other APs in the same local area network in a multicast manner; wherein, each AP in the AP group is an AP in the same local area network; sending a reminding message to the intermediate AP through the long-connection long-polling HTTP connection established with the intermediate AP;
the receiving unit 403 is specifically configured to receive, through a long connection non-polling HTTP connection established with the AP, an inquiry packet sent by the AP, and send a downlink message cached in a cache queue of the AP to the AP.
Further, in the present invention,
a sending unit 402, further configured to notify the position of each AP in the status bitmap to each AP through an intermediate AP; when a reminding message is sent to a middle AP in the AP group to inform that a cache queue is not an empty AP, carrying a state bitmap in the reminding message, and identifying whether the cache queue of the AP is empty or not at the position of each AP in the state bitmap; and each AP learns whether the buffer queue is empty or not through the position of each AP in the state bitmap, and sends a query message to the AC when the buffer queue is not empty.
In addition, the first and second substrates are,
a sending unit 402, configured to, if it is determined that more than one downlink message exists in the cache queue of the AP, carry an identifier of the downlink message still existing in the cache queue when one of the downlink messages is sent to the AP, so that the AP sends the query packet to the apparatus again, until the last downlink message in the cache queue is sent, the identifier of the downlink message still existing is not carried any more.
The message processing device is a logical device, and is formed by reading corresponding computer program instructions in the nonvolatile memory into the memory by the CPU for operation. When the corresponding computer program instructions are executed, the message processing apparatus is formed to perform the corresponding operations according to the above-described methods.
The switching device in this embodiment of the present application is a programmable device that can combine software and hardware, and from a hardware level, refer to fig. 5 specifically, where fig. 5 is a schematic diagram of a hardware structure of an AP that includes a message processing apparatus in this embodiment of the present application. The AP comprises: nonvolatile memory, CPU, forwarding chip and memory;
wherein,
a non-volatile memory for storing instruction codes; the operations performed by the instruction codes when executed by the CPU are mainly functions performed by the message processing apparatus in the memory.
CPU, is used for communicating with transmitting the chip, carry on the receiving and dispatching of reminding message, downstream message and inquiry message; the message device is used for communicating with the nonvolatile memory, reading and executing the instruction codes stored in the nonvolatile memory, completing the functions completed by the receiving unit, the sending unit, the determining unit and the processing unit in the message device, and processing the reminding message and the downlink message sent from the forwarding chip.
And the forwarding chip is connected to the AC through a port on the chip, is responsible for receiving and sending processing of messages and messages, sends the query message sent by the CPU to the AC, and sends the downlink message and the reminding message sent by the AC to the CPU.
And the memory is used for cooperating with the CPU to run so as to instantiate the instruction codes and form a receiving unit, a sending unit, a determining unit and a processing unit so as to finish the processing of the message.
From the software aspect, the packet processing apparatus applied in the AP includes: a receiving unit 501, a transmitting unit 502, and a determining unit 503;
a receiving unit 501, configured to receive a downlink message; when the AP serves as a middle AP in the AP group, receiving a reminding message sent by the AC; when the AP is used as an AP except the middle AP in the AP group, receiving a reminding message sent by the middle AP; the middle AP is an AP on line first in the AP group; the reminding message is used for informing whether the cache queue corresponding to each AP in the AP group is empty;
a sending unit 502, configured to send a notification message to other APs in the AP group when receiving the notification message sent by the AC; when determining unit 503 determines that its corresponding buffer queue is not empty, it sends a query message to the AC;
a determining unit 503, configured to determine whether a corresponding buffer queue is empty according to the alert message received by the receiving unit 501; wherein the cache queue is allocated to the AP by the AC.
In addition, the first and second substrates are,
a sending unit 502, specifically configured to send the alert message to other APs in the same local area network in a multicast manner when the AP serves as an intermediate AP in the AP group and sends the alert message to the other APs in the AP group; receiving a reminding message sent by the AC through a hypertext transfer protocol (HTTP) connection established with the AC and long in connection and polling; sending a query message through a long connection established with the AC without polling HTTP connection; the AP serving as an AP except the middle AP in the AP group sends a query message through the long-connection non-polling HTTP connection established with the AC;
the receiving unit 501 is specifically configured to receive the downlink message through a long connection established with the AC without polling the HTTP connection.
Further, the air conditioner is provided with a fan,
the sending unit 502 is further configured to send the query message to the AC again when the identifier of the downlink message still exists in the cache queue in the downlink message received by the AP.
Further, the apparatus comprises: a processing unit 504;
a sending unit 502, further configured to send an empty notification message to other APs in the AP group when the first preset time is up and the receiving unit 501 does not receive the notification message sent by the AC; when the second preset time is up and the receiving unit 501 does not receive the reminding message sent by the intermediate AP, the AP serving as an AP other than the intermediate AP in the AP group sends a request message to the AC whether to switch to the intermediate AP,
a processing unit 504, configured to switch to an intermediate AP to receive and send a notification message when the receiving unit 501 receives the notification that the AC determines that the intermediate AP is not online and notifies the AP to switch to the intermediate AP; when the receiving unit 501 receives the notification that the AC determines that the intermediate AP is online and notifies the AP not to switch to the intermediate AP, the receiving unit 501 is triggered to continue to wait for the reception of the alert message.
The message processing device is a logical device, and is formed by reading corresponding computer program instructions in the nonvolatile memory into the memory by the CPU for operation. When the corresponding computer program instructions are executed, the message processing apparatus is formed to perform the corresponding operations according to the above-described methods.
The units of the above embodiments may be integrated into one body, or may be separately deployed; may be combined into one unit or further divided into a plurality of sub-units.
To sum up, the AC of the application distributes the reminding message through the middle AP in the AP group so as to solve the problem that the AC actively pushes the message to the AP in the CAPWAP Over HTTP network, and can reduce the number of HTTP connections and the number of messages transmitted through the Internet, thereby reducing the occupation of the Internet bandwidth.
The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (16)

1. A message processing method is characterized by comprising the following steps:
the method comprises the steps that a wireless controller AC allocates a buffer queue for each AP in a wireless access point AP group for buffering downlink messages;
when the cache queues of all the APs in the AP group are not completely empty, the AC sends a reminding message to a middle AP in the AP group, so that the middle AP sends the reminding message to other APs in the AP group; the reminding message is used for informing whether a cache queue corresponding to each AP in the AP group is empty or not; the middle AP is the first on-line AP in the AP group;
and when receiving the query message sent by any AP in the AP group, the AC sends the downlink message in the cache queue of the AP to the AP.
2. The method of claim 1, wherein each AP in the group of APs is an AP in the same local area network;
causing the intermediate AP to send the alert message to other APs in the group of APs, comprising: the intermediate AP sends the reminding message to other APs in the same local area network in a multicast mode;
the AC sends a reminding message to the intermediate AP through a hypertext transfer protocol (HTTP) connection which is established with the intermediate AP and is long in connection and long in polling;
and the AC receives the query message sent by the AP through the long-connection non-polling HTTP connection established with any AP in the AP group, and sends the downlink message cached in the cache queue of the AP to the AP.
3. The method of claim 1, further comprising: the AC informs the positions of the APs in the state bitmap to the APs through the middle AP;
when the AC sends a reminding message to a middle AP in the AP group to inform that a cache queue is not an empty AP, the reminding message carries a state bitmap, and whether the cache queue of the AP is empty is identified at the position of each AP in the state bitmap; and each AP learns whether the buffer queue is empty or not through the position of each AP in the state bitmap, and sends a query message to the AC when the buffer queue is not empty.
4. The method according to any one of claims 1 to 3, wherein when the AC receives the query packet sent by any AP, sending the downlink message in the buffer queue of the AP to the AP, includes:
when the AC receives the query message sent by any AP, if more than one downlink message exists in the cache queue of the AP, when one downlink message is sent to the AP, the identifier of the downlink message still exists in the cache queue is carried, so that the AP sends the query message to the AC again, and the identifier of the downlink message still exists is not carried until the last downlink message in the cache queue is sent.
5. A message processing method is applied to any AP in a wireless access point AP group, and the method comprises the following steps:
when any AP is used as a middle AP in the AP group and a reminding message sent by a wireless controller AC is received, the reminding message is sent to other APs in the AP group; when determining that the corresponding cache queue is not empty according to the reminding message, sending a query message to the AC, and receiving a downlink message sent by the AC;
when any AP is taken as an AP except the middle AP in the AP group, a reminding message sent by the middle AP is received, and the corresponding cache queue is determined not to be empty according to the reminding message, a query message is sent to the AC, and a downlink message sent by the AC is received;
the reminding message is used for informing whether a cache queue corresponding to each AP in the AP group is empty or not; the cache queue is distributed by the AC for the AP; the middle AP is the first on-line AP in the AP group.
6. The method of claim 5,
any AP is used as a middle AP in the AP group, and when the reminding message is sent to other APs in the AP group, the reminding message is sent to other APs in the same local area network with the AP group in a multicast mode; the AP receives a reminding message sent by the AC through a hypertext transfer protocol (HTTP) connection which is established with the AC and long in connection and polls, sends a query message through an HTTP connection which is established with the AC and long in connection and does not poll, and receives a downlink message;
and when any AP is taken as an AP except the middle AP in the AP group, sending a query message through the long-connection non-polling HTTP connection established with the AC, and receiving a downlink message.
7. The method of claim 5, further comprising:
and when the AP receives the downlink message sent by the AC and carries the identifier of the downlink message in the cache queue, sending the query message to the AC again.
8. The method according to any one of claims 5-7, characterized in that the method further comprises:
when any AP is used as a middle AP in the AP group, when the first preset time is up and the reminding message sent by the AC is not received, sending empty reminding messages to other APs in the AP group;
when any AP is taken as an AP except the middle AP in the AP group, when the second preset time is up and the reminding message sent by the middle AP is not received, sending a request message whether to switch to the middle AP to the AC, and when the AC is received to determine that the middle AP is not on line and inform the AP to switch to the middle AP, switching to the middle AP and receiving and sending the reminding message; and when the received AC determines that the intermediate AP is on line and informs the AP not to switch to the intermediate AP, continuing to wait for the reception of the reminding message.
9. A message processing device applied to a wireless controller (AC), the device comprising: the device comprises a caching unit, a sending unit and a receiving unit;
the cache unit is used for allocating a cache queue to each AP in the wireless access point AP group; caching the downlink message of the AP in a cache queue of the AP;
the sending unit is configured to send the reminding message to other APs in the AP group to an intermediate AP in the AP group when the buffer queues of the APs in the AP group configured by the buffer unit are not all empty; the reminding message is used for informing whether a cache queue corresponding to each AP in the AP group is empty or not; the middle AP is the first on-line AP in the AP group; when the receiving unit receives the query message sent by any one AP in the AP group, the receiving unit sends the downlink message in the cache queue of the AP in the cache unit to the AP;
the receiving unit is configured to receive an inquiry packet sent by an AP.
10. The apparatus of claim 9,
the sending unit is specifically configured to, when sending the alert message to the intermediate AP, enable the intermediate AP to send the alert message to other APs in the same local area network as the intermediate AP in a multicast manner; wherein, each AP in the AP group is an AP in the same local area network; sending a reminding message to the intermediate AP through a long-connection long-polling hypertext transfer protocol (HTTP) connection established with the intermediate AP;
the receiving unit is specifically configured to receive, through a long connection non-polling HTTP connection established with any AP in the AP group, an inquiry packet sent by the AP, and send a downlink message cached in a cache queue of the AP to the AP.
11. The apparatus of claim 9,
the sending unit is further configured to notify the position of each AP in the status bitmap to each AP through an intermediate AP; when a reminding message is sent to a middle AP in the AP group to inform that a cache queue is not an empty AP, carrying a state bitmap in the reminding message, and identifying whether the cache queue of the AP is empty or not at the position of each AP in the state bitmap; and each AP learns whether the buffer queue is empty or not through the position of each AP in the state bitmap, and sends a query message to the AC when the buffer queue is not empty.
12. The apparatus of claim 9,
the sending unit is configured to, if it is determined that more than one downlink message exists in the cache queue of the AP, carry an identifier of the downlink message that still exists in the cache queue when one of the downlink messages is sent to the AP, so that the AP sends the query packet to the apparatus again until the last downlink message in the cache queue is sent, and does not carry the identifier of the downlink message that still exists.
13. A message processing device is applied to a wireless Access Point (AP), and is characterized by comprising: a receiving unit, a transmitting unit and a determining unit;
the receiving unit is used for receiving downlink messages; when the AP serves as a middle AP in the AP group, receiving a reminding message sent by the wireless controller AC; when the AP is used as an AP except the middle AP in the AP group, receiving a reminding message sent by the middle AP; the middle AP is an AP on line first in the AP group; the reminding message is used for informing whether the cache queue corresponding to each AP in the AP group is empty;
the sending unit is used for sending the reminding message to other APs in the AP group when the AP serves as a middle AP in the AP group and the reminding message sent by the AC is received; the determining unit is further configured to send a query message to the AC when the determining unit determines that the corresponding buffer queue is not empty;
the determining unit is used for determining whether the corresponding buffer queue is empty according to the received reminding message; wherein the cache queue is allocated to the AP by the AC.
14. The apparatus of claim 13,
the sending unit is specifically configured to send the notification message to other APs in the same local area network in a multicast manner when the AP serves as an intermediate AP in the AP group and sends the notification message to other APs in the AP group; receiving a reminding message sent by the AC through a hypertext transfer protocol (HTTP) connection established with the AC and long in connection and polling; sending a query message through a long connection established with the AC without polling HTTP connection; the AP serving as an AP except the middle AP in the AP group sends a query message through the long-connection non-polling HTTP connection established with the AC;
the receiving unit is specifically configured to receive the downlink message through a long connection established with the AC without polling the HTTP connection.
15. The apparatus of claim 13,
the sending unit is further configured to send the query message to the AC again when the identifier of the downlink message still exists in the cache queue in the downlink message received by the AP and sent by the AC.
16. The apparatus of any one of claims 13-15, further comprising: a processing unit;
the sending unit is further configured to send an empty reminding message to other APs in the AP group when the AP serves as a middle AP in the AP group and arrives at a first preset time and the receiving unit does not receive the reminding message sent by the AC; when the AP serving as an AP other than the middle AP in the AP group reaches a second preset time and the receiving unit does not receive the reminding message sent by the middle AP, sending a request message for judging whether to switch to the middle AP to the AC,
the processing unit is used for switching to the middle AP and receiving and sending the reminding message when the receiving unit receives the information that the AC determines that the middle AP is not on line and informs the AP to switch to the middle AP; and when the receiving unit receives the information that the AC determines that the middle AP is on line and informs the AP not to be switched to the middle AP, the receiving unit is triggered to continue to wait for receiving the reminding information.
CN201410324215.9A 2014-07-09 2014-07-09 A kind of message processing method and device Active CN105338660B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410324215.9A CN105338660B (en) 2014-07-09 2014-07-09 A kind of message processing method and device
PCT/CN2015/083538 WO2016004868A1 (en) 2014-07-09 2015-07-08 Packet processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410324215.9A CN105338660B (en) 2014-07-09 2014-07-09 A kind of message processing method and device

Publications (2)

Publication Number Publication Date
CN105338660A CN105338660A (en) 2016-02-17
CN105338660B true CN105338660B (en) 2018-10-09

Family

ID=55063590

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410324215.9A Active CN105338660B (en) 2014-07-09 2014-07-09 A kind of message processing method and device

Country Status (2)

Country Link
CN (1) CN105338660B (en)
WO (1) WO2016004868A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101765228A (en) * 2010-01-29 2010-06-30 杭州华三通信技术有限公司 Recovery method of CAPWAP tunnel and device thereof
US8345645B2 (en) * 2005-10-31 2013-01-01 Avaya Inc. WLAN access controller packet buffering
CN103139843A (en) * 2011-11-30 2013-06-05 中兴通讯股份有限公司 Implementation method and system of priority level expanding queue

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8767680B2 (en) * 2011-07-21 2014-07-01 Moxa Inc. Roaming system using wireless access controller to select access point and method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8345645B2 (en) * 2005-10-31 2013-01-01 Avaya Inc. WLAN access controller packet buffering
CN101765228A (en) * 2010-01-29 2010-06-30 杭州华三通信技术有限公司 Recovery method of CAPWAP tunnel and device thereof
CN103139843A (en) * 2011-11-30 2013-06-05 中兴通讯股份有限公司 Implementation method and system of priority level expanding queue

Also Published As

Publication number Publication date
CN105338660A (en) 2016-02-17
WO2016004868A1 (en) 2016-01-14

Similar Documents

Publication Publication Date Title
US8817806B2 (en) Method and apparatus for flow control between RLC and PDCP in a communication
US11652911B2 (en) Handling different protocol data unit types in a device to device communication system
EP3041286A1 (en) Communication switching and establishing method and device
US20160164641A1 (en) Method and device for frame acknowledgment
CN110430599B (en) Data transmission method and device
US20220060942A1 (en) Network Nodes for Handling Non-Fulfillment of QoS Requirements
CN111886835B (en) Message cache management in a mesh network
CN104838361B (en) A kind of method, apparatus and system of internuclear process communication
EP2955954A1 (en) Architecture for radio access network and evolved packet core
JP6291834B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION SYSTEM
CN103914007B (en) The method and system resetted for program
JP5574944B2 (en) Radio relay apparatus and radio relay method
CN111937356B (en) Central unit and distributed unit of radio network node and method therein
WO2019165808A1 (en) Communication method and apparatus based on internet of things
US9756654B2 (en) Timer-based scheme for user equipment queue state estimation
CN104168273B (en) The method and system of TCP agent are realized under a kind of thin ap mode
US20160150454A1 (en) Client managed soft handover and seamless link failover for wireless networks
JP4664243B2 (en) Communication device
CN105338660B (en) A kind of message processing method and device
US20150282141A1 (en) Wireless lan apparatus, wireless lan terminal, and control method for the same
CN108322402B (en) Message processing method, device and system
CN107959947B (en) Data transmission method, device and base station
US20160197789A1 (en) Application management method and apparatus
US10624157B2 (en) Network system, network management method and network management apparatus
US9877264B2 (en) Apparatus and method for reducing transmission delay of HTTP protocol and processing load of HTTP server in wireless communications network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant before: Huasan Communication Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant