CN106603378A - Network detection method for instant messaging software - Google Patents
Network detection method for instant messaging software Download PDFInfo
- Publication number
- CN106603378A CN106603378A CN201510669427.5A CN201510669427A CN106603378A CN 106603378 A CN106603378 A CN 106603378A CN 201510669427 A CN201510669427 A CN 201510669427A CN 106603378 A CN106603378 A CN 106603378A
- Authority
- CN
- China
- Prior art keywords
- network
- server
- instant messaging
- failure
- instant communication
- 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
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 38
- 238000000034 method Methods 0.000 claims abstract description 16
- 230000004044 response Effects 0.000 claims abstract description 13
- 230000008569 process Effects 0.000 claims abstract description 7
- 238000004891 communication Methods 0.000 claims description 39
- 230000004888 barrier function Effects 0.000 claims description 3
- 230000006855 networking Effects 0.000 description 6
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Computer And Data Communications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a network detection method for instant messaging software. The method comprises the following steps: 1) a client sends an HTTP request to a control server, if the control server returns an address of an instant messaging server, entering the step 2), and if the control server gives no response, the client carries out DNS analysis locally and sends an outer network detection packet to an outer network server to carry out fault detection and processing, and repeating the step 1); 2) the client is connected to the address of the instant messaging server, if the connection is successful, the client is connected with the instant messaging server through the instant messaging software to carry out instant messaging, and entering the step 3), and if the connection is unsuccessful, the client sends an instant messaging network detection packet to the instant messaging server to carry out fault detection and processing, and repeating the step 2); and 3) in the instant messaging process, the client sends the instant messaging network detection packet in real time to the instant messaging server to carry out fault detection and processing, and repeating the step 3) until finishing instant messaging.
Description
Technical field
The present invention relates to instant messaging technical field, particularly relates to a kind of network detection side of instant communication software
Method.
Background technology
Instant messaging (Instant messaging, abbreviation IM) is had become at present user and is communicated by network
Important means.With the commercial real-time communication demand increasingly accelerated in recent years, there are many IMUs at present
The QQ of letter instrument, such as Tencent, the MSN of Microsoft, also have some enterprise immediate communications for enterprise,
The such as Sametime of RTX, IBM.
Current immediate communication tool, does not all detect the function of network mostly.It is also fairly simple even if having,
The function of detection is weaker.
The content of the invention
In view of this, the present invention provides a kind of network detecting method of instant communication software, in client networking
Before, in networking and after networking, connection can be in terms by terms detected to network, and obtain connection failure
Reason, so as to subsequent treatment.
In order to achieve the above object, technical scheme is comprised the following steps,
The first step:Client to control server sends HTTP request, if control server returns IMU
Inquiry server address, then into second step;
If control server is without response, client carries out dns resolution to the machine and sends to external network server
Outer net network detection bag, if not receiving the response of external network server, for network failure;If receiving outer net clothes
Business device response, then network free barrier, client continue detect the machine agency arrange, by agency to control
Control server sends HTTP request, if control server is not responded to, to act on behalf of failure.
If control server directly returns error number or explanation of error, error number and explanation of error are shown.
To above-mentioned network failure, act on behalf of failure or error number or after the corresponding failure of explanation of error is processed,
Repeat the first step.
Second step:Client connection instant communication server address, if successful connection, network is normal,
Client connects instant communication server by instant communication software carries out instant messaging;Into the 3rd step.
If it fails to connect, client sends instant messaging network detection bag to instant communication server.
If instant communication server does not respond instant messaging network detection bag, for network failure.
If instant communication server responds the instant messaging network detection bag, client detects that the machine agency sets
Put, HTTP request is sent to instant communication server by agency, if instant communication server does not ring
Should, then to act on behalf of failure.
To above-mentioned network failure or act on behalf of after failure processes, repeat second step.
3rd step:During instant messaging, client sends instant messaging to instant communication server in real time
Network detection bag.
If instant communication server does not respond instant messaging network detection bag, for network failure.
If instant communication server responds the instant messaging network detection bag, client detects that the machine agency sets
Put, HTTP request is sent to instant communication server by agency, if instant communication server does not ring
Should, then to act on behalf of failure.
To above-mentioned network failure or act on behalf of after failure processes, repeat the 3rd step, until instant messaging
Complete.
Further, the first step also includes whether the dns resolution service of detection control server domain name is successful,
That the dns resolution of network problem or the machine is problematic if failure, then the external network server for preserving to pre-selection
IP sends network detection bag, and judging network can receive the response of external network server has no problem, but DNS
The problem of parsing.
Further, mistake does not exist including user, and user disables, enterprise disables.
Beneficial effect:
1st, the reason for instant messaging connection failure can quickly being found using this method, if LAN
Internal problem, or the problem of the machine, then can seek system manager and solve computer or network
Failure.If account number or the problem relevant with product, then when exchanging with the contact staff of instant messaging product,
Convenient to illustrate failure cause, such technical support personnel can targetedly solve problem.
2nd, this method can before networking, networking in and networking after carry out network detection respectively, so as to
When judge network connection state.
Specific embodiment
Embodiment is named, is described the present invention.
A kind of network detecting method of instant communication software is present embodiments provided, is comprised the following steps,
The first step:Client to control server sends HTTP request, if control server returns IMU
Inquiry server address, then into second step.
If control server is without response, client carries out dns resolution to the machine and sends to external network server
Outer net network detection bag, if not receiving the response of external network server, for network failure;If receiving outer net clothes
Business device response, then network free barrier, client continue detect the machine agency arrange, by agency to control
Control server sends HTTP request, if control server is not responded to, to act on behalf of failure.
If control server directly returns error number or explanation of error, error number and explanation of error are shown.
To above-mentioned network failure, act on behalf of failure or error number or after the corresponding failure of explanation of error is processed,
Repeat the first step.
Second step:Client connection instant communication server address, if successful connection, network is normal,
Client connects instant communication server by instant communication software carries out instant messaging;Into the 3rd step.
If it fails to connect, client sends instant messaging network detection bag to instant communication server.
If instant communication server does not respond instant messaging network detection bag, for network failure.
If instant communication server responds the instant messaging network detection bag, client detects that the machine agency sets
Put, HTTP request is sent to instant communication server by agency, if instant communication server does not ring
Should, then to act on behalf of failure.
To above-mentioned network failure or act on behalf of after failure processes, repeat second step.
3rd step:During instant messaging, client sends instant messaging to instant communication server in real time
Network detection bag.
If instant communication server does not respond instant messaging network detection bag, for network failure.
If instant communication server responds the instant messaging network detection bag, client detects that the machine agency sets
Put, HTTP request is sent to instant communication server by agency, if instant communication server does not ring
Should, then to act on behalf of failure.
To above-mentioned network failure or act on behalf of after failure processes, repeat the 3rd step, until instant messaging
Complete.
In the present embodiment, the first step also include the dns resolution service of detection control server domain name whether into
Work(, is that the dns resolution of network problem or the machine is problematic if failure, then the outer net clothes for preserving to pre-selection
Business device IP sends network detection bag, and judging network can receive the response of external network server has no problem, and
It is the problem of dns resolution.
In the present embodiment, above-mentioned mistake does not exist including user, and user disables, enterprise disables.
To sum up, presently preferred embodiments of the present invention is these are only, is not intended to limit the protection model of the present invention
Enclose.All any modification, equivalent substitution and improvements within the spirit and principles in the present invention, made etc.,
Should be included within protection scope of the present invention.
Claims (3)
1. a kind of network detecting method of instant communication software, it is characterised in that:Comprise the following steps,
The first step:Client to control server sends HTTP request, if control server returns IMU
Inquiry server address, then into second step;
If control server is without response, client carries out dns resolution to the machine and sends to external network server
Outer net network detection bag, if not receiving the response of external network server, for network failure;If receiving outer net clothes
Business device response, then network free barrier, client continue detect the machine agency arrange, by agency to control
Control server sends HTTP request, if control server is not responded to, to act on behalf of failure;
If control server directly returns error number or explanation of error, error number and explanation of error are shown;
To above-mentioned network failure, act on behalf of failure or error number or after the corresponding failure of explanation of error is processed,
Repeat the first step;
Second step:Client connection instant communication server address, if successful connection, network is normal,
Client connects instant communication server by instant communication software carries out instant messaging;Into the 3rd step;
If it fails to connect, client sends instant messaging network detection bag to instant communication server;
If instant communication server does not respond instant messaging network detection bag, for network failure;
If instant communication server responds the instant messaging network detection bag, client detects that the machine agency sets
Put, HTTP request is sent to instant communication server by agency, if instant communication server does not ring
Should, then to act on behalf of failure;
To above-mentioned network failure or act on behalf of after failure processes, repeat second step;
3rd step:During instant messaging, client sends instant messaging to instant communication server in real time
Network detection bag;
If instant communication server does not respond instant messaging network detection bag, for network failure;
If instant communication server responds the instant messaging network detection bag, client detects that the machine agency sets
Put, HTTP request is sent to instant communication server by agency, if instant communication server does not ring
Should, then to act on behalf of failure;
To above-mentioned network failure or act on behalf of after failure processes, repeat the 3rd step, until instant messaging
Complete.
2. the network detecting method of a kind of instant communication software according to claim 1, it is characterised in that:
The first step also includes whether the dns resolution service of detection control server domain name is successful, if failure,
Be then network problem or the machine dns resolution it is problematic, then send to external network server IP that pre-selection is preserved
Network detection bag, judging network can receive the response of external network server has no problem, but dns resolution
Problem.
3. the network detecting method of a kind of instant communication software according to claim 1, it is characterised in that:
Described mistake does not exist including user, and user disables, enterprise disables.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510669427.5A CN106603378A (en) | 2015-10-19 | 2015-10-19 | Network detection method for instant messaging software |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510669427.5A CN106603378A (en) | 2015-10-19 | 2015-10-19 | Network detection method for instant messaging software |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106603378A true CN106603378A (en) | 2017-04-26 |
Family
ID=58552450
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510669427.5A Pending CN106603378A (en) | 2015-10-19 | 2015-10-19 | Network detection method for instant messaging software |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106603378A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109600283A (en) * | 2019-01-25 | 2019-04-09 | 北京云中融信网络科技有限公司 | The detection method and system of instant messaging network quality |
| CN111314181A (en) * | 2020-03-20 | 2020-06-19 | 北京无限光场科技有限公司 | Network connectivity diagnosis method, device, terminal and storage medium |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090077227A1 (en) * | 2007-09-13 | 2009-03-19 | Caterpillar Inc. | System and method for monitoring network communications originating in monitored jurisdictions |
| CN101557323A (en) * | 2008-04-11 | 2009-10-14 | 北京亿企通信息技术有限公司 | Method for client to automatically detect network to log in |
| CN101656633A (en) * | 2008-08-21 | 2010-02-24 | 北京亿企通信息技术有限公司 | Method for testing network in instant messaging device |
| CN102891781A (en) * | 2012-10-19 | 2013-01-23 | 深圳中兴网信科技有限公司 | Network sharing detection system and network sharing detection method |
-
2015
- 2015-10-19 CN CN201510669427.5A patent/CN106603378A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090077227A1 (en) * | 2007-09-13 | 2009-03-19 | Caterpillar Inc. | System and method for monitoring network communications originating in monitored jurisdictions |
| CN101557323A (en) * | 2008-04-11 | 2009-10-14 | 北京亿企通信息技术有限公司 | Method for client to automatically detect network to log in |
| CN101656633A (en) * | 2008-08-21 | 2010-02-24 | 北京亿企通信息技术有限公司 | Method for testing network in instant messaging device |
| CN102891781A (en) * | 2012-10-19 | 2013-01-23 | 深圳中兴网信科技有限公司 | Network sharing detection system and network sharing detection method |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109600283A (en) * | 2019-01-25 | 2019-04-09 | 北京云中融信网络科技有限公司 | The detection method and system of instant messaging network quality |
| CN109600283B (en) * | 2019-01-25 | 2020-08-04 | 北京云中融信网络科技有限公司 | Method and system for detecting network quality of instant messaging |
| CN111314181A (en) * | 2020-03-20 | 2020-06-19 | 北京无限光场科技有限公司 | Network connectivity diagnosis method, device, terminal and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101662387B (en) | System for detecting computer accessing situation in network and method thereof | |
| US9578040B2 (en) | Packet receiving method, deep packet inspection device and system | |
| CN103220161B (en) | A kind of detection method of server state and device | |
| CN104125141B (en) | A kind of method for pushing of notification message, server and system | |
| CN100586106C (en) | Message processing method, system and device | |
| CN104811462B (en) | A kind of access gateway reorientation method and access gateway | |
| CN103905579B (en) | Communication method, communication system, platform and related equipment between platform and terminal | |
| CN105897652A (en) | Standard protocol based heterogeneous terminal dynamic access method | |
| CN101150541A (en) | A login method in instant communication tool | |
| CN103634166B (en) | Equipment survival detection method and equipment survival detection device | |
| CN101656633A (en) | Method for testing network in instant messaging device | |
| CN107426208A (en) | A kind of method for monitoring network illegal external connection | |
| CN102170484A (en) | A detection method a detection device of IP address conflict | |
| US8086732B1 (en) | Method and apparatus for rate limiting client requests | |
| CN106713311B (en) | Method and device for reducing DNS hijacking risk | |
| CN110011941B (en) | Message forwarding method and device | |
| CN107707689A (en) | A kind of DHCP message processing method, Dynamic Host Configuration Protocol server and gateway device | |
| CN106603378A (en) | Network detection method for instant messaging software | |
| CN112600733A (en) | Computer health monitoring method | |
| CN106559230A (en) | A kind of fault handling method, apparatus and system | |
| CN115941541A (en) | Method, device, network equipment and readable storage medium for detecting network connection | |
| CN103501298B (en) | A kind of non-interrupting service escalation process ensures the method and apparatus that link does not stop | |
| CN105808418B (en) | Test machine register method, apparatus and system | |
| CN109495602A (en) | A kind of processing method and processing device of network insertion exception | |
| CN106161249B (en) | The processing method and processing device of PPPoE message |
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 | ||
| WD01 | Invention patent application deemed withdrawn after publication | ||
| WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170426 |