CN105430047A - Remote restart method and system - Google Patents

Remote restart method and system Download PDF

Info

Publication number
CN105430047A
CN105430047A CN201510717667.8A CN201510717667A CN105430047A CN 105430047 A CN105430047 A CN 105430047A CN 201510717667 A CN201510717667 A CN 201510717667A CN 105430047 A CN105430047 A CN 105430047A
Authority
CN
China
Prior art keywords
message
default message
described default
restarting
restarted
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
CN201510717667.8A
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.)
BEIJING OPZOON TECHNOLOGY Co Ltd
Opzoon Technology Co Ltd
Original Assignee
BEIJING OPZOON TECHNOLOGY Co Ltd
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 BEIJING OPZOON TECHNOLOGY Co Ltd filed Critical BEIJING OPZOON TECHNOLOGY Co Ltd
Priority to CN201510717667.8A priority Critical patent/CN105430047A/en
Publication of CN105430047A publication Critical patent/CN105430047A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)
  • Telephonic Communication Services (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a remote restart method and system, belonging to the communication technical field. The method comprises: receiving a preset message used for restarting a device transmitted by a control device; processing the preset message; and the source port and purpose port in the function preset message being of preset values, and when the data segment in the preset message is a preset string, a call system restarting a function to perform restart. The method effectively solves the problem that when a serial port, SSH or Web can not be accessed, a device requiring restart can not be restarted.

Description

Remote reboot method and system
Technical field
The present invention relates to communication technical field, particularly relate to a kind of remote reboot method and system.
Background technology
The existing network equipment is equipped with watchdog, bypass function usually, monitoring running status, can restart by trigger equipment at system exception or under there is gross mistake situation.But, under some situation equipment also non-triggering system restart, simultaneously can not log in serial ports again, SSH or Web carry out controlling equipment and restart; Or the equipment that can not restart is locked in stranger in machine room and does not allow to enter, equipment is in remote area, technical staff's power-off that cannot be on the scene the very first time carrys out restarting equipment, no matter user or the operation commercial city state that equipment can not be allowed to be in suspension for a long time or cannot to operate in the above cases, at this moment remote reboot equipment will be starved of, with the normal operation of restorer.
Summary of the invention
For defect of the prior art, the invention provides a kind of remote reboot method and system, the problem that restarting equipment carries out restarting when solution cannot log in serial ports, SSH or Web effectively, can not be treated.
First aspect, the invention provides a kind of remote reboot method, described method comprises:
Receive the default message for restarting equipment sent by control appliance;
Message processing is carried out to described default message;
In described default message, source port and destination interface are preset value, and when the data segment in described default message is preset characters string, calling system is restarted function and restarted.
Preferably, described calling system is restarted function and is restarted, and comprises further:
Calling system is restarted function and is restarted, and record triggers the time and reason of restarting.
Preferably, described default message is encrypted message;
Described Message processing is carried out to described default message before, comprising:
Described default message is decrypted.
Preferably, described default message adopts instrument of giving out a contract for a project to generate by described control appliance.
Preferably, described default message is UDP message.
Second aspect, the invention provides a kind of remote reboot system, described system comprises: control appliance and treat restarting equipment;
Described control appliance, for treating that restarting equipment sends for the default message of restarting equipment;
Describedly treat restarting equipment, for receiving the default message for restarting equipment sent by control appliance; Message processing is carried out to described default message; In described default message, source port and destination interface are preset value, and when the data segment in described default message is preset characters string, calling system is restarted function and restarted.
Preferably, described in treat restarting equipment, is further used for calling system and restarts function and restart, and record triggers the time and reason of restarting.
Preferably, described control appliance, also for being encrypted described default message;
Describedly treat restarting equipment, also for being decrypted described default message.
Preferably, described control appliance, also for adopting instrument of giving out a contract for a project to generate described default message.
Preferably, described default message is UDP message.
As shown from the above technical solution, remote reboot method and system of the present invention, by receiving the default message for restarting equipment sent by control appliance; Message processing is carried out to described default message; In described default message, source port and destination interface are preset value, and when the data segment in described default message is preset characters string, calling system is restarted function and restarted.Thus, the problem that restarting equipment carries out restarting can not be treated when solution cannot log in serial ports, SSH or Web effectively.
Accompanying drawing explanation
The schematic flow sheet of the remote reboot method that Fig. 1 provides for one embodiment of the invention;
The schematic flow sheet of the remote reboot method that Fig. 2 provides for another embodiment of the present invention;
The structural representation of the remote reboot system that Fig. 3 provides for one embodiment of the invention;
Fig. 4 arranges design sketch for presetting message.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, clear, complete description is carried out to the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on embodiments of the invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 shows the schematic flow sheet of the remote reboot method that one embodiment of the invention provides, and as shown in Figure 1, the remote reboot method of the present embodiment is as described below.
101, the default message for restarting equipment sent by control appliance is received.
For example, above-mentioned default message can be UDP message, and this UDP message is the message through presetting, and according to circumstances can arrange the message of other protocol type when practical application as default message, the present embodiment does not limit it; Above-mentioned control appliance can be PC or notebook computer.
Should be noted that, control appliance is to treating that restarting equipment sends default message and needs ensure described control appliance and treat that restarting equipment traffic forwarding is normal, namely two above-mentioned equipment are states of network-in-dialing, put just can carry out control appliance to treating that restarting equipment sends the operation presetting message before this.
102, Message processing is carried out to described default message;
103, in described default message, source port and destination interface are preset value, and when the data segment in described default message is preset characters string, calling system is restarted function and restarted.
Actual should in, after receiving above-mentioned default message, whether the protocol type that first can judge default message is preset kind, if the preset kind presetting message is preset kind, then judge whether source port in this default message and destination interface are preset value further, judge whether the data segment preset in message is preset characters string simultaneously, only have and meet source port at the same time and destination interface is preset value, when data segment is preset characters string, ability calling system is restarted function and is restarted equipment.
For example, after receiving default message, whether the protocol type of this message of the side of judgement is UDP; When this default message is UDP message, judge whether its source port and destination interface are preset value further, and whether the data segment of this message is that preset characters string is (if source port and destination interface are self-defining value 1188, data segment is self-defining character string forcesystemrestart), when both satisfy condition simultaneously, calling system restarts function to realize system reboot.
The remote reboot method of the present embodiment, by receiving the default message for restarting equipment sent by control appliance; Message processing is carried out to described default message; In described default message, source port and destination interface are preset value, and when the data segment in described default message is preset characters string, calling system is restarted function and restarted.Thus, the problem that restarting equipment carries out restarting can not be treated when solution cannot log in serial ports, SSH or Web effectively.
In actual applications, Fig. 2 shows the schematic flow sheet of the remote reboot method that one embodiment of the invention provides, and as shown in Figure 2, the remote reboot method of the present embodiment is as described below.
201, control appliance generates and presets message, and is encrypted described default message.
For example, tcpudp.exe instrument can be adopted to carry out the group bag of default message and give out a contract for a project, certainly alternate manner also can be adopted to generate and to preset message, as long as have the function of group bag UDP message, self-defined IP, self-defined port numbers and special data section content, the present embodiment does not limit it.
Should be noted that; can be encrypted this message when generating and presetting message, as the data segment of use encryption, or the form adopting ciphertext to send sends default message; or adopt one group of form presetting message to send, to reach the object of protecting network device security.
202, control appliance presets message to treating that restarting equipment sends.
203, treat that restarting equipment receives described default message, described default message is decrypted, and Message processing is carried out to described default message.
204, judge whether the protocol type presetting message is preset kind, when the protocol type of described default message is preset kind, perform step 205; Otherwise, perform step 207.
205, judge in described default message, whether source port and destination interface are preset value, and whether the data segment in described default message is preset characters string, be preset value at the source port of default message and destination interface, and when to preset the data segment of message be preset characters string, perform step 206, otherwise, perform step 207.
206, calling system restart function restart described in treat restarting equipment, and record triggers time of restarting and reason.
Should be noted that, the reason that record triggering is restarted is the autoboot in order to be different from unit exception class, can inquire according to the time and determine whether that being is that control appliance sends and presets message operation, if there is frequently restarting, then what can judge that malicious operation causes restarts.
207, the described default message of normal forwarding.
Actual should in, when route can reach, can according to treating that the IP address of network interface configuration in restarting equipment is as object IP, control appliance IP is as source IP, the value of self-defined source port and destination interface and data segment character string, as shown in Figure 4, " SrcPort " in Fig. 4 is source port, port for the purpose of " DstPort ", and two-port is preset value 1188; Data segment in Fig. 4 is " forcesystemrestart ", can according to actual conditions, its character string self-defined.
After receiving above-mentioned default message until restarting equipment, its port value and data segment are judged, in described default message, source port and destination interface are preset value, and the data segment in described default message is when being preset characters string, calling system restarts function restarting equipment, and record triggers the time and reason of restarting.Also can when entering the handling process of default message, produce the daily record of time that a record restarts and reason, thus trigger equipment system reboot.
The remote reboot device, method of the present embodiment, as long as treat that restarting equipment existing arbitrary port can route can reach, just by control appliance to treating that restarting equipment sends for the default message of restarting equipment; Treat that restarting equipment carries out Message processing to described default message, in described default message, source port and destination interface are preset value, and when the data segment in described default message is preset characters string, calling system restart function restart described in treat restarting equipment.Thus, the problem that restarting equipment carries out restarting can not be treated when solution cannot log in serial ports, SSH or Web effectively.
Fig. 3 shows the remote reboot system that one embodiment of the invention provides, and as described in Figure 3, the remote reboot system of the present embodiment, comprising: control appliance 31 and treat restarting equipment 32.
Wherein, described control appliance 31, for treating that restarting equipment sends for the default message of restarting equipment;
Describedly treat restarting equipment 32, for receiving the default message for restarting equipment sent by control appliance; Message processing is carried out to described default message; In described default message, source port and destination interface are preset value, and when the data segment in described default message is preset characters string, calling system is restarted function and restarted.
Alternatively, described in treat restarting equipment 32, is further used for calling system and restarts function and restart, and record triggers the time and reason of restarting.
Alternatively, described control appliance 31, also for being encrypted described default message;
Describedly treat restarting equipment 32, also for being decrypted described default message.
Alternatively, described control appliance 31, also for adopting instrument of giving out a contract for a project to generate described default message.
Alternatively, described default message is UDP message.
The remote reboot device systems of the present embodiment, may be used for the technical scheme performing embodiment of the method shown in above-mentioned Fig. 1 or Fig. 2, it realizes principle and technique effect is similar, repeats no more herein.
The remote reboot system of the present embodiment, by receiving the default message for restarting equipment sent by control appliance; Message processing is carried out to described default message; In described default message, source port and destination interface are preset value, and when the data segment in described default message is preset characters string, calling system is restarted function and restarted.Thus, the problem that restarting equipment carries out restarting can not be treated when solution cannot log in serial ports, SSH or Web effectively.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of the claims in the present invention.

Claims (10)

1. a remote reboot method, is characterized in that, described method comprises:
Receive the default message for restarting equipment sent by control appliance;
Message processing is carried out to described default message;
In described default message, source port and destination interface are preset value, and when the data segment in described default message is preset characters string, calling system is restarted function and restarted.
2. method according to claim 1, is characterized in that, described calling system is restarted function and restarted, and comprises further:
Calling system is restarted function and is restarted, and record triggers the time and reason of restarting.
3. method according to claim 1, is characterized in that, described default message is encrypted message;
Described Message processing is carried out to described default message before, comprising:
Described default message is decrypted.
4. method according to claim 3, is characterized in that, described default message adopts instrument of giving out a contract for a project to generate by described control appliance.
5. the method according to any one of Claims 1-4, is characterized in that, described default message is UDP message.
6. a remote reboot system, is characterized in that, described system comprises: control appliance and treat restarting equipment;
Described control appliance, for treating that restarting equipment sends for the default message of restarting equipment;
Describedly treat restarting equipment, for receiving the default message for restarting equipment sent by control appliance; Message processing is carried out to described default message; In described default message, source port and destination interface are preset value, and when the data segment in described default message is preset characters string, calling system is restarted function and restarted.
7. system according to claim 6, is characterized in that, described in treat restarting equipment, is further used for calling system and restarts function and restart, and record triggers the time and reason of restarting.
8. system according to claim 6, is characterized in that, described control appliance, also for being encrypted described default message;
Describedly treat restarting equipment, also for being decrypted described default message.
9. system according to claim 8, is characterized in that, described control appliance, also for adopting instrument of giving out a contract for a project to generate described default message.
10. the system according to any one of claim 6 to 9, is characterized in that, described default message is UDP message.
CN201510717667.8A 2015-10-29 2015-10-29 Remote restart method and system Pending CN105430047A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510717667.8A CN105430047A (en) 2015-10-29 2015-10-29 Remote restart method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510717667.8A CN105430047A (en) 2015-10-29 2015-10-29 Remote restart method and system

Publications (1)

Publication Number Publication Date
CN105430047A true CN105430047A (en) 2016-03-23

Family

ID=55507984

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510717667.8A Pending CN105430047A (en) 2015-10-29 2015-10-29 Remote restart method and system

Country Status (1)

Country Link
CN (1) CN105430047A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106210095A (en) * 2016-07-18 2016-12-07 杭州华三通信技术有限公司 A kind of port processing method and device
CN115562466A (en) * 2022-11-21 2023-01-03 深圳市好盈科技股份有限公司 Unmanned aerial vehicle hardware reset control method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404588A (en) * 2008-11-20 2009-04-08 中国电信股份有限公司 Front end equipment management method, platform and system
CN102083023A (en) * 2009-11-30 2011-06-01 ***通信集团江苏有限公司 Method, system and equipment for restarting remote control equipment
CN103166847A (en) * 2011-12-09 2013-06-19 迈普通信技术股份有限公司 Method and device for ensuring graceful restart

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404588A (en) * 2008-11-20 2009-04-08 中国电信股份有限公司 Front end equipment management method, platform and system
CN102083023A (en) * 2009-11-30 2011-06-01 ***通信集团江苏有限公司 Method, system and equipment for restarting remote control equipment
CN103166847A (en) * 2011-12-09 2013-06-19 迈普通信技术股份有限公司 Method and device for ensuring graceful restart

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106210095A (en) * 2016-07-18 2016-12-07 杭州华三通信技术有限公司 A kind of port processing method and device
CN106210095B (en) * 2016-07-18 2020-01-24 新华三技术有限公司 Port processing method and device
CN115562466A (en) * 2022-11-21 2023-01-03 深圳市好盈科技股份有限公司 Unmanned aerial vehicle hardware reset control method and device and electronic equipment
CN115562466B (en) * 2022-11-21 2023-03-03 深圳市好盈科技股份有限公司 Unmanned aerial vehicle hardware reset control method and device and electronic equipment

Similar Documents

Publication Publication Date Title
EP2382512B1 (en) Communication module with network isolation and communication filter
KR101977731B1 (en) Apparatus and method for detecting anomaly in a controller system
CN104301321B (en) A kind of method and system for realizing distributed network security protection
CN103200123B (en) A kind of switch ports themselves method of controlling security
JP6387195B2 (en) Communication apparatus, system, and method
JP2006339933A (en) Network access control method and system thereof
US9686316B2 (en) Layer-2 security for industrial automation by snooping discovery and configuration messages
KR101290963B1 (en) System and method for separating network based virtual environment
CN104717205A (en) Industrial control firewall control method based on message reconstitution
Januário et al. Security challenges in SCADA systems over Wireless Sensor and Actuator Networks
CN101895552B (en) Security gateway and method thereof for detecting proxy surfing
CN102571488B (en) Failure processing method, device and system for encryption card
CN105430047A (en) Remote restart method and system
JP6407598B2 (en) Relay device, relay method, and relay program
CN105743863A (en) Method and device used for processing message
CN105939220A (en) Remote port mirroring realization method and device
CN108429687B (en) Message forwarding method and device
CN105721458A (en) Industrial Ethernet switching method based on ISG security password technique
GB2586425A (en) System and method for cybersecurity framework among network devices
JP2004328563A (en) Encryption communication apparatus and system
CN105591804A (en) Configuration changing processing method and device
KR101216581B1 (en) Security system using dual os and method thereof
CN101662368A (en) Network data filtering device capable of fighting against Trojan horse programs and corresponding method
WO2017163665A1 (en) Communication processing system, communication processing method, communication processing device, communication management device, and control methods and control programs therefor
CN105407095B (en) Secure communication device and its communication means between heterogeneous networks

Legal Events

Date Code Title Description
C06 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: 20160323

RJ01 Rejection of invention patent application after publication