CN110418431A - A kind of control method and device of communication connection - Google Patents

A kind of control method and device of communication connection Download PDF

Info

Publication number
CN110418431A
CN110418431A CN201910682573.XA CN201910682573A CN110418431A CN 110418431 A CN110418431 A CN 110418431A CN 201910682573 A CN201910682573 A CN 201910682573A CN 110418431 A CN110418431 A CN 110418431A
Authority
CN
China
Prior art keywords
network equipment
communication connection
sent
preset duration
receiving
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.)
Pending
Application number
CN201910682573.XA
Other languages
Chinese (zh)
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 Chengdu Branch
Original Assignee
New H3C Technologies Co Ltd Chengdu Branch
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 Chengdu Branch filed Critical New H3C Technologies Co Ltd Chengdu Branch
Priority to CN201910682573.XA priority Critical patent/CN110418431A/en
Publication of CN110418431A publication Critical patent/CN110418431A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1441Countermeasures against malicious traffic
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/25Maintenance of established connections

Landscapes

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

Abstract

This application provides a kind of control method and device of communication connection, it is related to wireless communication technology field, the method is applied to first network equipment, request is disconnected for second network equipment the described method includes: receiving, it is described to disconnect request and be used to indicate established communication connection between the first network equipment disconnection and second network equipment;If receiving the message that second network equipment is sent by the communication connection, the communication connection between second network equipment is kept.It can be to avoid communication disruption between first network equipment and second network equipment using the application.

Description

A kind of control method and device of communication connection
Technical field
This application involves wireless communication technology fields, more particularly to a kind of control method and device of communication connection.
Background technique
Currently, cordless communication network generally comprises access point (English: Access Point, abbreviation: AP) and website (English Text: station, referred to as: STA).Wherein, STA can be mobile phone, personal computer (English: personal computer, letter Claim: PC) etc. user terminals.When STA needs to access internet, STA can be built by way of sending online request to AP with AP Vertical communication connection, to access internet by AP.
However, being easy the attack by periphery rogue device after AP and STA establishes communication connection.For example, malicious site meeting Simulate legal STA and disconnect request to AP transmission, AP receive malicious site transmission disconnect request after, can miss will be legal STA it is offline, lead to communication disruption between AP and legal STA.For another example, malice AP can simulate legal AP and send to send to STA and break Connection request is opened, so that STA actively disconnects the communication connection with AP, leads to communication disruption between legal AP and STA.
Summary of the invention
In view of this, the application provides a kind of control method and device of communication connection, communicated to avoid between AP and STA It interrupts.Specific technical solution is as follows:
In a first aspect, providing a kind of control method of communication connection, the method is applied to first network equipment, described Method includes:
It receives and disconnects request for second network equipment, it is described to disconnect request and be used to indicate first net Network equipment disconnects the established communication connection between second network equipment;
If receiving the message that second network equipment is sent by the communication connection, keep and described second Communication connection between the network equipment.
Optionally, if the message for receiving second network equipment and being sent by the communication connection, is protected Hold the communication connection between second network equipment, comprising:
If receiving the data message that second network equipment is sent, then holding and institute in the first preset duration State the communication connection between second network equipment;
If not receiving the data message that second network equipment is sent in first preset duration, then to Second network equipment sends probe messages;
If receiving the detection response message that second network equipment is sent in the second preset duration, then keeping With the communication connection between second network equipment;If not receiving second net in second preset duration The detection response message that network equipment is sent then disconnects the communication connection between second network equipment.
Optionally, if the message for receiving second network equipment and being sent by the communication connection, is protected Hold the communication connection between second network equipment, comprising:
Probe messages are sent to second network equipment;
If the detection response message that second network equipment is sent is received, alternatively, In in third preset duration In 4th preset duration, the data message that second network equipment is sent is received, then is kept and second network equipment Between communication connection;
If not receiving the detection response message that second network equipment is sent in the third preset duration, And in the 4th preset duration, the data message that second network equipment is sent is not received, then is disconnected and second net Communication connection between network equipment.
Optionally, it is described receive for second network equipment disconnect request after, further includes:
Count the sum for disconnecting request for second network equipment received;
If the sum is greater than preset number threshold value, judge whether to receive second network equipment described in Communicate to connect the message sent.
Second aspect provides a kind of control device of communication connection, and described device is applied to first network equipment, described Device includes:
Receiving module, for receive be directed to second network equipment disconnect request, it is described to disconnect request and be used for Indicate that the first network equipment disconnects the established communication connection between second network equipment;
Module is kept, if the message sent for receiving second network equipment by the communication connection, Keep the communication connection between second network equipment.
Optionally, the holding module, is specifically used for:
If receiving the data message that second network equipment is sent, then holding and institute in the first preset duration State the communication connection between second network equipment;
If not receiving the data message that second network equipment is sent in first preset duration, then to Second network equipment sends probe messages;
If receiving the detection response message that second network equipment is sent in the second preset duration, then keeping With the communication connection between second network equipment;
Described device further include:
First disconnects module, if in second preset duration, not receiving second network equipment hair The detection response message sent then disconnects the communication connection between second network equipment.
Optionally, the holding module, is specifically used for:
Probe messages are sent to second network equipment;
If the detection response message that second network equipment is sent is received, alternatively, In in third preset duration In 4th preset duration, the data message that second network equipment is sent is received, then is kept and second network equipment Between communication connection;
Described device further include:
Second disconnects module, if in the third preset duration, not receiving second network equipment hair The detection response message sent, and in the 4th preset duration, the data message that second network equipment is sent is not received, then Disconnect the communication connection between second network equipment.
Optionally, described device further include:
Statistical module, for counting the sum for disconnecting request for second network equipment received;
Judgment module judges whether to receive second net if being greater than preset number threshold value for the sum The message that network equipment is sent by the communication connection.
The third aspect provides a kind of network equipment, including processor, communication interface, memory and communication bus, In, processor, communication interface, memory completes mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes method and step described in first aspect.
Fourth aspect provides a kind of computer readable storage medium, is stored in the computer readable storage medium Computer program realizes method and step described in first aspect when the computer program is executed by processor.
5th aspect, provides a kind of computer program product comprising instruction, when run on a computer, so that Computer executes method described in above-mentioned first aspect.
A kind of control method and device of communication connection provided by the present application, can be applied to first network equipment.First The network equipment receive establish communication that second network equipment of connection sends disconnect request after, if receiving the The message that two network equipments are sent by communication connection then keeps the communication connection between second network equipment.In this way, if Second network equipment by the communication connection sends message to first network equipment, and (i.e. second network equipment is currently with first The network equipment is communicated), even if first network equipment receives rogue device and simulates the disconnection company that second network equipment is sent Request is connect, the communication connection between second network equipment will not be disconnected, avoids first network equipment and second network equipment Between communication disruption.
Certainly, implement the application any product or method it is not absolutely required to and meanwhile reach all the above excellent Point.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart of the control method of communication connection provided by the embodiments of the present application;
Fig. 2 is a kind of exemplary flow chart of the control method of communication connection provided by the embodiments of the present application;
Fig. 3 is a kind of exemplary flow chart of the control method of communication connection provided by the embodiments of the present application;
Fig. 4 is a kind of structural schematic diagram of the control device of communication connection provided by the embodiments of the present application;
Fig. 5 is a kind of structural schematic diagram of the control device of communication connection provided by the embodiments of the present application;
Fig. 6 is a kind of structural schematic diagram of the control device of communication connection provided by the embodiments of the present application;
Fig. 7 is a kind of structural schematic diagram of the control device of communication connection provided by the embodiments of the present application;
Fig. 8 is a kind of structural schematic diagram of the network equipment provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
The embodiment of the invention provides a kind of control method of communication connection, this method can be applied to AP, can also answer For website (i.e. station) equipment.Wherein, STA can for mobile phone, personal computer (English: personal computer, The user terminals such as referred to as: PC).
When site apparatus needs to access internet, site apparatus can send online request to AP, logical to establish with AP Letter connection, to access internet by AP.Subsequent, site apparatus can send to AP and disconnect request, with disconnection and AP Between communication connection, complete offline movement.Alternatively, AP actively can also disconnect request to site apparatus transmission, thus Keep the site apparatus offline.
However, AP and site apparatus are easy the attack by rogue device.It is set for example, malicious site can simulate legitimate site It is standby to disconnect request to AP transmission, after what AP received that malicious site sends disconnects request, it can miss legitimate site equipment It is offline, cause AP and legitimate site communication between devices to interrupt.For another example, malice AP can simulate legal AP and send to site apparatus hair Send and disconnect request so that site apparatus actively disconnect with the connection of AP, cause to communicate between legal AP and site apparatus It is disconnected.
By the control method of communication connection provided by the embodiments of the present application, established when first network equipment is received with it When the disconnecting request of second network equipment transmission of communication connection can first judge whether that receiving second network equipment leads to Cross the message of communication connection transmission.If first network equipment, which receives second network equipment, passes through the communication connection to first The network equipment sends message, then keeps the communication connection between second network equipment;If first network equipment does not receive Second network equipment sends message to first network equipment by the communication connection, then disconnects logical between second network equipment Letter connection.
In this way, first network equipment can just break when confirming that second network equipment is not communicated with first network equipment currently The communication connection between second network equipment is opened, avoids disconnecting request because of rogue device simulation second network equipment transmission And the case where leading to communication disruption between first network equipment and second network equipment.Wherein, when first network equipment is AP, Second network equipment is site apparatus;When first network equipment is site apparatus, second network equipment is AP.
Below in conjunction with specific embodiment, to a kind of control method progress of communication connection provided by the embodiments of the present application Detailed description, as shown in Figure 1, specific step is as follows.
Step 101, it receives and disconnects request for second network equipment.
Wherein, this disconnect request be used to indicate first network equipment disconnect and second network equipment between it is established Communication connection.
In the embodiment of the present application, first network equipment can be established with second network equipment and be communicated to connect.For example, working as website When equipment needs to access internet, site apparatus can send online request to AP, communicate to connect to establish with AP, to pass through AP accesses internet, wherein an AP can be established with multiple site apparatus to be communicated to connect.First network equipment can receive needle To second network equipment when disconnecting request, wherein disconnect request can for deauthentication (Chinese: Cancel authentication) request or disassociation (Chinese: disassociation) etc..
Step 102, it if receiving the message that second network equipment is sent by communication connection, keeps and the second network Communication connection between equipment.
It may be that true second network equipment is sent since this disconnects request in the embodiment of the present application, it can also Can be that rogue device is simulated second network equipment and sent, therefore, first network equipment receives disconnect request after, can be with Judge whether to receive the message that second network equipment is sent by communication connection, such as data message or detection response message. If first network equipment receives the message that second network equipment is sent by communication connection, illustrate that second network equipment is worked as Preceding normally to be communicated, it may be that rogue device second network equipment of simulation is sent that this, which disconnects request, and first The network equipment can keep the communication connection between second network equipment, and abandon and disconnect request, to guarantee the first net Normal communication between network equipment and second network equipment.
If first network equipment does not receive the message that second network equipment is sent by communication connection, illustrate first What the network equipment received disconnects request, is that disconnecting for legitimate device (i.e. true second network equipment) transmission is asked It asks, first network equipment can execute disconnection movement, that is, disconnect the communication connection between second network equipment.
Optionally, specific judgment mode can be diversified, and the embodiment of the present application provides two kinds of feasible realities Existing mode.
In mode one, the process of step 102 can specifically include following steps:
Step 1: receive the data message of second network equipment transmission if in the first preset duration, then keep with Communication connection between second network equipment.
In the embodiment of the present application, first network equipment is receiving when disconnecting request of second network equipment transmission, It can star detection timer, to carry out timing.If first network equipment receives the second network in the first preset duration The data message that equipment is sent by communication connection, then illustrate that second network equipment is currently normally being communicated, this is disconnected Opening connection request may be that rogue device second network equipment of simulation is sent, and first network equipment can be kept and the second network Communication connection between equipment.
In one example, first network equipment is AP, and second network equipment is site apparatus, the then transmission of data message Address be site apparatus media access control (English: Media Access Control Address, referred to as: MAC) address, Receive address be AP basic service set identifier (English: Basic Service Set Identifier, referred to as: BSSID), Protocol type is non vacuum data type of message, and AP receives the data message that site apparatus is sent by communication connection, then illustrates The site apparatus is currently at normal online state and is being communicated, and AP can be kept between second network equipment Communication connection.In another example, first network equipment is site apparatus, and second network equipment is AP, then data message Transmission address be AP BSSID, receive address be the MAC Address of site apparatus, protocol type is non vacuum data type of message, Site apparatus receives the data message that the AP is sent by communication connection, then illustrates the site apparatus in the AP in normal Online state and the AP communicated with the site apparatus, site apparatus can keep the communication link between AP It connects.
Step 2: do not receive the data message of second network equipment transmission if in the first preset duration, then to the Two network equipments send probe messages.
In the embodiment of the present application, if first network equipment does not receive second network equipment in the first preset duration The data message sent by communication connection then further can send probe messages to second network equipment, and start detection Timer.
Step 3: if receiving the detection response message of second network equipment transmission in the second preset duration, then protecting Hold the communication connection between second network equipment.
In the embodiment of the present application, if second network equipment currently with first network equipment can normal communication, second After the network equipment receives the probe messages of first network equipment transmission, it can be fed back and be visited to first network equipment by communication connection Survey response message.If second network equipment it is offline (such as second network equipment transmission disconnect request or the second network set It is standby because network cause goes offline), then, will not be to after second network equipment receives the probe messages of first network equipment transmission First network equipment feedback detection response message.Therefore, if first network equipment receives second in the second preset duration The detection response message that the network equipment is sent by communication connection, then can keep the communication link between second network equipment It connects.
Optionally, if in the second preset duration, first network equipment does not receive the spy of second network equipment transmission Response message is surveyed, then can disconnect the communication connection between second network equipment.
Based on mode one, if first network equipment in the first preset duration, receives the transmission of second network equipment Data message, then without sending probe messages to second network equipment, to reduce first network equipment and second network equipment Message interaction, reduce network burden.
In mode two, the process of step 102 can specifically include following steps:
Step 1: sending probe messages to second network equipment.
In the embodiment of the present application, first network equipment can also be asked receiving disconnecting for second network equipment transmission When asking, probe messages are directly sent to second network equipment by communication connection, and start probe timer.Meanwhile first net Network equipment can also start detection timer.
Step 2: the detection response message of second network equipment transmission is received if in third preset duration, or Person receives the data message of second network equipment transmission in the 4th preset duration, then keeps between second network equipment Communication connection.
In the embodiment of the present application, if first network equipment in the third preset duration that probe timer records, receives The detection response message sent to second network equipment by communication connection, alternatively, first network equipment is in detection timer note In 4th preset duration of record, the data message that second network equipment is sent by communication connection is received, then first network is set The standby communication connection that can be kept between second network equipment.
Optionally, if in third preset duration, the detection response message of second network equipment transmission is not received, and In the 4th preset duration, the data message of second network equipment transmission is not received, then is disconnected between second network equipment Communication connection.
In the embodiment of the present application, if first network equipment does not connect in the third preset duration that probe timer records The detection response message that second network equipment is sent by communication connection is received, also, first network equipment is in detection timer In 4th preset duration of record, do not receive the data message that second network equipment is sent by communication connection, then yet it can be with Disconnect the communication connection between second network equipment.
Based on mode two, first network equipment can directly transmit probe messages progress after receiving and disconnecting request Detection shortens first network and judges whether to disconnect the time consumed by communication connection, improves treatment effeciency.
Wherein, above-mentioned first preset duration, the second preset duration, third preset duration and the 4th preset duration can be by skills Art personnel configure, and the embodiment of the present application is default to the first preset duration, the second preset duration, third preset duration and the 4th Size relation between duration is without limitation.
Optionally, first network equipment receive for second network equipment disconnect request after, can be with Count the sum for disconnecting request for second network equipment received.If sum is greater than preset number threshold value, Judge whether to receive the message that second network equipment is sent by communication connection.
In the embodiment of the present application, first network equipment can be disconnected from second network equipment transmission first is received Request starts, and the request that disconnects sent to second network equipment counts, to obtain the transmission of second network equipment Disconnect the sum of request.Whenever first network equipment receives when disconnecting request of second network equipment transmission, the One network equipment can update the numerical value (numerical value is added 1) of the sum of current record.
In a kind of mode, if the sum that first network device statistics go out is greater than preset number threshold value, it may determine that Whether message that second network equipment by communication connection sent is received, to determine whether to disconnect between second network equipment Communication connection.
In another implementation, the 4th preset duration can be set in first network equipment, if pre- the 4th If in duration, the sum that first network device statistics go out is greater than preset number threshold value, then can decide whether to receive the second net The message that network equipment is sent by communication connection, to determine whether to disconnect the communication connection between second network equipment.
Optionally, each message transmitted between first network equipment and second network equipment, can be for using 802.11 associations The message of view, in addition, other, which can be applied to the transport protocol between AP and site apparatus, can be applied to the embodiment of the present application In, the embodiment of the present application is without limitation.
In the embodiment of the present application, first network equipment receives second network equipment transmission for establishing communication connection After disconnecting request, if receiving the message that second network equipment is sent by communication connection, keep and the second network Communication connection between equipment.In this way, if second network equipment sends message to first network equipment by the communication connection (i.e. second network equipment is currently being communicated with first network equipment), even if first network equipment receives rogue device The communication connection for disconnecting request, will not disconnecting between second network equipment for simulating the transmission of second network equipment, keeps away Exempt from communication disruption between first network equipment and second network equipment.
The embodiment of the present application also provides a kind of examples of the control method of communication connection, as shown in Fig. 2, specifically can wrap Include following steps.
Step 201, it receives and disconnects request for second network equipment.
Wherein, this disconnect request be used to indicate first network equipment disconnect and second network equipment between it is established Communication connection.
Step 202, starting detection timer T1.
Step 203, judge the data message that the transmission of second network equipment whether is received in T1.
If so, thening follow the steps 206.If not, thening follow the steps 204.
Step 204, probe messages are sent to second network equipment, and starts probe timer T2.
Step 205, judge the detection response message that the transmission of second network equipment whether is received in T2.
If so, thening follow the steps 206.If not, thening follow the steps 207.
Step 206, the communication connection between second network equipment is kept.
Step 207, the communication connection between second network equipment is disconnected.
The embodiment of the present application also provides a kind of examples of the control method of communication connection, as shown in figure 3, specifically can wrap Include following steps.
Step 301, it receives and disconnects request for second network equipment.
Wherein, this disconnect request be used to indicate first network equipment disconnect and second network equipment between it is established Communication connection.
Step 302, starting detection timer T3, and probe messages are sent to second network equipment, start probe timer T4。
Step 303, if in T3, the detection response message of second network equipment transmission is received, alternatively, in T4, The data message of second network equipment transmission is received, then keeps the communication connection between second network equipment.
Step 304, if in T3, the detection response message of second network equipment transmission is not received, and in T4, not The data message of second network equipment transmission is received, then disconnects the communication connection between second network equipment.
Based on the same technical idea, the embodiment of the present application also provides a kind of control devices of communication connection, such as Fig. 4 institute Show, which includes:
Receiving module 410, it is described to disconnect request use for receiving the request that disconnects for being directed to second network equipment The established communication connection between second network equipment is disconnected in the instruction first network equipment;
Module 420 is kept, if the message sent for receiving second network equipment by the communication connection, Then keep the communication connection between second network equipment.
Optionally, the holding module 420, is specifically used for:
If receiving the data message that second network equipment is sent, then holding and institute in the first preset duration State the communication connection between second network equipment;
If not receiving the data message that second network equipment is sent in first preset duration, then to Second network equipment sends probe messages;
If receiving the detection response message that second network equipment is sent in the second preset duration, then keeping With the communication connection between second network equipment;
As shown in figure 5, described device further include:
First disconnects module 430, if for not receiving second network equipment in second preset duration The detection response message of transmission then disconnects the communication connection between second network equipment.
Optionally, the holding module 420, is specifically used for:
Probe messages are sent to second network equipment;
If the detection response message that second network equipment is sent is received, alternatively, In in third preset duration In 4th preset duration, the data message that second network equipment is sent is received, then is kept and second network equipment Between communication connection;
As shown in fig. 6, described device further include:
Second disconnects module 440, if for not receiving second network equipment in the third preset duration The detection response message of transmission, and in the 4th preset duration, the data message that second network equipment is sent is not received, Then disconnect the communication connection between second network equipment.
Optionally, as shown in fig. 7, described device further include:
Statistical module 450, for counting the breaking for second network equipment received in default history duration Open the sum of connection request;
Judgment module 460 judges whether to receive described second if being greater than preset number threshold value for the sum The message that the network equipment is sent by the communication connection.
In the embodiment of the present application, first network equipment receives second network equipment transmission for establishing communication connection After disconnecting request, if receiving the message that second network equipment is sent by communication connection, keep and the second network Communication connection between equipment.In this way, if second network equipment sends message to first network equipment by the communication connection (i.e. second network equipment is currently being communicated with first network equipment), even if first network equipment receives rogue device The communication connection for disconnecting request, will not disconnecting between second network equipment for simulating the transmission of second network equipment, keeps away Exempt from communication disruption between first network equipment and second network equipment.
The embodiment of the present application also provides a kind of electronic equipment, as shown in figure 8, include processor 801, communication interface 802, Memory 803 and communication bus 804, wherein processor 801, communication interface 802, memory 803 are complete by communication bus 804 At mutual communication;
Memory 803, for storing computer program;
Processor 801 when for executing the program stored on memory 803, realizes the controlling party of above-mentioned communication connection Method, this method comprises:
It receives and disconnects request for second network equipment, it is described to disconnect request and be used to indicate first net Network equipment disconnects the established communication connection between second network equipment;
If receiving the message that second network equipment is sent by the communication connection, keep and described second Communication connection between the network equipment.
Optionally, if the message for receiving second network equipment and being sent by the communication connection, is protected Hold the communication connection between second network equipment, comprising:
If receiving the data message that second network equipment is sent, then holding and institute in the first preset duration State the communication connection between second network equipment;
If not receiving the data message that second network equipment is sent in first preset duration, then to Second network equipment sends probe messages;
If receiving the detection response message that second network equipment is sent in the second preset duration, then keeping With the communication connection between second network equipment;If not receiving second net in second preset duration The detection response message that network equipment is sent then disconnects the communication connection between second network equipment.
Optionally, if the message for receiving second network equipment and being sent by the communication connection, is protected Hold the communication connection between second network equipment, comprising:
Probe messages are sent to second network equipment;
If the detection response message that second network equipment is sent is received, alternatively, In in third preset duration In 4th preset duration, the data message that second network equipment is sent is received, then is kept and second network equipment Between communication connection;
If not receiving the detection response message that second network equipment is sent in the third preset duration, And in the 4th preset duration, the data message that second network equipment is sent is not received, then is disconnected and second net Communication connection between network equipment.
Optionally, it is described receive for second network equipment disconnect request after, further includes:
Count the sum for disconnecting request for second network equipment received;
Judgment module judges whether to receive second net if being greater than preset number threshold value for the sum The message that network equipment is sent by the communication connection.
The communication bus that the above-mentioned network equipment is mentioned can be Peripheral Component Interconnect standard (English: Peripheral Component Interconnect, referred to as: PCI) bus or expanding the industrial standard structure (English: Extended Industry Standard Architecture, referred to as: EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control Bus processed etc..Only to be indicated with a thick line in figure convenient for indicating, it is not intended that an only bus or a type of total Line.
Communication interface is for the communication between the above-mentioned network equipment and other equipment.
Memory may include random access memory (English: Random Access Memory, abbreviation: RAM), can also To include nonvolatile memory (English: Non-Volatile Memory, abbreviation: NVM), for example, at least a disk storage Device.Optionally, memory can also be that at least one is located remotely from the storage device of aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (English: Central Processing Unit, referred to as: CPU), network processing unit (English: Network Processor, referred to as: NP) etc.;It can also be digital signal Processor (English: Digital Signal Processing, abbreviation: DSP), specific integrated circuit (English: Application Specific Integrated Circuit, referred to as: ASIC), field programmable gate array (English: Field- Programmable Gate Array, referred to as: FPGA) either other programmable logic device, discrete gate or transistor logic Device, discrete hardware components.
Based on the same technical idea, the embodiment of the present application also provides a kind of computer readable storage medium, the meters Computer program is stored in calculation machine readable storage medium storing program for executing, the computer program realizes above-mentioned communication link when being executed by processor The control method step connect.
Based on the same technical idea, the embodiment of the present application also provides a kind of computer program product comprising instruction, When run on a computer, so that computer executes the control method step of above-mentioned communication connection.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or It partly generates according to process or function described in the embodiment of the present application.The computer can be general purpose computer, dedicated meter Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk SolidState Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
The foregoing is merely the preferred embodiments of the application, are not intended to limit the protection scope of the application.It is all Any modification, equivalent replacement, improvement and so within spirit herein and principle are all contained in the protection scope of the application It is interior.

Claims (10)

1. a kind of control method of communication connection, which is characterized in that the method is applied to first network equipment, the method packet It includes:
Receive and disconnect request for second network equipment, it is described disconnect request and be used to indicate the first network set It is standby to disconnect the established communication connection between second network equipment;
If receiving the message that second network equipment is sent by the communication connection, keep and second network Communication connection between equipment.
2. the method according to claim 1, wherein if described receive second network equipment and pass through institute The message that communication connection is sent is stated, then keeps the communication connection between second network equipment, comprising:
If receiving the data message that second network equipment is sent in the first preset duration, then keep and described the Communication connection between two network equipments;
If not receiving the data message that second network equipment is sent, then Xiang Suoshu in first preset duration Second network equipment sends probe messages;
If receiving the detection response message that second network equipment is sent, then holding and institute in the second preset duration State the communication connection between second network equipment;If not receiving second network in second preset duration and setting The detection response message that preparation is sent then disconnects the communication connection between second network equipment.
3. the method according to claim 1, wherein if described receive second network equipment and pass through institute The message that communication connection is sent is stated, then keeps the communication connection between second network equipment, comprising:
Probe messages are sent to second network equipment;
If the detection response message that second network equipment is sent is received, alternatively, the 4th in third preset duration In preset duration, the data message that second network equipment is sent is received, then is kept between second network equipment Communication connection;
If the detection response message that second network equipment is sent is not received in the third preset duration, and In 4th preset duration, the data message that second network equipment is sent is not received, then is disconnected and second net Communication connection between network equipment.
4. the method according to claim 1, wherein described receive is asked for disconnecting for second network equipment After asking, further includes:
Count the sum for disconnecting request for second network equipment received;
If the sum is greater than preset number threshold value, judge whether that receiving second network equipment passes through the communication Connect the message sent.
5. a kind of control device of communication connection, which is characterized in that described device is applied to first network equipment, described device packet It includes:
Receiving module, for receive be directed to second network equipment disconnect request, it is described to disconnect request and be used to indicate The first network equipment disconnects the established communication connection between second network equipment;
Module is kept, if the message sent for receiving second network equipment by the communication connection, keeps With the communication connection between second network equipment.
6. device according to claim 5, which is characterized in that the holding module is specifically used for:
If receiving the data message that second network equipment is sent in the first preset duration, then keep and described the Communication connection between two network equipments;
If not receiving the data message that second network equipment is sent, then Xiang Suoshu in first preset duration Second network equipment sends probe messages;
If receiving the detection response message that second network equipment is sent, then holding and institute in the second preset duration State the communication connection between second network equipment;
Described device further include:
First disconnects module, if sent in second preset duration, not receiving second network equipment Detection response message then disconnects the communication connection between second network equipment.
7. device according to claim 5, which is characterized in that the holding module is specifically used for:
Probe messages are sent to second network equipment;
If the detection response message that second network equipment is sent is received, alternatively, the 4th in third preset duration In preset duration, the data message that second network equipment is sent is received, then is kept between second network equipment Communication connection;
Described device further include:
Second disconnects module, if sent in the third preset duration, not receiving second network equipment Detection response message, and in the 4th preset duration, the data message that second network equipment is sent is not received, then Disconnect the communication connection between second network equipment.
8. device according to claim 5, which is characterized in that described device further include:
Statistical module, for counting the sum for disconnecting request for second network equipment received;
Judgment module judges whether that receiving second network sets if being greater than preset number threshold value for the sum The standby message sent by the communication connection.
9. a kind of network equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein processing Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any method and step of claim 1-4.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium Program realizes claim 1-4 any method and step when the computer program is executed by processor.
CN201910682573.XA 2019-07-26 2019-07-26 A kind of control method and device of communication connection Pending CN110418431A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910682573.XA CN110418431A (en) 2019-07-26 2019-07-26 A kind of control method and device of communication connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910682573.XA CN110418431A (en) 2019-07-26 2019-07-26 A kind of control method and device of communication connection

Publications (1)

Publication Number Publication Date
CN110418431A true CN110418431A (en) 2019-11-05

Family

ID=68363549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910682573.XA Pending CN110418431A (en) 2019-07-26 2019-07-26 A kind of control method and device of communication connection

Country Status (1)

Country Link
CN (1) CN110418431A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023236990A1 (en) * 2022-06-07 2023-12-14 华为技术有限公司 Online enablement method and apparatus for optical communication network

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1881920A (en) * 2006-04-30 2006-12-20 杭州华为三康技术有限公司 Link connection cutting method and access point device in WLAN

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1881920A (en) * 2006-04-30 2006-12-20 杭州华为三康技术有限公司 Link connection cutting method and access point device in WLAN

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023236990A1 (en) * 2022-06-07 2023-12-14 华为技术有限公司 Online enablement method and apparatus for optical communication network

Similar Documents

Publication Publication Date Title
CN104333863B (en) Connection management method and device, electronic equipment
CN110147675B (en) Safety detection method and equipment for intelligent terminal
CN103997768B (en) A kind of method and device for preventing from accessing invalid Wi Fi focuses
CN104580167B (en) A kind of methods, devices and systems transmitting data
CN104683301B (en) Password storage method and device
CN110611723A (en) Scheduling method and device of service resources
CN103731810A (en) Access point sharing method and device
CN109033801A (en) Method, mobile terminal and the storage medium of application program verification user identity
CN106130818A (en) Network sharing, requesting terminal and network share flux monitoring method and system
CN107423099B (en) Key code programming method, server, terminal, key code programming system and storage medium
CN108616499A (en) A kind of method for authenticating of application program, terminal and computer readable storage medium
CN106851779A (en) A kind of method and mobile terminal for recognizing access point and focus
CN102739684A (en) Portal authentication method based on virtual IP address, and server thereof
CN114710304A (en) Privacy risk monitoring method and device, storage medium and terminal gateway equipment
CN108322366A (en) Access the methods, devices and systems of network
CN107659999A (en) WIFI connection methods and equipment
CN108200546A (en) data reporting method, device, mobile terminal and computer-readable medium
CN108235237A (en) data reporting method, device, mobile terminal and computer-readable medium
CN106658376A (en) Event sharing method and device
CN110418431A (en) A kind of control method and device of communication connection
CN107332872A (en) A kind of method that Android device network agile management and control is realized based on VPN connections
CN102572814A (en) Method, system and device for monitoring viruses in mobile terminal
CN104104508B (en) Method of calibration, device and terminal device
CN107483514A (en) Attack monitoring device and smart machine
CN106686210A (en) Incoming call processing method, apparatus and system thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20191105

RJ01 Rejection of invention patent application after publication