CN102739464B - Client terminal having server monitoring function and method - Google Patents
Client terminal having server monitoring function and method Download PDFInfo
- Publication number
- CN102739464B CN102739464B CN201110089313.5A CN201110089313A CN102739464B CN 102739464 B CN102739464 B CN 102739464B CN 201110089313 A CN201110089313 A CN 201110089313A CN 102739464 B CN102739464 B CN 102739464B
- Authority
- CN
- China
- Prior art keywords
- client
- server
- master server
- request
- supervision
- 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
Abstract
The invention provides a client terminal having a server monitoring function and a method. The method, which is applied to the client terminal, comprises steps that: the client terminal transmits a ping or tftp request to a master server; when the client terminal receives data packets transmitted from the master server at a preset period of time, the client terminal waits for a period of time and stops transmitting the ping or tftp request to the master server during the waiting time; and when the client terminal receives data packets transmitted from the master server during the waiting time, the client terminal continues to wait for the period of time and continues to stop transmitting the ping or tftp request to the master server during the waiting time. The client terminal of the invention reduces times of transmitting the ping or tftp request to the master server. Therefore, a risk of a denial-of-service attack is reduced and burden on the internet and the server is reduced.
Description
Technical field
The present invention relates to a kind of client, particularly a kind of client of tool server monitors function and method.
Background technology
The mode whether existing client monitors server normally works is: client periodically transmits ping or tftp request to server.Client adopts this monitoring mode monitor server can cause following problem: the first, when multiple client transmits ping or tftp Request Packet to same server simultaneously, easily causes blocking type service attack; The second, client periodically transmits ping or tftp Request Packet, can cause the added burden of network; 3rd, server needs periodically to transmit ping or tftp response to client, adds the burden of server.
Summary of the invention
In view of this, the invention provides a kind of client and method of tool server monitors function.
The client of this tool server monitors function transmits the request of supervision to master server, when this client receives the packet of this master server transmission in preset time period, wait for a period of time and stop transmitting the request of supervision to master server within waiting time, when this client receives the packet of this master server transmission within waiting time, continue to wait for this period and within waiting time, continue stopping transmission monitoring that request is to this master server.
This server monitoring method is applied to client, and the method comprises: this client transmits the request of supervision to this master server; When this client receives the packet of this master server transmission in preset time period, wait for a period of time and stop transmitting the request of supervision to this master server within waiting time; And this client when receiving the packet that this master server transmits within waiting time, continue to wait for that this period also continues to stop transmitting the request of supervision to this master server within waiting time.
Client of the present invention decreases and transmits ping or tftp request to the number of times of server, because this reducing the risk of blocking type service attack, and decreases the burden of network and server.
Accompanying drawing explanation
Fig. 1 is the Organization Chart of client-server system in one embodiment of the present invention.
Fig. 2 is the flow chart of server monitoring method in one embodiment of the present invention.
Main element symbol description
Client-server system | 100 |
Client | 10 |
Far-end server | 20 |
Master server | 21 |
Standby server | 22 |
Following embodiment will further illustrate the present invention in conjunction with above-mentioned accompanying drawing.
Embodiment
Please refer to Fig. 1, client-server system 100 comprises client 10 and far-end server 20.In the present embodiment, the present invention for convenience of description, comprises master server 21 with far-end server 20 and standby server 22 citing is described.
Client 10 transmits the request of supervision to master server 21 when entering the Internet.In the present embodiment, the request that monitors is for ping or tftp request.Client 10 judges the packet whether receiving master server 21 transmission in preset time period after transmitting ping or tftp request.When receiving the packet of master server 21 transmission in preset time period, client 10 judges that master server 21 is in normal operating conditions, then wait for a period of time and stop transmitting ping or tftp request to master server 21 within waiting time.When client 10 receives the packet of master server 21 transmission within waiting time, then continue to wait for this period and continue to stop transmission ping or tftp request to master server 21 within waiting time.Such as, setting preset time period is 1 second, and waiting time is 2 seconds.When client 10 received the packet of master server 21 transmission after transmitting ping or tftp request in 1 second, then wait for 2 seconds and stop sending ping or tftp request within the stand-by period of 2 seconds.When client 10 receives the packet of master server 21 transmission within the stand-by period of 2 seconds, continue wait 2 seconds and also continue to stop transmission ping or tftp to ask within the stand-by period of 2 seconds.
When client 10 does not receive the packet of master server 21 transmission in preset time period or within waiting time, the section of sentencing client 10 transmits ping or tftp and asks whether exceed pre-determined number to the number of times of master server 21.If exceed pre-determined number, client 10 transmits ping or tftp request to standby server 22 to monitor standby server 22.If do not exceed pre-determined number, client 10 continues to transmit ping or tftp request to master server 21.
Client 10 of the present invention decreases and transmits ping or tftp request to the number of times of far-end server 20, because this reducing the risk of blocking type service attack, and decreases the burden of network and far-end server 20.
Fig. 2 is the flow chart of server monitoring method in one embodiment of the present invention.
In step S201, client 10 transmits the request of supervision to master server 21.In the present embodiment, the request that monitors is for ping or tftp request.
In step S202, client 10 judges the packet whether receiving master server 21 transmission in this preset time period.If so, perform step S203, otherwise perform step S205.
In step S203, client 10 is waited for this period and is stopped transmitting ping or tftp request to master server 21 within waiting time.
In step S204, client 10 judges the packet whether receiving master server 21 transmission within waiting time.If so, return and perform step S203, otherwise perform step S205.
In step S205, client 10 judges transmitting ping or tftp asks whether exceed pre-determined number to the number of times of master server 21.If not, return and perform step S201, otherwise perform step S206.
In step S206, client 10 transmits ping or tftp request to standby server 22 to monitor standby server 22.
Claims (8)
1. the client of a tool server monitors function, it is characterized in that, this client transmits the request of supervision to master server, when this client receives the packet of this master server transmission in the first preset time period, wait for the second preset time period and stop transmitting the request of supervision to this master server in this second preset time period, this client judges the packet whether receiving the transmission of this master server in this second preset time period, and again wait for this second preset time period when receiving the packet that this master server transmits and continue to stop transmitting the request of supervision to this master server in this second preset time period.
2. the client of tool server monitors function as claimed in claim 1, is characterized in that, this supervision request is ping or tftp request.
3. the client of tool server monitors function as claimed in claim 1, it is characterized in that, this client is not when receiving the packet that this master server transmits, judge that this client transmits supervision and asks whether exceed pre-determined number to the number of times of this master server, this client is when judging that the transmission of this client monitors that the number of times of request exceedes this pre-determined number, and transmission monitors asks to standby server to monitor this standby server.
4. the client of tool server monitors function as claimed in claim 3, is characterized in that, this client, when judging that the number of times of this client transmission supervision request to this master server does not exceed this pre-determined number, continues to transmit supervision and asks to this master server.
5. a server monitoring method, the method is applied to client, it is characterized in that, the method comprises:
This client transmits the request of supervision to master server;
When this client receives the packet of this master server transmission in preset time period, wait for that one second preset time period also stops transmitting supervision and asks to this master server in this second preset time period;
This client judges the packet whether receiving the transmission of this master server in this second preset time period; And
Again wait for this second preset time period when receiving the packet that this master server transmits and continue to stop transmitting the request of supervision to this master server in this second preset time period.
6. server monitoring method as claimed in claim 5, is characterized in that, this supervision request is ping or tftp request.
7. server monitoring method as claimed in claim 5, it is characterized in that, the method also comprises:
This client, when not receiving the packet that this master server transmits, judges that this client transmits supervision and asks whether exceed pre-determined number to the number of times of this master server; And
This client is when judging that the transmission of this client monitors that the number of times of request exceedes pre-determined number, and transmission monitors asks to standby server to monitor this standby server.
8. server monitoring method as claimed in claim 7, it is characterized in that, the method also comprises:
This client, when judging that the number of times of this client transmission supervision request to this master server does not exceed this pre-determined number, continues to transmit supervision and asks to this master server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110089313.5A CN102739464B (en) | 2011-04-11 | 2011-04-11 | Client terminal having server monitoring function and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110089313.5A CN102739464B (en) | 2011-04-11 | 2011-04-11 | Client terminal having server monitoring function and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102739464A CN102739464A (en) | 2012-10-17 |
CN102739464B true CN102739464B (en) | 2015-04-01 |
Family
ID=46994294
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110089313.5A Active CN102739464B (en) | 2011-04-11 | 2011-04-11 | Client terminal having server monitoring function and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102739464B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102984004A (en) * | 2012-12-03 | 2013-03-20 | 珠海金山网络游戏科技有限公司 | Server side monitoring method and monitoring system |
US10492071B1 (en) | 2018-10-31 | 2019-11-26 | Hewlett Packard Enterprise Development Lp | Determining client device authenticity |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1860764A (en) * | 2003-09-30 | 2006-11-08 | 西门子公司 | Verification of the availability of a server |
CN101299689A (en) * | 2008-06-19 | 2008-11-05 | 北京立通无限科技有限公司 | On-line detection method as well as mail server |
CN101383734A (en) * | 2008-10-20 | 2009-03-11 | 华为技术有限公司 | State detecting method, system and apparatus |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100806492B1 (en) * | 2006-11-13 | 2008-02-21 | 삼성에스디에스 주식회사 | Method for preventing denial of service attacks using transmission control protocol state transition |
-
2011
- 2011-04-11 CN CN201110089313.5A patent/CN102739464B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1860764A (en) * | 2003-09-30 | 2006-11-08 | 西门子公司 | Verification of the availability of a server |
CN101299689A (en) * | 2008-06-19 | 2008-11-05 | 北京立通无限科技有限公司 | On-line detection method as well as mail server |
CN101383734A (en) * | 2008-10-20 | 2009-03-11 | 华为技术有限公司 | State detecting method, system and apparatus |
Non-Patent Citations (1)
Title |
---|
《噪音环境下的FF Fieldbus 通讯性能研究》;王智;《信息与控制》;20000229;第29卷(第1期);14-20 * |
Also Published As
Publication number | Publication date |
---|---|
CN102739464A (en) | 2012-10-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8665700B2 (en) | Fault detection and mitigation for in-vehicle LAN network management | |
KR101593168B1 (en) | Physical one direction communication device and method thereof | |
JP6648754B2 (en) | Communication device, communication method, and program | |
CN104782082A (en) | New approach for controller area network bus off handling | |
CN110908872B (en) | Method and system for detecting server state | |
WO2012064856A3 (en) | Methods for reducing latency in network connections and systems thereof | |
CN106302032B (en) | A kind of point-to-multipoint poll means of communication | |
CN103139818A (en) | Method, system, area of effect (AOE), always on line (AOG) and terminal of maintaining long connection in acquisition of signal (AOS) | |
CN102739464B (en) | Client terminal having server monitoring function and method | |
WO2010132469A3 (en) | System and method for selective disconnection of electrical service to end customers | |
CN103491512A (en) | Implementation method and device for information pushing | |
CN103312558A (en) | Network connection availability monitoring method and system in computer client server system | |
KR20100020253A (en) | Monitoring apparatus for message transmission in network for a vehicle | |
CN103684897A (en) | Method, system and device for detecting network connectivity in client | |
CN103746842A (en) | Method and system for detecting fault restarting of line card | |
JP5740105B2 (en) | Application monitoring method for communication system | |
US20160094683A1 (en) | Channel connection management method and apparatus | |
CN114615337B (en) | Equipment scheduling method, system, server and storage medium | |
JP5790924B2 (en) | Relay device | |
CN101159684A (en) | User stationed equipment session management method and system | |
KR100716170B1 (en) | Apparatus and method for retrying function | |
CN106572184B (en) | A kind of serial equipment means of communication and system | |
KR20120128031A (en) | System and method for providing push service | |
CN110581861A (en) | outdoor networking method, acquisition server, acquisition system and storage medium | |
KR102342665B1 (en) | Method for requesting service of power system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20180226 Address after: Shanghai City, Songjiang Export Processing Zone South Road No. 1925 Patentee after: Ambit Microsystems (Shanghai) Co., Ltd. Address before: 201613 Shanghai City, Songjiang District Shanghai city south of Songjiang Export Processing Zone Road No. 1925 Co-patentee before: Hon Hai Precision Industry Co., Ltd. Patentee before: Ambit Microsystems (Shanghai) Co., Ltd. |