Method and device for detecting server status

A detection method and server technology, applied in the network field, can solve problems such as poor detection accuracy, high maintenance cost, and inability to detect whether the service port is available, so as to improve detection accuracy and reduce maintenance cost

Active Publication Date: 2013-07-24
SHENZHEN TENCENT COMP SYST CO LTD
View PDF4 Cites 24 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] It can be seen that if the client wants to detect the status of the target server, it must first enable the ICMP policy for the client on the target server, and the maintenance cost is relatively high.
[0005] In addition, each server often has multiple service ports. When the server is

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for detecting server status
  • Method and device for detecting server status
  • Method and device for detecting server status

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] When the present invention needs to detect the state of the target server, it establishes a TCP connection with the target service port of the target server, and judges the state of the target service port according to the response message returned by the target server. For details, please refer to figure 1 .

[0026] figure 1 It is a flow chart of the detection method of the server state provided by the present invention.

[0027] Such as figure 1 As shown, the method includes:

[0028] Step 101, when it is necessary to detect the state of the target server, the client sends a SYN request of the TCP protocol to the target service port of the target server.

[0029] Step 102, the client receives the response message returned by the target server.

[0030] Step 103, the client judges the status of the target service port according to the response message.

[0031] In this step, the client identifies the type of the response message returned by the target server, and...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and a device for detecting server status. The method for detecting server status comprises the following steps: when the status of a target server needs to be detected, a client side transmits a synchronize (SYN) request of a transmission control protocol (TCP) to a target service port of the target server, receives a response message returned by the target server, and judges the status of the target service port according to the response message. By means of the method and the device for detecting server status, maintenance cost for detecting the server status can be lowered, and detection accuracy can be improved.

Description

technical field [0001] The present invention relates to the field of network technology, in particular to a method and device for detecting the state of a server. Background technique [0002] In Internet services, it is often necessary to detect the server status. Currently, a Ping message of the Internet Control Message Protocol (Internet Control Message Protocol, ICMP) is usually used to detect the server status. [0003] Specifically, the monitored server side enables an ICMP policy for a specific client, and then the client can send a Ping message to the monitored server, so as to detect whether the monitored server is currently available. [0004] It can be seen that, if the client wants to detect the state of the target server, it must first enable the ICMP policy for the client on the target server, and the maintenance cost is relatively high. [0005] In addition, each server often has multiple service ports. When the server is available, only some service ports m...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L12/24H04L29/08H04L29/12H04L1/16
Inventor 刘天斯
Owner SHENZHEN TENCENT COMP SYST CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products