WO2015042859A1 - 一种异步通信的方法及设备 - Google Patents

一种异步通信的方法及设备 Download PDF

Info

Publication number
WO2015042859A1
WO2015042859A1 PCT/CN2013/084430 CN2013084430W WO2015042859A1 WO 2015042859 A1 WO2015042859 A1 WO 2015042859A1 CN 2013084430 W CN2013084430 W CN 2013084430W WO 2015042859 A1 WO2015042859 A1 WO 2015042859A1
Authority
WO
WIPO (PCT)
Prior art keywords
control device
message
access device
cached
access
Prior art date
Application number
PCT/CN2013/084430
Other languages
English (en)
French (fr)
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 华为技术有限公司
Priority to CN201380075778.2A priority Critical patent/CN105210328A/zh
Priority to PCT/CN2013/084430 priority patent/WO2015042859A1/zh
Publication of WO2015042859A1 publication Critical patent/WO2015042859A1/zh

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/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • H04L67/145Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • 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/568Storing data temporarily at an intermediate stage, e.g. caching

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and device for asynchronous communication. Background technique
  • the control device usually manages the access devices in the BSS while temporarily managing the access devices in the Overlap Basic Service Set (OBSS).
  • OBSS Overlap Basic Service Set
  • the control device is unpredictable for the behavior of the temporarily managed access device. If the control device and the access device remain connected, the resource will be wasted. Therefore, the control device periodically shuts down the temporarily connected access device. The data channel, if it needs to be connected again, will cause long delays and waste of computing resources of the device.
  • the embodiment of the invention provides a method and a device for asynchronous communication, which can avoid a long delay caused by reconnecting and waste of computing resources of the device when the data channel is interrupted, thereby improving communication efficiency.
  • the first aspect of the present invention provides a method for asynchronous communication, which may include:
  • the control device receives the heartbeat message sent by the access device, where the heartbeat message carries the index information of the message buffered by the access device, where the interruption time is the control device and the access The duration of time that the device suspends communication;
  • the control device sends a heartbeat response packet to the access device, where the heartbeat response packet carries - the index information of the message buffered by the control device;
  • the control device acquires a message cached by the access device according to the index information of the message cached by the access device;
  • control device when the control device receives the message request sent by the access device according to the index information of the message buffered by the control device, the control device sends the message that controls the device cache to the access device.
  • the method further includes:
  • the control device When the control device and the access device complete the data channel establishment, the control device sends a configuration command to the access device, where the configuration command carries an interruption time and a first message type, so that the access device starts the Interrupting time, and causing the access device to cache a message belonging to the first message type during the interruption time;
  • control device When the control device receives the response command returned by the access device according to the configuration command, the control device starts the interruption time, and caches a message belonging to the second message type in the interruption time. .
  • the control device sends the message that is controlled by the control device to the access device, Includes:
  • the control device uses the message type priority to sort the messages buffered by the control device, and sends the message buffered by the control device to the access device according to the sorting.
  • the method further includes:
  • the index information of the message cached by the access device is used to provide the control device with the type and quantity of the message cached by the access device.
  • the index information of the message buffered by the control device is used to provide the access device with the type and quantity of messages buffered by the control device.
  • a second aspect of the present invention provides a method for asynchronous communication, which may include:
  • the access device After the interruption time is over, the access device sends a heartbeat message to the control device, where the heartbeat message carries index information of the message buffered by the access device, where the interruption time is the control device and the access device.
  • the access device when the access device receives the message request sent by the control device according to the index information of the message buffered by the access device, the access device sends the message of the access device cache to the control device.
  • the method further includes:
  • the access device receives the configuration command sent by the control device, where the configuration command carries the interruption time and the first message type;
  • the message is cached;
  • the access device starts the interrupt time according to the configuration command, and caches a message belonging to the first message type in the interrupt time.
  • the access device sends, by the access device, the message cached by the access device , including:
  • the access device uses the message type priority to sort the messages buffered by the access device, and sends a message buffered by the access device to the control device according to the ordering.
  • the second possible implementation manner of the second aspect or the second feasible implementation manner of the second aspect, the third feasible implementation manner of the second aspect, further includes:
  • the access device When the access device receives the connection interruption instruction sent by the control device, the access device - transmitting an interrupt response command to the control device according to the connection interrupt instruction, so that the control device and the access device respectively re-clock the interrupt timeout period.
  • the index information of the message buffered by the access device is used to provide the control device with the type and quantity of the message cached by the access device.
  • the index information of the message buffered by the control device is used to provide the access device with the type and quantity of messages buffered by the control device.
  • a third aspect of the present invention provides a control device, which may include:
  • the heartbeat message after receiving the heartbeat message sent by the access device, the heartbeat message carries index information of the message buffered by the access device, where the interruption time is the control device and the connection The duration of time that the incoming device suspends communication;
  • a message sending module configured to send a heartbeat response message to the access device, where the heartbeat response message carries index information of a message buffered by the control device;
  • the message is obtained by using the index information of the message buffered by the access device to obtain the message cached by the access device;
  • a message sending module configured to: when the control device receives a message request sent by the access device according to the index information of the message cached by the control device, the control device sends the control device to the access device Cached messages.
  • the method further includes: a command sending module, configured to send a configuration command to the access device when the control device and the access device complete the data channel establishment
  • the configuration command carries an interruption time and a first message type, so that the access device starts the interruption time, and causes the access device to send a message belonging to the first message type in the interruption time.
  • Activating a cache module configured to: when the control device receives the response command returned by the access device according to the configuration command, start the interrupt time, and cache the message belonging to the second message type in the interruption time .
  • the message sending module is specifically configured to: when the control device receives the access When the device requests a message according to the index information of the message buffered by the control device, the message is adopted. - - the type priority sorts the messages buffered by the control device, and sends a message buffered by the control device to the access device according to the ordering.
  • the method further includes:
  • An instruction processing module configured to send a connection interruption instruction to the access device, and receive an interrupt response instruction returned by the access device according to the connection interruption instruction, so that the control device and the access device respectively The interruption time is re-timed.
  • the index information of the message cached by the access device is used to provide the control device with the type and quantity of the message cached by the access device.
  • the index information of the message buffered by the control device is used to provide the access device with the type and quantity of messages buffered by the control device.
  • a fourth aspect of the present invention provides an access device, which may include:
  • a message sending module configured to send a heartbeat message to the control device after the end of the interruption time, where the heartbeat message carries index information of the message buffered by the access device, where the interruption time is the control device and the connection The duration of time that the incoming device suspends communication;
  • a message receiving module configured to receive a heartbeat response message returned by the control device according to the heartbeat message, where the heartbeat response message carries index information of a message buffered by the control device;
  • a message obtaining module configured to acquire, according to the index information of the message buffered by the control device, a message buffered by the control device;
  • a message sending module configured to: when the access device receives a message request sent by the control device according to the index information of the message buffered by the access device, send the message cached by the access device to the control device .
  • the method further includes: a command receiving module, configured to receive a configuration command sent by the control device when the control device and the access device complete the data channel establishment
  • the configuration command carries an interrupt time and a first message type
  • a response command sending module is configured to send a response command to the control device according to the configuration command, so that the control device starts the interrupt time, and
  • the control device caches the message belonging to the second message type during the interruption time; - starting a cache module, configured to start the interrupt time according to the configuration command, and cache a message belonging to the first message type within the interrupt time.
  • the message sending module is specifically configured to: when the access device receives the control When the device requests the message according to the index information of the message buffered by the access device, the message cached by the access device is sorted by using the message type priority, and the message cached by the access device is sorted according to the sorting. Send to the control device.
  • the method further includes:
  • an instruction sending module configured to: when the access device receives the connection interruption instruction sent by the control device, send an interrupt response instruction to the control device according to the connection interruption instruction, so that the control device and the The access device re-times the interrupt timeout period.
  • the index information of the message buffered by the access device is used to provide the control device with the type and quantity of the message cached by the access device.
  • the index information of the message buffered by the control device is used to provide the access device with the type and quantity of messages buffered by the control device.
  • a fifth aspect of the present invention provides a control device, which may include: a receiver, a transmitter, and a processor; wherein the processor performs the following steps:
  • the receiver is configured to receive a heartbeat message sent by the access device, where the heartbeat message carries index information of the message buffered by the access device, where the interruption time is the control device and the connection The duration of time that the incoming device suspends communication;
  • the sender is controlled to send the message buffered by the control device to the access device.
  • the processor performs the following steps before the end of the interruption time:
  • the sender is configured to send a configuration command to the access device, where the configuration command carries an interruption time and a first message type, so that the access device starts Determining an interruption time, and causing the access device to cache a message belonging to the first message type during the interruption time;
  • the interrupt time is started, and a message belonging to the second message type is buffered within the interrupt time.
  • the processor is configured to perform control to send the sender to the access device When the message cached by the device is controlled, the following steps are performed:
  • the message cached by the control device is sorted by using a message type priority, and the sender is configured to send a message buffered by the control device to the access device according to the sequence.
  • the processor is further executed as follows Steps:
  • the ingress device re-times the interrupt time.
  • the index information of the message buffered by the access device is used to provide the control device with the type and quantity of the message cached by the access device.
  • the index information of the message buffered by the control device is used to provide the access device with the type and quantity of messages buffered by the control device.
  • a sixth aspect of the present invention provides an access device, which may include: a receiver, a transmitter, and a processor; wherein the processor performs the following steps:
  • the sender is configured to send a heartbeat message to the control device, where the heartbeat message carries index information of the message cached by the access device, where the interruption time is the control device and - - the duration in which the access device suspends communication;
  • Controlling by the index information of the message buffered by the control device, the receiver to obtain a message buffered by the control device;
  • the sender is controlled to send the message of the access device cache to the control device.
  • the processor performs the following steps before the end of the interruption time:
  • the receiver is configured to receive a configuration command sent by the control device, where the configuration command carries an interruption time and a first message type;
  • Controlling by the configuration command, the sender to send a response command to the control device, so that the control device starts the interrupt time, and causes the control device to belong to the second message type during the interruption time.
  • the message is cached;
  • the interrupt time is initiated according to the configuration command, and a message belonging to the first message type is cached within the interrupt time.
  • the processor is configured to perform the control, the sending, by the sender, to the control device When accessing the message cached by the device, perform the following steps:
  • the message cached by the access device is sorted by using a message type priority, and the message that the sender caches the access device is sent to the control device according to the sequence.
  • the processor is further executed as follows Steps:
  • controlling the receiver When controlling the receiver to receive the connection interruption instruction sent by the control device, controlling the transmitter to send an interrupt response instruction to the control device according to the connection interruption instruction, so that the control device and the connection
  • the ingress device re-times the interrupt timeout period.
  • the access device is slow - the index information of the stored message is used to provide the control device with the type and number of messages buffered by the access device, and the index information of the message buffered by the control device is used to provide the access device with the Controls the type and number of messages cached by the device.
  • the control device receives the index information of the message buffered by the access device carried by the heartbeat message sent by the access device, and the access device carries the heartbeat response message sent by the control device.
  • the control device controls index information of a message buffered by the device, and the control device and the access device acquire the cached message according to the index information to complete asynchronous communication.
  • FIG. 1 is a scenario application diagram of asynchronous communication provided by an embodiment of the present invention
  • FIG. 2 is a scenario application diagram of another asynchronous communication provided by an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a method for asynchronous communication according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of another method for asynchronous communication according to an embodiment of the present invention
  • FIG. 6 is a schematic flowchart of still another method for asynchronous communication according to an embodiment of the present invention
  • FIG. 7 is a schematic structural diagram of a control device according to an embodiment of the present invention
  • FIG. 8 is a schematic structural diagram of another control device according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of an access device according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of another access device according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of still another control device according to an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of still another access device according to an embodiment of the present invention.
  • the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. . All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without departing from the inventive scope are the scope of the present invention.
  • an interrupt time may be set.
  • the control device and the access device are in a suspended communication state.
  • the control device and the access device are connected.
  • a control device that receives a heartbeat message sent by the access device, and sends a heartbeat response message to the access device, where the control device can obtain the access device from the access device according to the heartbeat message.
  • the cached message, the access device may obtain the message buffered by the control device from the control device according to the heartbeat response message, thereby completing the asynchronous communication process.
  • the control device may be an Access Controller (AC) or a Local Coordinator (LC), where the LC is a Wireless Termination Points (WTP) that is locally competitive.
  • the access device may be a WTP belonging to the OBSS.
  • the method for the asynchronous communication in the embodiment of the present invention can be applied to the scenario of the asynchronous communication between the AC and the WTP that is temporarily connected to the AC.
  • FIG. 1 a scenario application diagram of asynchronous communication is provided according to an embodiment of the present invention.
  • the AC is used as the control device
  • WTP1 is the WTP that temporarily accesses the AC
  • WTP1 is the access device.
  • AC and WTP1 are in the pause communication state during the interruption time.
  • the AC receives the heartbeat message sent by WTP1 and sends it to WTP1.
  • the heartbeat response message the AC can obtain the WTP1 cached message from the heartbeat message according to the heartbeat message, and the WTP1 can obtain the AC cache message from the AC according to the heartbeat response message, thereby completing the communication between the AC and the temporarily accessing the WTP of the AC.
  • FIG. 2 is a schematic diagram of a scenario application of another asynchronous communication according to an embodiment of the present invention.
  • the LC is used as the control device WTP1 for the WTP deployed by AC1 itself, and WTP1 is the LC, and WTP2 is the WTP, WTP3 and WTP1 deployed by AC2 itself.
  • Both WTP2 and WTP1 belong to the WTP of OBSS. It should be noted that both WTP2 and WTP3 belong to the access device.
  • WTP1 and WTP2 are in the pause communication state during the interrupt time.
  • WTP1 and WTP2 are connected.
  • WTP1 receives the heartbeat message sent by WTP2 and sends it to WTP2.
  • the heartbeat response packet the WTP1 can obtain the WTP2 cached message from the WTP2 according to the heartbeat message, and the WTP2 can obtain the WTP1 cached message from the WTP1 according to the heartbeat response message, thereby completing the asynchronous communication between the WTPs of different AC deployments. process.
  • WTP1 and WTP3 are in the pause communication state.
  • WTP1 and WTP3 are connected.
  • WTP1 receives the heartbeat message sent by WTP3 and sends a heartbeat response message to WTP3.
  • the WTP3 cached message can be obtained from the WTP3 according to the heartbeat message, and the WTP3 can obtain the WTP1 cached message from the WTP1 according to the heartbeat response message, thereby completing the asynchronous communication process between the LC and the WTP belonging to the OBSS.
  • FIG. 3 a schematic flowchart of a method for asynchronous communication is provided according to an embodiment of the present invention.
  • This embodiment describes a specific process of the method for asynchronous communication from the control device side, and the method may include the following steps S101 to S104.
  • the control device receives the heartbeat message sent by the access device, where the heartbeat message carries the index information of the message buffered by the access device, where the interruption time is the control device and the The duration of time that the access device suspends communication;
  • the control device needs to receive the heartbeat message sent by the access device within a preset time.
  • control device uses a Datagram Transport Layer Security (DTLS) to establish a data channel with the access device, and the data channel is preferably a control wireless access point ten office.
  • DTLS Datagram Transport Layer Security
  • the preset time may be determined by a connection timeout timer (DTLS Session Delete Timer) in the control device, when the control device and the access device reach a timeout time of the interruption time
  • the control device may restore the timing of the connection timeout timer, or re-time the connection timeout timer;
  • the heartbeat message carries index information of a message buffered by the access device;
  • the access The index information of the message cached by the device is used to provide the control device with the type and number of messages cached by the access device, and the like.
  • the control device sends a heartbeat response message to the access device, where the heartbeat response message carries index information of a message buffered by the control device;
  • control device determines that the access device is faulty or the connection with the access device has been disconnected.
  • the heartbeat response message carries the index information of the message cached by the control device; the index information of the message buffered by the control device is used to provide the access device with the message cached by the control device. Type and quantity, etc.
  • the control device acquires, according to the index information of the message cached by the access device, the message buffered by the access device.
  • control device may request, according to the index information of the message cached by the access device that is carried in the heartbeat packet, a message that is cached by the access device, where the access device is Sending a message buffered by the access device to the control device, where the control device acquires a message buffered by the access device.
  • control device When the control device receives the message request sent by the access device according to the index information of the message cached by the control device, the control device sends the message buffered by the control device to the access device.
  • control device receives a message request sent by the access device according to the index information of the message buffered by the control device that is carried in the heartbeat response packet, the control device sends the message to the access device.
  • the device sends the message buffered by the control device.
  • control device may use the message type priority to sort the messages buffered by the control device, and send the sorted messages buffered by the control device to the access device. - - Preparation.
  • the control device receives the index information of the message cached by the access device carried by the heartbeat message sent by the access device, and the access device sends the heartbeat response message sent by the control device. And the control device and the access device acquire the cached message according to the index information to complete the asynchronous communication.
  • the interrupt time it is possible to avoid the long delay caused by the reconnection and the waste of the computing resources of the device when the data channel of the control device and the access device is interrupted, thereby improving the communication efficiency.
  • FIG. 4 a flow chart of another method for asynchronous communication is provided according to an embodiment of the present invention. This embodiment describes a specific process of the method for asynchronous communication from the control device side, and the method may include the following steps S201 to S207.
  • the control device when the control device and the access device complete the data channel establishment, the control device sends a configuration command to the access device, where the configuration command carries an interruption time and a first message type, so that the access device starts The interruption time, and causing the access device to cache a message belonging to the first message type during the interruption time;
  • the control device may send a configuration command to the access device, where the configuration command carries an interruption time and a first message type, when the access device Upon receiving the configuration command, the access device may send a response command to the control device, the access device starts the interrupt time according to the configuration command, and belongs to the The message of the first message type is cached.
  • control device uses DTLS to establish a data channel with the access device, and the data channel is preferably a CAPWAP tunnel.
  • the message belonging to the first message type may include: a station (STA) change message, a load measurement message, a fault statistics message, and the like.
  • the control device when the control device receives the response command returned by the access device according to the configuration command, the control device starts the interruption time, and belongs to the second message type in the interruption time.
  • the message is cached. -
  • the description is that the control device and the access device start the interrupt time at the same time, and the message belonging to the second message type may include: a configuration message, a load balancing message, and the like.
  • the control device receives the heartbeat message sent by the access device, where the heartbeat message carries the index information of the message buffered by the access device, where the interruption time is the control device and the The duration of time that the access device suspends communication;
  • the control device needs to receive the heartbeat message sent by the access device within a preset time.
  • the preset time may be determined by a connection timeout timer (DTLS Session Delete Timer) in the control device, when the control device and the access device reach a timeout moment of the interruption time,
  • the control device may restore the timing of the connection timeout timer, or re-clock the connection timeout timer;
  • the heartbeat message carries index information of the message buffered by the access device;
  • the access device cache The index information of the message is used to provide the control device with the type and number of messages buffered by the access device, and the like.
  • the control device sends a heartbeat response message to the access device, where the heartbeat response message carries index information of a message buffered by the control device;
  • control device determines that the access device is faulty or the connection with the access device has been disconnected.
  • the heartbeat response message carries the index information of the message cached by the control device; the index information of the message buffered by the control device is used to provide the access device with the message cached by the control device. Type and quantity, etc.
  • the control device acquires, according to the index information of the message cached by the access device, the message cached by the access device.
  • control device may request, according to the index information of the message cached by the access device that is carried in the heartbeat packet, a message that is cached by the access device, where the access device is Sending a message buffered by the access device to the control device, where the control device acquires a message buffered by the access device.
  • control device when the control device receives a message request sent by the access device according to the index information of the message cached by the control device, the control device sends the message buffered by the control device to the access device;
  • control device receives a message request sent by the access device according to the index information of the message buffered by the control device that is carried in the heartbeat response packet, the control device sends the message to the access device.
  • the device sends the message buffered by the control device.
  • control device may sort the messages buffered by the control device by using a message type priority, and send the sorted messages buffered by the control device to the access device.
  • control device sends a connection interruption instruction to the access device, and receives an interrupt response instruction returned by the access device according to the connection interruption instruction, so that the control device and the access device respectively
  • the interruption time is re-timed
  • the control device may send a connection interruption instruction to the access device, where the access device is interrupted according to the connection.
  • the instruction returns an interrupt response command.
  • the control device and the access device respectively re-clock the interrupt time and enter a pause communication state.
  • control device when the timeout time of the interruption time arrives again, the control device repeatedly performs steps S203-S207. For the specific execution process, refer to steps S203-S207, and details are not described herein.
  • the control device receives the index information of the message cached by the access device carried by the heartbeat message sent by the access device, and the access device sends the heartbeat response message sent by the control device. And the control device and the access device acquire the cached message according to the index information to complete the asynchronous communication.
  • the interrupt time it is possible to avoid the long delay caused by the reconnection and the waste of the computing resources of the device when the data channel of the control device and the access device is interrupted, thereby improving the communication efficiency.
  • FIG. 5 a schematic flowchart of still another method for asynchronous communication is provided according to an embodiment of the present invention. In this embodiment, a specific process of the method for asynchronous communication is described from the access device side, and the method may include the following steps S301 to S304.
  • the access device sends a heartbeat message to the control device, where the heart -
  • the hop packet carries index information of a message buffered by the access device, where the interruption time is a duration in which the control device pauses communication with the access device;
  • the access device needs to send the heartbeat message to the control device within a preset time.
  • the heartbeat packet carries the index information of the message cached by the access device, and the index information of the message cached by the access device is used to provide the control device with the type of the message cached by the access device. Quantity, etc.
  • the control device uses DTLS to establish a data channel with the access device, and the data channel is preferably a CAPWAP tunnel;
  • the preset time may be a connection timeout timer (DTLS) in the control device. Determining, when the control device and the access device reach a timeout moment of the interruption time, the control device may resume the timing of the connection timeout timer, or re-establish the connection timeout timer Timing, the access device needs to send a heartbeat message to the control device before the connection timeout timer expires.
  • DTLS connection timeout timer
  • the access device receives a heartbeat response message returned by the control device according to the heartbeat, and the heartbeat response packet carries index information of a message buffered by the control device.
  • the access device receives a heartbeat response message returned by the control device according to the heartbeat message.
  • the heartbeat response packet carries the index information of the message buffered by the control device; the index information of the message buffered by the control device is used to provide the access device with the type and quantity of the message cached by the control device. Wait.
  • control device determines that the access device is faulty or the connection with the access device has been disconnect.
  • the access device acquires a message cached by the control device according to the index information of the message cached by the control device.
  • the access device may request, by the control device, the message buffered by the control device according to the index information of the message cached by the control device that is carried in the heartbeat response packet, And - the control device sends a message buffered by the control device to the access device, the access device acquiring a message buffered by the control device.
  • the access device receives a message request sent by the control device according to the index information of the message cached by the access device carried in the heartbeat packet, the access device sends the message to the control device.
  • the device sends a message cached by the access device.
  • the access device may use the message type priority to sort the messages buffered by the access device, and send the sorted message buffered by the access device to the control device.
  • the control device receives the index information of the message cached by the access device carried by the heartbeat message sent by the access device, and the access device sends the heartbeat response message sent by the control device. And the control device and the access device acquire the cached message according to the index information to complete the asynchronous communication.
  • the interrupt time it is possible to avoid the long delay caused by the reconnection and the waste of the computing resources of the device when the data channel of the control device and the access device is interrupted, thereby improving the communication efficiency.
  • FIG. 6 a schematic flowchart of still another method for asynchronous communication is provided according to an embodiment of the present invention. This embodiment describes a specific process of the method for asynchronous communication from the access device side, and the method may include the following steps S401 to S408.
  • the access device receives the configuration command sent by the control device, where the configuration command carries the interruption time and the first message type.
  • the control device may send a configuration command to the access device, where the configuration command carries an interruption time and a first message type, and the access device receives the configuration command.
  • control device uses DTLS to establish a data channel with the access device, and the data channel is preferably a CAPWAP tunnel.
  • the access device sends a response command to the control device according to the configuration command, to - causing the control device to initiate the interruption time and causing the control device to cache messages belonging to the second message type during the interruption time;
  • the access device may send a response command to the control device, where the control device receives the access device and returns according to the configuration command.
  • the control device In response to the command, the control device initiates the interrupt time and caches messages belonging to the second message type within the interrupt time.
  • the message belonging to the second message type may include: a configuration message, a load balancing message, and the like.
  • the access device starts the interrupt time according to the configuration command, and caches a message belonging to the first message type in the interrupt time.
  • the access device starts the interrupt time according to the configuration command, and caches a message belonging to the first message type in the interrupt time.
  • the message belonging to the first message type may include: a STA change message, a load measurement message, a fault statistics message, and the like.
  • the access device sends a heartbeat message to the control device, where the heartbeat message carries index information of the message buffered by the access device, where the interruption time is the control device and the connection The duration of time that the incoming device suspends communication;
  • the access device needs to send the heartbeat message to the control device within a preset time.
  • the heartbeat packet carries the index information of the message cached by the access device, and the index information of the message cached by the access device is used to provide the control device with the type of the message cached by the access device. Quantity, etc.
  • the preset time may be determined by a connection timeout timer (DTLS Session Delete Timer) in the control device, when the control device and the access device reach a timeout moment of the interruption time, The control device may restore the timing of the connection timeout timer, or re-time the connection timeout timer, and the access device needs to send a heartbeat report to the control device before the connection timeout timer expires.
  • DTLS Session Delete Timer DTLS Session Delete Timer
  • the access device receives a heartbeat response message returned by the control device according to the heartbeat message, where the heartbeat response message carries index information of a message buffered by the control device; Specifically, the access device receives a heartbeat response message returned by the control device according to the heartbeat message.
  • the heartbeat response packet carries the index information of the message buffered by the control device; the index information of the message buffered by the control device is used to provide the access device with the type and quantity of the message cached by the control device. Wait.
  • control device determines that the access device is faulty or the connection with the access device has been disconnect.
  • the access device acquires, according to the index information of the message cached by the control device, the message cached by the control device.
  • the access device may request, by the control device, the message buffered by the control device according to the index information of the message cached by the control device that is carried in the heartbeat response packet, where the control device The message buffered by the control device is sent to the access device, and the access device acquires a message buffered by the control device.
  • the access device when the access device receives a message request sent by the control device according to the index information of the message cached by the access device, the access device sends the access device cache to the control device.
  • the access device receives a message request sent by the control device according to the index information of the message cached by the access device carried in the heartbeat packet, the access device sends the message to the control device.
  • the device sends a message cached by the access device.
  • the access device may use the message type priority to sort the messages buffered by the access device, and send the sorted message buffered by the access device to the control device.
  • the control device sends a connection interruption instruction to the access device
  • the access device may be interrupted according to the connection.
  • the instruction returns an interrupt response command.
  • the control device and the access device respectively re-time the interrupt time and enter an interrupt state.
  • the control device receives the index information of the message cached by the access device carried by the heartbeat message sent by the access device, and the access device sends the heartbeat response message sent by the control device. And the control device and the access device acquire the cached message according to the index information to complete the asynchronous communication.
  • the interrupt time it is possible to avoid the long delay caused by the reconnection and the waste of the computing resources of the device when the data channel of the control device and the access device is interrupted, thereby improving the communication efficiency.
  • the control device provided by the embodiment of the present invention will be described in detail below with reference to FIG. 7 and FIG. It should be noted that the control device shown in FIG. 7 and FIG.
  • FIG. 8 is used to perform the method of the embodiment shown in FIG. 3 and FIG. 4 of the present invention.
  • FIG. 3 and FIG. 4 of the present invention For the convenience of description, only the embodiments related to the embodiment of the present invention are shown. In part, the specific technical details are not disclosed, please refer to the embodiment shown in FIG. 3 and FIG. 4 of the present invention.
  • control device 1 of the embodiment of the present invention may include: a message receiving module 11, a message sending module 12, a message acquiring module 13, and a message sending module 14.
  • the message receiving module 11 is configured to receive a heartbeat message sent by the access device after the interruption time is ended, where the heartbeat message carries index information of the message buffered by the access device, where the interruption time is the control device and the The duration of time that the access device suspends communication;
  • the packet receiving module 11 needs to receive the heartbeat sent by the access device within a preset time. Message.
  • control device 1 uses DTLS to establish a data channel with the access device, and the data channel is preferably a CAPWAP tunnel;
  • the preset time may be timed out by the connection in the control device 1 DTLS Session Delete Timer determines when the control - - when the device 1 and the access device reach the timeout moment of the interruption time, the control device 1 may restore the timing of the connection timeout timer, or re-clock the connection timeout timer;
  • the index information of the message cached by the access device is used to provide the control device 1 with the type and quantity of the message cached by the access device.
  • a message sending module 12 configured to send a heartbeat response message to the access device, where the heartbeat response message carries index information of a message buffered by the control device;
  • the packet sending module 12 sends a heartbeat response packet to the access device. If the message receiving module 11 does not receive the heartbeat message sent by the access device within a preset time, the control device 1 determines that the access device is faulty or connected to the access device. Has been disconnected.
  • the heartbeat response message carries the index information of the message buffered by the control device 1; the index information of the message buffered by the control device 1 is used to provide the access device with the control device 1 cache.
  • the message obtaining module 13 is configured to acquire, according to the index information of the message cached by the access device, the message cached by the access device;
  • the message obtaining module 13 may request, according to the index information of the message cached by the access device that is carried in the heartbeat packet, the message that is cached by the access device, The access device sends a message buffered by the access device to the control device 1, and the message obtaining module 13 obtains a message cached by the access device.
  • the message sending module 14 is configured to: when the control device receives a message request sent by the access device according to the index information of the message buffered by the control device, the control device sends the control to the access device Message cached by the device;
  • the message sending module 14 Sending the message buffered by the control device 1 to the access device.
  • the message sending module 14 may sort the messages buffered by the control device 1 by using the message type priority, and send the sorted messages buffered by the control device 1 - - to the access device.
  • FIG. 8 is a schematic structural diagram of another control device according to an embodiment of the present invention.
  • the control device 1 of the embodiment of the present invention may include: a message receiving module 11, a message sending module 12, a message acquiring module 13, a message sending module 14, a command sending module 15, and a boot buffer module 16. And instruction processing module 17.
  • the command sending module 15 is configured to: when the control device and the access device complete the data channel establishment, send a configuration command to the access device, where the configuration command carries an interruption time and a first message type, so that the access device Initiating the interruption time, and causing the access device to cache a message belonging to the first message type during the interruption time;
  • the command sending module 15 may send a configuration command to the access device, where the configuration command carries the interrupt time and the first message type.
  • the access device may send a response command to the control device 1, and the access device starts the interrupt time according to the configuration command, and at the interruption time.
  • the message belonging to the first message type is cached.
  • control device 1 uses DTLS to establish a data channel with the access device, and the data channel is preferably a CAPWAP tunnel.
  • the message belonging to the first message type may include: a STA change message, a load measurement message, a fault statistics message, and the like.
  • the startup cache module 16 is configured to: when the control device receives the response command returned by the access device according to the configuration command, start the interruption time, and perform a message belonging to the second message type in the interruption time Cache
  • the startup cache module 16 starts the interrupt time, and at the time of the interruption. - - Cache messages belonging to the second message type in between.
  • control device 1 and the access device start the interrupt time at the same time, and the message belonging to the second message type may include: a configuration message, a load balancing message, and the like.
  • the message receiving module 11 is configured to receive a heartbeat message sent by the access device after the interruption time is ended, where the heartbeat message carries index information of the message buffered by the access device, where the interruption time is the control device and the The duration of time that the access device suspends communication;
  • the packet receiving module 11 needs to receive the heartbeat sent by the access device within a preset time. Message.
  • the preset time may be a connection timeout timer in the control device 1.
  • the control device 1 may restore the timing of the connection timeout timer, or time out the connection.
  • the timer is re-timed;
  • the heartbeat message carries index information of the message buffered by the access device; and the index information of the message cached by the access device is used to provide the access device cache for the control device 1
  • a message sending module 12 configured to send a heartbeat response message to the access device, where the heartbeat response message carries index information of a message buffered by the control device;
  • the packet sending module 12 sends a heartbeat response packet to the access device. If the message receiving module 11 does not receive the heartbeat message sent by the access device within a preset time, the control device 1 determines that the access device is faulty or connected to the access device. Has been disconnected.
  • the heartbeat response message carries the index information of the message buffered by the control device 1; the index information of the message buffered by the control device 1 is used to provide the access device with the control device 1 cache.
  • the message obtaining module 13 is configured to acquire, according to the index information of the message cached by the access device, the message cached by the access device;
  • the message acquiring module 13 may request the access device to cache the access device according to the index information of the message cached by the access device that is carried in the heartbeat packet. - The access device sends a message buffered by the access device to the control device 1, and the message obtaining module 13 obtains a message cached by the access device.
  • the message sending module 14 is configured to: when the control device receives a message request sent by the access device according to the index information of the message buffered by the control device, the control device sends the control to the access device Message cached by the device;
  • the message sending module 14 Sending the message buffered by the control device 1 to the access device.
  • the message sending module 14 may sort the messages buffered by the control device 1 by using the message type priority, and send the sorted messages buffered by the control device 1 to the access device.
  • the instruction processing module 17 is configured to send a connection interruption instruction to the access device, and receive an interrupt response instruction returned by the access device according to the connection interruption instruction, so that the control device and the access device respectively Re-clocking the interruption time;
  • the command processing module 17 may send a connection interruption instruction to the access device, where the access device is configured according to the The connection interrupt instruction returns an interrupt response command.
  • the control device 1 and the access device respectively re-time the interrupt time and enter an interrupt state.
  • Steps S203-S207 of the embodiment shown in FIG. 4 refer to steps S203-S207 of the embodiment shown in FIG. 4 for specific implementation, and no description is given here.
  • the control device receives the index information of the message cached by the access device carried by the heartbeat message sent by the access device, and the access device sends the heartbeat response message sent by the control device. And the control device and the access device acquire the cached message according to the index information to complete the asynchronous communication.
  • the interrupt time it is possible to avoid a long delay caused by reconnecting and a waste of computing resources of the device when the data channel of the control device and the access device is interrupted, thereby improving communication efficiency.
  • the access device provided by the embodiment of the present invention will be described in detail below with reference to FIG. 9 and FIG. It should be noted that the access device shown in FIG. 9 and FIG.
  • FIG. 10 is used to perform the method of the embodiment shown in FIG. 5 and FIG. 6 of the present invention.
  • FIG. 5 and FIG. 6 of the present invention For the convenience of description, only the embodiment of the present invention is shown. For the part, the specific technical details are not disclosed, please refer to the embodiment shown in FIG. 5 and FIG. 6 of the present invention.
  • FIG. 9 is a schematic structural diagram of an access device according to an embodiment of the present invention.
  • the access device 2 of the embodiment of the present invention may include: a message sending module 21, a message receiving module 22, a message acquiring module 23, and a message sending module 24.
  • the message sending module 21 is configured to send a heartbeat message to the control device after the end of the interruption time, where the heartbeat message carries index information of the message buffered by the access device, where the interruption time is the control device and the The duration of time that the access device suspends communication;
  • the message sending module 21 needs to send the heartbeat message to the control device within a preset time.
  • the heartbeat packet carries the index information of the message cached by the access device 2, and the index information of the message buffered by the access device 2 is used to provide the control device with the message cached by the access device 2.
  • the control device uses DTLS to establish a data channel with the access device 2, and the data channel is preferably a CAPWAP tunnel;
  • the preset time may be a connection timeout timer in the control device ( Determining, when the control device and the access device 2 reach a timeout moment of the interruption time, the control device may restore the timing of the connection timeout timer, or the connection timeout timer The re-timing is performed, and the message sending module 21 needs to send a heartbeat message to the control device before the connection timeout timer expires.
  • the message receiving module 22 is configured to receive a heartbeat response message returned by the control device according to the heartbeat message, where the heartbeat response message carries index information of a message buffered by the control device;
  • the message receiving module 22 receives a heartbeat response message returned by the control device according to the heartbeat message.
  • the heartbeat response packet carries the index information of the message buffered by the control device; the index information of the message buffered by the control device is used to provide the access device 2 with the control device - - The type and amount of messages stored.
  • control device determines that the access device 2 is faulty or The connection of the access device 2 has been disconnected.
  • the message obtaining module 23 is configured to acquire, according to the index information of the message buffered by the control device, the message buffered by the control device;
  • the message obtaining module 23 may request, according to the index information of the message buffered by the control device that is carried in the heartbeat response packet, the message that is cached by the control device.
  • the control device sends a message buffered by the control device to the access device 2, and the message obtaining module 23 acquires a message buffered by the control device.
  • the message sending module 24 is configured to: when the access device receives the message request sent by the control device according to the index information of the message cached by the access device, send the access device cache to the control device Message
  • the message sending module 24 Sending the message cached by the access device 2 to the control device.
  • the message sending module 24 may use the message type priority to sort the messages buffered by the access device 2, and send the sorted message cached by the access device 2 to the control device. .
  • FIG. 10 is a schematic structural diagram of another access device according to an embodiment of the present invention. As shown in FIG.
  • the access device 2 of the embodiment of the present invention may include: a message sending module 21, a message receiving module 22, a message acquiring module 23, a message sending module 24, a command receiving module 25, and a response.
  • the command receiving module 25 is configured to: when the control device and the access device complete the data channel establishment, receive the configuration command sent by the control device, where the configuration command carries the interrupt time and the first message type;
  • control device when the control device and the access device 2 complete the data channel establishment, the control device may send a configuration command to the access device 2, where the configuration command carries an interruption time and a first message type, where the command
  • the receiving module 25 receives the configuration command.
  • control device uses DTLS to establish a data channel with the access device 2, and the data channel is preferably a CAPWAP tunnel.
  • the response command sending module 26 is configured to send a response command to the control device according to the configuration command, so that the control device starts the interrupt time, and causes the control device to belong to the second time during the interruption time.
  • Message type messages are cached;
  • the response command sending module 26 may send a response command to the control device, when the control device receives the response command sending module 26 When the response command is returned according to the configuration command, the control device starts the interrupt time, and caches a message belonging to the second message type in the interrupt time.
  • the message belonging to the second message type may include: a configuration message, a load balancing message, and the like.
  • the startup cache module 27 is configured to start the interrupt time according to the configuration command, and cache a message belonging to the first message type in the interruption time;
  • the startup cache module 27 starts the interrupt time according to the configuration command, and caches a message belonging to the first message type in the interruption time.
  • the message belonging to the first message type may include: a STA change message, a load measurement message, a fault statistics message, and the like.
  • the message sending module 21 is configured to send a heartbeat message to the control device after the end of the interruption time, where the heartbeat message carries index information of the message buffered by the access device, where the interruption time is the control - - the duration of time that the device suspends communication with the access device;
  • the message sending module 21 needs to send the heartbeat message to the control device within a preset time.
  • the heartbeat packet carries the index information of the message cached by the access device 2, and the index information of the message buffered by the access device 2 is used to provide the control device with the message cached by the access device 2.
  • the preset time may be determined by a connection timeout timer (DTLS Session Delete Timer) in the control device, when the control device and the access device 2 reach a timeout moment of the interruption time,
  • the control device may restore the timing of the connection timeout timer, or re-time the connection timeout timer, and the message sending module 21 needs to notify the control device before the connection timeout timer expires. Send a heartbeat message.
  • DTLS Session Delete Timer DTLS Session Delete Timer
  • the message receiving module 22 is configured to receive a heartbeat response message that is sent by the control device according to the heartbeat message, where the heartbeat response message carries index information of a message buffered by the control device.
  • the message receiving module 22 receives the heartbeat response message returned by the control device according to the heartbeat message.
  • the heartbeat response message carries the index information of the message cached by the control device; the index information of the message buffered by the control device is used to provide the access device 2 with the type of the message cached by the control device. Quantity, etc.
  • control device determines that the access device 2 is faulty or The connection of the access device 2 has been disconnected.
  • the message obtaining module 23 is configured to acquire, according to the index information of the message buffered by the control device, the message buffered by the control device;
  • the message obtaining module 23 may request, according to the index information of the message buffered by the control device that is carried in the heartbeat response packet, the message that is cached by the control device. Sending, by the control device, a message buffered by the control device to the access device 2, where - The message acquisition module 23 obtains the message buffered by the control device.
  • the message sending module 24 is configured to: when the access device receives the message request sent by the control device according to the index information of the message cached by the access device, send the access device cache to the control device Message
  • the message sending module 24 Sending the message cached by the access device 2 to the control device.
  • the message sending module 24 may use the message type priority to sort the messages buffered by the access device 2, and send the sorted message cached by the access device 2 to the control device. .
  • the instruction sending module 28 is configured to: when the access device receives the connection interruption instruction sent by the control device, send an interrupt response instruction to the control device according to the connection interruption instruction, so that the control device and the The access device re-times the interrupt timeout period;
  • the control device may send a connection interruption instruction to the access device 2, when the access device 2 Upon receiving the connection interrupt instruction sent by the control device, the command sending module 28 may return an interrupt response command according to the connection interrupt instruction. At this time, the control device and the access device 2 respectively respectively perform the interrupt. The time is re-timed and enters the interrupted state.
  • Steps S404-S408 of the embodiment shown in FIG. 6 are performed. For the specific implementation process, refer to steps S404-S408 of the embodiment shown in FIG. 6, which is not described herein.
  • the control device receives the index information of the message cached by the access device carried by the heartbeat message sent by the access device, and the access device sends the heartbeat response message sent by the control device. And the control device and the access device acquire the cached message according to the index information to complete the asynchronous communication.
  • the control device 1 of the embodiment of the present invention may include: a receiver 101, a processor 102, and a transmitter 103.
  • the processor 102 performs the following steps:
  • the receiver 101 is configured to receive a heartbeat message sent by the access device, where the heartbeat message carries index information of the message buffered by the access device, where the interruption time is the control device 1 and the The duration in which the access device suspends communication;
  • the receiver 101 when the control device 1 and the access device reach the timeout time of the interruption time, that is, after the interruption time ends, the receiver 101 needs to receive the heartbeat sent by the access device within a preset time. Text.
  • the preset time may be a connection timeout timer (DTLS) in the control device 1
  • DTLS connection timeout timer
  • the control device 1 may restore the timing of the connection timeout timer, or the connection timeout timer Retime
  • the receiver 101 if the receiver 101 receives the heartbeat message sent by the access device within a preset time, the transmitter 103 sends a heartbeat response message to the access device; If the heartbeat message sent by the access device is not received within the preset time, the control device 1 determines that the access device is faulty or the connection with the access device has been disconnected.
  • the sender 103 is controlled to send the control device 1 cache to the access device. Message.
  • the processor 101 may sort the messages buffered by the control device 1 by using a message type priority, and send the sorted messages buffered by the control device 1 to the Access device.
  • index information of the message buffered by the access device is used to provide the control device 1 with the type and quantity of messages cached by the access device, and the message cached by the control device 1 - - Index information is used to provide the access device with the type and number of messages buffered by the control device 1.
  • the processor 102 also performs the following steps before the end of the interruption time:
  • the transmitter 103 is configured to send a configuration command to the access device, where the configuration command carries an interruption time and a first message type, so that the access device Initiating the interruption time, and causing the access device to cache a message belonging to the first message type during the interruption time;
  • the interrupt time is started, and the message belonging to the second message type is buffered within the interruption time.
  • control device 1 uses DTLS to establish a data channel with the access device, and the data channel is preferably a CAPWAP tunnel;
  • the message belonging to the first message type may include: STA change message, load Measuring messages and fault statistics messages, etc.;
  • the messages belonging to the second message type may include: configuration messages, load balancing messages, and the like.
  • the processor 102 performs the following steps when performing the control of the message that the sender sends the control device cache to the access device:
  • the messages buffered by the control device 1 are sorted by using a message type priority, and the sender 103 is configured to send a message buffered by the control device 1 to the access device according to the ordering.
  • the processor also performs the following steps:
  • the processor 102 may perform again, after the interruption time ends, controlling the receiver 101 to receive the heartbeat message sent by the access device, where the heartbeat message carries the The index information of the message cached by the access device, where the interruption time is a duration in which the control device pauses communication with the access device; and the transmitter 103 is configured to send a heartbeat response message to the access device,
  • the heartbeat response message carries the index information of the message buffered by the control device; and the receiver 101 acquires the message cached by the access device according to the index information of the message buffered by the access device; when the receiver 101 Receiving, by the access device, a message request sent according to the index information of the message buffered by the control device, controlling the transmitter 103 to the - -
  • the access device sends a message buffered by the control device.
  • FIG. 12 is a schematic structural diagram of still another access device according to an embodiment of the present invention.
  • the access device 2 of the embodiment of the present invention may include: a receiver 201, a processor 202, and a transmitter 203.
  • the processor 202 performs the following steps:
  • the sender 203 is configured to send a heartbeat message to the control device, where the heartbeat message carries index information of the message cached by the access device 2, and the interruption time is the control device and the connection The duration of time that the incoming device 2 suspends communication;
  • the transmitter 203 needs to send the heartbeat message to the control device within a preset time.
  • the preset time may be determined by a connection timeout timer (DTLS Session Delete Timer) in the control device, when the control device and the access device 2 reach a timeout moment of the interruption time, The control device may restore the timing of the connection timeout timer or re-time the connection timeout timer, and the transmitter 203 needs to send the connection timeout timer to the control device before the connection timeout timer expires. Heartbeat message.
  • DTLS Session Delete Timer DTLS Session Delete Timer
  • control device determines that the access device 2 is faulty or with the access device 2 The connection has been broken. Controlling, by the index information of the message buffered by the control device, the receiver 201 to obtain a message buffered by the control device;
  • the sender 203 is controlled to send the access device 2 cache to the control device. Message.
  • the processor 202 may use the message type priority to sort the messages cached by the access device 2, and send the sorted message cached by the access device 2 to the control device.
  • the index information of the message cached by the access device 2 is used to provide the control device with the type and quantity of messages cached by the access device 2, and the index information of the message buffered by the control device is used. Providing the access device 2 with the type and number of messages buffered by the control device.
  • the processor 202 also performs the following steps before the end of the interruption time:
  • the receiver 201 is configured to receive the configuration command sent by the control device, where the configuration command carries the interruption time and the first message type;
  • the control device uses DTLS to establish a data channel with the access device 2, and the data channel is preferably a CAPWAP tunnel.
  • Controlling by the configuration command, the sender to send a response command to the control device, so that the control device starts the interrupt time, and causes the control device to belong to the second message type during the interruption time.
  • the message is cached;
  • the interrupt time is initiated according to the configuration command, and a message belonging to the first message type is cached within the interrupt time.
  • the message that belongs to the first message type may include: a STA change message, a load measurement message, a fault statistics message, and the like
  • the message belonging to the second message type may include: a configuration message, a load balancing message, and the like.
  • the processor 202 performs the following steps when performing the control of the message that the sender sends the cache of the access device to the control device:
  • the message cached by the access device 2 is sorted by using a message type priority, and the sender 203 is configured to send a message buffered by the access device 2 to the control device according to the ordering.
  • the processor also performs the following steps: - controlling the transmitter 203 to send an interrupt response instruction to the control device according to the connection interruption instruction when the receiver 201 is controlled to receive the connection interruption instruction sent by the control device, so that the control device And the access device 2 re-times the interrupt timeout time.
  • the processor 202 may perform again, after the interruption time ends, the sender 203 is controlled to send a heartbeat message to the control device, where the heartbeat message carries the access device.
  • the index information of the cached message, the interruption time is the duration of the suspension of communication between the control device and the access device 2; controlling the receiver 201 to receive the heartbeat returned by the control device according to the heartbeat message a response message, the heartbeat response message carrying the index information of the message buffered by the control device; controlling, according to the index information of the message buffered by the control device, the receiver 201 to obtain the message buffered by the control device; Receiving, by the receiver 201, a message request sent by the control device according to the index information of the message buffered by the access device 2, controlling the sender 203 to send the message cached by the access device 2 to the control device .
  • the control device receives the index information of the message cached by the access device carried by the heartbeat message sent by the access device, and the access device sends the heartbeat response message sent by the control device. And the control device and the access device acquire the cached message according to the index information to complete the asynchronous communication.
  • the embodiment of the present invention further provides a system for asynchronous communication, which may include the control device shown in FIG. 7 and FIG. 8, and the access device shown in FIG. 9 and FIG. 10, or may include the following figures.
  • the control device receives the index information of the message cached by the access device carried by the heartbeat message sent by the access device, and the access device sends the heartbeat response message sent by the control device. And the control device and the access device acquire the cached message according to the index information to complete the asynchronous communication.
  • Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another.
  • a storage medium may be any available media that can be accessed by a computer.
  • computer readable media may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage media or other magnetic storage device, or can be used for carrying or storing in the form of an instruction or data structure.
  • the desired program code and any other medium that can be accessed by the computer may suitably be a computer readable medium.
  • the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable , fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, wireless, and microwaves are included in the fixing of the associated media.
  • coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, wireless, and microwaves are included in the fixing of the associated media.
  • a disk and a disc include a compact disc (CD), a laser disc, a disc, a digital versatile disc (DVD), a floppy disk, and a Blu-ray disc, wherein the disc is usually magnetically copied, and the disc is The laser is used to optically replicate the data. Combinations of the above should also be included within the scope of the computer readable media.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Communication Control (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明实施例公开一种异步通信的方法及设备,其中方法包括:当中断时间结束之后,控制设备接收接入设备发送的心跳报文,所述中断时间为所述控制设备与所述接入设备暂停通信的持续时间;所述控制设备向所述接入设备发送心跳响应报文,所述心跳响应报文携带所述控制设备缓存的消息的索引信息;所述控制设备根据所述接入设备缓存的消息的索引信息获取所述接入设备缓存的消息;当所述控制设备接收到所述接入设备根据所述控制设备缓存的消息的索引信息发送的消息请求时,所述控制设备向所述接入设备发送所述控制设备缓存的消息。可以避免当数据通道中断时,因进行再次连接造成较长的延时和设备运算资源的浪费,从而可以提高通信效率。

Description

一 一 一种异步通信的方法及设备 技术领域
本发明涉及通信技术领域, 尤其涉及一种异步通信的方法及设备。 背景技术
传统的无线局域网络(Wireless Local Area Networks, WLAN )部署中, 由于同一射频所覆盖的区域会存在多个基本服务集( Basic Service Set, BSS ), 且多个 BSS间会形成相互干扰的情况,导致服务质量( Quality of Service, QOS ) 性能受限。 随着通讯技术不断的开发和完善, 集中式 WLAN架构应运而生, 对于拥有大量接入设备的 BSS 中, 仅通过控制设备就可以完成对所有的接入 设备的管理, 例如: 故障诊断、 版本设定等, 优化了控制模式。
但由于接入设备的数量逐渐增多, 控制设备通常在管理 BSS 中的接入设 备的同时, 还需要对交叠基本服务集(Overlap Basic Service Set, OBSS )中的 接入设备进行临时管理,由于控制设备对于临时管理的接入设备的行为存在不 可预知性, 如果控制设备与接入设备一直保持连接, 则会造成资源浪费, 因此 控制设备会周期性关闭与临时管理的接入设备之间的数据通道,如果需要再次 连接, 会造成较长的延时和设备运算资源的浪费。 发明内容
本发明实施例提供了一种异步通信的方法及设备,可以避免当数据通道中 断时, 因进行再次连接造成较长的延时和设备运算资源的浪费,从而可以提高 通信效率。
为了解决上述技术问题, 本发明第一方面提供了一种异步通信的方法,可 包括:
当中断时间结束之后,控制设备接收接入设备发送的心跳报文, 所述心跳 报文携带所述接入设备緩存的消息的索引信息,所述中断时间为所述控制设备 与所述接入设备暂停通信的持续时间;
所述控制设备向所述接入设备发送心跳响应报文,所述心跳响应报文携带 - - 所述控制设备緩存的消息的索引信息;
所述控制设备根据所述接入设备緩存的消息的索引信息获取所述接入设 备緩存的消息;
当所述控制设备接收到所述接入设备根据所述控制设备緩存的消息的索 引信息发送的消息请求时,所述控制设备向所述接入设备发送所述控制设备緩 存的消息。
基于第一方面, 在第一方面的第一种可行的实施方式中, 所述方法之前, 还包括:
当控制设备与接入设备完成数据通道建立时,所述控制设备向所述接入设 备发送配置命令,所述配置命令携带中断时间和第一消息类型, 以使所述接入 设备启动所述中断时间,并使所述接入设备在所述中断时间内对属于所述第一 消息类型的消息进行緩存;
当所述控制设备接收到所述接入设备根据所述配置命令返回的响应命令 时, 所述控制设备启动所述中断时间, 并在所述中断时间内对属于第二消息类 型的消息进行緩存。
基于第一方面或第一方面的第一种可行的实施方式,在第一方面的第二种 可行的实施方式中,所述控制设备向所述接入设备发送所述控制设备緩存的消 息, 包括:
所述控制设备采用消息类型优先级对所述控制设备緩存的消息进行排序, 并根据所述排序将所述控制设备緩存的消息发送至所述接入设备。
基于第一方面或第一方面的第一种可行的实施方式或第一方面的第二种 可行的实施方式, 在第一方面的第三种可行的实施方式中, 还包括:
所述控制设备向所述接入设备发送连接中断指令,并接收所述接入设备根 据所述连接中断指令返回的中断响应指令,以使所述控制设备和所述接入设备 分别对所述中断时间重新计时。
基于第一方面,在第一方面的第四种可行的实施方式中, 所述接入设备緩 存的消息的索引信息用于为所述控制设备提供所述接入设备緩存的消息的类 型和数量,所述控制设备緩存的消息的索引信息用于为所述接入设备提供所述 控制设备緩存的消息的类型和数量。 - -
本发明第二方面提供了一种异步通信的方法, 可包括:
当中断时间结束之后,接入设备向控制设备发送心跳报文, 所述心跳报文 携带所述接入设备緩存的消息的索引信息,所述中断时间为所述控制设备与所 述接入设备暂停通信的持续时间;
所述接入设备接收所述控制设备根据所述心跳报文返回的心跳响应报文, 所述心跳响应报文携带所述控制设备緩存的消息的索引信息;
所述接入设备根据所述控制设备緩存的消息的索引信息获取所述控制设 备緩存的消息;
当所述接入设备接收到所述控制设备根据所述接入设备緩存的消息的索 引信息发送的消息请求时,所述接入设备向所述控制设备发送所述接入设备緩 存的消息。
基于第二方面, 在第二方面的第一种可行的实施方式中, 所述方法之前, 还包括:
当控制设备与接入设备完成数据通道建立时,所述接入设备接收所述控制 设备发送的配置命令, 所述配置命令携带中断时间和第一消息类型;
所述接入设备根据所述配置命令向所述控制设备发送响应命令,以使所述 控制设备启动所述中断时间,并使所述控制设备在所述中断时间内对属于第二 消息类型的消息进行緩存;
所述接入设备根据所述配置命令启动所述中断时间,并在所述中断时间内 对属于所述第一消息类型的消息进行緩存。
基于第二方面或第二方面的第一种可行的实施方式,在第二方面的第二种 可行的实施方式中,所述接入设备向所述控制设备发送所述接入设备緩存的消 息, 包括:
所述接入设备采用消息类型优先级对所述接入设备緩存的消息进行排序, 并根据所述排序将所述接入设备緩存的消息发送至所述控制设备。
基于第二方面或第二方面的第一种可行的实施方式或第二方面的第二种 可行的实施方式, 在第二方面的第三种可行的实施方式中, 还包括:
当所述接入设备接收到所述控制设备发送的连接中断指令时,所述接入设 - - 备根据所述连接中断指令向所述控制设备发送中断响应指令,以使所述控制设 备和所述接入设备分别对所述中断超时时间重新计时。
基于第二方面,在第二方面的第四种可行的实施方式中, 所述接入设备緩 存的消息的索引信息用于为所述控制设备提供所述接入设备緩存的消息的类 型和数量,所述控制设备緩存的消息的索引信息用于为所述接入设备提供所述 控制设备緩存的消息的类型和数量。 本发明第三方面提供了一种控制设备, 可包括:
报文接收模块, 当中断时间结束之后, 接收接入设备发送的心跳报文, 所 述心跳报文携带所述接入设备緩存的消息的索引信息,所述中断时间为控制设 备与所述接入设备暂停通信的持续时间;
报文发送模块, 用于向所述接入设备发送心跳响应报文, 所述心跳响应报 文携带所述控制设备緩存的消息的索引信息;
消息获耳 ^莫块,用于根据所述接入设备緩存的消息的索引信息获取所述接 入设备緩存的消息;
消息发送模块,用于当所述控制设备接收到所述接入设备根据所述控制设 备緩存的消息的索引信息发送的消息请求时,所述控制设备向所述接入设备发 送所述控制设备緩存的消息。
基于第三方面, 在第三方面的第一种可行的实施方式中, 还包括: 命令发送模块, 用于当控制设备与接入设备完成数据通道建立时, 向所述 接入设备发送配置命令, 所述配置命令携带中断时间和第一消息类型, 以使所 述接入设备启动所述中断时间,并使所述接入设备在所述中断时间内对属于所 述第一消息类型的消息进行緩存;
启动緩存模块,用于当控制设备接收到所述接入设备根据所述配置命令返 回的响应命令时, 启动所述中断时间, 并在所述中断时间内对属于第二消息类 型的消息进行緩存。
基于第三方面或第三方面的第一种可行的实施方式,在第三方面的第二种 可行的实施方式中,所述消息发送模块具体用于当所述控制设备接收到所述接 入设备根据所述控制设备緩存的消息的索引信息发送的消息请求时,采用消息 - - 类型优先级对所述控制设备緩存的消息进行排序,并根据所述排序将所述控制 设备緩存的消息发送至所述接入设备。
基于第三方面或第三方面的第一种可行的实施方式或第三方面的第二种 可行的实施方式, 在第三方面的第三种可行的实施方式中, 还包括:
指令处理模块, 用于向所述接入设备发送连接中断指令, 并接收所述接入 设备根据所述连接中断指令返回的中断响应指令,以使所述控制设备和所述接 入设备分别对所述中断时间重新计时。
基于第三方面,在第三方面的第四种可行的实施方式中, 所述接入设备緩 存的消息的索引信息用于为所述控制设备提供所述接入设备緩存的消息的类 型和数量,所述控制设备緩存的消息的索引信息用于为所述接入设备提供所述 控制设备緩存的消息的类型和数量。 本发明第四方面提供了一种接入设备, 可包括:
报文发送模块, 用于当中断时间结束之后, 向控制设备发送心跳报文, 所 述心跳报文携带接入设备緩存的消息的索引信息,所述中断时间为所述控制设 备与所述接入设备暂停通信的持续时间;
报文接收模块,用于接收所述控制设备根据所述心跳报文返回的心跳响应 报文, 所述心跳响应报文携带所述控制设备緩存的消息的索引信息;
消息获取模块,用于根据所述控制设备緩存的消息的索引信息获取所述控 制设备緩存的消息;
消息发送模块,用于当所述接入设备接收到所述控制设备根据所述接入设 备緩存的消息的索引信息发送的消息请求时,向所述控制设备发送所述接入设 备緩存的消息。
基于第四方面, 在第四方面的第一种可行的实施方式中, 还包括: 命令接收模块, 用于当控制设备与接入设备完成数据通道建立时,接收所 述控制设备发送的配置命令, 所述配置命令携带中断时间和第一消息类型; 响应命令发送模块, 用于根据所述配置命令向所述控制设备发送响应命 令, 以使所述控制设备启动所述中断时间, 并使所述控制设备在所述中断时间 内对属于第二消息类型的消息进行緩存; - - 启动緩存模块, 用于根据所述配置命令启动所述中断时间, 并在所述中断 时间内对属于所述第一消息类型的消息进行緩存。
基于第四方面或第四方面的第一种可行的实施方式,在第四方面的第二种 可行的实施方式中,所述消息发送模块具体用于当所述接入设备接收到所述控 制设备根据所述接入设备緩存的消息的索引信息发送的消息请求时,采用消息 类型优先级对所述接入设备緩存的消息进行排序,并根据所述排序将所述接入 设备緩存的消息发送至所述控制设备。
基于第四方面或第四方面的第一种可行的实施方式或第四方面的第二种 可行的实施方式, 在第四方面的第三种可行的实施方式中, 还包括:
指令发送模块,用于当所述接入设备接收到所述控制设备发送的连接中断 指令时,根据所述连接中断指令向所述控制设备发送中断响应指令, 以使所述 控制设备和所述接入设备分别对所述中断超时时间重新计时。
基于第四方面,在第四方面的第四种可行的实施方式中, 所述接入设备緩 存的消息的索引信息用于为所述控制设备提供所述接入设备緩存的消息的类 型和数量,所述控制设备緩存的消息的索引信息用于为所述接入设备提供所述 控制设备緩存的消息的类型和数量。 本发明第五方面提供了一种控制设备,可包括:接收器、发送器和处理器; 其中, 所述处理器执行如下步骤:
当中断时间结束之后,控制所述接收器接收接入设备发送的心跳报文, 所 述心跳报文携带所述接入设备緩存的消息的索引信息,所述中断时间为控制设 备与所述接入设备暂停通信的持续时间;
控制所述发送器向所述接入设备发送心跳响应报文,所述心跳响应报文携 带所述控制设备緩存的消息的索引信息;
根据所述接入设备緩存的消息的索引信息控制所述接收器获取所述接入 设备緩存的消息;
当所述接收器接收到所述接入设备根据所述控制设备緩存的消息的索引 信息发送的消息请求时,控制所述发送器向所述接入设备发送所述控制设备緩 存的消息。 基于第五方面,在第五方面的第一种可行的实施方式中, 所述处理器在当 中断时间结束之前, 还执行如下步骤:
当控制设备与接入设备完成数据通道建立时,控制所述发送器向所述接入 设备发送配置命令, 所述配置命令携带中断时间和第一消息类型, 以使所述接 入设备启动所述中断时间,并使所述接入设备在所述中断时间内对属于所述第 一消息类型的消息进行緩存;
当控制所述接收器接收到所述接入设备根据所述配置命令返回的响应命 令时, 启动所述中断时间, 并在所述中断时间内对属于第二消息类型的消息进 行緩存。
基于第五方面或第五方面的第一种可行的实施方式,在第五方面的第二种 可行的实施方式中,所述处理器在执行控制所述发送器向所述接入设备发送所 述控制设备緩存的消息时, 具体执行如下步骤:
采用消息类型优先级对所述控制设备緩存的消息进行排序,并根据所述排 序控制所述发送器将所述控制设备緩存的消息发送至所述接入设备。
基于第五方面或第五方面的第一种可行的实施方式或第五方面的第二种 可行的实施方式,在第五方面的第三种可行的实施方式中, 所述处理器还执行 如下步骤:
控制所述发送器向所述接入设备发送连接中断指令,并控制所述接收器接 收所述接入设备根据所述连接中断指令返回的中断响应指令,以使所述控制设 备和所述接入设备分别对所述中断时间重新计时。
基于第五方面,在第五方面的第四种可行的实施方式中, 所述接入设备緩 存的消息的索引信息用于为所述控制设备提供所述接入设备緩存的消息的类 型和数量,所述控制设备緩存的消息的索引信息用于为所述接入设备提供所述 控制设备緩存的消息的类型和数量。 本发明第六方面提供了一种接入设备,可包括:接收器、发送器和处理器; 其中, 所述处理器执行如下步骤:
当中断时间结束之后,控制所述发送器向控制设备发送心跳报文, 所述心 跳报文携带接入设备緩存的消息的索引信息,所述中断时间为所述控制设备与 - - 所述接入设备暂停通信的持续时间;
控制所述接收器接收所述控制设备根据所述心跳报文返回的心跳响应报 文, 所述心跳响应报文携带所述控制设备緩存的消息的索引信息;
根据所述控制设备緩存的消息的索引信息控制所述接收器获取所述控制 设备緩存的消息;
当所述接收器接收到所述控制设备根据所述接入设备緩存的消息的索引 信息发送的消息请求时,控制所述发送器向所述控制设备发送所述接入设备緩 存的消息。
基于第六方面,在第六方面的第一种可行的实施方式中, 所述处理器在当 中断时间结束之前, 还执行如下步骤:
当控制设备与接入设备完成数据通道建立时,控制所述接收器接收所述控 制设备发送的配置命令, 所述配置命令携带中断时间和第一消息类型;
根据所述配置命令控制所述发送器向所述控制设备发送响应命令,以使所 述控制设备启动所述中断时间,并使所述控制设备在所述中断时间内对属于第 二消息类型的消息进行緩存;
根据所述配置命令启动所述中断时间,并在所述中断时间内对属于所述第 一消息类型的消息进行緩存。
基于第六方面或第六方面的第一种可行的实施方式,在第六方面的第二种 可行的实施方式中,所述处理器在执行控制所述发送器向所述控制设备发送所 述接入设备緩存的消息时, 具体执行如下步骤:
采用消息类型优先级对所述接入设备緩存的消息进行排序,并根据所述排 序控制所述发送器将所述接入设备緩存的消息发送至所述控制设备。
基于第六方面或第六方面的第一种可行的实施方式或第六方面的第二种 可行的实施方式,在第六方面的第三种可行的实施方式中, 所述处理器还执行 如下步骤:
当控制所述接收器接收到所述控制设备发送的连接中断指令时,控制所述 发送器根据所述连接中断指令向所述控制设备发送中断响应指令,以使所述控 制设备和所述接入设备分别对所述中断超时时间重新计时。
基于第六方面,在第六方面的第四种可行的实施方式中, 所述接入设备緩 - - 存的消息的索引信息用于为所述控制设备提供所述接入设备緩存的消息的类 型和数量,所述控制设备緩存的消息的索引信息用于为所述接入设备提供所述 控制设备緩存的消息的类型和数量。
上述可知, 当中断时间结束之后,控制设备通过接收接入设备发送的心跳 报文所携带的接入设备緩存的消息的索引信息,接入设备通过接收控制设备发 送的心跳响应报文所携带的所述控制设备緩存的消息的索引信息,并且控制设 备和接入设备根据索引信息获取所緩存的消息以完成异步通信。通过设定中断 时间, 可以避免当控制设备和接入设备的数据通道中断时, 因进行再次连接造 成较长的延时和设备运算资源的浪费, 从而可以提高通信效率。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施 例中所需要使用的附图作筒单地介绍,显而易见地, 下面描述中的附图仅仅是 本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的 前提下, 还可以根据这些附图获得其他的附图。
图 1是本发明实施例提供的一种异步通信的场景应用图;
图 2是本发明实施例提供的另一种异步通信的场景应用图;
图 3 是本发明实施例提供的一种异步通信的方法的流程示意图; 图 4是本发明实施例提供的另一种异步通信的方法的流程示意图; 图 5 是本发明实施例提供的又一种异步通信的方法的流程示意图; 图 6是本发明实施例提供的又一种异步通信的方法的流程示意图; 图 7是本发明实施例提供的一种控制设备的结构示意图;
图 8是本发明实施例提供的另一种控制设备的结构示意图;
图 9是本发明实施例提供的一种接入设备的结构示意图;
图 10是本发明实施例提供的另一种接入设备的结构示意图;
图 11 是本发明实施例提供的又一种控制设备的结构示意图;
图 12是本发明实施例提供的又一种接入设备的结构示意图。 具体实施方式 - - 下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没有做出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
在本发明实施例中, 可以设定一个中断时间, 当处于中断时间内, 控制设 备和接入设备处于暂停通信状态, 当中断时间结束之后, 所述控制设备和所述 接入设备则处于连接状态,控制设备接收接入设备发送的心跳报文, 并向所述 接入设备发送心跳响应报文,所述控制设备可以根据所述心跳报文向所述接入 设备获取所述接入设备緩存的消息,所述接入设备可以根据所述心跳响应报文 向所述控制设备获取所述控制设备緩存的消息, 以此完成异步通信过程。
其中, 所述控制设备可以为接入控制点 ( Access Controller, AC )或者本 地协调者( Local Coordinator, LC ), 所述 LC为通过本地竟争上位的无线终端 站点(Wireless Termination Points, WTP ), 所述接入设备可以为属于 OBSS的 WTP。
本发明实施例的异步通信的方法可以应用于 AC与临时接入 AC的 WTP 之间的异步通信的场景, 请参见图 1 , 为本发明实施例提供了一种异步通信的 场景应用图。如图 1所示, AC作为控制设备, WTP1为临时接入 AC的 WTP, WTP1作为接入设备。
通过对 AC设定一个中断时间, 当处于中断时间内, AC和 WTP1处于 暂停通信状态, 当中断时间结束之后, AC和 WTP1则处于连接状态, AC接 收 WTP1发送的心跳报文, 并向 WTP1发送心跳响应报文, AC可以根据所述 心跳报文向 WTP1获取 WTP1緩存的消息, WTP1可以根据所述心跳响应报文 向 AC获取 AC緩存的消息, 从而完成 AC与临时接入 AC的 WTP间的异步 通信过程。
本发明实施例的异步通信的方法还可以应用于基于 LC本地协调, LC与 不同 AC部署的 WTP之间的异步通信的场景, 或者 LC与属于 OBSS的 WTP 之间的异步通信的场景, 请参见图 2, 为本发明实施例提供了另一种异步通信 的场景应用图。如图 2所示, LC作为控制设备 WTP1为 AC1 自身部署的 WTP, 并且 WTP1作为 LC, WTP2为 AC2自身部署的 WTP, WTP3与 WTP1 以及 - -
WTP2与 WTPl均属于 OBSS的 WTP, 需要说明的是, WTP2和 WTP3均属 于接入设备。
通过对 WTP1设定一个中断时间, 当处于中断时间内, WTP1和 WTP2 处于暂停通信状态, 当中断时间结束之后, WTP1和 WTP2则处于连接状态, WTP1接收 WTP2发送的心跳报文, 并向 WTP2发送心跳响应报文, WTP1可 以根据所述心跳报文向 WTP2获取 WTP2緩存的消息, WTP2可以根据所述心 跳响应报文向 WTP1获取 WTP1緩存的消息, 从而完成不同 AC部署的 WTP 之间的异步通信过程。
同样的, 当处于中断时间内, WTP1和 WTP3处于暂停通信状态, 当中 断时间结束之后, WTP1和 WTP3则处于连接状态, WTP1接收 WTP3发送的 心跳报文, 并向 WTP3发送心跳响应报文, WTP1 可以根据所述心跳报文向 WTP3获取 WTP3緩存的消息, WTP3可以根据所述心跳响应报文向 WTP1获 取 WTP1緩存的消息, 从而完成 LC与属于 OBSS的 WTP之间的异步通信过 程。 下面将结合附图 3-附图 6,对本发明实施例提供的一种异步通信的方法进 行详细介绍。
请参见图 3, 为本发明实施例提供了一种异步通信的方法的流程示意图。 本实施例从控制设备侧阐述异步通信的方法的具体流程,该方法可以包括以下 步骤 S101-步骤 S104。
S101 , 当中断时间结束之后, 控制设备接收接入设备发送的心跳报文, 所 述心跳报文携带所述接入设备緩存的消息的索引信息,所述中断时间为所述控 制设备与所述接入设备暂停通信的持续时间;
具体的, 当控制设备和接入设备到达中断时间的超时时刻时, 即当中断时 间结束之后,所述控制设备需要在预设时间内接收到所述接入设备发送的心跳 报文。
需要说明的是, 所述控制设备采用数据报文传输层安全协议(Datagram Transport Layer Security, DTLS ) 与所述接入设备进行数据通道的建立, 所述 数据通道优选为控制无线接入点十办议 ( Control And Provisioning of Wireless - -
Access Point, CAPWAP ) 隧道; 所述预设时间可以由所述控制设备中的连接 超时计时器(DTLS Session Delete Timer ) 决定, 当所述控制设备和所述接入 设备到达中断时间的超时时刻时,所述控制设备可以恢复所述连接超时计时器 的计时, 或者对所述连接超时计时器进行重新计时; 所述心跳报文携带所述接 入设备緩存的消息的索引信息;所述接入设备緩存的消息的索引信息用于为所 述控制设备提供所述接入设备緩存的消息的类型和数量等。
5102,所述控制设备向所述接入设备发送心跳响应报文,所述心跳响应报 文携带所述控制设备緩存的消息的索引信息;
具体的,如果所述控制设备在预设时间内接收到所述接入设备发送的心跳 报文, 则所述控制设备向所述接入设备发送心跳响应报文; 如果所述控制设备 在预设时间内没有接收到所述接入设备发送的心跳报文,则所述控制设备确定 所述接入设备出现故障或者与所述接入设备的连接已经断开。
需要说明的是,所述心跳响应报文携带所述控制设备緩存的消息的索引信 息;所述控制设备緩存的消息的索引信息用于为所述接入设备提供所述控制设 备緩存的消息的类型和数量等。
5103 ,所述控制设备根据所述接入设备緩存的消息的索引信息获取所述接 入设备緩存的消息;
具体的,所述控制设备可以根据所述心跳报文中携带的所述接入设备緩存 的消息的索引信息, 向所述接入设备请求所述接入设备緩存的消息, 所述接入 设备将所述接入设备緩存的消息发送至所述控制设备,所述控制设备获取所述 接入设备緩存的消息。
5104,当所述控制设备接收到所述接入设备根据所述控制设备緩存的消息 的索引信息发送的消息请求时,所述控制设备向所述接入设备发送所述控制设 备緩存的消息;
具体的,如果所述控制设备接收到所述接入设备根据所述心跳响应报文中 携带的所述控制设备緩存的消息的索引信息发送的消息请求时,所述控制设备 向所述接入设备发送所述控制设备緩存的消息。
需要说明的是,所述控制设备可以采用消息类型优先级对所述控制设备緩 存的消息进行排序,并将排序后的所述控制设备緩存的消息发送至所述接入设 - - 备。
在本发明实施例中, 当中断时间结束之后,控制设备通过接收接入设备发 送的心跳报文所携带的接入设备緩存的消息的索引信息,接入设备通过接收控 制设备发送的心跳响应报文所携带的所述控制设备緩存的消息的索引信息,并 且控制设备和接入设备根据索引信息获取所緩存的消息以完成异步通信。通过 设定中断时间, 可以避免当控制设备和接入设备的数据通道中断时, 因进行再 次连接造成较长的延时和设备运算资源的浪费, 从而可以提高通信效率。 请参见图 4, 为本发明实施例提供了另一种异步通信的方法的流程示意 图。 本实施例从控制设备侧阐述异步通信的方法的具体流程, 该方法可以包括 以下步骤 S201-步骤 S207。
5201 , 当控制设备与接入设备完成数据通道建立时,所述控制设备向所述 接入设备发送配置命令, 所述配置命令携带中断时间和第一消息类型, 以使所 述接入设备启动所述中断时间,并使所述接入设备在所述中断时间内对属于所 述第一消息类型的消息进行緩存;
具体的, 当控制设备与接入设备完成数据通道建立时, 所述控制设备可以 向所述接入设备发送配置命令, 所述配置命令携带中断时间和第一消息类型, 当所述接入设备接收到所述配置命令时,所述接入设备可以向所述控制设备发 送响应命令, 所述接入设备根据所述配置命令启动所述中断时间, 并且在所述 中断时间内对属于所述第一消息类型的消息进行緩存。
需要说明的是,所述控制设备采用 DTLS与所述接入设备进行数据通道的 建立, 所述数据通道优选为 CAPWAP隧道。 所述属于第一消息类型的消息可 以包括: 站点 (Station, STA ) 变化消息、 负载测量消息和故障统计消息等。
5202,当所述控制设备接收到所述接入设备根据所述配置命令返回的响应 命令时, 所述控制设备启动所述中断时间, 并在所述中断时间内对属于第二消 息类型的消息进行緩存;
具体的,当所述控制设备接收到所述接入设备根据所述配置命令返回的响 应命令时, 所述控制设备启动所述中断时间, 并在所述中断时间内对属于第二 消息类型的消息进行緩存。 - - 需要说明的是, 所述控制设备与所述接入设备是同时启动所述中断时间 , 所述属于第二消息类型的消息可以包括: 配置消息、 负载均衡消息等。
S203 , 当中断时间结束之后, 控制设备接收接入设备发送的心跳报文, 所 述心跳报文携带所述接入设备緩存的消息的索引信息,所述中断时间为所述控 制设备与所述接入设备暂停通信的持续时间;
具体的, 当控制设备和接入设备到达中断时间的超时时刻时, 即当中断时 间结束之后,所述控制设备需要在预设时间内接收到所述接入设备发送的心跳 报文。
需要说明的是, 所述预设时间可以由所述控制设备中的连接超时计时器 ( DTLS Session Delete Timer ) 决定, 当所述控制设备和所述接入设备到达中 断时间的超时时刻时, 所述控制设备可以恢复所述连接超时计时器的计时, 或 者对所述连接超时计时器进行重新计时;所述心跳报文携带所述接入设备緩存 的消息的索引信息;所述接入设备緩存的消息的索引信息用于为所述控制设备 提供所述接入设备緩存的消息的类型和数量等。
S204,所述控制设备向所述接入设备发送心跳响应报文,所述心跳响应报 文携带所述控制设备緩存的消息的索引信息;
具体的,如果所述控制设备在预设时间内接收到所述接入设备发送的心跳 报文, 则所述控制设备向所述接入设备发送心跳响应报文; 如果所述控制设备 在预设时间内没有接收到所述接入设备发送的心跳报文,则所述控制设备确定 所述接入设备出现故障或者与所述接入设备的连接已经断开。
需要说明的是,所述心跳响应报文携带所述控制设备緩存的消息的索引信 息;所述控制设备緩存的消息的索引信息用于为所述接入设备提供所述控制设 备緩存的消息的类型和数量等。
S205 ,所述控制设备根据所述接入设备緩存的消息的索引信息获取所述接 入设备緩存的消息;
具体的,所述控制设备可以根据所述心跳报文中携带的所述接入设备緩存 的消息的索引信息, 向所述接入设备请求所述接入设备緩存的消息, 所述接入 设备将所述接入设备緩存的消息发送至所述控制设备,所述控制设备获取所述 接入设备緩存的消息。 - -
S206,当所述控制设备接收到所述接入设备根据所述控制设备緩存的消息 的索引信息发送的消息请求时,所述控制设备向所述接入设备发送所述控制设 备緩存的消息;
具体的,如果所述控制设备接收到所述接入设备根据所述心跳响应报文中 携带的所述控制设备緩存的消息的索引信息发送的消息请求时,所述控制设备 向所述接入设备发送所述控制设备緩存的消息。
需要说明的是,所述控制设备可以采用消息类型优先级对所述控制设备緩 存的消息进行排序,并将排序后的所述控制设备緩存的消息发送至所述接入设 备。
S207,所述控制设备向所述接入设备发送连接中断指令, 并接收所述接入 设备根据所述连接中断指令返回的中断响应指令,以使所述控制设备和所述接 入设备分别对所述中断时间重新计时;
具体的,当所述控制设备緩存的消息和所述接入设备緩存的消息发送完毕 时, 所述控制设备可以向所述接入设备发送连接中断指令, 所述接入设备根据 所述连接中断指令返回中断响应指令, 此时, 所述控制设备和所述接入设备分 别对所述中断时间重新计时, 进入暂停通信状态。
需要说明的是, 当中断时间的超时时刻再次到达时, 所述控制设备重复执 行步骤 S203-S207, 具体执行过程请参见步骤 S203-S207, 在此不进行赘述。
在本发明实施例中, 当中断时间结束之后,控制设备通过接收接入设备发 送的心跳报文所携带的接入设备緩存的消息的索引信息,接入设备通过接收控 制设备发送的心跳响应报文所携带的所述控制设备緩存的消息的索引信息,并 且控制设备和接入设备根据索引信息获取所緩存的消息以完成异步通信。通过 设定中断时间, 可以避免当控制设备和接入设备的数据通道中断时, 因进行再 次连接造成较长的延时和设备运算资源的浪费, 从而可以提高通信效率。 请参见图 5 , 为本发明实施例提供了又一种异步通信的方法的流程示意 图。本实施例从接入设备侧阐述异步通信的方法的具体流程, 该方法可以包括 以下步骤 S301-步骤 S304。
S301 , 当中断时间结束之后, 接入设备向控制设备发送心跳报文, 所述心 - - 跳报文携带所述接入设备緩存的消息的索引信息,所述中断时间为所述控制设 备与所述接入设备暂停通信的持续时间;
具体的, 当控制设备和接入设备到达中断时间的超时时刻时, 即当中断时 间结束之后, 所述接入设备需要在预设时间内向所述控制设备发送心跳报文。
其中, 所述心跳报文携带所述接入设备緩存的消息的索引信息, 所述接入 设备緩存的消息的索引信息用于为所述控制设备提供所述接入设备緩存的消 息的类型和数量等。
需要说明的是,所述控制设备采用 DTLS与所述接入设备进行数据通道的 建立所述数据通道优选为 CAPWAP隧道; 所述预设时间可以由所述控制设备 中的连接超时计时器(DTLS Session Delete Timer ) 决定, 当所述控制设备和 所述接入设备到达中断时间的超时时刻时,所述控制设备可以恢复所述连接超 时计时器的计时,或者对所述连接超时计时器进行重新计时, 所述接入设备需 要在所述连接超时计时器超时之前, 向所述控制设备发送心跳报文。
5302,所述接入设备接收所述控制设备根据所述心跳 文返回的心跳响应 报文, 所述心跳响应报文携带所述控制设备緩存的消息的索引信息;
具体的,所述接入设备接收所述控制设备根据所述心跳报文返回的心跳响 应报文。
其中, 所述心跳响应报文携带所述控制设备緩存的消息的索引信息; 所述 控制设备緩存的消息的索引信息用于为所述接入设备提供所述控制设备緩存 的消息的类型和数量等。
需要说明的是,如果所述控制设备在所述连接超时计时器超时之前接收到 所述接入设备发送的心跳报文,则所述控制设备向所述接入设备发送心跳响应 报文;如果所述控制设备在所述连接超时计时器超时之前没有接收到所述接入 设备发送的心跳报文,则所述控制设备确定所述接入设备出现故障或者与所述 接入设备的连接已经断开。
5303 ,所述接入设备根据所述控制设备緩存的消息的索引信息获取所述控 制设备緩存的消息;
具体的,所述接入设备可以根据所述心跳响应报文中携带的所述控制设备 緩存的消息的索引信息, 向所述控制设备请求所述控制设备緩存的消息, 所述 - - 控制设备将所述控制设备緩存的消息发送至所述接入设备,所述接入设备获取 所述控制设备緩存的消息。
S304,当所述接入设备接收到所述控制设备根据所述接入设备緩存的消息 的索引信息发送的消息请求时,所述接入设备向所述控制设备发送所述接入设 备緩存的消息;
具体的,如果所述接入设备接收到所述控制设备根据所述心跳报文中携带 的所述接入设备緩存的消息的索引信息发送的消息请求时,所述接入设备向所 述控制设备发送所述接入设备緩存的消息。
需要说明的是,所述接入设备可以采用消息类型优先级对所述接入设备緩 存的消息进行排序,并将排序后的所述接入设备緩存的消息发送至所述控制设 备。
在本发明实施例中, 当中断时间结束之后,控制设备通过接收接入设备发 送的心跳报文所携带的接入设备緩存的消息的索引信息,接入设备通过接收控 制设备发送的心跳响应报文所携带的所述控制设备緩存的消息的索引信息,并 且控制设备和接入设备根据索引信息获取所緩存的消息以完成异步通信。通过 设定中断时间, 可以避免当控制设备和接入设备的数据通道中断时, 因进行再 次连接造成较长的延时和设备运算资源的浪费, 从而可以提高通信效率。 请参见图 6, 为本发明实施例提供了又一种异步通信的方法的流程示意 图。本实施例从接入设备侧阐述异步通信的方法的具体流程, 该方法可以包括 以下步骤 S401-步骤 S408。
5401 , 当控制设备与接入设备完成数据通道建立时,所述接入设备接收所 述控制设备发送的配置命令, 所述配置命令携带中断时间和第一消息类型; 具体的, 当控制设备与接入设备完成数据通道建立时, 所述控制设备可以 向所述接入设备发送配置命令, 所述配置命令携带中断时间和第一消息类型, 所述接入设备接收所述配置命令。
需要说明的是,所述控制设备采用 DTLS与所述接入设备进行数据通道的 建立, 所述数据通道优选为 CAPWAP隧道。
5402,所述接入设备根据所述配置命令向所述控制设备发送响应命令, 以 - - 使所述控制设备启动所述中断时间,并使所述控制设备在所述中断时间内对属 于第二消息类型的消息进行緩存;
具体的, 当所述接入设备接收到所述配置命令时, 所述接入设备可以向所 述控制设备发送响应命令,当所述控制设备接收到所述接入设备根据所述配置 命令返回的响应命令时, 所述控制设备启动所述中断时间, 并在所述中断时间 内对属于第二消息类型的消息进行緩存。
需要说明的是, 所述属于第二消息类型的消息可以包括: 配置消息、 负载 均衡消息等。
S403,所述接入设备根据所述配置命令启动所述中断时间,并在所述中断 时间内对属于所述第一消息类型的消息进行緩存;
具体的, 所述接入设备根据所述配置命令启动所述中断时间, 并且在所述 中断时间内对属于所述第一消息类型的消息进行緩存。
需要说明的是, 所述属于第一消息类型的消息可以包括: STA变化消息、 负载测量消息和故障统计消息等。
S404, 当中断时间结束之后, 接入设备向控制设备发送心跳报文, 所述心 跳报文携带所述接入设备緩存的消息的索引信息,所述中断时间为所述控制设 备与所述接入设备暂停通信的持续时间;
具体的, 当控制设备和接入设备到达中断时间的超时时刻时, 即当中断时 间结束之后, 所述接入设备需要在预设时间内向所述控制设备发送心跳报文。
其中, 所述心跳报文携带所述接入设备緩存的消息的索引信息, 所述接入 设备緩存的消息的索引信息用于为所述控制设备提供所述接入设备緩存的消 息的类型和数量等。
需要说明的是, 所述预设时间可以由所述控制设备中的连接超时计时器 ( DTLS Session Delete Timer ) 决定, 当所述控制设备和所述接入设备到达中 断时间的超时时刻时, 所述控制设备可以恢复所述连接超时计时器的计时, 或 者对所述连接超时计时器进行重新计时,所述接入设备需要在所述连接超时计 时器超时之前, 向所述控制设备发送心跳报文。
S405 ,所述接入设备接收所述控制设备根据所述心跳 文返回的心跳响应 报文, 所述心跳响应报文携带所述控制设备緩存的消息的索引信息; - - 具体的,所述接入设备接收所述控制设备根据所述心跳报文返回的心跳响 应报文。
其中, 所述心跳响应报文携带所述控制设备緩存的消息的索引信息; 所述 控制设备緩存的消息的索引信息用于为所述接入设备提供所述控制设备緩存 的消息的类型和数量等。
需要说明的是,如果所述控制设备在所述连接超时计时器超时之前接收到 所述接入设备发送的心跳报文,则所述控制设备向所述接入设备发送心跳响应 报文;如果所述控制设备在所述连接超时计时器超时之前没有接收到所述接入 设备发送的心跳报文,则所述控制设备确定所述接入设备出现故障或者与所述 接入设备的连接已经断开。
5406,所述接入设备根据所述控制设备緩存的消息的索引信息获取所述控 制设备緩存的消息;
具体的,所述接入设备可以根据所述心跳响应报文中携带的所述控制设备 緩存的消息的索引信息, 向所述控制设备请求所述控制设备緩存的消息, 所述 控制设备将所述控制设备緩存的消息发送至所述接入设备,所述接入设备获取 所述控制设备緩存的消息。
5407,当所述接入设备接收到所述控制设备根据所述接入设备緩存的消息 的索引信息发送的消息请求时,所述接入设备向所述控制设备发送所述接入设 备緩存的消息;
具体的,如果所述接入设备接收到所述控制设备根据所述心跳报文中携带 的所述接入设备緩存的消息的索引信息发送的消息请求时,所述接入设备向所 述控制设备发送所述接入设备緩存的消息。
需要说明的是,所述接入设备可以采用消息类型优先级对所述接入设备緩 存的消息进行排序,并将排序后的所述接入设备緩存的消息发送至所述控制设 备。
5408, 当所述接入设备接收到所述控制设备发送的连接中断指令时,所述 接入设备根据所述连接中断指令向所述控制设备发送中断响应指令,以使所述 控制设备和所述接入设备分别对所述中断超时时间重新计时;
具体的,当所述控制设备緩存的消息和所述接入设备緩存的消息发送完毕 - - 时, 所述控制设备可以向所述接入设备发送连接中断指令, 当所述接入设备接 收到所述控制设备发送的连接中断指令时,所述接入设备可以根据所述连接中 断指令返回中断响应指令, 此时,所述控制设备和所述接入设备分别对所述中 断时间重新计时, 进入中断状态。
需要说明的是, 当中断时间的超时时刻再次到达时, 所述接入设备重复执 行步骤 S404-S408, 具体执行过程请参见步骤 S404-S408, 在此不进行赘述。
在本发明实施例中, 当中断时间结束之后,控制设备通过接收接入设备发 送的心跳报文所携带的接入设备緩存的消息的索引信息,接入设备通过接收控 制设备发送的心跳响应报文所携带的所述控制设备緩存的消息的索引信息,并 且控制设备和接入设备根据索引信息获取所緩存的消息以完成异步通信。通过 设定中断时间, 可以避免当控制设备和接入设备的数据通道中断时, 因进行再 次连接造成较长的延时和设备运算资源的浪费, 从而可以提高通信效率。 下面将结合附图 7和附图 8, 对本发明实施例提供的控制设备进行详细介 绍。 需要说明的是, 附图 7和附图 8所示的控制设备, 用于执行本发明图 3 和图 4所示实施例的方法, 为了便于说明,仅示出了与本发明实施例相关的部 分, 具体技术细节未揭示的, 请参照本发明图 3和图 4所示的实施例。
请参见图 7, 为本发明实施例提供了一种控制设备的结构示意图。 如图 7 所示, 本发明实施例的所述控制设备 1可以包括: 报文接收模块 11、 报文发 送模块 12、 消息获取模块 13和消息发送模块 14。
报文接收模块 11 , 当中断时间结束之后, 接收接入设备发送的心跳报文, 所述心跳报文携带所述接入设备緩存的消息的索引信息,所述中断时间为控制 设备与所述接入设备暂停通信的持续时间;
具体实现中, 当控制设备 1和接入设备到达中断时间的超时时刻时, 即当 中断时间结束之后, 所述报文接收模块 11需要在预设时间内接收到所述接入 设备发送的心跳报文。
需要说明的是,所述控制设备 1采用 DTLS与所述接入设备进行数据通道 的建立, 所述数据通道优选为 CAPWAP隧道; 所述预设时间可以由所述控制 设备 1中的连接超时计时器( DTLS Session Delete Timer ) 决定, 当所述控制 - - 设备 1和所述接入设备到达中断时间的超时时刻时,所述控制设备 1可以恢复 所述连接超时计时器的计时, 或者对所述连接超时计时器进行重新计时; 所述 心跳报文携带所述接入设备緩存的消息的索引信息;所述接入设备緩存的消息 的索引信息用于为所述控制设备 1 提供所述接入设备緩存的消息的类型和数 量等。
报文发送模块 12, 用于向所述接入设备发送心跳响应报文, 所述心跳响 应报文携带所述控制设备緩存的消息的索引信息;
具体实现中, 如果所述报文接收模块 11在预设时间内接收到所述接入设 备发送的心跳报文, 则所述报文发送模块 12向所述接入设备发送心跳响应报 文; 如果所述报文接收模块 11在预设时间内没有接收到所述接入设备发送的 心跳报文,则所述控制设备 1确定所述接入设备出现故障或者与所述接入设备 的连接已经断开。
需要说明的是,所述心跳响应报文携带所述控制设备 1緩存的消息的索引 信息;所述控制设备 1緩存的消息的索引信息用于为所述接入设备提供所述控 制设备 1緩存的消息的类型和数量等。
消息获取模块 13, 用于根据所述接入设备緩存的消息的索引信息获取所 述接入设备緩存的消息;
具体实现中, 所述消息获取模块 13可以根据所述心跳报文中携带的所述 接入设备緩存的消息的索引信息,向所述接入设备请求所述接入设备緩存的消 息, 所述接入设备将所述接入设备緩存的消息发送至所述控制设备 1 , 所述消 息获取模块 13获取所述接入设备緩存的消息。
消息发送模块 14, 用于当所述控制设备接收到所述接入设备根据所述控 制设备緩存的消息的索引信息发送的消息请求时,所述控制设备向所述接入设 备发送所述控制设备緩存的消息;
具体实现中,如果所述控制设备 1接收到所述接入设备根据所述心跳响应 报文中携带的所述控制设备 1緩存的消息的索引信息发送的消息请求时,所述 消息发送模块 14向所述接入设备发送所述控制设备 1緩存的消息。
需要说明的是, 所述消息发送模块 14可以采用消息类型优先级对所述控 制设备 1緩存的消息进行排序,并将排序后的所述控制设备 1緩存的消息发送 - - 至所述接入设备。
在本发明实施例中, 当中断时间结束之后,控制设备通过接收接入设备发 送的心跳报文所携带的接入设备緩存的消息的索引信息,接入设备通过接收控 制设备发送的心跳响应报文所携带的所述控制设备緩存的消息的索引信息,并 且控制设备和接入设备根据索引信息获取所緩存的消息以完成异步通信。通过 设定中断时间, 可以避免当控制设备和接入设备的数据通道中断时, 因进行再 次连接造成较长的延时和设备运算资源的浪费, 从而可以提高通信效率。 请参见图 8, 为本发明实施例提供了另一种控制设备的结构示意图。 如图 8所示, 本发明实施例的所述控制设备 1可以包括: 报文接收模块 11、 报文发 送模块 12、 消息获取模块 13、 消息发送模块 14、 命令发送模块 15、 启动緩存 模块 16和指令处理模块 17。
命令发送模块 15, 用于当控制设备与接入设备完成数据通道建立时, 向 所述接入设备发送配置命令, 所述配置命令携带中断时间和第一消息类型, 以 使所述接入设备启动所述中断时间,并使所述接入设备在所述中断时间内对属 于所述第一消息类型的消息进行緩存;
具体实现中, 当控制设备 1与接入设备完成数据通道建立时, 所述命令发 送模块 15可以向所述接入设备发送配置命令, 所述配置命令携带中断时间和 第一消息类型, 当所述接入设备接收到所述配置命令时, 所述接入设备可以向 所述控制设备 1发送响应命令,所述接入设备根据所述配置命令启动所述中断 时间, 并且在所述中断时间内对属于所述第一消息类型的消息进行緩存。
需要说明的是,所述控制设备 1采用 DTLS与所述接入设备进行数据通道 的建立, 所述数据通道优选为 CAPWAP隧道。 所述属于第一消息类型的消息 可以包括: STA变化消息、 负载测量消息和故障统计消息等。
启动緩存模块 16, 用于当控制设备接收到所述接入设备根据所述配置命 令返回的响应命令时, 启动所述中断时间, 并在所述中断时间内对属于第二消 息类型的消息进行緩存;
具体实现中,当所述控制设备 1接收到所述接入设备根据所述配置命令返 回的响应命令时, 所述启动緩存模块 16启动所述中断时间, 并在所述中断时 - - 间内对属于第二消息类型的消息进行緩存。
需要说明的是, 所述控制设备 1 与所述接入设备是同时启动所述中断时 间, 所述属于第二消息类型的消息可以包括: 配置消息、 负载均衡消息等。
报文接收模块 11 , 当中断时间结束之后, 接收接入设备发送的心跳报文, 所述心跳报文携带所述接入设备緩存的消息的索引信息,所述中断时间为控制 设备与所述接入设备暂停通信的持续时间;
具体实现中, 当控制设备 1和接入设备到达中断时间的超时时刻时, 即当 中断时间结束之后, 所述报文接收模块 11需要在预设时间内接收到所述接入 设备发送的心跳报文。
需要说明的是,所述预设时间可以由所述控制设备 1中的连接超时计时器
( DTLS Session Delete Timer ) 决定, 当所述控制设备 1和所述接入设备到达 中断时间的超时时刻时, 所述控制设备 1 可以恢复所述连接超时计时器的计 时, 或者对所述连接超时计时器进行重新计时; 所述心跳报文携带所述接入设 备緩存的消息的索引信息;所述接入设备緩存的消息的索引信息用于为所述控 制设备 1提供所述接入设备緩存的消息的类型和数量等。
报文发送模块 12, 用于向所述接入设备发送心跳响应报文, 所述心跳响 应报文携带所述控制设备緩存的消息的索引信息;
具体实现中, 如果所述报文接收模块 11在预设时间内接收到所述接入设 备发送的心跳报文, 则所述报文发送模块 12向所述接入设备发送心跳响应报 文; 如果所述报文接收模块 11在预设时间内没有接收到所述接入设备发送的 心跳报文,则所述控制设备 1确定所述接入设备出现故障或者与所述接入设备 的连接已经断开。
需要说明的是,所述心跳响应报文携带所述控制设备 1緩存的消息的索引 信息;所述控制设备 1緩存的消息的索引信息用于为所述接入设备提供所述控 制设备 1緩存的消息的类型和数量等。
消息获取模块 13 , 用于根据所述接入设备緩存的消息的索引信息获取所 述接入设备緩存的消息;
具体实现中, 所述消息获取模块 13可以根据所述心跳报文中携带的所述 接入设备緩存的消息的索引信息,向所述接入设备请求所述接入设备緩存的消 - - 息, 所述接入设备将所述接入设备緩存的消息发送至所述控制设备 1 , 所述消 息获取模块 13获取所述接入设备緩存的消息。
消息发送模块 14, 用于当所述控制设备接收到所述接入设备根据所述控 制设备緩存的消息的索引信息发送的消息请求时,所述控制设备向所述接入设 备发送所述控制设备緩存的消息;
具体实现中,如果所述控制设备 1接收到所述接入设备根据所述心跳响应 报文中携带的所述控制设备 1緩存的消息的索引信息发送的消息请求时,所述 消息发送模块 14向所述接入设备发送所述控制设备 1緩存的消息。
需要说明的是, 所述消息发送模块 14可以采用消息类型优先级对所述控 制设备 1緩存的消息进行排序,并将排序后的所述控制设备 1緩存的消息发送 至所述接入设备。
指令处理模块 17, 用于向所述接入设备发送连接中断指令, 并接收所述 接入设备根据所述连接中断指令返回的中断响应指令,以使所述控制设备和所 述接入设备分别对所述中断时间重新计时;
具体实现中,当所述控制设备 1緩存的消息和所述接入设备緩存的消息发 送完毕时, 所述指令处理模块 17可以向所述接入设备发送连接中断指令, 所 述接入设备根据所述连接中断指令返回中断响应指令, 此时, 所述控制设备 1 和所述接入设备分别对所述中断时间重新计时, 进入中断状态。
需要说明的是, 当中断时间的超时时刻再次到达时, 所述控制设备 1中的 报文接收模块 11、 报文发送模块 12、 消息获取模块 13、 消息发送模块 14和 指令处理模块 17重复执行图 4所示实施例的步骤 S203-S207, 具体执行过程 请参见图 4所示实施例的步骤 S203-S207, 在此不进行赞述。
在本发明实施例中, 当中断时间结束之后,控制设备通过接收接入设备发 送的心跳报文所携带的接入设备緩存的消息的索引信息,接入设备通过接收控 制设备发送的心跳响应报文所携带的所述控制设备緩存的消息的索引信息,并 且控制设备和接入设备根据索引信息获取所緩存的消息以完成异步通信。通过 设定中断时间, 可以避免当控制设备和接入设备的数据通道中断时, 因进行再 次连接造成较长的延时和设备运算资源的浪费, 从而可以提高通信效率。 - - 下面将结合附图 9和附图 10, 对本发明实施例提供的接入设备进行详细 介绍。 需要说明的是, 附图 9和附图 10所示的接入设备, 用于执行本发明图 5和图 6所示实施例的方法, 为了便于说明, 仅示出了与本发明实施例相关的 部分, 具体技术细节未揭示的, 请参照本发明图 5和图 6所示的实施例。
请参见图 9, 为本发明实施例提供了一种接入设备的结构示意图。 如图 9 所示, 本发明实施例的所述接入设备 2可以包括: 报文发送模块 21、 报文接 收模块 22、 消息获取模块 23和消息发送模块 24。
报文发送模块 21 , 用于当中断时间结束之后, 向控制设备发送心跳报文, 所述心跳报文携带接入设备緩存的消息的索引信息,所述中断时间为所述控制 设备与所述接入设备暂停通信的持续时间;
具体实现中, 当控制设备和接入设备 2到达中断时间的超时时刻时, 即当 中断时间结束之后, 所述报文发送模块 21需要在预设时间内向所述控制设备 发送心跳报文。
其中, 所述心跳报文携带所述接入设备 2緩存的消息的索引信息, 所述接 入设备 2緩存的消息的索引信息用于为所述控制设备提供所述接入设备 2緩存 的消息的类型和数量等。
需要说明的是,所述控制设备采用 DTLS与所述接入设备 2进行数据通道 的建立所述数据通道优选为 CAPWAP隧道; 所述预设时间可以由所述控制设 备中的连接超时计时器( DTLS Session Delete Timer ) 决定, 当所述控制设备 和所述接入设备 2到达中断时间的超时时刻时,所述控制设备可以恢复所述连 接超时计时器的计时, 或者对所述连接超时计时器进行重新计时, 所述报文发 送模块 21需要在所述连接超时计时器超时之前, 向所述控制设备发送心跳报 文。
报文接收模块 22, 用于接收所述控制设备根据所述心跳报文返回的心跳 响应报文, 所述心跳响应报文携带所述控制设备緩存的消息的索引信息;
具体实现中, 所述报文接收模块 22接收所述控制设备根据所述心跳报文 返回的心跳响应报文。
其中, 所述心跳响应报文携带所述控制设备緩存的消息的索引信息; 所述 控制设备緩存的消息的索引信息用于为所述接入设备 2提供所述控制设备緩 - - 存的消息的类型和数量等。
需要说明的是,如果所述控制设备在所述连接超时计时器超时之前接收到 所述报文发送模块 21发送的心跳报文, 则所述控制设备向所述接入设备 2发 送心跳响应报文;如果所述控制设备在所述连接超时计时器超时之前没有接收 到所述报文发送模块 21发送的心跳报文, 则所述控制设备确定所述接入设备 2出现故障或者与所述接入设备 2的连接已经断开。
消息获取模块 23 , 用于根据所述控制设备緩存的消息的索引信息获取所 述控制设备緩存的消息;
具体实现中, 所述消息获耳 ^莫块 23可以根据所述心跳响应报文中携带的 所述控制设备緩存的消息的索引信息,向所述控制设备请求所述控制设备緩存 的消息, 所述控制设备将所述控制设备緩存的消息发送至所述接入设备 2, 所 述消息获取模块 23获取所述控制设备緩存的消息。
消息发送模块 24, 用于当所述接入设备接收到所述控制设备根据所述接 入设备緩存的消息的索引信息发送的消息请求时,向所述控制设备发送所述接 入设备緩存的消息;
具体实现中,如果所述接入设备 2接收到所述控制设备根据所述心跳报文 中携带的所述接入设备 2緩存的消息的索引信息发送的消息请求时,所述消息 发送模块 24向所述控制设备发送所述接入设备 2緩存的消息。
需要说明的是, 所述消息发送模块 24可以采用消息类型优先级对所述接 入设备 2緩存的消息进行排序,并将排序后的所述接入设备 2緩存的消息发送 至所述控制设备。
在本发明实施例中, 当中断时间结束之后,控制设备通过接收接入设备发 送的心跳报文所携带的接入设备緩存的消息的索引信息,接入设备通过接收控 制设备发送的心跳响应报文所携带的所述控制设备緩存的消息的索引信息,并 且控制设备和接入设备根据索引信息获取所緩存的消息以完成异步通信。通过 设定中断时间, 可以避免当控制设备和接入设备的数据通道中断时, 因进行再 次连接造成较长的延时和设备运算资源的浪费, 从而可以提高通信效率。 请一并参见图 10, 为本发明实施例提供了另一种接入设备的结构示意图。 - - 如图 10所示, 本发明实施例的所述接入设备 2可以包括: 报文发送模块 21、 报文接收模块 22、 消息获取模块 23、 消息发送模块 24、 命令接收模块 25、 响 应命令发送模块 26、 启动緩存模块 27和指令发送模块 28。
命令接收模块 25 , 用于当控制设备与接入设备完成数据通道建立时, 接 收所述控制设备发送的配置命令, 所述配置命令携带中断时间和第一消息类 型;
具体实现中, 当控制设备与接入设备 2完成数据通道建立时, 所述控制设 备可以向所述接入设备 2发送配置命令,所述配置命令携带中断时间和第一消 息类型, 所述命令接收模块 25接收所述配置命令。
需要说明的是,所述控制设备采用 DTLS与所述接入设备 2进行数据通道 的建立, 所述数据通道优选为 CAPWAP隧道。
响应命令发送模块 26, 用于根据所述配置命令向所述控制设备发送响应 命令, 以使所述控制设备启动所述中断时间, 并使所述控制设备在所述中断时 间内对属于第二消息类型的消息进行緩存;
具体实现中, 当所述命令接收模块 25接收到所述配置命令时, 所述响应 命令发送模块 26可以向所述控制设备发送响应命令, 当所述控制设备接收到 所述响应命令发送模块 26根据所述配置命令返回的响应命令时, 所述控制设 备启动所述中断时间,并在所述中断时间内对属于第二消息类型的消息进行緩 存。
需要说明的是, 所述属于第二消息类型的消息可以包括: 配置消息、 负载 均衡消息等。
启动緩存模块 27, 用于根据所述配置命令启动所述中断时间, 并在所述 中断时间内对属于所述第一消息类型的消息进行緩存;
具体实现中,所述启动緩存模块 27根据所述配置命令启动所述中断时间, 并且在所述中断时间内对属于所述第一消息类型的消息进行緩存。
需要说明的是, 所述属于第一消息类型的消息可以包括: STA变化消息、 负载测量消息和故障统计消息等。
报文发送模块 21 , 用于当中断时间结束之后, 向控制设备发送心跳报文, 所述心跳报文携带接入设备緩存的消息的索引信息,所述中断时间为所述控制 - - 设备与所述接入设备暂停通信的持续时间;
具体实现中, 当控制设备和接入设备 2到达中断时间的超时时刻时, 即当 中断时间结束之后, 所述报文发送模块 21需要在预设时间内向所述控制设备 发送心跳报文。
其中, 所述心跳报文携带所述接入设备 2緩存的消息的索引信息, 所述接 入设备 2緩存的消息的索引信息用于为所述控制设备提供所述接入设备 2緩存 的消息的类型和数量等。
需要说明的是, 所述预设时间可以由所述控制设备中的连接超时计时器 ( DTLS Session Delete Timer ) 决定, 当所述控制设备和所述接入设备 2到达 中断时间的超时时刻时, 所述控制设备可以恢复所述连接超时计时器的计时, 或者对所述连接超时计时器进行重新计时, 所述报文发送模块 21需要在所述 连接超时计时器超时之前, 向所述控制设备发送心跳报文。
报文接收模块 22, 用于接收所述控制设备根据所述心跳报文返回的心跳 响应报文, 所述心跳响应报文携带所述控制设备緩存的消息的索引信息; 具体实现中, 所述报文接收模块 22接收所述控制设备根据所述心跳报文 返回的心跳响应报文。
其中, 所述心跳响应报文携带所述控制设备緩存的消息的索引信息; 所述 控制设备緩存的消息的索引信息用于为所述接入设备 2提供所述控制设备緩 存的消息的类型和数量等。
需要说明的是,如果所述控制设备在所述连接超时计时器超时之前接收到 所述报文发送模块 21发送的心跳报文, 则所述控制设备向所述接入设备 2发 送心跳响应报文;如果所述控制设备在所述连接超时计时器超时之前没有接收 到所述报文发送模块 21发送的心跳报文, 则所述控制设备确定所述接入设备 2出现故障或者与所述接入设备 2的连接已经断开。
消息获取模块 23 , 用于根据所述控制设备緩存的消息的索引信息获取所 述控制设备緩存的消息;
具体实现中, 所述消息获耳 ^莫块 23可以根据所述心跳响应报文中携带的 所述控制设备緩存的消息的索引信息,向所述控制设备请求所述控制设备緩存 的消息, 所述控制设备将所述控制设备緩存的消息发送至所述接入设备 2, 所 - - 述消息获取模块 23获取所述控制设备緩存的消息。
消息发送模块 24, 用于当所述接入设备接收到所述控制设备根据所述接 入设备緩存的消息的索引信息发送的消息请求时,向所述控制设备发送所述接 入设备緩存的消息;
具体实现中,如果所述接入设备 2接收到所述控制设备根据所述心跳报文 中携带的所述接入设备 2緩存的消息的索引信息发送的消息请求时,所述消息 发送模块 24向所述控制设备发送所述接入设备 2緩存的消息。
需要说明的是, 所述消息发送模块 24可以采用消息类型优先级对所述接 入设备 2緩存的消息进行排序,并将排序后的所述接入设备 2緩存的消息发送 至所述控制设备。
指令发送模块 28, 用于当所述接入设备接收到所述控制设备发送的连接 中断指令时,根据所述连接中断指令向所述控制设备发送中断响应指令, 以使 所述控制设备和所述接入设备分别对所述中断超时时间重新计时;
具体实现中,当所述控制设备緩存的消息和所述接入设备 2緩存的消息发 送完毕时, 所述控制设备可以向所述接入设备 2发送连接中断指令, 当所述接 入设备 2接收到所述控制设备发送的连接中断指令时, 所述指令发送模块 28 可以根据所述连接中断指令返回中断响应指令, 此时, 所述控制设备和所述接 入设备 2分别对所述中断时间重新计时, 进入中断状态。
需要说明的是, 当中断时间的超时时刻再次到达时, 所述接入设备 2中的 报文发送模块 21、 报文接收模块 22、 消息获取模块 23、 消息发送模块 24和 指令发送模块 28重复执行图 6所示实施例的步骤 S404-S408, 具体执行过程 请参见图 6所示实施例的步骤 S404-S408, 在此不进行赞述。
在本发明实施例中, 当中断时间结束之后,控制设备通过接收接入设备发 送的心跳报文所携带的接入设备緩存的消息的索引信息,接入设备通过接收控 制设备发送的心跳响应报文所携带的所述控制设备緩存的消息的索引信息,并 且控制设备和接入设备根据索引信息获取所緩存的消息以完成异步通信。通过 设定中断时间, 可以避免当控制设备和接入设备的数据通道中断时, 因进行再 次连接造成较长的延时和设备运算资源的浪费, 从而可以提高通信效率。 - - 请参见图 11 , 为本发明实施例提供了又一种控制设备的结构示意图。 如 图 11所示, 本发明实施例的所述控制设备 1可以包括: 接收器 101、 处理器 102和发送器 103; 其中, 所述处理器 102执行如下步骤:
当中断时间结束之后, 控制所述接收器 101 接收接入设备发送的心跳报 文, 所述心跳报文携带所述接入设备緩存的消息的索引信息, 所述中断时间为 控制设备 1与所述接入设备暂停通信的持续时间;
具体实现中, 当控制设备 1和接入设备到达中断时间的超时时刻时, 即当 中断时间结束之后,所述接收器 101需要在预设时间内接收到所述接入设备发 送的心跳 4艮文。
其中, 所述预设时间可以由所述控制设备 1中的连接超时计时器(DTLS
Session Delete Timer ) 决定, 当所述控制设备 1和所述接入设备到达中断时间 的超时时刻时, 所述控制设备 1可以恢复所述连接超时计时器的计时, 或者对 所述连接超时计时器进行重新计时
控制所述发送器 103向所述接入设备发送心跳响应报文,所述心跳响应报 文携带所述控制设备 1緩存的消息的索引信息;
具体实现中,如果所述接收器 101在预设时间内接收到所述接入设备发送 的心跳报文, 则所述发送器 103向所述接入设备发送心跳响应报文; 如果接收 器 101在预设时间内没有接收到所述接入设备发送的心跳报文,则所述控制设 备 1确定所述接入设备出现故障或者与所述接入设备的连接已经断开。
根据所述接入设备緩存的消息的索引信息控制所述接收器 101 获取所述 接入设备緩存的消息;
当所述接收器 101接收到所述接入设备根据所述控制设备 1緩存的消息的 索引信息发送的消息请求时,控制所述发送器 103向所述接入设备发送所述控 制设备 1緩存的消息。
具体实现中, 所述处理器 101可以采用消息类型优先级对所述控制设备 1 緩存的消息进行排序,并将排序后的所述控制设备 1緩存的消息通过所述发送 器 103发送至所述接入设备。
需要说明的是,所述接入设备緩存的消息的索引信息用于为所述控制设备 1提供所述接入设备緩存的消息的类型和数量, 所述控制设备 1緩存的消息的 - - 索引信息用于为所述接入设备提供所述控制设备 1緩存的消息的类型和数量。
所述处理器 102在当中断时间结束之前, 还执行如下步骤:
当控制设备 1与接入设备完成数据通道建立时,控制所述发送器 103向所 述接入设备发送配置命令, 所述配置命令携带中断时间和第一消息类型, 以使 所述接入设备启动所述中断时间,并使所述接入设备在所述中断时间内对属于 所述第一消息类型的消息进行緩存;
当控制所述接收器 101 接收到所述接入设备根据所述配置命令返回的响 应命令时, 启动所述中断时间, 并在所述中断时间内对属于第二消息类型的消 息进行緩存。
需要说明的是,所述控制设备 1采用 DTLS与所述接入设备进行数据通道 的建立, 所述数据通道优选为 CAPWAP隧道; 所述属于第一消息类型的消息 可以包括: STA变化消息、 负载测量消息和故障统计消息等; 所述属于第二消 息类型的消息可以包括: 配置消息、 负载均衡消息等。
所述处理器 102在执行控制所述发送器向所述接入设备发送所述控制设 备緩存的消息时, 具体执行如下步骤:
采用消息类型优先级对所述控制设备 1緩存的消息进行排序,并根据所述 排序控制所述发送器 103将所述控制设备 1緩存的消息发送至所述接入设备。
所述处理器还执行如下步骤:
控制所述发送器 103向所述接入设备发送连接中断指令,并控制所述接收 器 101接收所述接入设备根据所述连接中断指令返回的中断响应指令,以使所 述控制设备 1和所述接入设备分别对所述中断时间重新计时。
进一步的, 当中断时间的超时时刻再次到达时, 所述处理器 102可以再次 执行当中断时间结束之后, 控制所述接收器 101 接收接入设备发送的心跳报 文, 所述心跳报文携带所述接入设备緩存的消息的索引信息, 所述中断时间为 控制设备与所述接入设备暂停通信的持续时间;控制所述发送器 103向所述接 入设备发送心跳响应报文,所述心跳响应报文携带所述控制设备緩存的消息的 索引信息;根据所述接入设备緩存的消息的索引信息控制所述接收器 101获取 所述接入设备緩存的消息;当所述接收器 101接收到所述接入设备根据所述控 制设备緩存的消息的索引信息发送的消息请求时,控制所述发送器 103向所述 - - 接入设备发送所述控制设备緩存的消息。
在本发明实施例中, 当中断时间结束之后,控制设备通过接收接入设备发 送的心跳报文所携带的接入设备緩存的消息的索引信息,接入设备通过接收控 制设备发送的心跳响应报文所携带的所述控制设备緩存的消息的索引信息,并 且控制设备和接入设备根据索引信息获取所緩存的消息以完成异步通信。通过 设定中断时间, 可以避免当控制设备和接入设备的数据通道中断时, 因进行再 次连接造成较长的延时和设备运算资源的浪费, 从而可以提高通信效率。 请参见图 12, 为本发明实施例提供了又一种接入设备的结构示意图。 如 图 12所示, 本发明实施例的所述接入设备 2可以包括: 接收器 201、 处理器 202和发送器 203; 其中, 所述处理器 202执行如下步骤:
当中断时间结束之后,控制所述发送器 203向控制设备发送心跳报文, 所 述心跳报文携带接入设备 2緩存的消息的索引信息,所述中断时间为所述控制 设备与所述接入设备 2暂停通信的持续时间;
具体实现中, 当控制设备和接入设备 2到达中断时间的超时时刻时, 即当 中断时间结束之后,所述发送器 203需要在预设时间内向所述控制设备发送心 跳 4艮文。
需要说明的是, 所述预设时间可以由所述控制设备中的连接超时计时器 ( DTLS Session Delete Timer ) 决定, 当所述控制设备和所述接入设备 2到达 中断时间的超时时刻时, 所述控制设备可以恢复所述连接超时计时器的计时, 或者对所述连接超时计时器进行重新计时,, 所述发送器 203需要在所述连接 超时计时器超时之前, 向所述控制设备发送心跳报文。
控制所述接收器 201 接收所述控制设备根据所述心跳报文返回的心跳响 应报文, 所述心跳响应报文携带所述控制设备緩存的消息的索引信息;
需要说明的是,如果所述控制设备在所述连接超时计时器超时之前接收到 所述发送器 203发送的心跳报文,则所述控制设备向所述接入设备 2发送心跳 响应报文;如果所述控制设备在所述连接超时计时器超时之前没有接收到所述 发送器 203发送的心跳报文,则所述控制设备确定所述接入设备 2出现故障或 者与所述接入设备 2的连接已经断开。 - - 根据所述控制设备緩存的消息的索引信息控制所述接收器 201 获取所述 控制设备緩存的消息;
当所述接收器 201接收到所述控制设备根据所述接入设备 2緩存的消息的 索引信息发送的消息请求时,控制所述发送器 203向所述控制设备发送所述接 入设备 2緩存的消息。
具体实现中, 所述处理器 202可以采用消息类型优先级对所述接入设备 2 緩存的消息进行排序,并将排序后的所述接入设备 2緩存的消息发送至所述控 制设备。
需要说明的是,所述接入设备 2緩存的消息的索引信息用于为所述控制设 备提供所述接入设备 2緩存的消息的类型和数量,所述控制设备緩存的消息的 索引信息用于为所述接入设备 2提供所述控制设备緩存的消息的类型和数量。
所述处理器 202在当中断时间结束之前, 还执行如下步骤:
当控制设备与接入设备 2完成数据通道建立时,控制所述接收器 201接收 所述控制设备发送的配置命令, 所述配置命令携带中断时间和第一消息类型; 需要说明的是,所述控制设备采用 DTLS与所述接入设备 2进行数据通道 的建立, 所述数据通道优选为 CAPWAP隧道。
根据所述配置命令控制所述发送器向所述控制设备发送响应命令,以使所 述控制设备启动所述中断时间,并使所述控制设备在所述中断时间内对属于第 二消息类型的消息进行緩存;
根据所述配置命令启动所述中断时间,并在所述中断时间内对属于所述第 一消息类型的消息进行緩存。
需要说明的是,; 所述属于第一消息类型的消息可以包括: STA变化消息、 负载测量消息和故障统计消息等; 所述属于第二消息类型的消息可以包括: 配 置消息、 负载均衡消息等。
所述处理器 202在执行控制所述发送器向所述控制设备发送所述接入设 备緩存的消息时, 具体执行如下步骤:
采用消息类型优先级对所述接入设备 2緩存的消息进行排序,并根据所述 排序控制所述发送器 203将所述接入设备 2緩存的消息发送至所述控制设备。
所述处理器还执行如下步骤: - - 当控制所述接收器 201接收到所述控制设备发送的连接中断指令时,控制 所述发送器 203根据所述连接中断指令向所述控制设备发送中断响应指令,以 使所述控制设备和所述接入设备 2分别对所述中断超时时间重新计时。
进一步的, 当中断时间的超时时刻再次到达时, 所述处理器 202可以再次 执行当中断时间结束之后,控制所述发送器 203向控制设备发送心跳报文, 所 述心跳报文携带接入设备 2緩存的消息的索引信息,所述中断时间为所述控制 设备与所述接入设备 2暂停通信的持续时间;控制所述接收器 201接收所述控 制设备根据所述心跳报文返回的心跳响应报文,所述心跳响应报文携带所述控 制设备緩存的消息的索引信息;根据所述控制设备緩存的消息的索引信息控制 所述接收器 201获取所述控制设备緩存的消息;当所述接收器 201接收到所述 控制设备根据所述接入设备 2緩存的消息的索引信息发送的消息请求时,控制 所述发送器 203向所述控制设备发送所述接入设备 2緩存的消息。
在本发明实施例中, 当中断时间结束之后,控制设备通过接收接入设备发 送的心跳报文所携带的接入设备緩存的消息的索引信息,接入设备通过接收控 制设备发送的心跳响应报文所携带的所述控制设备緩存的消息的索引信息,并 且控制设备和接入设备根据索引信息获取所緩存的消息以完成异步通信。通过 设定中断时间, 可以避免当控制设备和接入设备的数据通道中断时, 因进行再 次连接造成较长的延时和设备运算资源的浪费, 从而可以提高通信效率。 本发明实施例还还提供了一种异步通信的系统, 可以包括附图 7和附图 8 所示的控制设备, 以及附图 9和附图 10所示的接入设备, 或者可以包括附图 11所示的控制设备以及附图 12所示的接入设备。
在本发明实施例中, 当中断时间结束之后,控制设备通过接收接入设备发 送的心跳报文所携带的接入设备緩存的消息的索引信息,接入设备通过接收控 制设备发送的心跳响应报文所携带的所述控制设备緩存的消息的索引信息,并 且控制设备和接入设备根据索引信息获取所緩存的消息以完成异步通信。通过 设定中断时间, 可以避免当控制设备和接入设备的数据通道中断时, 因进行再 次连接造成较长的延时和设备运算资源的浪费, 从而可以提高通信效率。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发 - - 明可以用硬件实现, 或固件实现, 或它们的组合方式来实现。 当使用软件实现 时,可以将上述功能存储在计算机可读介质中或作为计算机可读介质上的一个 或多个指令或代码进行传输。 计算机可读介质包括计算机存储介质和通信介 质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介 质。 存储介质可以是计算机能够存取的任何可用介质。 以此为例但不限于: 计 算机可读介质可以包括 RAM、 ROM, EEPROM、 CD-ROM或其他光盘存储、 磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据 结构形式的期望的程序代码并能够由计算机存取的任何其他介质。此外。任何 连接可以适当的成为计算机可读介质。 例如, 如果软件是使用同轴电缆、 光纤 光缆、 双绞线、 数字用户线(DSL )或者诸如红外线、 无线电和微波之类的无 线技术从网站、 服务器或者其他远程源传输的, 那么同轴电缆、 光纤光缆、 双 绞线、 DSL或者诸如红外线、 无线和微波之类的无线技术包括在所属介质的 定影中。 如本发明所使用的, 盘(Disk )和碟(disc ) 包括压缩光碟(CD )、 激光碟、 光碟、 数字通用光碟(DVD )、 软盘和蓝光光碟, 其中盘通常磁性的 复制数据, 而碟则用激光来光学的复制数据。上面的组合也应当包括在计算机 可读介质的保护范围之内。
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之 权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。

Claims

权 利 要 求
1、 一种异步通信的方法, 其特征在于, 包括:
当中断时间结束之后,控制设备接收接入设备发送的心跳报文, 所述心跳 报文携带所述接入设备緩存的消息的索引信息,所述中断时间为所述控制设备 与所述接入设备暂停通信的持续时间;
所述控制设备向所述接入设备发送心跳响应报文,所述心跳响应报文携带 所述控制设备緩存的消息的索引信息;
所述控制设备根据所述接入设备緩存的消息的索引信息获取所述接入设 备緩存的消息;
当所述控制设备接收到所述接入设备根据所述控制设备緩存的消息的索 引信息发送的消息请求时,所述控制设备向所述接入设备发送所述控制设备緩 存的消息。
2、 根据权利要求 1所述的方法, 其特征在于, 所述方法之前, 还包括: 当控制设备与接入设备完成数据通道建立时,所述控制设备向所述接入设 备发送配置命令,所述配置命令携带中断时间和第一消息类型, 以使所述接入 设备启动所述中断时间,并使所述接入设备在所述中断时间内对属于所述第一 消息类型的消息进行緩存;
当所述控制设备接收到所述接入设备根据所述配置命令返回的响应命令 时, 所述控制设备启动所述中断时间, 并在所述中断时间内对属于第二消息类 型的消息进行緩存。
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述控制设备向所述 接入设备发送所述控制设备緩存的消息, 包括:
所述控制设备采用消息类型优先级对所述控制设备緩存的消息进行排序, 并根据所述排序将所述控制设备緩存的消息发送至所述接入设备。
4、 根据权利要求 1-3任一项所述的方法, 其特征在于, 还包括: 所述控制设备向所述接入设备发送连接中断指令,并接收所述接入设备根 据所述连接中断指令返回的中断响应指令,以使所述控制设备和所述接入设备 分别对所述中断时间重新计时。
5、 根据权利要求 1所述的方法, 其特征在于, 所述接入设备緩存的消息 的索引信息用于为所述控制设备提供所述接入设备緩存的消息的类型和数量, 所述控制设备緩存的消息的索引信息用于为所述接入设备提供所述控制设备 緩存的消息的类型和数量。
6、 一种异步通信的方法, 其特征在于, 包括:
当中断时间结束之后,接入设备向控制设备发送心跳报文, 所述心跳报文 携带所述接入设备緩存的消息的索引信息,所述中断时间为所述控制设备与所 述接入设备暂停通信的持续时间;
所述接入设备接收所述控制设备根据所述心跳报文返回的心跳响应报文, 所述心跳响应报文携带所述控制设备緩存的消息的索引信息;
所述接入设备根据所述控制设备緩存的消息的索引信息获取所述控制设 备緩存的消息;
当所述接入设备接收到所述控制设备根据所述接入设备緩存的消息的索 引信息发送的消息请求时,所述接入设备向所述控制设备发送所述接入设备緩 存的消息。
7、 根据权利要求 6所述的方法, 其特征在于, 所述方法之前, 还包括: 当控制设备与接入设备完成数据通道建立时,所述接入设备接收所述控制 设备发送的配置命令, 所述配置命令携带中断时间和第一消息类型;
所述接入设备根据所述配置命令向所述控制设备发送响应命令,以使所述 控制设备启动所述中断时间,并使所述控制设备在所述中断时间内对属于第二 消息类型的消息进行緩存;
所述接入设备根据所述配置命令启动所述中断时间,并在所述中断时间内 对属于所述第一消息类型的消息进行緩存。
8、 根据权利要求 6或 7所述的方法, 其特征在于, 所述接入设备向所述 控制设备发送所述接入设备緩存的消息, 包括:
所述接入设备采用消息类型优先级对所述接入设备緩存的消息进行排序, 并根据所述排序将所述接入设备緩存的消息发送至所述控制设备。
9、 根据权利要求 6-8任一项所述的方法, 其特征在于, 还包括: 当所述接入设备接收到所述控制设备发送的连接中断指令时,所述接入设 备根据所述连接中断指令向所述控制设备发送中断响应指令,以使所述控制设 备和所述接入设备分别对所述中断超时时间重新计时。
10、 根据权利要求 6所述的方法, 其特征在于, 所述接入设备緩存的消息 的索引信息用于为所述控制设备提供所述接入设备緩存的消息的类型和数量, 所述控制设备緩存的消息的索引信息用于为所述接入设备提供所述控制设备 緩存的消息的类型和数量。
11、 一种控制设备, 其特征在于, 包括:
报文接收模块, 当中断时间结束之后, 接收接入设备发送的心跳报文, 所 述心跳报文携带所述接入设备緩存的消息的索引信息,所述中断时间为控制设 备与所述接入设备暂停通信的持续时间;
报文发送模块, 用于向所述接入设备发送心跳响应报文, 所述心跳响应报 文携带所述控制设备緩存的消息的索引信息;
消息获耳 ^莫块,用于根据所述接入设备緩存的消息的索引信息获取所述接 入设备緩存的消息;
消息发送模块,用于当所述控制设备接收到所述接入设备根据所述控制设 备緩存的消息的索引信息发送的消息请求时,所述控制设备向所述接入设备发 送所述控制设备緩存的消息。
12、 根据权利要求 11所述的控制设备, 其特征在于, 还包括: 命令发送模块, 用于当控制设备与接入设备完成数据通道建立时, 向所述 接入设备发送配置命令, 所述配置命令携带中断时间和第一消息类型, 以使所 述接入设备启动所述中断时间,并使所述接入设备在所述中断时间内对属于所 述第一消息类型的消息进行緩存;
启动緩存模块,用于当控制设备接收到所述接入设备根据所述配置命令返 回的响应命令时, 启动所述中断时间, 并在所述中断时间内对属于第二消息类 型的消息进行緩存。
13、 根据权利要求 11或 12所述的控制设备, 其特征在于, 所述消息发送 模块具体用于当所述控制设备接收到所述接入设备根据所述控制设备緩存的 消息的索引信息发送的消息请求时,采用消息类型优先级对所述控制设备緩存 的消息进行排序,并根据所述排序将所述控制设备緩存的消息发送至所述接入 设备。
14、 根据权利要求 11-13任一项所述的控制设备, 其特征在于, 还包括: 指令处理模块, 用于向所述接入设备发送连接中断指令, 并接收所述接入 设备根据所述连接中断指令返回的中断响应指令,以使所述控制设备和所述接 入设备分别对所述中断时间重新计时。
15、 根据权利要求 11所述的控制设备, 其特征在于, 所述接入设备緩存 的消息的索引信息用于为所述控制设备提供所述接入设备緩存的消息的类型 和数量,所述控制设备緩存的消息的索引信息用于为所述接入设备提供所述控 制设备緩存的消息的类型和数量。
16、 一种接入设备, 其特征在于, 包括:
报文发送模块, 用于当中断时间结束之后, 向控制设备发送心跳报文, 所 述心跳报文携带接入设备緩存的消息的索引信息,所述中断时间为所述控制设 备与所述接入设备暂停通信的持续时间;
报文接收模块,用于接收所述控制设备根据所述心跳报文返回的心跳响应 报文, 所述心跳响应报文携带所述控制设备緩存的消息的索引信息; 消息获取模块,用于根据所述控制设备緩存的消息的索引信息获取所述控 制设备緩存的消息;
消息发送模块,用于当所述接入设备接收到所述控制设备根据所述接入设 备緩存的消息的索引信息发送的消息请求时,向所述控制设备发送所述接入设 备緩存的消息。
17、 根据权利要求 16所述的接入设备, 其特征在于, 还包括:
命令接收模块, 用于当控制设备与接入设备完成数据通道建立时,接收所 述控制设备发送的配置命令, 所述配置命令携带中断时间和第一消息类型; 响应命令发送模块, 用于根据所述配置命令向所述控制设备发送响应命 令, 以使所述控制设备启动所述中断时间, 并使所述控制设备在所述中断时间 内对属于第二消息类型的消息进行緩存;
启动緩存模块, 用于根据所述配置命令启动所述中断时间, 并在所述中断 时间内对属于所述第一消息类型的消息进行緩存。
18、 根据权利要求 16或 17所述的接入设备, 其特征在于, 所述消息发送 模块具体用于当所述接入设备接收到所述控制设备根据所述接入设备緩存的 消息的索引信息发送的消息请求时,采用消息类型优先级对所述接入设备緩存 的消息进行排序,并根据所述排序将所述接入设备緩存的消息发送至所述控制 设备。
19、 根据权利要求 16-18任一项所述的接入设备, 其特征在于, 还包括: 指令发送模块,用于当所述接入设备接收到所述控制设备发送的连接中断 指令时,根据所述连接中断指令向所述控制设备发送中断响应指令, 以使所述 控制设备和所述接入设备分别对所述中断超时时间重新计时。
20、 根据权利要求 16所述的接入设备, 其特征在于, 所述接入设备緩存 的消息的索引信息用于为所述控制设备提供所述接入设备緩存的消息的类型 和数量,所述控制设备緩存的消息的索引信息用于为所述接入设备提供所述控 制设备緩存的消息的类型和数量。
21、一种控制设备, 其特征在于, 包括: 接收器、发送器和处理器; 其中, 所述处理器执行如下步骤:
当中断时间结束之后,控制所述接收器接收接入设备发送的心跳报文, 所 述心跳报文携带所述接入设备緩存的消息的索引信息,所述中断时间为控制设 备与所述接入设备暂停通信的持续时间;
控制所述发送器向所述接入设备发送心跳响应报文,所述心跳响应报文携 带所述控制设备緩存的消息的索引信息;
根据所述接入设备緩存的消息的索引信息控制所述接收器获取所述接入 设备緩存的消息;
当所述接收器接收到所述接入设备根据所述控制设备緩存的消息的索引 信息发送的消息请求时,控制所述发送器向所述接入设备发送所述控制设备緩 存的消息。
22、 根据权利要求 21所述的控制设备, 其特征在于, 所述处理器在当中 断时间结束之前, 还执行如下步骤:
当控制设备与接入设备完成数据通道建立时,控制所述发送器向所述接入 设备发送配置命令, 所述配置命令携带中断时间和第一消息类型, 以使所述接 入设备启动所述中断时间,并使所述接入设备在所述中断时间内对属于所述第 一消息类型的消息进行緩存;
当控制所述接收器接收到所述接入设备根据所述配置命令返回的响应命 令时, 启动所述中断时间, 并在所述中断时间内对属于第二消息类型的消息进 行緩存。
23、 根据权利要求 21或 22所述的控制设备, 其特征在于, 所述处理器在 执行控制所述发送器向所述接入设备发送所述控制设备緩存的消息时,具体执 行如下步骤: 采用消息类型优先级对所述控制设备緩存的消息进行排序,并根据所述排 序控制所述发送器将所述控制设备緩存的消息发送至所述接入设备。
24、 根据权利要求 21-23任一项所述的控制设备, 其特征在于, 所述处理 器还执行如下步骤:
控制所述发送器向所述接入设备发送连接中断指令,并控制所述接收器接 收所述接入设备根据所述连接中断指令返回的中断响应指令,以使所述控制设 备和所述接入设备分别对所述中断时间重新计时。
25、 根据权利要求 21所述的控制设备, 其特征在于, 所述接入设备緩存 的消息的索引信息用于为所述控制设备提供所述接入设备緩存的消息的类型 和数量,所述控制设备緩存的消息的索引信息用于为所述接入设备提供所述控 制设备緩存的消息的类型和数量。
26、一种接入设备, 其特征在于, 包括: 接收器、发送器和处理器; 其中, 所述处理器执行如下步骤:
当中断时间结束之后,控制所述发送器向控制设备发送心跳报文, 所述心 跳报文携带接入设备緩存的消息的索引信息,所述中断时间为所述控制设备与 所述接入设备暂停通信的持续时间;
控制所述接收器接收所述控制设备根据所述心跳报文返回的心跳响应报 文, 所述心跳响应报文携带所述控制设备緩存的消息的索引信息;
根据所述控制设备緩存的消息的索引信息控制所述接收器获取所述控制 设备緩存的消息;
当所述接收器接收到所述控制设备根据所述接入设备緩存的消息的索引 信息发送的消息请求时,控制所述发送器向所述控制设备发送所述接入设备緩 存的消息。
27、 根据权利要求 26所述的接入设备, 其特征在于, 所述处理器在当中 断时间结束之前, 还执行如下步骤: 当控制设备与接入设备完成数据通道建立时,控制所述接收器接收所述控 制设备发送的配置命令, 所述配置命令携带中断时间和第一消息类型;
根据所述配置命令控制所述发送器向所述控制设备发送响应命令,以使所 述控制设备启动所述中断时间,并使所述控制设备在所述中断时间内对属于第 二消息类型的消息进行緩存;
根据所述配置命令启动所述中断时间,并在所述中断时间内对属于所述第 一消息类型的消息进行緩存。
28、 根据权利要求 26或 27所述的接入设备, 其特征在于, 所述处理器在 执行控制所述发送器向所述控制设备发送所述接入设备緩存的消息时,具体执 行如下步骤:
采用消息类型优先级对所述接入设备緩存的消息进行排序,并根据所述排 序控制所述发送器将所述接入设备緩存的消息发送至所述控制设备。
29、 根据权利要求 26-28任一项所述的接入设备, 其特征在于, 所述处理 器还执行如下步骤:
当控制所述接收器接收到所述控制设备发送的连接中断指令时,控制所述 发送器根据所述连接中断指令向所述控制设备发送中断响应指令,以使所述控 制设备和所述接入设备分别对所述中断超时时间重新计时。
30、 根据权利要求 26所述的接入设备, 其特征在于, 所述接入设备緩存 的消息的索引信息用于为所述控制设备提供所述接入设备緩存的消息的类型 和数量,所述控制设备緩存的消息的索引信息用于为所述接入设备提供所述控 制设备緩存的消息的类型和数量。
PCT/CN2013/084430 2013-09-27 2013-09-27 一种异步通信的方法及设备 WO2015042859A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201380075778.2A CN105210328A (zh) 2013-09-27 2013-09-27 一种异步通信的方法及设备
PCT/CN2013/084430 WO2015042859A1 (zh) 2013-09-27 2013-09-27 一种异步通信的方法及设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/084430 WO2015042859A1 (zh) 2013-09-27 2013-09-27 一种异步通信的方法及设备

Publications (1)

Publication Number Publication Date
WO2015042859A1 true WO2015042859A1 (zh) 2015-04-02

Family

ID=52741804

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/084430 WO2015042859A1 (zh) 2013-09-27 2013-09-27 一种异步通信的方法及设备

Country Status (2)

Country Link
CN (1) CN105210328A (zh)
WO (1) WO2015042859A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111200538A (zh) * 2019-12-25 2020-05-26 苏宁云计算有限公司 智能设备的监控方法及装置
CN113094305A (zh) * 2021-04-02 2021-07-09 北京黑蚁兄弟科技有限公司 一种异步通信处理方法、装置和存储介质

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109726024A (zh) * 2018-12-28 2019-05-07 北京爱奇艺科技有限公司 一种消息延时投递方法、装置及设备
EP4064617A4 (en) * 2019-12-25 2022-12-07 Huawei Technologies Co., Ltd. COMMUNICATION METHOD AND DEVICE

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217482A (zh) * 2008-01-18 2008-07-09 杭州华三通信技术有限公司 一种穿越nat下发策略的方法和一种通信装置
CN102056014A (zh) * 2009-10-28 2011-05-11 青岛海信传媒网络技术有限公司 流媒体录制方法和系统
CN102819465A (zh) * 2012-06-29 2012-12-12 华中科技大学 一种虚拟化环境中故障恢复的方法
CN103067215A (zh) * 2011-10-21 2013-04-24 中兴通讯股份有限公司 实现心跳机制的方法、应用服务器、网络数据库及系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217482A (zh) * 2008-01-18 2008-07-09 杭州华三通信技术有限公司 一种穿越nat下发策略的方法和一种通信装置
CN102056014A (zh) * 2009-10-28 2011-05-11 青岛海信传媒网络技术有限公司 流媒体录制方法和系统
CN103067215A (zh) * 2011-10-21 2013-04-24 中兴通讯股份有限公司 实现心跳机制的方法、应用服务器、网络数据库及系统
CN102819465A (zh) * 2012-06-29 2012-12-12 华中科技大学 一种虚拟化环境中故障恢复的方法

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111200538A (zh) * 2019-12-25 2020-05-26 苏宁云计算有限公司 智能设备的监控方法及装置
CN111200538B (zh) * 2019-12-25 2022-03-11 苏宁云计算有限公司 智能设备的监控方法及装置
CN113094305A (zh) * 2021-04-02 2021-07-09 北京黑蚁兄弟科技有限公司 一种异步通信处理方法、装置和存储介质
CN113094305B (zh) * 2021-04-02 2024-03-26 北京黑蚁兄弟科技有限公司 一种异步通信处理方法、装置和存储介质

Also Published As

Publication number Publication date
CN105210328A (zh) 2015-12-30

Similar Documents

Publication Publication Date Title
JP7145319B2 (ja) リリースおよびリダイレクトが続く再開の要求
CN109600802B (zh) 数据传输方法、相关设备及系统
JP6556949B2 (ja) Mecプラットフォームハンドオーバー方法、装置、及びシステム
WO2019033796A1 (zh) 会话处理方法及相关设备
US20170238215A1 (en) Mobility management method, apparatus, and system
WO2018170626A1 (zh) 一种连接恢复方法、接入和移动性管理功能实体及用户设备
WO2014127515A1 (zh) 业务提供系统、方法、移动边缘应用服务器及支持节点
EP4142376A1 (en) Network access method and communication apparatus
US10827003B2 (en) Application data migration method and network device
CN113873478B (zh) 通信方法及装置
WO2011134434A1 (zh) 数据传输设备、方法以及通信系统
WO2021238774A1 (zh) 通信方法及装置
WO2017113130A1 (zh) 一种资源请求方法、设备、网络侧节点及系统
JP7035082B2 (ja) ユーザプレーンリンク確立方法、基地局、およびモビリティ管理デバイス
CN109150808B (zh) 通信方法、装置和系统
US20210112478A1 (en) Methods and functions for handling local breakout
JP2017028589A (ja) 通信装置、無線通信装置、および通信方法
WO2014121471A1 (zh) 数据传输、获取方法、基站及用户设备
WO2015042859A1 (zh) 一种异步通信的方法及设备
JP2015526995A (ja) ネットワークアクセス方法、装置、及びシステム
EP3586543B1 (en) Context placement in the mobile communications network
WO2019076308A1 (zh) 终端设备的状态的确定方法、装置及设备
CN103974339B (zh) 一种数据缓存的方法和装置
WO2017008701A1 (zh) 数据传输方法、装置及用户设备
WO2017193387A1 (zh) 异制式小区间切换的方法及装置

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: 13894183

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: 13894183

Country of ref document: EP

Kind code of ref document: A1