CN112134735B - Method and device for automatically expanding system - Google Patents

Method and device for automatically expanding system Download PDF

Info

Publication number
CN112134735B
CN112134735B CN202010973103.1A CN202010973103A CN112134735B CN 112134735 B CN112134735 B CN 112134735B CN 202010973103 A CN202010973103 A CN 202010973103A CN 112134735 B CN112134735 B CN 112134735B
Authority
CN
China
Prior art keywords
state
newly added
message
equipment
management system
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
CN202010973103.1A
Other languages
Chinese (zh)
Other versions
CN112134735A (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
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010973103.1A priority Critical patent/CN112134735B/en
Publication of CN112134735A publication Critical patent/CN112134735A/en
Application granted granted Critical
Publication of CN112134735B publication Critical patent/CN112134735B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5038Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol

Abstract

The invention discloses a method and a device for automatically expanding a system, wherein the method comprises the following steps: sending a multicast message to a local area network; the local area network is a network where the management system is located; receiving a first reply message sent by the newly added device based on the multicast message; acquiring a target address of the newly added equipment based on the first reply message; wherein, the target address is an IPV4 address; and adding the newly added equipment into the management system based on the target address to complete the automatic capacity expansion of the management system. Therefore, the embodiment of the invention improves the efficiency of expanding the capacity of the management system.

Description

Method and device for automatically expanding system
Technical Field
The present invention relates to the field of server technologies, and in particular, to a method and an apparatus for automatically expanding a system.
Background
The development of cloud computing greatly promotes the construction and delivery of a data center, and server software is used as a core delivery system of the data center, so that the efficiency of service capacity expansion and service online is influenced. In general, after the system deployment is completed, the server needs to manually configure an IPV4 (Internet Protocol version 4) or a DHCP (Dynamic Host Configuration Protocol) server for each node. Then, the server management system adds the information into the management system to provide services for the outside world.
The existing server capacity expansion mode has extremely low efficiency, and cannot meet the increasing business requirements at present.
Disclosure of Invention
In view of the above problems, the present invention provides a method and an apparatus for automatically expanding a system, which implement automatic expansion and improve efficiency of expanding a management system.
In a first aspect, the present application provides the following technical solutions through an embodiment:
a method for automatically expanding a system, comprising:
sending a multicast message to a local area network; the local area network is a network where a management system is located; receiving a first reply message sent by the newly added device based on the multicast message; acquiring a target address of the newly added equipment based on the first reply message; wherein the target address is an IPV4 address; and adding the newly added equipment into the management system based on the target address.
Optionally, the sending the multicast packet into the local area network includes:
based on UDP protocol, sending multicast message based on IPV6 to LAN.
Optionally, the multicast packet includes:
version information and role information.
Optionally, the obtaining the target address of the newly added device based on the first reply packet includes:
judging whether the newly added equipment has an available IPV4 address or not based on the first reply message; if not, sending a configuration message for configuring the target address to the newly added equipment; after receiving a second reply message sent by the newly added device based on the configuration message, obtaining the target address; and if so, acquiring the target address.
In a second aspect, based on the same inventive concept, the present application provides the following technical solutions through an embodiment:
an apparatus for automatically expanding a system, comprising:
the multicast module is used for sending multicast messages to the local area network; the local area network is a network where a management system is located; the receiving module is used for receiving a first reply message sent by the newly added device based on the multicast message; the address configuration module is used for obtaining the target address of the newly added equipment based on the first reply message; wherein the target address is an IPV4 address; and the capacity expansion module is used for adding the newly added equipment into the management system based on the target address.
Optionally, the multicast module is further configured to:
based on UDP protocol, sending multicast message based on IPV6 to LAN.
Optionally, the multicast packet includes:
version information and role information.
Optionally, the address configuration module is further configured to:
judging whether the newly added equipment has an available IPV4 address or not based on the reply message; if not, sending a configuration message for configuring the target address to the newly added equipment; after receiving a second reply message sent by the newly added device based on the configuration message, obtaining the target address; and if so, acquiring the target address.
In a third aspect, based on the same inventive concept, the present application provides the following technical solutions through an embodiment:
a method for automatically expanding a system, applied to the newly added device in any of the first aspect and the second aspect, the method includes:
after receiving the multicast message, transferring the equipment state of the newly added equipment from a first state to a second state; when the newly-added equipment is in the first state, the newly-added equipment is used for processing the multicast message; when the newly added equipment is in the second state, the newly added equipment is used for processing a configuration message or a message added into the management system; after receiving the configuration message, migrating the equipment state of the newly added equipment from the second state to a third state; the configuration message is used for configuring an IPV4 address of the newly added equipment; when the newly added equipment is in the third state, the newly added equipment is used for processing a message added into the management system; after the current equipment state is added into the management system, the current equipment state is transferred from the second state to a fourth state; and when the newly added equipment is in the fourth state, the newly added equipment does not process the message for capacity expansion.
In a fourth aspect, based on the same inventive concept, the present application provides the following technical solutions through an embodiment:
a computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of any one of the first and third aspects.
The method and the device for automatically expanding the capacity of the system provided by the embodiment of the invention send the multicast message to the local area network; the local area network is a network where the management system is located; therefore, when the newly-added equipment is accessed to the local area network, the management system can discover the newly-added equipment in the first time, and the timeliness of capacity expansion is guaranteed. Further, receiving a first reply message sent by the newly added device based on the multicast message; acquiring a target address of the newly added equipment based on the first reply message; wherein, the target address is an IPV4 address; and automatic configuration of the IPV4 address of the newly added equipment can be realized. And finally, adding the newly added equipment into the management system based on the target address to finish the automatic capacity expansion of the management system. Therefore, the embodiment of the invention improves the efficiency of expanding the capacity of the management system.
The above description is only an overview of the technical solutions of the present invention, and the present invention can be implemented in accordance with the content of the description so as to make the technical means of the present invention more clearly understood, and the above and other objects, features, and advantages of the present invention will be more clearly understood.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts. In the drawings:
fig. 1 is a flowchart illustrating a method for automatically expanding a capacity of a system according to a first embodiment of the present invention;
fig. 2 is a schematic diagram illustrating interaction between an exemplary management system and a newly added device in a first embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for automatically expanding a capacity of a system according to a second embodiment of the present invention;
FIG. 4 is a diagram illustrating a state transition relationship of an exemplary newly added device in a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus of an automatic capacity expansion system according to a third embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
First embodiment
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for automatically expanding a capacity of a system according to a first embodiment of the present invention. The method comprises the following steps:
step S10: sending a multicast message to a local area network; the local area network is a network where a management system is located.
In step S10, the management system may be a server cluster, and the cluster may be used for storage service, cloud computing service, and the like, without limitation.
And the multicast message is used for discovering the newly added equipment in the local area network. The multicast message may be sent by a management node in the management system. In this embodiment, the multicast packet should at least include role information and version information. Wherein a role may represent a primary function, purpose, use, or the like of a device. In addition, the multicast message sending method can also comprise identity identification information and type information, wherein the identity identification information can identify the identity of the multicast message sending end, and the type information can represent the use of the multicast message. Since IPV6 (Internet Protocol Version 6, version 6 of the Internet Protocol) has a large number of addresses, and a connection is not established before a new backup is added to the management system in this embodiment, multicast is performed in the local area network by using a multicast packet based on IPV 6. During multicast, the multicast message may be periodically sent into the lan, for example, the multicast message is sent once every preset time, and the preset time may be 1 minute, 5 minutes, 30 minutes, 5 hours, 24 hours, and the like. When the newly added device is accessed to the local area network, the newly added device can receive the multicast message.
Further, in this embodiment, in order to discover the newly added device and ensure the packet processing efficiency of the newly added device and the management node. The multicast packet is sent by using UDP (User Datagram Protocol) Protocol for communication. Therefore, in this embodiment, the reply message newly added with the reply to the message sent by the management node may be set to reply for multiple times, for example, 3 times, 4 times, 5 times, and so on; by the method, the unreliability of the UDP communication protocol can be avoided, and the normal communication between the management system and the newly added equipment can be ensured even in a poor network environment.
Step S20: and receiving a first reply message sent by the newly added device based on the multicast message.
In step S20, the newly added device may be a server host, and the type is not limited; the number of the newly added devices may be 1 or more, and is not limited. After receiving the multicast message, the multicast message is verified. Specifically, it can be verified whether the version information in the multicast message matches the newly added device, and whether the role information in the multicast message matches the use or use of the newly added device. In addition, under the condition of not considering the calculation overhead efficiency, the type information and the identity information can be verified under the requirements of different scenes. And after the verification is passed, the newly added equipment sends a first reply message to the management node, which indicates that the multicast message passes the verification.
Step S30: acquiring a target address of the newly added equipment based on the first reply message; wherein the target address is an IPV4 address.
In step S30, two implementation cases are included, specifically as follows:
1. and judging whether the newly added equipment has an available IPV4 address or not based on the first reply message. If there is an IPV4 address, the IPV4 address may be carried and transmitted by the first reply message.
2. If the newly added equipment does not have an available IPV4 address, sending a configuration message for configuring a target address to the newly added equipment; and after receiving a second reply message sent by the newly added equipment based on the configuration message, obtaining the target address.
Wherein the absence of an available IPV4 address includes: 1) The newly added equipment is not configured with an IPV4 address; 2) The IPV4 address is configured in the newly added device, but the IPV4 address conflicts with the existing address in the management system, is not available, and needs to be reconfigured. And carrying a corresponding target address in the configuration message, and setting the IPV4 address of the newly added equipment as the target address according to the configuration message.
3. And if the newly added equipment has an available IPV4 address, obtaining the target address. The target address is the original available IPV4 address.
The new equipment can be configured more efficiently through the process, the repeated configuration of the IPV4 address is avoided, and the conversion from the IPV6 address to the IPV4 address is realized.
Step S40: and adding the newly added equipment into the management system based on the target address.
In step S40, after confirming that the IPV4 address of the newly added device is available, or after completing the configuration of the target address of the newly added device, the management system already knows the specific target address; the management system can add the newly added equipment into the management system through the target address to realize the capacity expansion of the management system. Specifically, the management system sends a join message based on IPV4 through a UDP communication protocol to request the device node to join the management system, and after receiving the join message, the device node returns a third reply message after joining the management system. The join message is a message requesting the newly added device to join the management system. The third reply packet carries the relevant data of the corresponding newly added device, and the relevant data may be system information of the newly added device, such as a physical address, hardware configuration, network configuration, service conditions, system software information, and the like, without limitation.
In this embodiment, the type and format of the message sent by the message may refer to the following, and the following example is only an exemplary illustration:
in auto, the discover sends multicast message based on IPV 6;
auto, offer _ ip based on IPV6 sends message of configuring IPV 4;
the join sends the message of the configuration joining management system based on IPV 4;
the auto responds to the multicast discovery message by the ack _ discover;
the auto responds to the ack _ offer _ ip to configure an IPV4 address message;
and the auto-join responds to join the management system message.
Each message format has a header for checking and detecting whether the message is legal, a message type for specifying which type the current message belongs to, and a message for carrying user-defined data, as follows:
body
{
header : {
product : 'InCloud Sphere',
role: 'iCenter',
'version':'V5R08B210',
'id': ‘xxx’
}
type: 'join',
message: {}
}
in this embodiment, the private message type and format of the above example may be designed through IPV 6-based messages, so that the whole automatic capacity expansion process is safer and more reliable.
Further, for ease of understanding, in this embodiment, an interaction diagram between an exemplary management system and a newly added device is shown in fig. 2, where multicast represents multicast transmission, and unicast represents unicast transmission. multicast discovery (UDP IPV 6) correspondingly indicates that UDP communication is adopted and multicast transmission of multicast messages is performed based on IPV 6; the reply with basic info (UDP IPV 6) correspondingly represents that UDP communication is adopted and a first reply message is sent based on IPV 6; the ICS offer IPV4 (UDP IPV 6) correspondingly indicates that UDP communication is adopted and a configuration message is sent based on the IPV 6; ack offer IPV4 (UDP IPV 6) correspondingly represents that UDP communication is adopted and a second reply message is sent based on IPV 6; the request to join icenter (UDP IPV 4) correspondingly represents that UDP communication is adopted and join messages are sent based on IPV 4; reply with system info (UDP IPV 4) correspondingly indicates that UDP communication is employed and a third reply message is sent based on IPV 4.
In the method for automatically expanding the capacity of the system provided in this embodiment, a multicast packet is sent into a local area network; the local area network is a network where the management system is located; therefore, when the newly-added equipment is accessed to the local area network, the management system can discover the newly-added equipment at the first time, and the timeliness of capacity expansion is ensured. Further, receiving a first reply message sent by the newly added device based on the multicast message; acquiring a target address of the newly added equipment based on the first reply message; wherein, the target address is an IPV4 address; and automatic configuration of the IPV4 address of the newly added equipment can be realized. And finally, adding the newly added equipment into the management system based on the target address to finish the automatic capacity expansion of the management system. Therefore, the method provided by the embodiment has higher efficiency when the management system is expanded.
Second embodiment
Referring to fig. 3, based on the same inventive concept, the present embodiment further provides a method for automatically expanding a system, where the method is applied to the newly added device in the first embodiment.
The method comprises the following steps:
step S100: after receiving the multicast message, migrating the equipment state of the newly added equipment from a first state to a second state; when the newly-added equipment is in the first state, the newly-added equipment is used for processing the multicast message; and when the newly added equipment is in the second state, the newly added equipment is used for processing a configuration message or a message added into the management system.
Step S200: after receiving the configuration message, migrating the equipment state of the newly added equipment from the second state to a third state; the configuration message is used for configuring an IPV4 address of the newly added equipment; and when the newly-added equipment is in the third state, the newly-added equipment is used for processing the message added into the management system.
Step S300: after the current equipment state is added into the management system, the current equipment state is transferred from the second state to a fourth state; and when the newly added equipment is in the fourth state, the newly added equipment does not process the message for capacity expansion.
In the above steps S100-S300, the terms multicast message, management system, configuration message, and newly added device can be explained and illustrated with reference to the first embodiment. The specific process of interaction between the newly added device and the management system and the beneficial effects thereof have been described in the first embodiment, and are not described herein again.
In step S300, the messages used for capacity expansion specifically refer to multicast messages, configuration messages, and messages for the system management system to request the newly added device to join the system.
In addition, in order to ensure the communication fault tolerance between the management system and the newly added device, corresponding aging timers can be set when the newly added device is in the second state, the third state and the fourth state, and the aging timers are used for returning the newly added device to the initial first state without state transition within a specified time. The state is not transferred, and communication faults between the newly added equipment and the management system, or version information verification failure, role information verification failure and the like may exist; at the moment, the newly added equipment can be initialized through the aging timer, and interactive communication with the management system is carried out again.
Please refer to the example shown in fig. 4, wherein:
1. the initial state of the equipment is a start state, and only the discover message is processed at the moment; the start state corresponds to a first state, and the discover message corresponds to a multicast message;
2. after receiving the discover message, the device state is transferred to the discover state, and only the offer _ ip message or the join message is processed at the moment; the discover state corresponds to the second state, the discover message corresponds to the multicast message, the offer _ ip message corresponds to the configuration message, and the join message corresponds to the message added into the management system.
3. After receiving the message of the offer _ ip message, the device state is transferred to the offer _ ip state, and only the join message is processed at the moment; the offer _ ip state corresponds to the third state.
4. When sensing that the equipment is added into the management system, the equipment state is transferred to a finish state, and relevant messages for capacity expansion are not processed any more; the finish state corresponds to the fourth state. The state after the newly added device receives the message requesting to join the system sent by the management system and before the newly added device finishes joining the system is the fifth state, which is represented as the join state in this embodiment.
In this embodiment, the discover state, the offer _ ip state, and the join state all have corresponding aging timers, and if no state transition is performed within a specified time, the state will return to the initial start state again. The reliability of system expansion is guaranteed, the expansion flow can be restarted when expansion fails, and effective addition of the newly added equipment is guaranteed.
Third embodiment
Referring to fig. 5, a third embodiment of the present invention provides an apparatus 300 for automatically expanding a capacity of a system based on the same inventive concept. The device of the automatic capacity expansion system comprises:
a multicast module 301, configured to send a multicast packet into a local area network; the local area network is a network where a management system is located;
a receiving module 302, configured to receive a first reply packet sent by the new device based on the multicast packet;
an address configuration module 303, configured to obtain a target address of the newly added device based on the first reply packet; wherein the target address is an IPV4 address;
and the capacity expansion module 304 is configured to add the newly added device to the management system based on the target address.
As an optional implementation manner, the multicast module 301 is further configured to:
based on UDP protocol, sending multicast message based on IPV6 to LAN.
As an optional implementation manner, the multicast packet includes:
version information and role information.
As an optional implementation manner, the address configuration module 303 is further configured to:
judging whether the newly added equipment has an available IPV4 address or not based on the reply message; if not, sending a configuration message for configuring the target address to the newly added equipment; after receiving a second reply message sent by the newly added device based on the configuration message, obtaining the target address; and if so, acquiring the target address.
It should be noted that, the specific implementation and technical effects of the apparatus 300 for an automatic capacity expansion system according to the embodiment of the present invention are the same as those of the foregoing method embodiment, and for brief description, reference may be made to corresponding contents in the foregoing method embodiment for parts that are not mentioned in the apparatus embodiment.
Fourth embodiment
Based on the same inventive concept, a fourth embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the method of any one of the first and second embodiments.
It should be noted that, when the above program is executed by a processor in a computer-readable storage medium provided in an embodiment of the present invention to implement the steps of the method in any one of the first embodiment and the second embodiment, the specific implementation and the resulting technical effect of each step are the same as those of the foregoing method embodiment, and for brief description, corresponding contents in the foregoing method embodiment may be referred to for what is not mentioned in this embodiment.
The term "and/or" appearing herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter associated objects are in an "or" relationship; the word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (8)

1. A method for automatically expanding a system is characterized in that the method is applied to a management system, newly added equipment is configured with a start state, a discover state, an offer _ ip state and a finish state, each state in the newly added equipment is provided with a corresponding aging timer, and the state of the newly added equipment which is not subjected to state transition within a specified time is controlled to be an initial start state through the aging timers; the method comprises the following steps:
sending a multicast message to a local area network to enable the newly added equipment to transfer the equipment state from a start state to a discover state; the local area network is a network where the management system is located; when the newly added device is in the start state, the newly added device is used for processing the multicast message;
receiving a first reply message sent by the newly added device based on the multicast message; the first reply message is sent after the newly added equipment is transferred from a start state to a discover state;
obtaining a target address of the newly added equipment based on the first reply message; wherein the target address is an IPV4 address; the obtaining the target address of the newly added device based on the first reply packet includes: judging whether the newly added equipment has an available IPV4 address or not based on the first reply message; if not, sending a configuration message for configuring the target address to the newly added device so as to enable the newly added device to be shifted from a discover state to an offer _ ip state; after receiving a second reply message sent by the newly added device based on the configuration message, obtaining the target address; if yes, obtaining the target address; when the newly added device is in a discover state, the newly added device is used for processing a configuration message or a message added into the management system; the offer _ ip state is used for processing the message added into the management system;
adding the newly added equipment into the management system based on the target address; after the newly added equipment is added into the management system, the newly added equipment is shifted to a finish state from a offer _ ip state; when the state of the newly added equipment is the finish state, the message for capacity expansion is not processed;
the multicast message and the configuration message are messages based on IPV6, message headers of the multicast message and the configuration message both comprise message types, and the message types are used for identifying the types of the current messages.
2. The method of claim 1, wherein sending the multicast packet into the local area network comprises:
based on UDP protocol, sending multicast message based on IPV6 to LAN.
3. The method according to claim 1 or 2, wherein the multicast message comprises:
version information and role information.
4. The utility model provides an automatic dilatation system's device which characterized in that is applied to the management system, and newly-increased equipment disposes start state, discover state, offer _ ip state and finish state, every state in the newly-increased equipment all is provided with corresponding ageing timer, through ageing timer control does not carry out the state transition in the appointed time newly-increased equipment's state is initial start state, the device includes:
the multicast module is used for sending a multicast message to a local area network so that the newly added equipment can transfer the equipment state from a start state to a discover state; wherein the local area network is a network where the management system is located; when the newly added device is in the start state, the newly added device is used for processing the multicast message;
a receiving module, configured to receive a first reply packet sent by the new device based on the multicast packet; the first reply message is sent after the newly added equipment is transferred from a start state to a discover state;
the address configuration module is used for obtaining the target address of the newly added equipment based on the first reply message; wherein the target address is an IPV4 address; it is also specifically used for: judging whether the newly added equipment has an available IPV4 address or not based on the first reply message; if not, sending a configuration message for configuring the target address to the newly added device so as to enable the newly added device to be shifted from a discover state to an offer _ ip state; after receiving a second reply message sent by the newly added device based on the configuration message, obtaining the target address; if yes, obtaining the target address; when the newly added device is in a discover state, the newly added device is used for processing a configuration message or a message added into the management system; the offer _ ip state is used for processing the message added into the management system;
the capacity expansion module is used for adding the newly added equipment into the management system based on the target address; after the newly added equipment is added into the management system, the newly added equipment is shifted to a finish state from a offer _ ip state; when the state of the newly added equipment is the finish state, the message for capacity expansion is not processed;
the multicast message and the configuration message are messages based on IPV6, message headers of the multicast message and the configuration message both comprise message types, and the message types are used for identifying the types of the current messages.
5. The apparatus of claim 4, wherein the multicast module is further configured to:
based on UDP protocol, sending multicast message based on IPV6 to LAN.
6. The apparatus according to claim 4 or 5, wherein the multicast packet comprises:
version information and role information.
7. A method for automatically expanding a system is applied to a newly added device, and the method comprises the following steps:
after receiving a multicast message sent by a management system, migrating the equipment state of the newly added equipment from a first state to a second state; when the newly added device is in the first state, the newly added device is configured to process the multicast packet and send a first reply packet to the management system, so that the management system determines whether the newly added device has an available IPV4 address based on the first reply packet; if not, sending a configuration message for configuring the target address to the newly added equipment; after receiving a second reply message sent by the newly added device based on the configuration message, obtaining the target address; if yes, obtaining the target address, wherein the target address is an IPV4 address of the newly added equipment; when the newly added equipment is in the second state, the newly added equipment is used for processing a configuration message or a message added into the management system; the multicast message and the configuration message are messages based on IPV6, message headers of the multicast message and the configuration message both comprise message types, and the message types are used for identifying the types of the current messages;
after receiving the configuration message, migrating the equipment state of the newly added equipment from the second state to a third state; the configuration message is used for configuring an IPV4 address of the newly added equipment; when the newly added equipment is in the third state, the newly added equipment is used for processing the message added into the management system;
after the current equipment state is added into the management system, the current equipment state is transferred from the second state to a fourth state; when the newly added device is in the fourth state, the newly added device does not process the message for capacity expansion;
the first state is a start state, the second state is a discover state, the third state is a offer _ ip state, and the fourth state is a finish state; and each state of the newly added equipment is provided with a corresponding aging timer, and the state of the newly added equipment which does not carry out state transition within a specified time is controlled to be an initial start state through the aging timer.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 3 or claim 7.
CN202010973103.1A 2020-09-16 2020-09-16 Method and device for automatically expanding system Active CN112134735B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010973103.1A CN112134735B (en) 2020-09-16 2020-09-16 Method and device for automatically expanding system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010973103.1A CN112134735B (en) 2020-09-16 2020-09-16 Method and device for automatically expanding system

Publications (2)

Publication Number Publication Date
CN112134735A CN112134735A (en) 2020-12-25
CN112134735B true CN112134735B (en) 2022-12-20

Family

ID=73846896

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010973103.1A Active CN112134735B (en) 2020-09-16 2020-09-16 Method and device for automatically expanding system

Country Status (1)

Country Link
CN (1) CN112134735B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102368724A (en) * 2011-09-08 2012-03-07 华为技术有限公司 Message forwarding method and apparatus thereof
CN103036863A (en) * 2012-04-01 2013-04-10 浙江宇视科技有限公司 Method and device for solving address shortage of internet protocol version 4 (IPv4)
CN103516599A (en) * 2012-06-15 2014-01-15 华为技术有限公司 Host finding method, network device, and host
CN107124312A (en) * 2017-05-09 2017-09-01 北京匡恩网络科技有限责任公司 The method and apparatus of equipment in network configuration
CN110062058A (en) * 2019-04-25 2019-07-26 新华三技术有限公司 The configuration method and device of network address

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102368724A (en) * 2011-09-08 2012-03-07 华为技术有限公司 Message forwarding method and apparatus thereof
CN103036863A (en) * 2012-04-01 2013-04-10 浙江宇视科技有限公司 Method and device for solving address shortage of internet protocol version 4 (IPv4)
CN103516599A (en) * 2012-06-15 2014-01-15 华为技术有限公司 Host finding method, network device, and host
CN107124312A (en) * 2017-05-09 2017-09-01 北京匡恩网络科技有限责任公司 The method and apparatus of equipment in network configuration
CN110062058A (en) * 2019-04-25 2019-07-26 新华三技术有限公司 The configuration method and device of network address

Also Published As

Publication number Publication date
CN112134735A (en) 2020-12-25

Similar Documents

Publication Publication Date Title
CN106301829B (en) A kind of method and apparatus of network service dilatation
CN103460203B (en) cluster unique identifier
CN103621049A (en) System and method for automatically addressing devices in multi-drop network
CN112202877B (en) Gateway linkage method, gateway, cloud server and user terminal
CN106506717A (en) A kind of automatic discovering method and equipment
CN101651721A (en) Method and system for judging type of network address translation equipment
CN114285695B (en) Communication method, device, apparatus, system and storage medium
KR20090084670A (en) Method and system for two-phase mechanism for discovering web services based management service
EP3901766A1 (en) Offline configuration method and apparatus for smart device
US20030231642A1 (en) Data upgrade method for a switching device in two-layer network environment
CN102025797A (en) Address prefix processing method, device, system and network equipment
CN111225082A (en) Identity management method and device of Internet of things intelligent equipment and Internet of things platform
CN112134735B (en) Method and device for automatically expanding system
US11128558B2 (en) Automatic routing configuration between hosts and network layer devices
US7962799B2 (en) System and method for synchronizing test runs on separate systems
US11888812B1 (en) Host discovery and addition method and apparatus in data center, and device and medium
CN104320718B (en) It is a kind of to avoid multiple DMC from pushing the method and device that media play produces conflict
CN113194119B (en) Configuration file acquisition method and device
US9077741B2 (en) Establishing communication between entities in a shared network
CN110708383A (en) Network connection method of block chain node and related equipment
CN109224451A (en) Development of games method, equipment and storage medium based on block chain subchain
CN104468696A (en) Method, server and device for performing point-to-point connection
CN111343296B (en) Virtualized application communication method, device, server and storage medium
WO2024001564A1 (en) Configuration data refreshing method, apparatus, system, storage medium, and electronic apparatus
CN114679483B (en) Communication method, system and storage medium for distributed service communication system

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
GR01 Patent grant
GR01 Patent grant