CN107070719A - A kind of device management method and device - Google Patents

A kind of device management method and device Download PDF

Info

Publication number
CN107070719A
CN107070719A CN201710271574.6A CN201710271574A CN107070719A CN 107070719 A CN107070719 A CN 107070719A CN 201710271574 A CN201710271574 A CN 201710271574A CN 107070719 A CN107070719 A CN 107070719A
Authority
CN
China
Prior art keywords
management
link
managed device
specified type
address
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.)
Granted
Application number
CN201710271574.6A
Other languages
Chinese (zh)
Other versions
CN107070719B (en
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.)
New H3C Information Technologies Co Ltd
Original Assignee
Unis Huashan Information Technologies 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 Unis Huashan Information Technologies Co Ltd filed Critical Unis Huashan Information Technologies Co Ltd
Priority to CN201710271574.6A priority Critical patent/CN107070719B/en
Publication of CN107070719A publication Critical patent/CN107070719A/en
Application granted granted Critical
Publication of CN107070719B publication Critical patent/CN107070719B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0853Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information

Abstract

The application provides a kind of device management method and device, and this method includes:Obtain the link-local address of managed device, outgoing interface corresponding with the managed device in management equipment;Specified type message for asking management information is generated according to the link-local address;The specified type message is sent by the outgoing interface;The response message for the specified type message that the managed device is returned is received, and parses from the response message management information of the managed device;The managed device is managed according to the management information.By the technical scheme of the application, it is possible to prevente effectively from the bandwidth cost that broadcast message is brought, saves bandwidth resources, can be accurately collected the management information of each managed device.

Description

