[go: up one dir, main page]

CN104185204B - A kind of connection status inspection method and device - Google Patents

A kind of connection status inspection method and device Download PDF

Info

Publication number
CN104185204B
CN104185204B CN201410377720.XA CN201410377720A CN104185204B CN 104185204 B CN104185204 B CN 104185204B CN 201410377720 A CN201410377720 A CN 201410377720A CN 104185204 B CN104185204 B CN 104185204B
Authority
CN
China
Prior art keywords
message
sequence number
connection
control message
abnormal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410377720.XA
Other languages
Chinese (zh)
Other versions
CN104185204A (en
Inventor
傅嘉嘉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201410377720.XA priority Critical patent/CN104185204B/en
Publication of CN104185204A publication Critical patent/CN104185204A/en
Application granted granted Critical
Publication of CN104185204B publication Critical patent/CN104185204B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Communication Control (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of connection status inspection method, including:Access controller AC reaches predetermined threshold value in the number of retransmissions of the control message sent to access point AP, and when not receiving the response message of same sequence number in carrying and the control message, first message is sent to AP, first message is used for the sequence number for characterizing the request last received control message of AP responses;If AC receives the second message of AP transmissions before retransmission timer time-out, then by the sequence number carried in second message compared with AC currently transmitted sequence number, and the sequence number and AC currently transmitted sequence number carried in second message judges that the connection between AC and AP is abnormal when differing.The invention also discloses a kind of connecting detection device.

Description

Connection state detection method and device
Technical Field
The invention relates to the technical field of communication based on a CAPWAP protocol, in particular to a connection state detection method and device.
Background
CAPWAP (control And Provisioning of Wireless Access Points protocol specification) is a control And configuration protocol of a Wireless Access point, And an existing Access Controller (AC) is connected with an Access Point (AP) through the CAPWAP protocol.
In a normal state, the flow of sending the CAPWAP control message to the AP by the AC is as shown in fig. 1, that is, each time the AC sends one control message, the serial number is increased by 1, and each time the AP receives one control message, the local serial number is updated according to the serial number carried in the received message, and the locally updated serial number is carried in the sent response message; if the AC sends a control message and waits for the retransmission timer to time out and still does not receive the response message returned by the same sequence number, the AC retransmits the control message by the current sending sequence number.
In the prior art, the order and reliability of CAPWAP control message transmission between an AC and an AP are guaranteed by a waiting response and message retransmission mechanism. Under the condition of bad network condition, if the CAPWAP control messages retransmitted for several times (such as three times) are not responded in time, the connection of the opposite terminal is considered to be abnormal, so that the CAPWAP tunnel between the AC and the AP is interrupted, and the CAPWAP tunnel connection between the AC and the AP is reestablished.
However, with the abundance of wireless services, many services will issue control messages to the AP through the CAPWAP tunnel. On one hand, if the state of a certain service is abnormal and no response is sent, the AC cannot receive the CAPWAP response message in time delay, so that the AC mistakenly considers that the whole CAPWAP tunnel connection is interrupted, and the AP is offline; in this case, most of the services are normally operated, and if the AP is offline, the services of the services that are normally operated will be interrupted, which may cause adverse effects. On the other hand, if the control message fails to be sent without interrupting the CAPWAP tunnel connection, network packet loss may also occur when the actual connection is abnormal, and the states of the AC and the AP are inconsistent.
However, the prior art still fails to provide a solution to the above technical problems, thereby causing inconvenience to practical applications.
Disclosure of Invention
In order to solve the existing technical problems, the invention is expected to provide a connection state detection method and a connection state detection device.
The invention provides a connection state detection method, which comprises the following steps:
when the retransmission times of a control message sent to an Access Point (AP) reach a preset threshold value and a response message carrying the same sequence number as that in the control message is not received, an Access Controller (AC) sends a first message to the AP, wherein the first message is used for representing the sequence number of the control message which is received at last and is requested to respond to the AP;
and if the AC receives a second message sent by the AP before the retransmission timer is overtime, comparing the sequence number carried in the second message with the current sending sequence number of the AC, and judging that the connection between the AC and the AP is abnormal when the sequence number carried in the second message is different from the current sending sequence number of the AC.
In the above scheme, the method further comprises:
and when the sequence number carried in the second message is the same as the current sending sequence number of the AC, judging that the connection between the AC and the AP is normal.
In the above scheme, the method further comprises:
and if the AC does not receive the second message sent by the AP before the retransmission timer is overtime, judging that the connection between the AC and the AP is abnormal.
In the above scheme, the first message does not carry a sequence number, and the first message carries an extended TLV, where the extended TLV is used to identify that the first message is a message requesting the AP to respond to the sequence number of the last received control message.
In the above scheme, the method further comprises:
and when the connection between the AC and the AP is judged to be abnormal, reestablishing the connection between the AC and the AP.
In the above scheme, the method further comprises:
and when the connection between the AC and the AP is judged to be normal, adding 1 to the current sending sequence number of the AC, and carrying the current sending sequence number in the next control message for sending.
The invention also provides a connection state detection device, which comprises:
a sending unit, configured to send a first message to an Access Point (AP) when a retransmission frequency of a control message sent by an Access Controller (AC) to the AP reaches a preset threshold and the AC does not receive a response message carrying a same sequence number as that in the control message, where the first message is used to represent a sequence number of a control message that is last received to request the AP to respond;
a receiving unit, configured to receive a second message sent by the AP to the AC before a retransmission timer expires;
and the judging unit is used for comparing the sequence number carried in the second message with the current sending sequence number of the AC and judging that the connection between the AC and the AP is abnormal when the sequence number carried in the second message is different from the current sending sequence number of the AC.
In the foregoing solution, the determining module is further configured to determine that the connection between the AC and the AP is normal when the sequence number carried in the second message is the same as the current transmission sequence number of the AC.
In the foregoing solution, the receiving unit is further configured to notify the determining unit when a second message sent by the AP is not received before a retransmission timer times out;
the determining module is further configured to determine that the connection between the AC and the AP is abnormal.
In the above scheme, the first message does not carry a sequence number, and the first message carries an extended TLV, where the extended TLV is used to identify that the first message is a message requesting the AP to respond to the sequence number of the last received control message.
In the above scheme, the apparatus further comprises: a reestablishing unit configured to reestablish the connection between the AC and the AP when the determining unit determines that the connection between the AC and the AP is abnormal.
In the foregoing solution, the sending unit is further configured to, when the determining unit determines that the connection between the AC and the AP is normal, add 1 to a current sending sequence number of the AC, and send the current sending sequence number carried in a next control message.
According to the connection state detection method and device provided by the invention, when the retransmission times of a control message sent to an AP reaches a preset threshold value and a response message carrying the same sequence number as that in the control message is not received, an AC sends a first message to the AP, wherein the first message is used for representing the sequence number of the control message which is received at last and is requested to be responded by the AP; if the AC receives a second message sent by the AP before the retransmission timer is overtime, comparing a sequence number carried in the second message with a current sending sequence number of the AC, and judging that the connection between the AC and the AP is abnormal when the sequence number carried in the second message is different from the current sending sequence number of the AC; when the sequence number carried in the second message is the same as the current sending sequence number of the AC, judging that the connection between the AC and the AP is normal; and if the AC does not receive the second message sent by the AP before the retransmission timer is overtime, judging that the connection between the AC and the AP is abnormal. According to the invention, based on the sending of the first message and the receiving condition of the second message, the AC can distinguish that the retransmission times of the control message caused by abnormal connection reach the preset threshold value and the retransmission times of the control message caused by abnormal service reach the preset threshold value, so that the connection can be reestablished when the connection is judged to be abnormal, and the connection is recovered or reset only through the CAPWAP message without reestablishing the connection when the connection is judged to be abnormal, thereby avoiding that the whole AP cannot provide service due to unnecessary connection reestablishment under the condition that the actual connection is normal.
Drawings
FIG. 1 is a flow chart illustrating a prior art AC sending CAPWAP control messages to an AP in a normal state;
fig. 2 is a flowchart of a connection status detection method according to a first embodiment of the invention;
fig. 3 is a schematic structural diagram of a connection status detection apparatus according to a second embodiment of the present invention;
FIG. 4 is a timing diagram of a method according to a fourth embodiment of the present invention;
FIG. 5 is a timing diagram of a fifth embodiment of the present invention;
FIG. 6 is a timing diagram of a sixth embodiment of the present invention.
Detailed Description
In order to solve the existing technical problem, embodiments of the present invention provide a connection state detection method and apparatus. The technical solution of the present invention is further elaborated below with reference to the drawings and the specific embodiments.
Example one
An embodiment of the present invention provides a connection status detection method, as shown in fig. 2, the method mainly includes:
step 201, when the retransmission frequency of a control message sent to the AP reaches a preset threshold and a response message carrying the same sequence number as that in the control message is not received, the AC sends a first message to the AP, where the first message is used to represent the sequence number of the control message that is last received when the AP is requested to respond.
In a normal state, the AC adds 1 to the sequence number when sending a control message to the AP, and the AP updates the local sequence number according to the sequence number carried in the received message when receiving a message and carries the locally updated sequence number in the sent response message; if the AC sends a control message and waits for the retransmission timer to overtime and still does not receive a response message returned by the same serial number, the AC retransmits the control message by the current sending serial number;
if the retransmission frequency of a control message sent by the AC to the AP reaches a preset threshold (e.g., three times) and the AC does not receive a response message of the AP to the control message, the AC needs to initiate a connection status detection operation to determine whether the AC cannot receive an AP response due to an abnormal connection between the AC and the AP. The AC sends a first message to the AP, wherein the first message is a predefined message and is used for characterizing a sequence number of a control message which is received last and requests the AP to answer, such as: the predefined first message is an Echo Response message, the sequence number is not occupied when the Echo Response message is sent, a Vendor-defined extended TLV (Type Length Value ) specified by the CAPWAP protocol is carried in the Echo Response message, and the Vendor-defined extended TLV is used for identifying that the first message is a message requesting the AP to respond to the sequence number of the last received control message. That is, after receiving the first message sent by the AC, the AP can obtain the sequence number of the control message that the AC expects the AP to immediately respond to the last received control message according to the Vendor TLV in the first message.
Step 202, if the AC receives the second message sent by the AP before the retransmission timer times out, comparing the sequence number carried in the second message with the current sending sequence number of the AC, and determining that the connection between the AC and the AP is abnormal when the sequence number carried in the second message is different from the current sending sequence number of the AC.
After the AC sends the first message to the AP, a retransmission timer is started to wait for receiving a second message sent by the AP; the retransmission timer may be the same as or different from the retransmission timer set by the AC for sending the control message, and the size of the retransmission timer may be set according to actual needs. Wherein, the second message is a predefined message, such as: the predefined second message is an Echo Request message.
If the AC receives a second message sent by the AP before the retransmission timer is overtime, comparing a sequence number carried in the second message with a current sending sequence number of the AC, if the sequence number and the current sending sequence number are the same, determining that the retransmission times reach a preset threshold value, the control message is successfully sent to the AP and no packet loss occurs, and the fact that the AC does not receive a response message of the AP is not caused by abnormal connection between the AC and the AP (namely, normal connection between the AC and the AP) and caused by abnormal corresponding service of the AP side; if the two are different (the sequence number carried in the second message is smaller than the current sending sequence number of the AC), the retransmission times reaches a preset threshold value, the control message is not successfully sent to the AP, packet loss occurs, and the AC does not receive a response message of the AP, which is caused by abnormal connection between the AC and the AP.
In addition, if the AC does not receive the second message sent by the AP before the retransmission timer expires, it is also determined that the connection between the AC and the AP is abnormal.
When the connection between the AC and the AP is judged to be abnormal, the AC reestablishes the connection between the AC and the AP, and a normal control message sending process is executed after the connection is reestablished;
and when the connection between the AC and the AP is judged to be normal, adding 1 to the current sending sequence number of the AC, and sending the current sending sequence number carried in the next control message, namely, continuously executing the subsequent normal control message sending flow.
It should be noted that the first message in the embodiment of the present invention is not related to the service, and therefore, generally, the AP can successfully respond to the second message as long as the AP can successfully receive the first message, and is not affected by the service status, so that the AC receives the second message responded by the AP, which is regarded as a reliable acknowledgement, and further, it is determined that the connection between the AC and the AP is normal.
The control message of the embodiment of the invention comprises a CAPWAP self protocol message and an upper layer service control message.
According to the first embodiment of the invention, based on the sending of the first message and the receiving of the second message, the AC can distinguish that the retransmission times of the control message caused by abnormal connection reach the preset threshold and the retransmission times of the control message caused by abnormal service reach the preset threshold, so that the connection can be reestablished when the connection is judged to be abnormal, and the connection is restored or reset only through the CAPWAP message without reestablishing the connection when the connection is judged to be abnormal, thereby avoiding that the whole AP cannot provide service due to unnecessary connection reestablishment under the condition that the actual connection is normal.
Example two
Corresponding to the connection state detection method in the first embodiment, a second embodiment of the present invention provides a connection state detection apparatus, as shown in fig. 3, the apparatus including: a transmitting unit 10, a receiving unit 20, and a determining unit 30; wherein,
a sending unit 10, configured to send a first message to an AP when the retransmission frequency of a control message sent by an AC to the AP reaches a preset threshold and the AC does not receive a response message carrying a same sequence number as that in the control message, where the first message is used to represent a sequence number of a control message that is last received by requesting the AP to respond;
a receiving unit 20, configured to receive a second message sent by the AP to the AC before the retransmission timer expires;
a determining unit 30, configured to compare the sequence number carried in the second message with the current sending sequence number of the AC, and determine that the connection between the AC and the AP is abnormal when the sequence number carried in the second message is not the same as the current sending sequence number of the AC.
Preferably, the determining module 30 is further configured to determine that the connection between the AC and the AP is normal when the sequence number carried in the second message is the same as the current transmission sequence number of the AC.
Preferably, the receiving unit 20 is further configured to notify the determining unit 30 when the second message sent by the AP is not received before the retransmission timer expires;
the determination module 30 is further configured to determine that the connection between the AC and the AP is abnormal.
Preferably, the first message does not carry a sequence number, and the first message carries an extended TLV, where the extended TLV is used to identify that the first message is a message requesting the AP to reply to the sequence number of the last received control message.
Preferably, the apparatus further comprises: a reconstruction unit 40, configured to reconstruct the connection between the AC and the AP when the determination unit 30 determines that the connection between the AC and the AP is abnormal.
Preferably, the sending unit 10 is further configured to, when the determining unit 30 determines that the connection between the AC and the AP is normal, add 1 to the current sending sequence number of the AC and send the current sending sequence number carried in the next control message by the sending unit 10.
It should be noted that the connection state detection apparatus according to the second embodiment of the present invention may be disposed inside an AC, wherein the sending Unit 10 and the receiving Unit 20 may be implemented by a communication function chip of the AC, and the determining Unit 30 and the reconstructing Unit 40 may be implemented by a Central Processing Unit (CPU) of the AC, a Microprocessor (MPU), a Digital Signal Processor (DSP), or a Field Programmable Gate Array (FPGA).
In addition, the first message of the embodiment of the invention is irrelevant to the service, so the AP can successfully answer the second message as long as the AP can successfully receive the first message, and the AP is not influenced by the service state, therefore, the AC receives the second message answered by the AP, which is regarded as reliable confirmation, and further, the connection between the AC and the AP is judged to be normal.
Through the second embodiment of the invention, based on the sending of the first message and the receiving condition of the second message, the AC can distinguish that the retransmission times of the control message caused by abnormal connection reach the preset threshold value and the retransmission times of the control message caused by abnormal service reach the preset threshold value, so that the connection can be reestablished when the connection is judged to be abnormal, and the connection is recovered or reset only through the CAPWAP message without reestablishing the connection when the connection is judged to be abnormal, thereby avoiding that the whole AP cannot provide service due to unnecessary connection reestablishment under the condition that the actual connection is normal.
EXAMPLE III
Corresponding to the first and second embodiments, a third embodiment of the present invention further provides a connection status detection system, including an AC and an AP; wherein,
an AC for transmitting a control message to the AP;
the AP is used for receiving the control message sent by the AP and returning a response message to the AC;
in a normal state, the AC adds 1 to the sequence number when sending a control message to the AP, and the AP updates the local sequence number according to the sequence number carried in the received message when receiving a message and carries the locally updated sequence number in the sent response message; if the AC sends a control message and waits for the retransmission timer to overtime and still does not receive a response message returned by the same serial number, the AC retransmits the control message by the current sending serial number;
the AC is also used for sending a first message to the AP when the retransmission times of one control message sent to the AP reach a preset threshold value and a response message carrying the same sequence number as that in the control message is not received, wherein the first message is used for representing the sequence number of the control message which is received at last and is requested to be responded by the AP;
the AP is also used for returning a second message to the AC when receiving the first message sent by the AC, wherein the second message carries the sequence number of the control message received by the AP at last;
the AC is further configured to, if a second message sent by the AP is received before the retransmission timer expires, compare the sequence number carried in the second message with a current sending sequence number of the AC, and determine that the connection between the AC and the AP is abnormal when the sequence number carried in the second message is different from the current sending sequence number of the AC.
In addition, the AC is further configured to determine that the connection between the AC and the AP is normal when the sequence number carried in the second message is the same as the current transmission sequence number of the AC;
and if the AC does not receive the second message sent by the AP before the retransmission timer is overtime, judging that the connection between the AC and the AP is abnormal.
Preferably, the first message does not carry a sequence number, and the first message carries an extended TLV, where the extended TLV is used to identify that the first message is a message requesting the AP to reply to the sequence number of the last received control message.
Preferably, when the connection between the AC and the AP is judged to be abnormal, the AC reestablishes the connection between the AC and the AP;
and when the connection between the AC and the AP is judged to be normal, the AC adds 1 to the current transmission sequence number and carries the current transmission sequence number in the next control message for transmission.
It should be noted that the first message in the embodiment of the present invention is not related to the service, and therefore, generally, the AP can successfully respond to the second message as long as the AP can successfully receive the first message, and is not affected by the service status, so that the AC receives the second message responded by the AP, which is regarded as a reliable acknowledgement, and further, it is determined that the connection between the AC and the AP is normal.
Example four
The embodiment of the invention describes the situation that the connection is normal and the retransmission times of one control message reach the preset threshold value due to the service. Referring to the timing chart shown in fig. 4, the AC sends a first control message with sequence number of 12345 to the AP, and waits for the retransmission timer to timeout and not receive a response message with sequence number of 12345; the AC immediately sends a second control message with the sequence number of 12345 to the AP, and waits for the retransmission timer to overtime and still does not receive a response message with the sequence number of 12345; the AC sends a third control message with sequence number of 12345 to the AP, and waits for the retransmission timer to timeout and still not receive the response message with sequence number of 12345, and at this time, the retransmission frequency of the control message with sequence number of 12345 exceeds the preset threshold (three times); the AC sends an Echo Response message to the AP, the sending of the Echo Response message does not occupy the sequence number, and the Echo Response message carries a Vendor TLV and is used for identifying the sequence number of the control message which is finally received by the request AP; the sent Echo Response is not related to the service; the AC receives an Echo Request message sent by the AP before the retransmission timer is overtime, the sequence number carried in the message is 12345 and is the same as the current sending sequence number of the AC, so that the control message with the sequence number of 12345 is considered to be successfully sent to the AP, no packet loss occurs, and the condition that the AC does not receive a response message with the sequence number of 12345 of the AP is not caused by abnormal connection between the AC and the AP and corresponding service belonging to the AP side is abnormal; therefore, the AC recovers or resets the corresponding service at the AP side through the CAPWAP message, but other services are not influenced and run normally, and the AC continues to send the control message with the sequence number of 12346 to the AP.
EXAMPLE five
The embodiment of the invention describes a situation that the retransmission times of a control message reach a preset threshold value due to abnormal connection.
Referring to the timing chart shown in fig. 5, the AC sends a first control message with sequence number of 12345 to the AP, and waits for the retransmission timer to timeout and not receive a response message with sequence number of 12345; the AC immediately sends a second control message with the sequence number of 12345 to the AP, and waits for the retransmission timer to overtime and still does not receive a response message with the sequence number of 12345; the AC sends a third control message with sequence number of 12345 to the AP, and waits for the retransmission timer to timeout and still not receive the response message with sequence number of 12345, and at this time, the retransmission frequency of the control message with sequence number of 12345 exceeds the preset threshold (three times); the AC sends an Echo Response message to the AP, the sending of the Echo Response message does not occupy the sequence number, and the Echo Response message carries a Vendor TLV which is used for identifying the sequence number of the control message which is finally received by the request AP; the sent Echo Response is not related to the service; the AC receives an Echo Request message sent by the AP before the retransmission timer is overtime, the sequence number carried in the message is 12344 and is different from the current sending sequence number of the AC, so that the AC considers that the control message with the sequence number of 12345 is not successfully sent to the AP and packet loss occurs, and the AC does not receive a response message with the sequence number of 12345 of the AP, which is caused by abnormal connection between the AC and the AP; and the AC reestablishes the connection between the AC and the AP so as to ensure that the states of the AC and the AP are consistent, and the normal control message sending process is executed again after the connection is reestablished.
EXAMPLE six
The embodiment of the invention describes a situation that the retransmission times of a control message reach a preset threshold value due to abnormal connection.
Referring to the timing chart shown in fig. 6, the AC sends a first control message with sequence number of 12345 to the AP, and waits for the retransmission timer to timeout and not receive a response message with sequence number of 12345; the AC immediately sends a second control message with the sequence number of 12345 to the AP, and waits for the retransmission timer to overtime and still does not receive a response message with the sequence number of 12345; the AC sends a third control message with sequence number of 12345 to the AP, and waits for the retransmission timer to timeout and still not receive the response message with sequence number of 12345, and at this time, the retransmission frequency of the control message with sequence number of 12345 exceeds the preset threshold (three times); the AC sends an Echo Response message to the AP, the sending of the Echo Response message does not occupy the sequence number, and the Echo Response message carries a Vendor TLV which is used for identifying the sequence number of the control message which is finally received by the request AP; the sent Echo Response is not related to the service; the AC still does not receive Echo Request messages from the AP after the retransmission timer is overtime, so that the AC does not receive response messages with the AP sequence number of 12345, and the response messages are caused by abnormal connection between the AC and the AP; and the AC reestablishes the connection between the AC and the AP so as to ensure that the states of the AC and the AP are consistent, and the normal control message sending process is executed again after the connection is reestablished.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (12)

1. A method for connection status detection, the method comprising:
when the retransmission times of a control message sent to an Access Point (AP) reach a preset threshold value and a response message carrying the same sequence number as that in the control message is not received, an Access Controller (AC) sends a first message to the AP, wherein the first message is used for representing the sequence number of the control message which is received at last and is requested to respond to the AP; wherein the first message does not carry a sequence number;
if the AC receives a second message sent by the AP before a retransmission timer is overtime, comparing a sequence number carried in the second message with a current sending sequence number of the AC, and judging that the connection between the AC and the AP is abnormal when the sequence number carried in the second message is different from the current sending sequence number of the AC; and the current sending sequence number is the sequence number of the control message of which the retransmission times reach a preset threshold value.
2. The connection state detection method according to claim 1, characterized in that the method further comprises:
and when the sequence number carried in the second message is the same as the current sending sequence number of the AC, judging that the connection between the AC and the AP is normal.
3. The connection state detection method according to claim 1, characterized in that the method further comprises:
and if the AC does not receive the second message sent by the AP before the retransmission timer is overtime, judging that the connection between the AC and the AP is abnormal.
4. The connection status detection method according to claim 1, 2 or 3, wherein the first message carries an extended TLV, and the extended TLV is used to identify the first message as a message requesting the AP to reply to the sequence number of the last received control message.
5. The connection state detection method according to claim 1, 2 or 3, characterized in that the method further comprises:
and when the connection between the AC and the AP is judged to be abnormal, reestablishing the connection between the AC and the AP.
6. The connection state detection method according to claim 2, characterized in that the method further comprises:
and when the connection between the AC and the AP is judged to be normal, adding 1 to the current sending sequence number of the AC, and carrying the current sending sequence number in the next control message for sending.
7. A connection state detection apparatus, characterized in that the apparatus comprises:
a sending unit, configured to send a first message to an Access Point (AP) when a retransmission frequency of a control message sent by an Access Controller (AC) to the AP reaches a preset threshold and the AC does not receive a response message carrying a same sequence number as that in the control message, where the first message is used to represent a sequence number of a control message that is last received to request the AP to respond; wherein the first message does not carry a sequence number;
a receiving unit, configured to receive a second message sent by the AP to the AC before a retransmission timer expires;
a determining unit, configured to compare the sequence number carried in the second message with the current sending sequence number of the AC, and determine that the connection between the AC and the AP is abnormal when the sequence number carried in the second message is different from the current sending sequence number of the AC; and the current sending sequence number is the sequence number of the control message of which the retransmission times reach a preset threshold value.
8. The apparatus according to claim 7, wherein the determining unit is further configured to determine that the connection between the AC and the AP is normal when the sequence number carried in the second message is the same as the current transmission sequence number of the AC.
9. The apparatus according to claim 7, wherein the receiving unit is further configured to notify the determining unit when a second message sent by the AP is not received before a retransmission timer expires;
the determination unit is further configured to determine that the connection between the AC and the AP is abnormal.
10. The apparatus according to claim 7, 8 or 9, wherein the first message carries an extended TLV, and the extended TLV is used to identify the first message as a message requesting the AP to reply to a sequence number of a last received control message.
11. The connection state detection device according to claim 7, 8 or 9, characterized in that the device further comprises: a reestablishing unit configured to reestablish the connection between the AC and the AP when the determining unit determines that the connection between the AC and the AP is abnormal.
12. The apparatus according to claim 8, wherein the sending unit is further configured to, when the determining unit determines that the connection between the AC and the AP is normal, add 1 to a current transmission sequence number of the AC and send the current transmission sequence number with a next control message.
CN201410377720.XA 2014-08-01 2014-08-01 A kind of connection status inspection method and device Active CN104185204B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410377720.XA CN104185204B (en) 2014-08-01 2014-08-01 A kind of connection status inspection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410377720.XA CN104185204B (en) 2014-08-01 2014-08-01 A kind of connection status inspection method and device

Publications (2)

Publication Number Publication Date
CN104185204A CN104185204A (en) 2014-12-03
CN104185204B true CN104185204B (en) 2017-12-08

Family

ID=51965871

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410377720.XA Active CN104185204B (en) 2014-08-01 2014-08-01 A kind of connection status inspection method and device

Country Status (1)

Country Link
CN (1) CN104185204B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109245955B (en) * 2017-07-10 2022-12-09 阿里巴巴集团控股有限公司 Data processing method and device and server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101304343A (en) * 2008-06-10 2008-11-12 华为技术有限公司 A network fault detection method, network equipment and network system
CN101765228A (en) * 2010-01-29 2010-06-30 杭州华三通信技术有限公司 Recovery method of CAPWAP tunnel and device thereof
CN102724695A (en) * 2012-06-28 2012-10-10 福建星网锐捷网络有限公司 Wireless controller heat backup switching method, wireless controller heat backup switching device and wireless controller
CN102811451A (en) * 2012-07-23 2012-12-05 福建星网锐捷网络有限公司 Method and device for controlling connection of control and provisioning of wireless access points (Capwap) tunnel

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9602383B2 (en) * 2012-10-11 2017-03-21 Telefonaktiebolaget Lm Ericsson (Publ) General packet radio service tunnel performance monitoring

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101304343A (en) * 2008-06-10 2008-11-12 华为技术有限公司 A network fault detection method, network equipment and network system
CN101765228A (en) * 2010-01-29 2010-06-30 杭州华三通信技术有限公司 Recovery method of CAPWAP tunnel and device thereof
CN102724695A (en) * 2012-06-28 2012-10-10 福建星网锐捷网络有限公司 Wireless controller heat backup switching method, wireless controller heat backup switching device and wireless controller
CN102811451A (en) * 2012-07-23 2012-12-05 福建星网锐捷网络有限公司 Method and device for controlling connection of control and provisioning of wireless access points (Capwap) tunnel

Also Published As

Publication number Publication date
CN104185204A (en) 2014-12-03

Similar Documents

Publication Publication Date Title
EP3823411B1 (en) Control method for user equipment, and user equipment for mcg failure processing
CN114222271B (en) Method, device, medium and electronic equipment for monitoring sidelink of vehicle communication
CN108696884B (en) Method and device for improving paging type 2 performance of dual-card dual-standby equipment
CN108476430B (en) Apparatus and method for controlling transmissions on a high throughput wireless network
EP3123762B1 (en) Wlan access point which approves internet access only if quality of the radio link is sufficiently good
CN110366868A (en) Method, terminal device and network device for random access
US11889337B2 (en) Data transmission method and data transmission apparatus
US20200383111A1 (en) Method, device and system for controlling air interface resource
US20160056880A1 (en) Relay apparatus and method of controlling relay apparatus
CN110943878A (en) Heartbeat packet transmission method, terminal and device with storage function
CN109982442A (en) A kind of method run on a user device and user equipment
CN107104822B (en) Server disaster recovery processing method and device, storage medium and electronic equipment
CN114143911B (en) Method for automatically reconnecting wireless screen-on and screen-off based on Android platform
US9344931B2 (en) Method and device for re-establishing radio link
CN104185204B (en) A kind of connection status inspection method and device
US10310931B2 (en) Communications state estimation device, communications state estimation method, and storage medium that stores communications state estimation program
JP2012500557A (en) Reestablishing the interface between MME and Node B using backoff time
CN112770412B (en) Packet data network PDN activation method and device thereof
JP2005346175A (en) Command communication apparatus and command communication method
CN104967892A (en) Remote controller data transmitting and receiving methods and device
KR20150057895A (en) Apparatus and methdo for controlling access
JP2004260562A (en) Method and device for transmitting and receiving packet
CN109246733A (en) User equipment and correlation technique
JP4069125B2 (en) Transmission method, transmission apparatus, and transmission / reception system
CN102547814B (en) Processing, detection method and the device of service bearer

Legal Events

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

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

Applicant after: Xinhua three Technology Co., Ltd.

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

Applicant before: Huasan Communication Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant