CN102142996B - Method and device for identifying physical node in cloud operating system - Google Patents

Method and device for identifying physical node in cloud operating system Download PDF

Info

Publication number
CN102142996B
CN102142996B CN 201110047606 CN201110047606A CN102142996B CN 102142996 B CN102142996 B CN 102142996B CN 201110047606 CN201110047606 CN 201110047606 CN 201110047606 A CN201110047606 A CN 201110047606A CN 102142996 B CN102142996 B CN 102142996B
Authority
CN
China
Prior art keywords
physical node
described physical
pdu
request
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN 201110047606
Other languages
Chinese (zh)
Other versions
CN102142996A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN 201110047606 priority Critical patent/CN102142996B/en
Publication of CN102142996A publication Critical patent/CN102142996A/en
Application granted granted Critical
Publication of CN102142996B publication Critical patent/CN102142996B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method and a device for identifying a physical node in a cloud operating system. The method comprises the following steps of: transmitting a protocol data unit (PDU) for requesting the system time of a host to a physical node in the cloud operating system by adopting a simple network management protocol (SNMP); and receiving a response corresponding to the PDU for requesting the system time of the host from the physical node, and judging the physical node is a server or network equipment according to the response. By the method, the automatic management of the physical node is realized; and the method is highly extensible, compatible, and easy to develop and maintain.

Description

A kind of recognition methods of physical node and device in cloud operating system
Technical field
The present invention relates to infrastructure device monitoring technique field in cloud operating system (OS), be specifically related to a kind of general, flexibly, physical node recognition methods and the device of Highly Scalable.
Background technology
Current, cloud computing approved by industry gradually, and cloud operating system (OS) realizes and be committed to practice gradually.In cloud OS, the chief component that becomes system for monitoring and the management of infrastructure device, the automatic identification of physical node is the important composition module of this part.The automatic identification of physical node, make in cloud OS and physical node to be carried out to the automated intelligent management become possibility.Most of companies adopt artificial mode to be added physical node information, realize the management to physical node, thereby have greatly reduced intellectuality and the operability of system.
Summary of the invention
The technical problem to be solved in the present invention is, recognition methods and the device of a kind of physical node in cloud operating system is provided, and solved the automatic management of physical node, and had good autgmentability, compatibility, easy exploiting, ease for maintenance.
In order to solve the problems of the technologies described above, the present invention proposes the recognition methods of a kind of physical node in cloud operating system, comprising:
Adopt Simple Network Management Protocol (SNMP) to send request the protocol Data Unit (PDU) of host computer system time to the physical node in cloud operating system;
Receive corresponding the replying of PDU of the described request host computer system time that described physical node returns, and judge that according to this type of described physical node is server or the network equipment.
Further, said method also can have following characteristics:
After the type of judging described physical node is the network equipment, also comprise:
Send request the PDU of basic bridge address to described physical node;
Receive corresponding the replying of PDU of the basic bridge of the described request address that described physical node returns, and judge according to this whether the type of described physical node is switch.
Further, said method also can have following characteristics:
Be the network equipment and while being not switch in the type of judging described physical node, also comprise:
Send request the PDU of IP packet Forwards Forwarding to described physical node;
Receive corresponding the replying of PDU of the described request IP packet Forwards Forwarding that described physical node returns, judge according to this whether the type of described physical node is router.
Further, said method also can have following characteristics:
According to IP address, described physical node place, to described physical node, send PDU.
In order to solve the problems of the technologies described above, the present invention also proposes the recognition device of a kind of physical node in cloud operating system, comprising:
The first sending module, adopt Simple Network Management Protocol (SNMP) to send request the protocol Data Unit (PDU) of host computer system time to the physical node in cloud operating system;
First receives detection module, receives corresponding the replying of PDU of the described request host computer system time that described physical node returns, and judges that according to this type of described physical node is server or the network equipment.
Further, said apparatus also can have following characteristics:
Also comprise that the second sending module and second receives detection module, wherein:
Described first receives detection module, also, after the type of judging described physical node is the network equipment, by described judged result, notifies described the second sending module;
Described the second sending module, after the notice that is the network equipment in the type that receives described physical node, send request the PDU of basic bridge address to described physical node;
Described second receives detection module, receives corresponding the replying of PDU of the basic bridge of the described request address that described physical node returns, and judges according to this whether the type of described physical node is switch.
Further, said apparatus also can have following characteristics:
Also comprise that the 3rd sending module and the 3rd receives detection module, wherein:
Described second receives detection module, also judge described physical node be the network equipment and be not switch after, notify described the 3rd sending module by described judged result;
Described the 3rd sending module, the type that receives described physical node be the network equipment and be not the notice of switch after, send request the PDU of IP packet Forwards Forwarding to described physical node;
The described the 3rd receives detection module, receives corresponding the replying of PDU of the described request IP packet Forwards Forwarding that described physical node returns, and judges according to this whether the type of described physical node is router.
Further, said apparatus also can have following characteristics:
Described the first sending module, be according to IP address, described physical node place, sends request the PDU of host computer system time to described physical node.
Further, said apparatus also can have following characteristics:
Described the second sending module, be according to IP address, described physical node place, sends request the PDU of basic bridge address to described physical node.
Further, said apparatus also can have following characteristics:
Described the 3rd sending module, be according to IP address, described physical node place, sends request the PDU of IP packet Forwards Forwarding to described physical node.
In cloud operating system provided by the invention, a kind of recognition methods and device of physical node, solved the automatic management of physical node, and have good autgmentability, compatibility, easy exploiting, ease for maintenance.
The accompanying drawing explanation
Fig. 1 is the recognition methods flow chart 1 of a kind of physical node in embodiment of the present invention cloud operating system;
Fig. 2 is the recognition methods flow chart 2 of a kind of physical node in embodiment of the present invention cloud operating system;
Fig. 3 is the recognition methods flow chart 3 of a kind of physical node in embodiment of the present invention cloud operating system;
Fig. 4 is the recognition device block diagram 1 of a kind of physical node in embodiment of the present invention cloud operating system;
Fig. 5 is the recognition device block diagram 2 of a kind of physical node in embodiment of the present invention cloud operating system;
Fig. 6 is the recognition device block diagram 3 of a kind of physical node in embodiment of the present invention cloud operating system.
Embodiment
Describe embodiment of the present invention in detail below in conjunction with accompanying drawing.
Referring to Fig. 1, the recognition methods that this illustrates a kind of physical node in embodiment of the present invention cloud operating system comprises step:
Step S101: adopt Simple Network Management Protocol (SNMP) to send request the protocol Data Unit (PDU) of host computer system time (hrSystemDate) to the physical node in cloud operating system;
When sending PDU, can, according to IP address, described physical node place, to described physical node, send PDU.
Step S102: receive corresponding the replying of PDU of the described request host computer system time that described physical node returns, and judge that according to this type of described physical node is server or the network equipment.
For the PDU of requesting host system time, server has the ability to return the host computer system temporal information, and the network equipment can't return time information.Therefore, if corresponding the replying as temporal information of the PDU of the described request host computer system time received, the type of judging described physical node is server; If what the PDU of the described request host computer system time received was corresponding replys as NULL, the type of judging described physical node is the network equipment.
The embodiment of the present invention is utilized the dissimilar physical node characteristics different to the responding ability of some particular request dexterously, and surveyed by sending request, and monitor whether to receive and reply, thus the type of differentiation physical node.Thereby realized the automatic management to physical node, and very quick.
Preferably, can also further from the network equipment, distinguish switch, that is, can also comprise step S103 and S104, as shown in Figure 2:
Step S103: after the type of judging described physical node is as the network equipment, send request the PDU of basic bridge address (dot1dBaseBridgeAddress) to described physical node;
Step S104: receive corresponding the replying of PDU of the basic bridge of the described request address that described physical node returns, and judge according to this whether the type of described physical node is switch.
For asking the PDU of basic bridge address, the switch in the network equipment has the ability to return mac address information, and non-switch can't return to mac address information.Therefore, if corresponding the replying as mac address information of the PDU of the basic bridge of the described request received address, the type of judging described physical node is switch; If what the PDU of the basic bridge of the described request received address was corresponding replys as NULL, the type of judging described physical node is not switch.
Preferably, can also further from the network equipment of non-switch, distinguish router, that is, can also comprise step S105 and S106, as shown in Figure 3:
Step S105: when judging described physical node as the network equipment and being not switch, send request the PDU of IP packet Forwards Forwarding (ipForwarding) to described physical node;
Step S106: receive corresponding the replying of PDU of the described request IP packet Forwards Forwarding that described physical node returns, judge according to this whether the type of described physical node is router.
For the PDU of request IP packet Forwards Forwarding, the router in the network equipment has the ability to return IP packet Forwards Forwarding information, and non-router can't return to IP packet Forwards Forwarding information.Therefore, if the PDU of the described request IP packet Forwards Forwarding received corresponding reply value for meaning to have the Forwards Forwarding function (for example 1), the type of judging described physical node is router; Reply value for meaning not have the Forwards Forwarding function (for example 2) if the PDU of the described request IP packet Forwards Forwarding received is corresponding, the type of judging described physical node is not router.
Wherein, above-mentioned steps S103 and S104, immutable with the order of step S105 and S106.; need to first utilize the PDU judgement physical nodes of request dot1dBaseBridgeAddress is the switch in the network equipment; if not; the PDU judgement physical nodes of recycling request ipForwarding is the router in the network equipment, and the design of this judgement order is in order to guarantee that the PDU for surveying can effectively distinguish dissimilar physical node.
In order to realize said method, the embodiment of the present invention also provides the recognition device of a kind of physical node in cloud operating system, as shown in Figure 4, comprising:
The first sending module, adopt Simple Network Management Protocol (SNMP) to send request the protocol Data Unit (PDU) of host computer system time to the physical node in cloud operating system;
First receives detection module, receives corresponding the replying of PDU of the described request host computer system time that described physical node returns, and judges that according to this type of described physical node is server or the network equipment.
Wherein, described the first sending module, can, according to IP address, described physical node place, send request the PDU of host computer system time to described physical node.
Preferably, in order further from the network equipment, to distinguish switch, described device can also comprise that the second sending module and second receives detection module, as shown in Figure 5, and wherein:
Described first receives detection module, also, after the type of judging described physical node is the network equipment, by described judged result, notifies described the second sending module;
Described the second sending module, after the notice that is the network equipment in the type that receives described physical node, send request the PDU of basic bridge address to described physical node;
Described second receives detection module, receives corresponding the replying of PDU of the basic bridge of the described request address that described physical node returns, and judges according to this whether the type of described physical node is switch.
Wherein, described the second sending module, can, according to IP address, described physical node place, send request the PDU of basic bridge address to described physical node.
Preferably, in order further from the network equipment, to distinguish router, described device can also comprise that the 3rd sending module and the 3rd receives detection module, as shown in Figure 6, and wherein:
Described second receives detection module, also judge described physical node be the network equipment and be not switch after, notify described the 3rd sending module by described judged result;
Described the 3rd sending module, the type that receives described physical node be the network equipment and be not the notice of switch after, send request the PDU of IP packet Forwards Forwarding to described physical node;
The described the 3rd receives detection module, receives corresponding the replying of PDU of the described request IP packet Forwards Forwarding that described physical node returns, and judges according to this whether the type of described physical node is router.
Wherein, described the 3rd sending module, can, according to IP address, described physical node place, send request the PDU of IP packet Forwards Forwarding to described physical node.
Certainly; the present invention also can have other various embodiments; in the situation that do not deviate from spirit of the present invention and essence thereof; those skilled in the art are when making according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (6)

1. a kind of recognition methods of physical node in cloud operating system, is characterized in that, comprising:
Adopt Simple Network Management Protocol (SNMP) to send request the protocol Data Unit (PDU) of host computer system time to the physical node in cloud operating system;
Receive corresponding the replying of PDU of the described request host computer system time that described physical node returns, and judge that according to this type of described physical node is server or the network equipment;
After the type of judging described physical node is the network equipment, also comprise:
Send request the PDU of basic bridge address to described physical node;
Receive corresponding the replying of PDU of the basic bridge of the described request address that described physical node returns, and judge according to this whether the type of described physical node is switch;
Be the network equipment and while being not switch in the type of judging described physical node, also comprise:
Send request the PDU of IP packet Forwards Forwarding to described physical node;
Receive corresponding the replying of PDU of the described request IP packet Forwards Forwarding that described physical node returns, judge according to this whether the type of described physical node is router.
2. the method for claim 1 is characterized in that:
According to IP address, described physical node place, to described physical node, send PDU.
3. a kind of recognition device of physical node in cloud operating system, is characterized in that, comprising:
The first sending module, adopt Simple Network Management Protocol (SNMP) to send request the protocol Data Unit (PDU) of host computer system time to the physical node in cloud operating system;
First receives detection module, receives corresponding the replying of PDU of the described request host computer system time that described physical node returns, and judges that according to this type of described physical node is server or the network equipment;
Described first receives detection module, also, after the type of judging described physical node is the network equipment, by described judged result, notifies the second sending module;
Described the second sending module, after the notice that is the network equipment in the type that receives described physical node, send request the PDU of basic bridge address to described physical node;
Second receives detection module, receives corresponding the replying of PDU of the basic bridge of the described request address that described physical node returns, and judges according to this whether the type of described physical node is switch;
Described second receives detection module, also judge described physical node be the network equipment and be not switch after, notify the 3rd sending module by described judged result;
Described the 3rd sending module, the type that receives described physical node be the network equipment and be not the notice of switch after, send request the PDU of IP packet Forwards Forwarding to described physical node;
The 3rd receives detection module, receives corresponding the replying of PDU of the described request IP packet Forwards Forwarding that described physical node returns, and judges according to this whether the type of described physical node is router.
4. device as claimed in claim 3 is characterized in that:
Described the first sending module, be according to IP address, described physical node place, sends request the PDU of host computer system time to described physical node.
5. device as claimed in claim 3 is characterized in that:
Described the second sending module, be according to IP address, described physical node place, sends request the PDU of basic bridge address to described physical node.
6. device as claimed in claim 3 is characterized in that:
Described the 3rd sending module, be according to IP address, described physical node place, sends request the PDU of IP packet Forwards Forwarding to described physical node.
CN 201110047606 2011-02-28 2011-02-28 Method and device for identifying physical node in cloud operating system Active CN102142996B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110047606 CN102142996B (en) 2011-02-28 2011-02-28 Method and device for identifying physical node in cloud operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110047606 CN102142996B (en) 2011-02-28 2011-02-28 Method and device for identifying physical node in cloud operating system

Publications (2)

Publication Number Publication Date
CN102142996A CN102142996A (en) 2011-08-03
CN102142996B true CN102142996B (en) 2013-12-18

Family

ID=44410237

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110047606 Active CN102142996B (en) 2011-02-28 2011-02-28 Method and device for identifying physical node in cloud operating system

Country Status (1)

Country Link
CN (1) CN102142996B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660455B (en) * 2013-11-22 2018-05-18 英业达科技有限公司 Server system and nodal test method
CN107015996A (en) * 2016-01-28 2017-08-04 阿里巴巴集团控股有限公司 A kind of resource access method, apparatus and system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1556478A (en) * 2003-12-30 2004-12-22 上海交通大学 Embedded type multifunction remote network topological management method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1556478A (en) * 2003-12-30 2004-12-22 上海交通大学 Embedded type multifunction remote network topological management method

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
刘海华等.基于生成树算法的链路层拓扑发现研究.《计算机技术与发展》.2008,第18卷(第5期),101-104.
基于SNMP的以太网物理层拓扑自动发现算法;欧阳等;《重庆工学院学报(自然科学)》;20091231;第23卷(第12期);48-53 *
基于生成树算法的链路层拓扑发现研究;刘海华等;《计算机技术与发展》;20080531;第18卷(第5期);101-104 *
欧阳等.基于SNMP的以太网物理层拓扑自动发现算法.《重庆工学院学报(自然科学)》.2009,第23卷(第12期),48-53.

Also Published As

Publication number Publication date
CN102142996A (en) 2011-08-03

Similar Documents

Publication Publication Date Title
US10958543B2 (en) Monitoring wireless access point events
CN106982244B (en) Method and device for realizing message mirroring of dynamic flow under cloud network environment
CN105991412A (en) Method and device for pushing message
CN103312593B (en) A kind of message distributing system and method
WO2014056345A1 (en) Management method and apparatus for monitoring task
CN105429799A (en) Server backup method and device
CN110557342A (en) Apparatus for analyzing and mitigating dropped packets
US20170033978A1 (en) Method and device for processing communication path
CN110659863B (en) Object monitoring method and device, electronic equipment and computer readable storage medium
CN103634166A (en) Equipment survival detection method and equipment survival detection device
CN102142996B (en) Method and device for identifying physical node in cloud operating system
CN107241216A (en) Maintain the method and device of the stable transmission of critical data
US20140317181A1 (en) Establishing dynamic connection
US20150381470A1 (en) Method for deploying resource in cloud computing environment
CN104581796B (en) A kind of sending method, CSE and the system of M2M application request
CN107547264B (en) Data backup method and device based on Internet of things
CN113114588B (en) Data processing method and device, electronic equipment and storage medium
US20100153437A1 (en) Data storing system and data processing method of informational household appliance
CN104158735A (en) Network data package distribution method and device
CN103795810A (en) Data distribution system and method and central server of data distribution system
CN105049519B (en) A kind of message route method and system based on soap protocol
CN114461412A (en) Lane isolation method and device for message queue, electronic equipment and storage medium
CN114356810A (en) Communication connection method, device, equipment and medium for host and storage system
CN114124568A (en) Connection control method and system
CN105025028A (en) IP black hole discovering method based on flow analysis

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201109

Address after: 215100 No. 1 Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Patentee after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 100085 Beijing, Haidian District on the road to information on the ground floor, building 2-1, No. 1, C

Patentee before: Inspur (Beijing) Electronic Information Industry Co.,Ltd.