A kind of device management method and device
Technical field
The application is related to technical field of network management, more particularly to a kind of device management method and device.
Background technology
In traditional cloud computing platform, computing resource, storage resource, Internet resources etc. are done things in his own way, respectively using difference Management platform be managed, so as to cause complex management.Based on this, it is proposed that UIS (Unified Infrastructure System, unified architecture system) unified management matrix, UIS unified managements matrix can by computing resource, storage resource, Internet resources etc. are integrated, and all resources are managed collectively.
UIS unified management matrixes can provide graphical user interface and the mode of operation of simplification so that the connection of network With management more intuitively with clearly.UIS is managed collectively matrix and is carrying out unified pipe to computing resource, storage resource, Internet resources During reason, the network topology between equipment can be obtained, and the network topology is shown, so that user opens up according to the network Flutter, the annexation between equipment is understood, so as to facilitate user management.
The content of the invention
The application provides a kind of device management method, and applied to management equipment, methods described includes:
Obtain the link-local address of managed device, outgoing interface corresponding with the managed device in management equipment;
Specified type message for asking management information is generated according to the link-local address;
The specified type message is sent by the outgoing interface;
Receive the response message for the specified type message that the managed device is returned, and from the response message In parse the management information of the managed device;
The managed device is managed according to the management information.
The application provides a kind of device management method, and applied to managed device, methods described includes:
The specified type message for being used to ask management information that management equipment is sent is received, the specified type message is institute State what management equipment was generated according to the link-local address of the managed device;
Generation carries the response message for the specified type message of the management information of the managed device;
The response message is sent to the management equipment, so that the management equipment is parsed from the response message Management information, and the managed device is managed according to the management information.
The application provides a kind of equipment management device, and applied to management equipment, described device includes:
Acquisition module, for obtain the link-local address of managed device, in management equipment it is corresponding with the managed device Outgoing interface;
Generation module, for generating the specified type message for asking management information according to the link-local address;
Sending module, for sending the specified type message by the outgoing interface;
Receiving module, for receiving the response message for the specified type message that the managed device is returned, and The management information of the managed device is parsed from the response message;
Management module, for being managed according to the management information to the managed device.
The application provides a kind of equipment management device, and applied to managed device, described device includes:
Receiving module, the specified type message for being used to ask management information for receiving management equipment transmission, the finger It is that the management equipment is generated according to the link-local address of the managed device to determine kind of message;
Generation module, for generating the response message for the specified type message;Wherein, the response message is carried The management information of the managed device;
Sending module, for sending the response message to the management equipment, so that management equipment disappears from the response Management information is parsed in breath, and the managed device is managed according to the management information.
Based on above-mentioned technical proposal, in the embodiment of the present application, management equipment can the link-local based on managed device Location sends specified type message to managed device, and the specified type message is unicast messages, rather than broadcast message, so that effectively Avoid broadcasting the message the bandwidth cost brought, saves bandwidth resources.Moreover, management equipment can easily collect managed device Management information, and managed device is managed according to management information, the management letter of each managed device can be accurately collected Breath, collection mode is easy and effective.
Brief description of the drawings
, below will be to the application in order to clearly illustrate the embodiment of the present application or technical scheme of the prior art The accompanying drawing used required in embodiment or description of the prior art is briefly described, it should be apparent that, in describing below Accompanying drawing is only some embodiments described in the application, for those of ordinary skill in the art, can also be according to this Shen Please these accompanying drawings of embodiment obtain other accompanying drawings.
Fig. 1 is the application scenarios schematic diagram in a kind of embodiment of the application;
Fig. 2 is the flow chart of the device management method in a kind of embodiment of the application;
Fig. 3 A and Fig. 3 B are the form schematic diagrams of the specified type message in a kind of embodiment of the application;
Fig. 4 is the flow chart of the device management method in the application another embodiment;
Fig. 5 is the structure chart of the equipment management device in a kind of embodiment of the application;
Fig. 6 is the hardware structure diagram of the management equipment in a kind of embodiment of the application;
Fig. 7 is the structure chart of the equipment management device in a kind of embodiment of the application;
Fig. 8 is the hardware structure diagram of the managed device in a kind of embodiment of the application.
Embodiment
In purpose of the term used in this application merely for the sake of description specific embodiment, and unrestricted the application.This Shen Please " one kind ", " described " and "the" with the singulative used in claims are also intended to including most forms, unless Context clearly shows that other implications.It is also understood that term "and/or" used herein refers to comprising one or more Associated any or all of project listed may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, not departing from In the case of the application scope, the first information can also be referred to as the second information, similarly, and the second information can also be referred to as One information.Depending on linguistic context, in addition, used word " if " can be construed to " ... when " or " when ... " Or " in response to determining ".
In actual network environment, often different vendor and different types of equipment are linked together, and are Easily these equipment are effectively managed, UIS unified management matrixes can use UTP (UISM (Unified Infrastructure System Manager, unified architecture system management) Transport Protocol, i.e. UISM Host-host protocol), and UTP realizes the discovery and management of equipment usually using broadcast message.Moreover, UIS unified management matrixes exist When sending broadcast message, it can bring than larger bandwidth cost.
For above-mentioned discovery, the embodiment of the present application proposes a kind of device management method, and this method can apply to management and set Standby (such as UIS is managed collectively matrix), and management equipment can be managed to polytype equipment, describe for convenience, will Polytype equipment is referred to as managed device, and managed device can include but is not limited to one of following or any combination:Road By device, interchanger, firewall box, load-balancing device, server (such as rack server or the blade clothes in cabinet Be engaged in device etc.), virtual switch etc..
It is shown in Figure 1, it is the application scenarios schematic diagram of the embodiment of the present application, management equipment, managed device 1, is set by pipe Standby 2, managed device 3 and managed device 4 are located in same subnet.It is shown in Figure 2 under above-mentioned application scenarios, set for this The flow chart of standby management method, this method can apply to management equipment.
Step 201, obtain the link-local address (i.e. link-local addresses) of managed device, in management equipment with the quilt The corresponding outgoing interface of tube apparatus.Specifically, management equipment can select the local of managed device from link-local address table Outgoing interface corresponding with the managed device on link address and management equipment.
Before step 201, the generating process of link-local address table can also be included, and for link-local address table Generating process, can include but is not limited to:The link-local address of managed device, management is obtained out from neighbor information table to set Standby upper outgoing interface corresponding with the managed device, and the link-local address obtained out is recorded in link-local address table with obtaining The corresponding relation of the outgoing interface of taking-up.
Wherein, the neighbor information table can be used for this ground chain that record is located at the managed device of same subnet with management equipment Outgoing interface corresponding with the managed device on road address and management equipment.
The maintenance process to above-mentioned neighbor information table and link-local address table is described in detail below.
Situation one, the maintenance process of neighbor information table.
As shown in figure 1, management equipment, managed device 1, managed device 2, managed device 3 and managed device 4 are positioned at same In subnet, these equipment run IPv6 Neighbor Discovery Protocol (Neighbor Discovery protocol, NDP).It is based on Neighbor Discovery Protocol, each equipment can be found that mutual presence, determines mutual link-local address, and in neighbor information table Record the corresponding relation of link-local address and outgoing interface.
For example, managed device 1 sends the IPv6 control information messages for carrying link-local address 1, management with broadcast mode Equipment can record link-local address 1 after the IPv6 control information messages are received by interface 1 in neighbor information table With the corresponding relation of interface 1.Similarly, management equipment can record the link-local address 3 of managed device 3 in neighbor information table The link-local address 2 of corresponding relation, managed device 2 with interface 1 and the corresponding relation of interface 2, this ground chain of managed device 4 Road address 4 and the corresponding relation of interface 5, finally, the example for the neighbor information table that management equipment is safeguarded can be as shown in table 1.When So, the neighbor information table can also include other contents, and the maintenance process to this neighbor information table is repeated no more.
Table 1
Link-local address Outgoing interface
Link-local address 1 Interface 1
Link-local address 2 Interface 2
Link-local address 3 Interface 1
Link-local address 4 Interface 2
The maintenance process of situation two, link-local address table (link-local address tables).
In one example, management equipment can create and safeguard a link-local address table, the link-local address Table is used to record link-local address and outgoing interface (outgoing interface corresponding with the link-local address i.e. in management equipment) Corresponding relation.Specifically, management equipment can obtain out link-local address from neighbor information table, (i.e. managed device is local Link address) and its corresponding outgoing interface, it is possible to the link-local address obtained out is recorded in link-local address table With the corresponding relation of the outgoing interface obtained out.
In the maintenance process of link-local address table, management equipment need not be interacted with managed device, can directly from Link-local address and its corresponding outgoing interface are obtained out in neighbor information table.In practical application, management equipment can be from neighbours All link-local address and its corresponding outgoing interface are obtained out in information table, can also from neighbor information table fetching portion sheet Ground link address and its corresponding outgoing interface, it is without limitation.
In one example, each equipment of operation Neighbor Discovery Protocol can start NDP timers, the NDP timers Time-out time is M seconds (such as 10 seconds), and based on this NDP timer, each device periodically sends IPv6 control information messages, and manages Equipment periodically (such as every 10 seconds) can receive IPv6 control information messages, and update neighbor information table.In addition, management is set Standby to start chain timer for link-local address table, the time-out time of the chain timer is N seconds (such as 1 second), base In this chain timer, management equipment can periodically obtain out link-local address and its corresponding from neighbor information table Outgoing interface, and the outgoing interface gone out according to the link-local address obtained out and acquisition updates link-local address table.
Wherein, the time-out time M of NDP timers and the time-out time N of chain timer can rule of thumb be matched somebody with somebody Put, it is without limitation.In configuration process, time-out time N can be less than time-out time M, and such as time-out time N is time-out time M 1/10th.When being changed due to time-out time N less than time-out time M, therefore neighbor information table, it will can change in time Content update is to link-local address table, so as to improve the renewal speed of link-local address table, it is ensured that link-local address table Content have it is ageing.
When being located at the managed device increase of same subnet with management equipment, in NDP timer expiries, management equipment Neighbor information table can be updated, the neighbor information table after renewal includes the link-local address of the managed device newly increased;In chain During the timer expiry of road, management equipment can update link-local address table according to neighbor information table, because time-out time N is far small In time-out time M, so that the link-local address table that upgrades in time, it is ensured that link-local address table it is ageing.Set when with management When the standby managed device positioned at same subnet is reduced, in NDP timer expiries, management equipment can update neighbor information Table, the neighbor information table after renewal does not include the link-local address of the managed device left;When chain timer is overtime, Management equipment can update link-local address table according to neighbor information table, because time-out time N is much smaller than time-out time M, from And the link-local address table that upgrades in time, it is ensured that link-local address table it is ageing.
Step 202, the specified type message for asking management information is generated according to link-local address.
In one example, link-local address and its corresponding outgoing interface are being selected from link-local address table Afterwards, it is possible to which the specified type message for asking management information is generated according to link-local address.Specifically, it may be determined that this The corresponding MAC of ground link address (Media Access Control, medium access control) address, and the MAC Address is added To the purpose MAC fields of specified type message, and the link-local address is added to the purpose IP fields of specified type message; Or, the corresponding MAC Address of link-local address is determined, and the MAC Address is added to the purpose MAC words of specified type message Section.
If for example, the specified type message is IPv6 forms, with can determining the corresponding MAC of the link-local address Location, and the MAC Address is added to the purpose MAC fields of the specified type message, and the link-local address is added to this The purpose IPv6 fields of specified type message.Or, if the specified type message is not IPv6 forms, it can determine that this is local The corresponding MAC Address of link address, and the MAC Address is added to the purpose MAC fields of specified type message.
In one example, the specified type message can include but is not limited to:Based on the message of link layer management agreement, Such as unify the message of the message, i.e. UISM types of architecture system management type, such as UTP message.Moreover, specified type message IPv6 forms can be used, IPv6 forms can not also be used, the specified type message to IPv6 forms and are not used below The specified type message of IPv6 forms is illustrated.
Situation one, as shown in Figure 3A, is the schematic diagram for the specified type message for not using IPv6 forms.
In one example, following field can be included but is not limited in the specified type message:Purpose MAC fields, Source MAC fields, message type field, data content fields, FCS (Frame Check Sequence, frame check sequence) field. Purpose MAC fields are the corresponding MAC Address of link-local address, rather than broadcast MAC address;Source MAC fields are management The MAC Address of equipment;Message type field is default value (such as 0xAAB0), to represent that current message is to specify kind of message; The FCS fields are verification data, and for being verified to specified type message, specific verification mode is not limited.
In addition, data content fields can include Head (head) TLV, one or more than one optional successively (optional) TLV and padding (supplement) TLV.It is (long including Type (type) field, Length in each TLV Degree) field and Value (value) field, the length of the type field is 1 byte, and the length of Length fields is 2 bytes, The length of Value fields is determined by Length.Moreover, optional TLV content can be configured according to actual needs, Optional TLV are illustrated in subsequent process.Moreover, when the total length of specified type message is less than default value (such as 64 Individual byte) when, padding TLV can be added, so that the total length of specified type message is not less than default value;When specified class , can be without padding TLV when the total length of type message is not less than default value.
Further, above-mentioned Head TLV can also include but is not limited to following field:Magic (type) field, Module (module) field, OpCode (command code) field, FeedBack (feedback) fields and Reserve (reservation) field. The value of Magic fields is default value (such as 0xFF02CAFE), to represent that current message is to specify kind of message, for example, only Have and work as message type field for default value 0xAAB0, and Magic fields are default value 0xFF02CAFE message, are just recognized For be specify kind of message.The span of Module fields is 0x0000-FFFF, for indicating belonging to specified type message Module.The span of OpCode fields is 0x0000-FFFF, the command code for indicating specified type message.FeedBack Field is backfill field, it is desirable to which recipient returns to sender by the value of FeedBack fields is intact.Reserve fields Value be 0, it is reserved field, leaves subsequent expansion for and uses.
Situation two, as shown in Figure 3 B, for using the schematic diagram of the specified type message of IPv6 forms.
In one example, following field can be included but is not limited in the specified type message:Purpose MAC fields, Source MAC fields, message type field, IPv6 fields, option field, data content fields, FCS fields.Purpose MAC words Section is the corresponding MAC Address of link-local address, rather than broadcast MAC address;Source MAC fields for management equipment MAC Location;The message type field is default first numerical value (such as 0x86DD), to represent that current message carries IPv6 fields;This is optional Item field is default second value (such as 0xAAB0), to represent that current message is to specify kind of message;The FCS fields are check number According to for being verified to specified type message, specific verification mode is not limited.
In addition, the IPv6 field can include but is not limited to:Version field, discharge pattern field, flow label field, source IPv6 fields, purpose IPv6 fields etc., are illustrated, for other fields not to source IP v6 fields and purpose IPv6 fields below It is limited.Wherein, source IP v6 fields are the link-local address of management equipment, and purpose IPv6 fields are the local of managed device Link address (is chosen) in step 101.
In addition, data content fields can include successively Head TLV, one or more than one optionalTLV, padding TLV.Each TLV includes the type field, Length fields and Value fields, and the length of the type field is 1 word Section, the length of Length fields is 2 bytes, and the length of Value fields is determined by Length.Optional TLV content can To be configured according to actual needs, optional TLV are illustrated in subsequent process.When the overall length of specified type message When degree is less than default value (such as 64 bytes), padding TLV can be added, so that the total length of specified type message is not small In default value;, can be without padding TLV when the total length of specified type message is not less than default value.It is above-mentioned Head TLV can also include but is not limited to:Magic fields, Module fields, OpCode fields, FeedBack fields and Reserve fields.The value of Magic fields is default value (such as 0xFF02CAFE), to represent that current message is specified type Message, for example, it is default value 0xAAB0 only to work as option field, and Magic fields are default value 0xFF02CAFE's Message, is considered as just specified type message.The span of Module fields is 0x0000-FFFF, for indicating to specify class Module belonging to type message.The span of OpCode fields is 0x0000-FFFF, the operation for indicating specified type message Code.FeedBack fields are backfill field, it is desirable to which recipient is returned to sender by the value of FeedBack fields is intact. The value of Reserve fields is 0, and it is reserved field, leaves subsequent expansion for.
For above-mentioned situation one and situation two, purpose MAC fields are the corresponding MAC Address of link-local address, for " really Determine the corresponding MAC Address of link-local address " process, then:In actual applications, after equipment enables IPv6, the equipment Each interface can automatically generate a link-local address, and latter 64 of the link-local address are interface identifiers, and this connects Mouth identifier is generated based on the MAC Address of 48, and therefore, management equipment can be solved first after link-local address is obtained Latter 64 of link-local address, i.e. interface identifier are separated out, then, the interface identifier of latter 64 48 are converted to MAC Address, i.e. and this 48 corresponding MAC Address of MAC Address link-local address.
For example, a strategy example of the interface identifier for generating 64 using the MAC Address of 48 can be:By 16 System number 0xFF-FE is inserted between the third and fourth byte of MAC Address, and (MAC Address starts for position to " global/local " Second lowest order of byte) negate, if 1, then 0 is set to, if it is 0,1 is set to.For example, for MAC Address 00-60-08-52-F9-D8,0x08 (the 3rd byte) and 0x52 (the 4th words are inserted by hexadecimal number 0xFF-FE Section) between, form 64 bit address 00-60-08-FF-FE-52-F9-D8;Then, to " global/local " position (i.e. 0x00 (lead-ins Section) second lowest order) negate, be 1 because 0,x00 second lowest order is 0, therefore after negating, i.e., by first character section 0x00 becomes 0x02, to sum up, and the interface identifier corresponding to MAC Address 00-60-08-52-F9-D8 is 02-60-08-FF-FE- 52-F9-D8.It is right based on above-mentioned tactful inverse operation, it is possible to which the interface identifier of 64 is converted to the MAC Address of 48 This transfer process is no longer repeated in detail.
For above-mentioned situation one and situation two, for the optional TLV in data content fields, the optional TLV can include but is not limited to following types of TLV:IP TLV, the IP TLV are for carrying the management address of management equipment (such as Management ip address) so that whether the managed device for receiving specified type message determines the specified type message according to management address Legal, subsequent process introduces the determination process of legitimacy.
Wherein, for management equipment, each interface of the management equipment has link-local address (i.e. IPv6 Location), and it is the link-local address of management equipment that the source IP v6 fields of IPv6, which are carried, such as passes through interface 1 and sends specified class During type message, what source IP v6 fields were carried is the link-local address of interface 1.In contrast to this, management equipment also has pipe IP address is managed, for this management ip address is for management equipment, rather than for the interface of management equipment, this management The function of IP address can be:Managed device identifies that specified type message comes from management and set based on this management ip address It is standby.Specifically, because management equipment includes many interfaces, if being specified based on the link-local address identification that source IP v6 fields are carried Whether kind of message comes from management equipment, then needs the link-local of each interface of configuration management equipment on managed device Address, the workload of configuration is very big.Therefore in the embodiment of the present application, can on managed device configuration management equipment management IP Address, so only needs to configure a management ip address on managed device, and managed device just can be based on this with managing IP Identify that specified type message comes from management equipment in location.
If moreover, the management ip address (being carried on data content fields) that specified type message is carried on managed device with matching somebody with somebody The management ip address for the management equipment put matches (as the two is identical), then managed device can determine that the specified type message is closed Method;Otherwise, managed device can determine that the specified type message is illegal.
Step 203, specified type message is sent by the outgoing interface obtained out.
In one example, link-local address and outgoing interface are being selected from link-local address table, and generation refers to Determine after kind of message, it is possible to which the specified type message is sent by the outgoing interface.
The target MAC (Media Access Control) address for being additionally, since specified type message is the corresponding MAC Address of link-local address, rather than Broadcast MAC address, therefore the specified type message is that mode of unicast is sent.
Step 204, the response message for the specified type message that managed device is returned is received, and from the response message In parse the management information of managed device.The management information can include but is not limited to one below or any combination:Quilt Management address, device type, the equipment Serial Number of tube apparatus.
In one example, managed device can be generated and taken after the specified type message of management equipment transmission is received The response message of management information with the managed device, and send the response message to management equipment.
For example, the OpCode fields of the specified type message can be set to default mark (such as 01) by management equipment, with Represent that the specified type message is used to ask management information.Managed device is after specified type message is received, if parsing finger It is default mark to determine the OpCode fields of kind of message, so that it may obtain the management information of managed device, and generation carries management information Response message, and to management equipment send response message.
In one example, the specified type message can also include the management address of management equipment (such as management IP Location), and managed device is after specified type message is received, if the management address that specified type message is carried (is carried on data Content field) match (as the two is identical) with the management address of local preset management equipment, then can determine specified type Message is legal;Otherwise determine that specified type message is illegal.
In one example, the form of response message is similar with the form of specified type message, if for example, specified type disappears Breath does not use IPv6 forms, then response message does not use IPv6 forms, if specified type message uses IPv6 forms, response disappears Breath uses IPv6 forms.Specified type message and the difference of response message are:The optional of data content fields TLV is different, for example, the optional TLV of specified type message include IP TLV, the IP TLV are used to carry management equipment Management address.And the optional TLV of the response message can include:IP TLV、Device Type TLV、Device SN TLV, the IP TLV are used for the management address (such as management ip address) for carrying managed device, and Device Type TLV are used to carry The device type of managed device, Device SN TLV are used for the equipment Serial Number for carrying managed device.
In the response message, purpose MAC fields are the MAC Address of management equipment, and source MAC fields are managed device MAC Address, purpose IPv6 fields are the link-local address of management equipment, source IP v6 fields for managed device link-local Location.Moreover, the link-local address of managed device and the management address of managed device and differing, the link-local of managed device Address is the interface for the managed device, and for the management address of managed device is for managed device, rather than For the interface of managed device.
The function of the management address of this managed device can be:Management equipment identifies response based on this management address Message comes from managed device, and managed device is managed based on this management address.
Step 205, the managed device is managed according to the management information of managed device.
Believe for example, management equipment can be managed according to the management address of managed device, device type, equipment Serial Number etc. Breath, realizes the management process to the managed device, this management process is not limited.
Based on above-mentioned technical proposal, in the embodiment of the present application, management equipment can the link-local based on managed device Location sends specified type message to managed device, and the specified type message is unicast messages, rather than broadcast message, so as to The effective bandwidth cost brought that avoids broadcasting the message, saves bandwidth resources.Moreover, management equipment can be collected easily by pipe The management information of equipment, and managed device is managed according to management information, each managed device can be accurately collected Management information, collection mode is easy and effective.
Moreover, in real network, the management ip address of different managed devices may be identical, but different managed devices Link-local address is different, therefore, in the embodiment of the present application, and management equipment is when sending specified type message, the specified type The purpose IPv6 fields of message are the link-local address of managed device, rather than managed device management ip address, therefore can Effectively to evade the risk that IP address conflict is brought.
Conceived based on the application same with the above method, a kind of device management method is also proposed in the embodiment of the present application, joined As shown in Figure 4, it is the flow chart of device management method, this method can apply to managed device.
Step 401, the specified type message for being used to ask management information that management equipment is sent is received, wherein, this is specified Kind of message can management equipment generated according to the link-local address of the managed device.
Step 402, generation carries the response message for specified type message of the management information of managed device.
Step 403, the response message is sent to management equipment, so that management equipment parses the quilt from the response message The management information of tube apparatus, and the managed device is managed according to the management information.
In one example, the management information can include but is not limited to one below or any combination:Managed device Management address, device type, equipment Serial Number.The specified type message can include but is not limited to:Based on link layer-management The message of agreement.In addition, the specified type message can also include the management address of management equipment, moreover, managed device is connecing Receive after specified type message, if the management address that specified type message is carried matches with local preset management address, really Determine specified type message legal, perform step 402 and step 403;Otherwise determine that specified type message is illegal, does not perform step 402 and step 403.
Conceived based on the application same with the above method, the embodiment of the present application also proposes a kind of equipment management device, applied In management equipment, as shown in figure 5, be the structure chart of the equipment management device, including:
Acquisition module 11, for obtain the link-local address of managed device, in management equipment with the managed device pair The outgoing interface answered;
Generation module 12, for being generated according to the link-local address for asking the specified type of management information to disappear Breath;
Sending module 13, for sending the specified type message by the outgoing interface;
Receiving module 14, for receiving the response message for the specified type message that the managed device is returned, And the management information of the managed device is parsed from the response message;
Management module 15, for being managed according to the management information to the managed device.
The acquisition module 11, specifically for obtain the link-local address of managed device, in management equipment with it is described During the corresponding outgoing interface of managed device, selected from link-local address table managed device link-local address, Outgoing interface corresponding with the managed device in the management equipment;
The acquisition module 11, is additionally operable in the generating process of the link-local address table, from neighbor information table Obtain out the link-local address of managed device, outgoing interface corresponding with the managed device in the management equipment, described The corresponding relation for the outgoing interface that the link-local address obtained out goes out with acquisition is recorded in link-local address table;Neighbours' letter Breath table is located at the link-local address of the managed device of same subnet, the management equipment for record and the management equipment Outgoing interface corresponding with the managed device.
The generation module 12, specifically for generating the finger for asking management information according to the link-local address During determining kind of message, the corresponding MAC Address of the link-local address is determined, the MAC Address is added to described The purpose MAC fields of specified type message, the link-local address are added to the purpose IP words of the specified type message Section;Or, determine the corresponding MAC Address of the link-local address, and the MAC Address be added into the specified type to disappear The purpose MAC fields of breath.
The management equipment that the embodiment of the present application is provided, hardware structure schematic diagram may refer to Fig. 6.Fig. 6 is management equipment Hardware architecture diagram.Including:Machinable medium and processor, wherein:
Machinable medium:Store instruction code.
Processor:Communicated with machinable medium, what is stored in reading and execution machinable medium is described Instruction code, realizes device management operations disclosed in the application above-mentioned example.
Here, machinable medium can be any electronics, magnetic, optics or other physical storage devices, can be with Comprising or storage information, such as executable instruction, data, etc..For example, machinable medium can be:RAM(Radom Access Memory, random access memory), volatile memory, nonvolatile memory, flash memory, memory driver is (as hard Disk drive), solid state hard disc, any kind of storage dish (such as CD, dvd), either similar storage medium or they Combination.
Conceived based on the application same with the above method, the embodiment of the present application also proposes a kind of equipment management device, applied In managed device, as shown in fig. 7, be the structure chart of the equipment management device, including:
Receiving module 21, the specified type message for being used to ask management information for receiving management equipment transmission is described Specified type message is that the management equipment is generated according to the link-local address of managed device;
Generation module 22, for generating the response message for the specified type message;Wherein, the response message is taken Management information with the managed device;
Sending module 23, for sending the response message to the management equipment, so that management equipment is from the response Management information is parsed in message, the managed device is managed according to the management information.
The managed device that the embodiment of the present application is provided, hardware structure schematic diagram may refer to Fig. 8.Fig. 8 is managed device Hardware architecture diagram.Including:Machinable medium and processor, wherein:
Machinable medium:Store instruction code.
Processor:Communicated with machinable medium, what is stored in reading and execution machinable medium is described Instruction code, realizes device management operations disclosed in the application above-mentioned example.
Here, machinable medium can be any electronics, magnetic, optics or other physical storage devices, can be with Comprising or storage information, such as executable instruction, data, etc..For example, machinable medium can be:RAM(Radom Access Memory, random access memory), volatile memory, nonvolatile memory, flash memory, memory driver is (as hard Disk drive), solid state hard disc, any kind of storage dish (such as CD, dvd), either similar storage medium or they Combination.
System, device, module or unit that above-described embodiment is illustrated, can specifically be realized by computer chip or entity, Or realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can To be personal computer, laptop computer, cell phone, camera phone, smart phone, personal digital assistant, media play In device, navigation equipment, E-mail receiver/send equipment, game console, tablet PC, wearable device or these equipment The combination of any several equipment.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly, this is being implemented The function of each unit can be realized in same or multiple softwares and/or hardware during application.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program Product.Therefore, the application can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the embodiment of the present application can be used wherein includes computer usable program code one or more The computer that computer-usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of program product.
The application is the flow with reference to method, equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram are described.It is generally understood that by each in computer program instructions implementation process figure and/or block diagram Flow and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer journeys can be provided Sequence instruction to all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices processor with Produce a machine so that being produced by the instruction of computer or the computing device of other programmable data processing devices is used for Realize the dress for the function of being specified in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames Put.
Moreover, these computer program instructions can also be stored in computer or the processing of other programmable datas can be guided to set In the standby computer-readable memory worked in a specific way so that the instruction being stored in the computer-readable memory is produced Manufacture including command device, the command device is realized in one flow of flow chart or multiple flows and/or block diagram one The function of being specified in individual square frame or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so that in computer Or the instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram The step of function of being specified in one square frame or multiple square frames.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product. Therefore, the application can be using the implementation in terms of complete hardware embodiment, complete software embodiment or combination software and hardware The form of example.Moreover, the application can be used wherein includes the calculating of computer usable program code at one or more The computer that machine usable storage medium is implemented on (can include but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of program product.
Embodiments herein is the foregoing is only, the application is not limited to.For those skilled in the art For, the application can have various modifications and variations.It is all any modifications made within spirit herein and principle, equivalent Replace, improve etc., it should be included within the scope of claims hereof.

Claims (11)

1. a kind of device management method, it is characterised in that applied to management equipment, methods described includes:
Obtain the link-local address of managed device, outgoing interface corresponding with the managed device in management equipment;
Specified type message for asking management information is generated according to the link-local address;
The specified type message is sent by the outgoing interface;
The response message for the specified type message that the managed device is returned is received, and is solved from the response message Separate out the management information of the managed device;
The managed device is managed according to the management information.
2. according to the method described in claim 1, it is characterised in that the link-local address for obtaining managed device, management The process of outgoing interface corresponding with the managed device, is specifically included in equipment:
The link-local address of managed device is selected from link-local address table, is set with described by pipe in the management equipment Standby corresponding outgoing interface;Wherein, the generating process of the link-local address table, including:
Obtained out from neighbor information table the link-local address of managed device, in the management equipment with the managed device pair The outgoing interface answered, and the outgoing interface that the link-local address obtained out goes out with acquisition is recorded in the link-local address table Corresponding relation;
Wherein, the neighbor information table is used for the link-local for recording the managed device for being located at same subnet with the management equipment Outgoing interface corresponding with the managed device on address and the management equipment.
3. according to the method described in claim 1, it is characterised in that described to be generated according to the link-local address for asking The process of the specified type message of management information, is specifically included:
The corresponding MAC Address of the link-local address is determined, and the MAC Address is added to the specified type message Purpose MAC fields, and the link-local address is added to the purpose IP fields of the specified type message;Or,
The corresponding MAC Address of the link-local address is determined, and the MAC Address is added to the specified type message Purpose MAC fields.
4. according to the method described in claim 1, it is characterised in that
The specified type message also includes the management address of the management equipment, so as to receive the specified type message Managed device determines whether the specified type message is legal according to the management address.
5. according to the method described in claim 1, it is characterised in that the management information of the managed device include one below or Any combination:Management address, device type, the equipment Serial Number of the managed device.
6. a kind of device management method, it is characterised in that applied to managed device, methods described includes:
The specified type message for being used to ask management information that management equipment is sent is received, the specified type message is the pipe Reason equipment is generated according to the link-local address of the managed device;
Generation carries the response message for the specified type message of the management information of the managed device;
The response message is sent to the management equipment, so that the management equipment parses management from the response message Information, and the managed device is managed according to the management information.
7. method according to claim 6, it is characterised in that the management information includes one below or any group Close:Management address, device type, the equipment Serial Number of the managed device;
The specified type message also includes the management address of the management equipment, after the specified type message is received, If the management address that the specified type message is carried matches with local preset management address, it is determined that the specified type Message is legal;Otherwise, it determines the specified type message is illegal.
8. a kind of equipment management device, it is characterised in that applied to management equipment, described device includes:
Acquisition module, for obtain the link-local address of managed device, in management equipment it is corresponding with the managed device go out Interface;
Generation module, for generating the specified type message for asking management information according to the link-local address;
Sending module, for sending the specified type message by the outgoing interface;
Receiving module, for receiving the response message for the specified type message that the managed device is returned, and from institute State the management information that the managed device is parsed in response message;
Management module, for being managed according to the management information to the managed device.
9. device according to claim 8, it is characterised in that
The acquisition module, specifically for being set in the link-local address of acquisition managed device, management equipment with described by pipe During standby corresponding outgoing interface, the link-local address of managed device, the pipe are selected from link-local address table Manage outgoing interface corresponding with the managed device in equipment;
The acquisition module, is additionally operable in the generating process of the link-local address table, is obtained out from neighbor information table Outgoing interface corresponding with the managed device on the link-local address of managed device, the management equipment, in described ground chain The corresponding relation for the outgoing interface that the link-local address obtained out goes out with acquisition is recorded in the address table of road;The neighbor information table is used It is located in record with the management equipment on the link-local address of the managed device of same subnet and the management equipment Outgoing interface corresponding with the managed device.
10. device according to claim 8, it is characterised in that
The generation module, specifically for generating the specified type for asking management information according to the link-local address During message, the corresponding MAC Address of the link-local address is determined, and the MAC Address is added to described specify The purpose MAC fields of kind of message, the link-local address are added to the purpose IP fields of the specified type message;Or Person, determines the corresponding MAC Address of the link-local address, and the MAC Address is added into the specified type message Purpose MAC fields.
11. a kind of equipment management device, it is characterised in that applied to managed device, described device includes:
Receiving module, the specified type message for being used to ask management information for receiving management equipment transmission, the specified class Type message is that the management equipment is generated according to the link-local address of the managed device;
Generation module, for generating the response message for the specified type message;Wherein, the response message carries described The management information of managed device;
Sending module, for sending the response message to the management equipment, so that management equipment is from the response message Management information is parsed, and the managed device is managed according to the management information.
CN201710271574.6A 2017-04-24 2017-04-24 Equipment management method and device Active CN107070719B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710271574.6A CN107070719B (en) 2017-04-24 2017-04-24 Equipment management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710271574.6A CN107070719B (en) 2017-04-24 2017-04-24 Equipment management method and device

Publications (2)

Publication Number Publication Date
CN107070719A true CN107070719A (en) 2017-08-18
CN107070719B CN107070719B (en) 2019-12-06

Family

ID=59603985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710271574.6A Active CN107070719B (en) 2017-04-24 2017-04-24 Equipment management method and device

Country Status (1)

Country Link
CN (1) CN107070719B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110808950A (en) * 2019-09-25 2020-02-18 西安广和通无线软件有限公司 Message processing method and device, computer equipment and storage medium
CN111511041A (en) * 2019-01-31 2020-08-07 大唐移动通信设备有限公司 Remote connection method and device
CN112631786A (en) * 2020-12-30 2021-04-09 上海玖道信息科技股份有限公司 Unified management automatic processing system of heterogeneous load balancing equipment
CN113076263A (en) * 2021-05-06 2021-07-06 北京字节跳动网络技术有限公司 Process running method and device, computer equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1411214A (en) * 2002-11-15 2003-04-16 烽火通信科技股份有限公司 Network equipment management method based on ethernet technology
JP2006173673A (en) * 2004-12-10 2006-06-29 Canon Inc Communication apparatus and control method thereof
CN1859304A (en) * 2006-02-13 2006-11-08 华为技术有限公司 Method for realizing neighbour discovery
CN101018146A (en) * 2006-02-10 2007-08-15 北京航空航天大学 A local management unit for hierarchical mobile IPv6
CN101212773A (en) * 2006-12-31 2008-07-02 华为技术有限公司 Method and system supporting movement of mobile network
CN101304368A (en) * 2004-06-03 2008-11-12 华为技术有限公司 Method for conveying tactics information between network equipments
CN102377835A (en) * 2010-08-20 2012-03-14 杭州华三通信技术有限公司 Communication method and device for network element group network
CN102629915A (en) * 2012-04-28 2012-08-08 杭州华三通信技术有限公司 Method and device for improving rate of utilization of hardware entry
CN104113463A (en) * 2014-07-24 2014-10-22 深圳市共进电子股份有限公司 Network bridge based data message processing method, device and network bridge
US20150085696A1 (en) * 2013-09-23 2015-03-26 Mitsubishi Electric Research Laboratories, Inc. Method for Discovering Neighboring Nodes in Wireless Networks

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1411214A (en) * 2002-11-15 2003-04-16 烽火通信科技股份有限公司 Network equipment management method based on ethernet technology
CN101304368A (en) * 2004-06-03 2008-11-12 华为技术有限公司 Method for conveying tactics information between network equipments
JP2006173673A (en) * 2004-12-10 2006-06-29 Canon Inc Communication apparatus and control method thereof
CN101018146A (en) * 2006-02-10 2007-08-15 北京航空航天大学 A local management unit for hierarchical mobile IPv6
CN1859304A (en) * 2006-02-13 2006-11-08 华为技术有限公司 Method for realizing neighbour discovery
CN101212773A (en) * 2006-12-31 2008-07-02 华为技术有限公司 Method and system supporting movement of mobile network
CN102377835A (en) * 2010-08-20 2012-03-14 杭州华三通信技术有限公司 Communication method and device for network element group network
CN102629915A (en) * 2012-04-28 2012-08-08 杭州华三通信技术有限公司 Method and device for improving rate of utilization of hardware entry
US20150085696A1 (en) * 2013-09-23 2015-03-26 Mitsubishi Electric Research Laboratories, Inc. Method for Discovering Neighboring Nodes in Wireless Networks
CN104113463A (en) * 2014-07-24 2014-10-22 深圳市共进电子股份有限公司 Network bridge based data message processing method, device and network bridge

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
孙文歌等: ""IPv6 链路本地地址安全技术研究"", 《计算机技术与发展》 *
方诗虹: ""IPv6单播数据转发技术分析与研究"", 《万方数据》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111511041A (en) * 2019-01-31 2020-08-07 大唐移动通信设备有限公司 Remote connection method and device
CN110808950A (en) * 2019-09-25 2020-02-18 西安广和通无线软件有限公司 Message processing method and device, computer equipment and storage medium
CN112631786A (en) * 2020-12-30 2021-04-09 上海玖道信息科技股份有限公司 Unified management automatic processing system of heterogeneous load balancing equipment
CN113076263A (en) * 2021-05-06 2021-07-06 北京字节跳动网络技术有限公司 Process running method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN107070719B (en) 2019-12-06

Similar Documents

Publication Publication Date Title
CN104350467B (en) Elasticity for the cloud security using SDN carries out layer
CN106301829B (en) A kind of method and apparatus of network service dilatation
CN110635987B (en) Message transmission method, device, equipment and machine readable storage medium
CN107070719A (en) A kind of device management method and device
CN107689882A (en) The method and apparatus of service deployment in a kind of virtualization network
CN109428749A (en) Network management and relevant device
CN107547242B (en) The acquisition methods and device of VM configuration information
CN104811392B (en) For handling the method and system of the resource access request in network
CN107846313B (en) A kind of method and the network equipment of the generation of network service moulding plate
CN109981493B (en) Method and device for configuring virtual machine network
JP6633775B2 (en) Packet transmission
JP5276632B2 (en) Cluster system and software deployment method
CN110445886A (en) A kind of method and system realizing domain name access and accelerating
CN101884198A (en) Method and apparatus for concurrent topology discovery
US20190227882A1 (en) Upgrade backup in virtualized computing environments
EP3349402B1 (en) Message processing method and device
CN105009080B (en) Realization specification related with the forwarded plane of the electronic equipment with forwarding capability
CN107249038A (en) Business datum retransmission method and system
CN106878052A (en) A kind of customer shift method and device
CN101110827A (en) Method, device and system for multidimensional address domain name analysis
CN108351798A (en) Expansible addressing mechanism for virtual machine
CN107086960A (en) A kind of message transmitting method and device
CN107896188A (en) Data forwarding method and device
CN112448963A (en) Method, device, equipment and storage medium for analyzing automatic attack industrial assets
CN109861869B (en) Configuration file generation method and device

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
CB02 Change of applicant information

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Xinhua Sanxin Information Technology Co., Ltd.

Address before: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Applicant before: Huashan Information Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant