CN104519064B - A method of realizing that communication link is kept online - Google Patents
A method of realizing that communication link is kept online Download PDFInfo
- Publication number
- CN104519064B CN104519064B CN201410800671.6A CN201410800671A CN104519064B CN 104519064 B CN104519064 B CN 104519064B CN 201410800671 A CN201410800671 A CN 201410800671A CN 104519064 B CN104519064 B CN 104519064B
- Authority
- CN
- China
- Prior art keywords
- link
- data
- online
- communication
- holding
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/143—Termination or inactivation of sessions, e.g. event-controlled end of session
- H04L67/145—Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/142—Managing session states for stateless protocols; Signalling session states; State transitions; Keeping-state mechanisms
Landscapes
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Communication Control (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides a kind of method realized communication link and kept online, and the method is:Step 1, equipment establish link, and equipment is connected to internet, and by link into row data communication;Whether there is data packet in step 2, online holding monitored link, be, reclocking simultaneously continues online holding and monitors, no, then enters step 3;Whether step 3, the time for not hearing data packet are more than preset time, no, continue online holding and monitor, are then to enter step 4;Step 4 destroys link, while establishing new link.The present invention listens only to whether chain road has data transmission to judge whether link is online, therefore this method not consumed flow, if link is disconnected, with regard to destroying link, link is re-established, until link is unimpeded, to provide reliable and stable communication link online keeping method.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of methods realized communication link and kept online.
Background technology
With social development, wirelessly or non-wirelessly the communication technology is widely used in every field, stablizes, reliable transmission is set
Standby is the active demand of all users.Often there is the case where " false online " in practical application in common wirelessly or non-wirelessly communication
(I.e. link exists but can not normal communication), special online holding processing mode is needed in the case of such, it is traditional at present
Online hold mode is to send request bag, the response packet of waiting for server by device-to-server, if there is response packet to show chain
Road works normally, and no nothing then shows link exception, need to destroy current ink and re-establish link.This traditional approach needs disappear
A large amount of flow is consumed, the communication rate of user is caused rapidly to rise.
For the above situation, present patent application has developed online hold mode technology in the case of not consuming flow, and at
Work(is applied to wireless and wire communication industry.
Invention content
The technical problem to be solved in the present invention is to provide a kind of method realized communication link and kept online, the party
Method not just destroy link if link is disconnected, re-establish link by consumed flow, until link is unimpeded, it is reliable and stable to provide
The online keeping method of communication link.
The invention is realized in this way:A method of realizing that communication link is kept online, the method includes as follows
Step:
Step 1, equipment establish link, and equipment is connected to internet, and by link into row data communication;
Whether there is data packet in step 2, online holding monitored link, is, reclocking simultaneously continues online holding and monitors,
It is no, then enter step 3;
Whether step 3, the time for not hearing data packet are more than preset time, no, continue online holding and monitor, are, then
Enter step 4;
Step 4 destroys link, while establishing new link.
Further, the preset time is to be set according to user demand.
Further, by network analysis tool analysis, when beyond preset time range, no data communication then should be again
Establish new link;When in preset time range, there is data communication, then link is not established, reclocking continues online keep
It monitors.
Further, whether there is data packet in the online holding monitored link, specially:
Step 21, detection link whether there is, and if so, the SOCKET that can capture data according to link establishment is socketed
Word simultaneously sets a property, and the attribute includes:Data type, promiscuous mode;The data type refers to data direction, that is, enters system
Data;
Step 22, the data for receiving SOCKET sockets, if there is data then reset timer;When the number for having respective type
When according to entering system by link, SOCKET sockets can replicate data and present;
Step 23, no data then detect whether time-out, and data are continued to if being not timed-out.
The invention has the advantages that:The present invention is by the online hold mode of opening of device, and by being connected to internet,
Internet is into row data communication.The online data packet situation kept in monitored link, reclocking maintenance prison when having arbitrary data
State is listened, when not having data packet transmission beyond specified time, that is, is determined as link exception, and re-establish link.The present invention
Not consumed flow, to provide reliable and stable communication link online keeping method.
Description of the drawings
Fig. 1 is the method for the present invention flow diagram.
Fig. 2 is the online flow diagram for keeping whether having data packet in monitored link of the present invention.
Specific implementation mode
Please refer to Fig.1 with shown in Fig. 2, a kind of method realized communication link and kept online of the invention, the method
Include the following steps:
Step 1, equipment establish link, and equipment is connected to internet, and by link into row data communication;
Whether there is data packet in step 2, online holding monitored link, is, reclocking simultaneously continues online holding and monitors,
It is no, then enter step 3;
Whether step 3, the time for not hearing data packet are more than preset time, no, continue online holding and monitor, are, then
Enter step 4;
Step 4 destroys link, while establishing new link.
Wherein, the preset time is to be set according to user demand, such as:100 ~ 200 seconds.Preferably 180 seconds.Separately
Outside, the present invention is by network analysis tool analysis, when beyond preset time range, no data communication should then re-establish new
Link;When in preset time range, there is data communication, then link is not established, reclocking continues online holding and monitors.Net
Network analysis tool can be:Network analysis tool Wireshark, network analysis tool NetworkMiner or network analysis work
Have Zenoss Core.
Whether there is data packet in the online holding monitored link, the specific steps are:(According to system platform difference realization side
Method difference, but purpose is all the data packet for capturing chain road.The case is primarily directed to the online holding for not consuming flow, institute
With the data packet that need to only capture into.Wherein, by taking linux platforms as an example;)
Step 21, detection link whether there is, and if so, the SOCKET that can capture data according to link establishment is socketed
Word simultaneously sets a property, and the attribute includes:Data type, promiscuous mode;The data type refers to data direction, that is, enters system
Data;
Step 22, the data for receiving SOCKET sockets, if there is data then reset timer;When the number for having respective type
When according to entering system by link, SOCKET sockets can replicate data and present;
Step 23, no data then detect whether time-out, and data are continued to if being not timed-out.
In short, the present invention is by the online hold mode of opening of device, and by being connected to internet, internet carries out data
Communication.The online data packet situation kept in monitored link, reclocking maintenance listening state when having arbitrary data, when beyond finger
When no data packet of fixing time is transmitted, that is, it is determined as link exception, and re-establish link.The present invention not consumed flow, to
There is provided reliable and stable communication link online keeping method.The specific implementation of the present invention is can not only to realize in wireless communication
The method that link is kept online can also realize the method that wire communication link is kept online.
The foregoing is merely presently preferred embodiments of the present invention, all equivalent changes done according to scope of the present invention patent with
Modification should all belong to the covering scope of the present invention.
Claims (3)
1. a kind of method realized communication link and kept online, which is characterized in that described method includes following steps:
Step 1, equipment establish link, and equipment is connected to internet, and by link into row data communication;
Whether there is data packet in step 2, online holding monitored link, be, reclocking simultaneously continues online holding and monitors, no, then
Enter step 3;Whether there is data packet in the online holding monitored link, specially:
Step 21, detection link whether there is, and if so, can capture the SOCKET sockets of data simultaneously according to link establishment
It sets a property, the attribute includes:Data type, promiscuous mode;The data type refers to data direction, that is, enters the number of system
According to;
Step 22, the data for receiving SOCKET sockets, if there is data then reset timer;When the data for having respective type are logical
When crossing link and entering system, SOCKET sockets can replicate data and present;
Step 23, no data then detect whether time-out, and data are continued to if being not timed-out;
Whether step 3, the time for not hearing data packet are more than preset time, no, continue online holding and monitor, are then to enter
Step 4;
Step 4 destroys link, while establishing new link.
2. a kind of method realized communication link and kept online according to claim 1, it is characterised in that:It is described default
Time is to be set according to user demand.
3. a kind of method realized communication link and kept online according to claim 1, it is characterised in that:Pass through network
Analysis tool is analyzed, when beyond preset time range, no data communication should then re-establish new link;When in preset time
In range, there is data communication, then do not establish link, reclocking continues online holding and monitors.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410800671.6A CN104519064B (en) | 2014-12-22 | 2014-12-22 | A method of realizing that communication link is kept online |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410800671.6A CN104519064B (en) | 2014-12-22 | 2014-12-22 | A method of realizing that communication link is kept online |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104519064A CN104519064A (en) | 2015-04-15 |
CN104519064B true CN104519064B (en) | 2018-09-25 |
Family
ID=52793786
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410800671.6A Active CN104519064B (en) | 2014-12-22 | 2014-12-22 | A method of realizing that communication link is kept online |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104519064B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110505279B (en) * | 2019-07-24 | 2021-11-23 | 维沃移动通信有限公司 | Method and device for setting time delay |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102480707A (en) * | 2010-11-22 | 2012-05-30 | 中国电信股份有限公司 | Packet domain real-time service on-line maintaining method and terminal |
CN102684949A (en) * | 2012-06-04 | 2012-09-19 | 北京神州泰岳软件股份有限公司 | Method and device for processing heartbeat data packet under persistent connection, and client |
CN103079285A (en) * | 2013-01-14 | 2013-05-01 | 东莞宇龙通信科技有限公司 | Mobile terminal and point-to-point connection retention method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102647314A (en) * | 2012-05-16 | 2012-08-22 | 深圳市乐唯科技开发有限公司 | Client side on-line state judgment method and system |
-
2014
- 2014-12-22 CN CN201410800671.6A patent/CN104519064B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102480707A (en) * | 2010-11-22 | 2012-05-30 | 中国电信股份有限公司 | Packet domain real-time service on-line maintaining method and terminal |
CN102684949A (en) * | 2012-06-04 | 2012-09-19 | 北京神州泰岳软件股份有限公司 | Method and device for processing heartbeat data packet under persistent connection, and client |
CN103079285A (en) * | 2013-01-14 | 2013-05-01 | 东莞宇龙通信科技有限公司 | Mobile terminal and point-to-point connection retention method |
Also Published As
Publication number | Publication date |
---|---|
CN104519064A (en) | 2015-04-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105516080B (en) | The processing method of TCP connection, apparatus and system | |
CN105635248B (en) | A kind of method for releasing and system of TCP connection resource | |
ATE535124T1 (en) | RESTORING CONNECTION VIA ALTERNATIVE ACCESS NETWORKS | |
US9467360B2 (en) | System, device and method for managing network traffic by using monitoring and filtering policies | |
CN103686854B (en) | The method and apparatus for controlling AP | |
CN105119926B (en) | A kind of multichannel duplex signaling method based on Socket connections | |
CN105407008A (en) | Reconnecting method and system for interrupted TCP (Transmission Control Protocol) connection, terminal and server | |
CN107360239A (en) | A kind of client connection status detection method and system | |
EP2739113A1 (en) | Method and device for managing pdn connection | |
CN105099805B (en) | A kind of bidirectional forwarding detection (BFD) method and system | |
CN103825777A (en) | DMZ server switching method and device | |
US20190319923A1 (en) | Network data control method, system and security protection device | |
CN104065508A (en) | Application service health examination method, device and system | |
CN109586959A (en) | A kind of method and device of fault detection | |
US20170317910A1 (en) | Heartbeat period setting method, and terminal | |
CN106961414B (en) | Honeypot-based data processing method, device and system | |
CN104283716B (en) | Data transmission method, equipment and system | |
CN106375152A (en) | Method for processing communication abnormality of Client/Server (C/S) architecture | |
CN104519064B (en) | A method of realizing that communication link is kept online | |
CN103546352A (en) | Remote control method and device based on wireless login | |
CN104580346A (en) | Data transmission method and device | |
JP2016512415A5 (en) | ||
CN104702596B (en) | A kind of Information hiding based on data packet length and the method and system of transmission | |
JP6376609B2 (en) | Access control apparatus and authentication control method | |
CN106487696A (en) | Link failure detection method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20170425 Address after: Siming District of Xiamen City, Fujian province 361000 Luling Road, room 4 No. 10E Applicant after: Xiamen Technology Co., Ltd. Address before: Siming District of Xiamen City, Fujian province 361012 Luling Road, room 4 No. 10E Applicant before: XIAMEN WINER TECHNOLOGY CO., LTD. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |