CN102801561A - Method for managing network equipment - Google Patents

Method for managing network equipment Download PDF

Info

Publication number
CN102801561A
CN102801561A CN2012102822641A CN201210282264A CN102801561A CN 102801561 A CN102801561 A CN 102801561A CN 2012102822641 A CN2012102822641 A CN 2012102822641A CN 201210282264 A CN201210282264 A CN 201210282264A CN 102801561 A CN102801561 A CN 102801561A
Authority
CN
China
Prior art keywords
message
byte
file
network
data
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
CN2012102822641A
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.)
Shenzhen Allwins Technology Corp
Original Assignee
Shenzhen Allwins Technology Corp
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 Shenzhen Allwins Technology Corp filed Critical Shenzhen Allwins Technology Corp
Priority to CN2012102822641A priority Critical patent/CN102801561A/en
Publication of CN102801561A publication Critical patent/CN102801561A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method for managing network equipment. The network equipment receives a management command from a management terminal through a network message, wherein the network message comprises a command type field for managing the network equipment. After the network equipment receives the network message, the network equipment executes an operational command corresponding to the command type field. According to the method for managing network equipment provided by the invention, the network equipment can be managed conveniently.

Description

A kind of method of managing network device
Technical field
The present invention relates to the communications field, particularly a kind of method of managing network device.
Background technology
At present, generally be to come directly to manage to the management of the network equipment through the administration page that serial ports or webpage log on the network equipment.Though serial port function is powerful, connect inconveniently, and most of network equipment is not provided with serial interface, and only reserved the serial ports contact pin, causes serial ports to insert difficulty, increased the difficulty of management and control network devices; Adopt webpage to land in the mode of managing; Because the user oriented relation of webpage design itself; The management and the controlled function of its setting are limited; Can not do very comprehensively management and control, especially in the multiplexing situation of single network interface LAN/WAN, need sign in to the network equipment and could manage and control this moment through wireless.
Summary of the invention
In order to solve the problems referred to above of prior art, be necessary to provide a kind of method of being convenient to managing network device.
The technical scheme that technical solution problem of the present invention provides is:
A kind of method of managing network device; It is characterized in that; The said network equipment is accepted the supervisory instruction from management end through network message; Comprise the order type field that is used for managing network device in the said network message, after the said network equipment receives said network message, carry out the corresponding operational order of said order type field.
The method of the network message that a kind of network equipment receives is characterized in that, comprising: the step of order type field in the inspection network message; If said command type is the file transfer class, then carry out the operation of accepting network message file data; If said command type is the equipment control class, then carry out the operation of corresponding command type.
A kind of method that generates network message, its step comprises:
Step 1: the structure message, if belong to file transfer class message then change step 2, if the equipment control class is then changeed step 3;
Step 2: padding data district and file area, calculation document CRC changes step 3;
Step 3: fill order type field according to order, calculate message CRC, change step 4;
Step 4: send message and wait for network equipment answer message, and the monitoring timeout time is set, change step 5;
Step 5: if timeout expires, then think and do not receive the answer message, change step 7 this moment; Otherwise change step 6;
Step 6: read the answer message, judge whether success of name, if success then change step 8 according to replying command execution results in the message; Otherwise change step 7;
Step 7: regenerate message according to sending order last time, prepare to retransmit message, change step 4;
Step 8: removing message last time and all flag bits, change step 1 to prepare sending message next time.
Compared to prior art; The method of managing network device of the present invention has only been used the packet of Ethernet in two-layer protocol; So can under the situation that only connects network interface, manage and control, the maintenance of reduction, the difficulty of debugging have been improved to device operability greatly to the network equipment; Especially in single network interface WAN, the multiplexing situation of LAN, can manage extremely easily and control network devices.
Description of drawings
Fig. 1 is message structure figure of the present invention.
Fig. 2 is the flow chart that method of the present invention is managed and controlled the network equipment.
Fig. 3 is the flow chart that management control end produces management control message.
Embodiment
Among the present invention, adopt a new network message agreement that the network equipment is controlled.Below in conjunction with accompanying drawing the present invention is described further.
Fig. 1 is the message structure figure that provides of the present invention.
This message comprises an ethernet header and protocol header, comprises that specifically data are with respect to CRC check sign indicating number, bag sequence number, reservation position, the data filler of the side-play amount in the file, data length, current pack in destination address, source address, ethernet type, command type, execution result, file total length, file CRC check sign indicating number, the current pack.Wherein, destination address, source address and ethernet type belong to ethernet header; Data belong to protocol header with respect to CRC check sign indicating number, bag sequence number and the reservation position of the side-play amount in the file, data length, current pack in command type, execution result, file total length, file CRC check sign indicating number, the current pack.With respect to message structure in the past, be provided with an order type field especially, be used for management and control to the network equipment.Wherein:
The the 1st to the 6th byte is destination address;
The the 7th to the 12nd byte is source address;
The the 13rd to the 14th byte is ethernet type, and that this agreement is used is 0x88FF;
The 15th byte is command type, and said command type is divided into file transfer type and file management type;
The 16th byte is execution result, and 0xFF carries out failure, and 0x00 runs succeeded, and puts 0 when sending order;
The the 17th to the 20th byte is the file total length, and being used to has under the situation of file transfer, otherwise puts 0;
The the 21st to the 24th byte is file CRC check sign indicating number, and being used to has under the situation of file transfer, otherwise puts 0;
The the 25th to the 28th byte is that data are used for data recombination with respect to the side-play amount in the file in the current pack, uses greater than 0 o'clock at the bag data length, and being used to has under the situation of file transfer, otherwise puts 0;
The the 29th to the 32nd byte is the length of data in the current pack, uses greater than 0 o'clock at the bag data length, and being used to has under the situation of file transfer, otherwise puts 0;
The the 33rd to the 36th byte is the CRC check sign indicating number of current pack, uses greater than 0 o'clock at the bag data length, and being used to has under the situation of file transfer, otherwise puts 0;
The the 37th to the 40th byte packet sequence number retransmits under the situation of convenient reception packet failure, and being used to has under the situation of file transfer, otherwise puts 0;
The the 41st to the 48th byte keeps the position, is used for protocol extension, puts 0;
The the 49th to the 15000th byte, is used for data and fills the data filler, do not use during free of data.
Fig. 2 is the workflow diagram of network equipment end of the present invention, and the said network equipment can be handled the network message that meets this protocol requirement, realizes the purpose that it is managed and controls.This method may further comprise the steps:
Step 1: listens for network message;
Step 2:, then change step 3 if network message belongs to this protocol type; Otherwise change step 1, continue the listens for network message;
Step 3: create the reception buffering area for message, copy to message content in the buffering area, change step 4;
Step 4: whether inspection message CRC check sign indicating number is correct, if correct, changes step 5; Be the message crc error otherwise the message commands result is set, change step 13 then;
Step 5: the inspection command type, if belong to the file transfer class, then change step 6; Otherwise change step 13;
Step 6: whether inspection receives this document transmission command for the first time, if then change step 7; Otherwise change step 8;
Step 7:, change step 8 for the file reorganization bufcreates;
Step 8: the reorganization of beginning file, according to bag side-play amount in the header and this message data content position in buffering area, bag sequence number location, copy to then on this position, change step 9;
Step 9: whether the inspection reorganization is accomplished, if accomplish, changes step 10; Otherwise change step 14;
Step 10: whether inspection file CRC check sign indicating number is correct, if correct, changes step 11; Otherwise change step 12;
Step 11: file process, handle file according to file command, message commands fruiting area and releasing document buffering area are set after the processing, change step 14;
Step 12: the bag side-play amount that is provided with in the header is 0, and the bag sequence number is 1, and command type is the file repeat requests, changes step 14;
Step 13: the corresponding command process of fill order type, according to command processing result the message commands fruiting area is set, change step 14;
Step 14: the message that step makes up before using sends a reply message, changes step 1.
Fig. 3 is the right flow chart of management control end of the present invention, and this method can ask to meet the network message of this protocol requirement, realizes the purpose of its management and control.This method may further comprise the steps:
Step 1: the structure message, if belong to file transfer class message then change step 2; Otherwise change step 3;
Step 2: calculation document CRC, padding data district and file area (data are with respect to the side-play amount in the file, data length etc. in file total length, file CRC check sign indicating number, the current pack) change step 3;
Step 3: fill order type field according to order, calculate message CRC, change step 4;
Step 4: send message and wait for network equipment answer message, and the monitoring timeout time is set, change step 5;
Step 5: if timeout expires, then think and do not receive the answer message, change step 7 this moment; Otherwise change step 6;
Step 6: read the answer message, judge whether success of command execution, if successfully then change step 8 according to replying command result district in the message; Otherwise change step 7;
Step 7: regenerate message according to sending order last time, prepare to retransmit message, change step 4;
Step 8: removing message last time and all flag bits, change step 1 to prepare sending message next time.
Owing to comprised an order type field in the message format,, needed the Be Controlled network equipment to restart such as manager so manager need specify the administrative message of certain type when filling in message; Then need be to this position 0x01 (this value is predefined as equipment and restarts); The network equipment is understood the value of checking order type field after receiving this message then, and operates accordingly according to this value, for example; If reset command then is to reply after the response message, the beginning reboot operation.Because the shared space of order type field is a byte in the message, so its operable command type can have 256 kinds, can cover the Routine Management and the control command of serial ports fully.Again since this message through ethernet communication, so, only need to connect the media that network interface can form communication without any need for the support of serial ports.
Compared with prior art; The two-layer protocol of management of the present invention and control network devices is owing to only used the packet of Ethernet; So can under the situation that only connects network interface, manage and control, the maintenance of reduction, the difficulty of debugging have been improved to device operability greatly to the network equipment; Especially in single network interface WAN, the multiplexing situation of LAN, can manage extremely easily and control network devices.
Above content is to combine concrete preferred implementation to the further explain that the present invention did, and can not assert that practical implementation of the present invention is confined to these explanations.For the those of ordinary skill of technical field under the present invention, under the prerequisite that does not break away from the present invention's design, can also make some simple deduction or replace, all should be regarded as belonging to protection scope of the present invention.

Claims (6)

1. the method for a managing network device; It is characterized in that; The said network equipment is accepted the supervisory instruction from management end through network message; Comprise the order type field that is used for managing network device in the said network message, after the said network equipment receives said network message, carry out the corresponding operational order of said order type field.
2. the method for managing network device according to claim 1 is characterized in that, the command type in the said order type field is divided into file transfer type and equipment control type.
3. the method for managing network device according to claim 1; It is characterized in that said message further comprises following field: data are with respect to CRC check sign indicating number, bag sequence number, reservation position, the data filler of the side-play amount in the file, data length, current pack in destination address, source address, ethernet type, execution result, file total length, file CRC check sign indicating number, the current pack.
4. the method for managing network device according to claim 3 is characterized in that, the 1st to the 6th byte is destination address; The the 7th to the 12nd byte is source address; The the 13rd to the 14th byte is ethernet type; The 15th byte is command type; The 16th byte is execution result; The the 17th to the 20th byte is the file total length; The the 21st to the 24th byte is file CRC check sign indicating number; The the 25th to the 28th byte be in the current pack data with respect to the side-play amount in the file; The the 29th to the 32nd byte is the length of data in the current pack; The the 33rd to the 36th byte is the CRC check sign indicating number of current pack; The the 37th to the 40th byte packet sequence number; The the 41st to the 48th byte is to keep the position; The the 49th to the 15000th byte is the data fillers.
5. the method for a network equipment reception network message is characterized in that, comprising:
The step of order type field in the inspection network message;
If said command type is the file transfer class, then carry out the operation of accepting network message file data; If said command type is the equipment control class, then carry out the operation of corresponding command type.
6. method that generates network message is characterized in that step comprises:
Step 1: the structure message, if belong to file transfer class message then change step 2, if the equipment control class is then changeed step 3;
Step 2: padding data district and file area, calculation document CRC changes step 3;
Step 3: fill order type field according to order, calculate message CRC, change step 4;
Step 4: send message and wait for network equipment answer message, and the monitoring timeout time is set, change step 5;
Step 5: if timeout expires, then think and do not receive the answer message, change step 7 this moment; Otherwise change step 6;
Step 6: read the answer message, judge whether success of name, if success then change step 8 according to replying command execution results in the message; Otherwise change step 7;
Step 7: regenerate message according to sending order last time, prepare to retransmit message, change step 4;
Step 8: removing message last time and all flag bits, change step 1 to prepare sending message next time.
CN2012102822641A 2012-08-09 2012-08-09 Method for managing network equipment Pending CN102801561A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012102822641A CN102801561A (en) 2012-08-09 2012-08-09 Method for managing network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012102822641A CN102801561A (en) 2012-08-09 2012-08-09 Method for managing network equipment

Publications (1)

Publication Number Publication Date
CN102801561A true CN102801561A (en) 2012-11-28

Family

ID=47200534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012102822641A Pending CN102801561A (en) 2012-08-09 2012-08-09 Method for managing network equipment

Country Status (1)

Country Link
CN (1) CN102801561A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103501237A (en) * 2013-09-03 2014-01-08 小米科技有限责任公司 Device management method, management platform, device and system
CN111934929A (en) * 2020-08-05 2020-11-13 杭州锐格思科技有限公司 Router setting method and router
CN114398322A (en) * 2021-12-07 2022-04-26 中国船舶重工集团公司第七0七研究所 Network file management method suitable for underwater equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060047800A1 (en) * 2004-08-24 2006-03-02 Panduit Corporation Systems and methods for network management
CN1815486A (en) * 2005-01-31 2006-08-09 索尼株式会社 Communication apparatus, communication method, and program
CN101426004A (en) * 2007-10-29 2009-05-06 华为技术有限公司 Three layer conversation access method, system and equipment
CN102300236A (en) * 2010-06-28 2011-12-28 电信科学技术研究院 Method, device and system for remotely maintaining remote radio unit (RRU)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060047800A1 (en) * 2004-08-24 2006-03-02 Panduit Corporation Systems and methods for network management
CN1815486A (en) * 2005-01-31 2006-08-09 索尼株式会社 Communication apparatus, communication method, and program
CN101426004A (en) * 2007-10-29 2009-05-06 华为技术有限公司 Three layer conversation access method, system and equipment
CN102300236A (en) * 2010-06-28 2011-12-28 电信科学技术研究院 Method, device and system for remotely maintaining remote radio unit (RRU)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103501237A (en) * 2013-09-03 2014-01-08 小米科技有限责任公司 Device management method, management platform, device and system
CN103501237B (en) * 2013-09-03 2017-03-15 小米科技有限责任公司 Device management method, management platform, equipment and system
CN111934929A (en) * 2020-08-05 2020-11-13 杭州锐格思科技有限公司 Router setting method and router
CN111934929B (en) * 2020-08-05 2023-03-24 杭州锐格思科技有限公司 Router setting method and router
CN114398322A (en) * 2021-12-07 2022-04-26 中国船舶重工集团公司第七0七研究所 Network file management method suitable for underwater equipment
CN114398322B (en) * 2021-12-07 2023-10-03 中国船舶重工集团公司第七0七研究所 Network file management method suitable for underwater equipment

Similar Documents

Publication Publication Date Title
CN101986648B (en) Negotiation method, device and network device of TCP option
CN111083161A (en) Data transmission processing method and device and Internet of things equipment
CN104951341A (en) Method for remotely upgrading collector
CN103095703B (en) A kind of method, equipment and system realizing network and serial port data interactive
CN103248669A (en) Distributed software upgrade system and method
CN102664958A (en) Transparent computing system
CN104636986A (en) Dispatching remote safety remote control checking method based on service
CN102377505A (en) Serial port-based IPMI (Intelligent Platform Management Interface) package transmission method
CN103647782B (en) Method for conversion between elevator communication protocol and elevator internet-of-things collection and communication protocol
CN102801561A (en) Method for managing network equipment
CN105049162A (en) Public network information high-efficiency transmission method based on Epoll model
CN102571545A (en) Method and device for transmitting information in IPv4 (Internet Protocol vision 4) network
EP2830373A1 (en) Method and apparatus compatible with multi-version for storing wireless resource
CN102811451B (en) Method and device for controlling connection of control and provisioning of wireless access points (Capwap) tunnel
EP3425850B1 (en) Method and device for processing communication path
CN113824594A (en) Message sending method and equipment
JP2014236453A (en) Information processing device, information processing system and control method for information processing system
CN102904764A (en) Data transmission device and transmission method thereof
CN116668977A (en) Power distribution network safety information management and control method and platform
CN104144438A (en) Method and system for centralized configuration and management of nodes in network
WO2019015487A1 (en) Data retransmission method, rlc entity and mac entity
WO2014048129A1 (en) Indicating message sending method, indicating message receiving method, device and system
CN105049477A (en) Method and device for maintaining long connection
CN101420330B (en) Collecting method and device for performance data of mail proxy gateway
EP4030679A1 (en) Sequence number synchronization method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
DD01 Delivery of document by public notice

Addressee: Shenzhen Allwins Technology Corporation

Document name: the First Notification of an Office Action

C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20121128