CN102868761A - Cluster network automatic configuration and management method based on space coordinates - Google Patents

Cluster network automatic configuration and management method based on space coordinates Download PDF

Info

Publication number
CN102868761A
CN102868761A CN2012103749874A CN201210374987A CN102868761A CN 102868761 A CN102868761 A CN 102868761A CN 2012103749874 A CN2012103749874 A CN 2012103749874A CN 201210374987 A CN201210374987 A CN 201210374987A CN 102868761 A CN102868761 A CN 102868761A
Authority
CN
China
Prior art keywords
network address
configuration
cluster
node
address configuration
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
CN2012103749874A
Other languages
Chinese (zh)
Other versions
CN102868761B (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.)
Wuxi Jiangnan Computing Technology Institute
Original Assignee
Wuxi Jiangnan Computing Technology Institute
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 Wuxi Jiangnan Computing Technology Institute filed Critical Wuxi Jiangnan Computing Technology Institute
Priority to CN201210374987.4A priority Critical patent/CN102868761B/en
Publication of CN102868761A publication Critical patent/CN102868761A/en
Application granted granted Critical
Publication of CN102868761B publication Critical patent/CN102868761B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a cluster network automatic configuration and management method based on space coordinates. The cluster network automatic configuration and management method includes: connecting control interfaces of all node group cards in hard-wiring mode to form a cluster network; performing layered network address configuration by adopting position information codes in fixed coding format, wherein the length of the position information codes is determined by system scale and layer configuration of nodes in the cluster network, and the position information codes are divided into a low-order data segment, a middle-order data segment and a high-order data segment; using the high-order data segment to designate the network address configuration mode and significance bit marks; and judging that the current codes are valid when the high-order data segment is at a specific value and using the position information codes to perform node network address configuration, and otherwise using a network address configuration file of a node file system to perform node network address configuration.

Description

A kind of cluster network based on space coordinates configures and management method automatically
Technical field
The present invention relates to the computing technique field, more particularly, the present invention relates to a kind of cluster network based on space coordinates and automatically configure and management method.
Background technology
In the large scale and high density cluster, network address configuration and management are extremely important in the work of cluster O﹠M, have affected to a great extent the efficient of cluster O﹠M work.In service at cluster, the node machine of delaying can occur unavoidably, if do not have the configuration of the effective network address and management strategy, need to expend a large amount of manpowers and manually locate malfunctioning node and carry out fault recovery, this has just affected the O﹠M efficient of whole cluster, even has influence on the performance of cluster.
In cluster network address configuration management, normal operation DHCP(DynamicHost arranges agreement, Dynamic Host Configuration Protocol) agreement carries out network address configuration and management.Wherein, the DHCP agreement is the procotol of a local area network (LAN), and it uses UDP(User Datagram Protocol, User Datagram Protoco (UDP)) agreement work.And the main operation of DHCP agreement is to internal network or network service automatic IP address allocation, and gives user or internal network keeper as the means of all computers being carried out central management.Client computer sends MAC(MediaAccess Control, medium access control to Dynamic Host Configuration Protocol server) address is as the sign of obtaining IP.
In the embedded cluster of some high density, because hardware and design need the initial MAC Address of all nodes identical, carry out obtaining of dynamic IP by the DHCP agreement thus and become problem, wherein can not carry out network address configuration and management by the DHCP agreement.
Therefore, need a kind of method that simply can carry out efficiently the configuration of the automatic network address and management and have certain fault-tolerant ability.
Summary of the invention
Technical problem to be solved by this invention is for having defects in the prior art, a kind of embedded high density cluster automatic network address configuration and management method based on space coordinates being provided.
According to the present invention, provide a kind of cluster network based on space coordinates automatically to configure and management method, it comprises: the hardwired step is used for the control interface of each node group card is connected with hardwired fashion, to form cluster network; Network address configuration step is used for being undertaken by the positional information coding that adopts the regular coding form network address configuration of level, and wherein the positional information code length is that system scale and hierarchical configuration by the node in the cluster network determines.
Preferably, in the configuration step of the described network address, the positional information coding is divided into low data section, meta data segment and high position data section.
Preferably, in the configuration step of the described network address, decide the length of low data section according to the number of nodes on the node group card.
Preferably, in the configuration step of the described network address, decide the length of meta data segment according to the quantity of the node group card in the cluster network.
Preferably, in the configuration step of the described network address, the length of high position data section is set to two.
Preferably, in the configuration step of the described network address, utilize the high position data section to come given network address configuration mode and significance bit sign; Be that the situation of particular value judges present encoding effectively and the use location information coding carries out the meshed network address configuration in the high position data section, otherwise expression adopt the network address configuration file of node file system to carry out the meshed network address configuration.
Preferably, described network address configuration step comprises: first step, wherein utilize the control node to write the different network addresss according to the scale of cluster network to different node group cards; Second step, the positional information that reads in the network address by control interface when node starts is encoded; Third step, high position data section according to the positional information coding that reads judges whether present encoding is effective, and wherein, if the high position data section according to the positional information coding that reads judges that present encoding is effective, then process and forward the 4th step to, if judge that according to the high position data section present encoding is invalid, then process forwarding the 5th step to; The 4th step, the use location information coding carries out the meshed network address configuration, simultaneously network address configuration is write in the network address configuration script of file system.
In the present invention, at first, by hard-wired mode is concentrated all nodes are carried out network address configuration, solved the problem of automatically carrying out network address configuration; Secondly, carry out the network address configuration of level by the positional information coding that adopts the regular coding form, wherein the positional information code length is that system scale and hierarchical configuration by the node in the cluster network determines, thus the quick location of realizing node; And the automatic network address configuration method based on space coordinates has certain fault-tolerant ability, namely, even in use because some is former thereby the situation that interface can not correctly configure occurs, also can be by the network address configuration file in the redundant file system that arranges of the conduct of the inventive method, in the situation that obtain the correctness that the positional information failure still can guarantee network address configuration.
Description of drawings
By reference to the accompanying drawings, and by with reference to following detailed description, will more easily to the present invention more complete understanding be arranged and more easily understand its advantage of following and feature, wherein:
Fig. 1 schematically shows the embedded aggregated structure of high density.
Fig. 2 schematically shows the example according to the positional information coding of the embodiment of the invention.
Fig. 3 schematically shows the example according to the configuration step of the meshed network address configuration of the embodiment of the invention.
Need to prove, accompanying drawing is used for explanation the present invention, and unrestricted the present invention.Note, the accompanying drawing of expression structure may not be to draw in proportion.And in the accompanying drawing, identical or similar element indicates identical or similar label.
Embodiment
In order to make content of the present invention more clear and understandable, below in conjunction with specific embodiments and the drawings content of the present invention is described in detail.
Figure 1 shows that an embedded aggregated structure of typical high density is the framework of a level, this embedded aggregated structure comprises 8 node group cards, particularly, for example, embedded aggregated structure have first node group card 0, Section Point group card 1 ..., the 8th node group card 7.On each node group card 8 nodes (on gusset plate) are arranged, for example, first node group card 0 have first node A0, Section Point A1 ..., the 8th node A7.Thus, whole embedded aggregated structure is comprised of 64 nodes.
This embedded aggregated structure also comprises with each node group and links the control Node B that connects.
Each node group jig has the control interface that is arranged in gusset plate separately.For example, first node group card 0 has the first control interface P1.
In the embedded cluster of such high density, in order to support the automatic network address configuration, its implementation should satisfy the application demand of automatic network address configuration and node locating, looks after again the many factors such as stability, reliability of hardware resource expense, design complexity, realization.
Thus, preferably can adopt general GPIO(General Purpose Input Output, universal input/output) interface is as providing the interface of positional information, these positional informations be on node group card and base plate with the direct realization of hardwired fashion, realize simple and reliable and stable.
That is, in embodiments of the present invention, the control interface of each node group card is connected (for example being connected on the base plate) with hardwired fashion, to form cluster network.After this, carry out the network address configuration of level by the positional information coding that adopts the regular coding form, wherein the positional information code length is that system scale and hierarchical configuration by the node in the cluster network determines; This will be specifically described hereinafter.
In the method for the embodiment of the invention, the control Node B adopts concentrates the mode of hierarchical control to provide positional information to each node.Particularly, by hard-wired mode the positional information of the gusset plate of each node is sent in the node GPIO interface, node is determined its positional information by the data that read in the corresponding GPIO interface.Simultaneously, the method for the embodiment of the invention provides a kind of unified positional information coding to come to determine the meshed network address configuration according to positional information.
Specifically, the positional information coding is the unique rule that determines how meshed network configures, and its code length is determined by system scale.In embodiments of the present invention, the positional information coding is divided into low data section, meta data segment and high position data section.
In canonical system shown in Figure 1, each node group is made of 8 nodes, and 8 node group plates consist of whole Embedded Cluster System.Under this configuration, the length of positional information coding is 8, and wherein minimum 3 (low data sections) of positional information coding are used for the position of expression node on node group card, and from 000 to 111 represents respectively position 0 to 7; The the 4th to 6 (meta data segment) expression of the inverse of positional information coding node group is stuck in the position in the chassis backplane, and coding range can from 0 to 7; The highest 2(high position data section of node location coding) position given network address configuration mode and significance bit sign, specifically, for example, the highest 2 of the positional information coding is that the effective also use location information coding of " 01 " expression present encoding carries out the meshed network address configuration, otherwise (in the situation of high position data section for the value outside " 01 ") represents to adopt the network address configuration file of node file system to be configured.Effective bit flag is set guarantees that node can carry out network address configuration according to the mode of appointment, and can avoid because the integrity problem that the device reason causes.
Although the length that shows the length of low data section and be 3 and meta data segment is 3 example, but, preferably, decide the length of low data section according to the number of nodes on the node group card, preferably, decide the length of meta data segment according to the quantity of the node group card in the cluster network.And preferably, the length of high position data section is two.
Fig. 2 schematically shows the example according to the positional information coding of the embodiment of the invention.As shown in Figure 2, minimum 3 " 001 " expression node position on node group card is corresponding to " 001 " indicated position; Reciprocal the 4th to 6 " 001 " expression node group is stuck in position in the chassis backplane corresponding to " 001 " indicated position; The highest 2 " 01 " expression present encoding effectively also use location information coding is carried out the meshed network address configuration.
And, in embodiments of the present invention, the space coordinates with node and node group card of positional information coding is relevant, and the corresponding relation of coding rule and space coordinates is specified according to demand, so just can directly determine easily node location according to the IP address of node.
Specifically, for example, Fig. 3 schematically shows the example according to the configuration step of the meshed network address configuration of the embodiment of the invention.As described in Figure 3, meshed network address configuration step is as follows:
First step S 1 wherein utilizes control node (control Node B as shown in Figure 1) to write the different network addresss according to the scale of cluster network to different node group cards;
Second step S2, the positional information that reads in the network address by control interface (for example GPIO interface) when node starts is encoded, and processes forwarding third step S3 to;
Third step S3 judges according to the high position data section of the positional information coding that reads whether present encoding is effective; And wherein, if judge that according to the high position data section of the positional information coding that reads present encoding is effective, then process forwarding the 4th step S4 to; If judge that according to the high position data section present encoding is invalid, then process forwarding the 5th step S5 to.
The 4th step S4 wherein generates node IP address according to rule and carries out network address configuration (that is, the use location information coding carries out the meshed network address configuration), simultaneously network address configuration is write in the network address configuration script of file system.
The 5th step S5, wherein in start-up course not by reading the positional information configuration network, carry out voluntarily network address configuration but transfer to operating system, namely adopt the network address configuration file of node file system to carry out the meshed network address configuration.
Obtained thus a specific implementation of meshed network address configuration step.
Thus, the embodiment of the invention has following advantages at least:
1. in the embedded cluster of large scale and high density, adopt central controlled mode to carry out network address configuration: in typical embedded cluster, the reason of not supporting owing to hardware, can not adopt the DHCP agreement to carry out network address configuration, by hard-wired mode is concentrated all nodes are carried out network address configuration, solved the problem of automatically carrying out network address configuration.
2. carry out the network address configuration of level by the positional information coding that adopts the regular coding form, wherein the positional information code length is that system scale and hierarchical configuration by the node in the cluster network determines.Adopt fixing coded format IP and positional information can be mapped by preset rules, thus the quick location of realizing node.
3. the automatic network address configuration method based on space coordinates has certain fault-tolerant ability: in use can the situation that the GPIO interface can not correctly configure occur because of some reason, by the redundancy setting (network address configuration file in the file system) of the inventive method, in the situation that obtain the correctness that the positional information failure still can guarantee network address configuration.
In addition, need to prove, term in the specification " first ", " second ", " the 3rd " etc. describe each assembly of only being used for distinguishing specification, element, step etc., rather than are used for logical relation between each assembly of expression, element, the step or ordinal relation etc.
Be understandable that, although the present invention with the preferred embodiment disclosure as above, yet above-described embodiment is not to limit the present invention.For any those of ordinary skill in the art, do not breaking away from the technical solution of the present invention scope situation, all can utilize the technology contents of above-mentioned announcement that technical solution of the present invention is made many possible changes and modification, or be revised as the equivalent embodiment of equivalent variations.Therefore, every content that does not break away from technical solution of the present invention according to any simple modification, equivalent variations and the modification that technical spirit of the present invention is done above embodiment, all still belongs in the scope of technical solution of the present invention protection.

Claims (7)

1. the cluster network based on space coordinates configures and management method automatically, it is characterized in that comprising:
The hardwired step is used for the control interface of each node group card is connected with hardwired fashion, to form cluster network;
Network address configuration step is used for being undertaken by the positional information coding that adopts the regular coding form network address configuration of level, and wherein the positional information code length is that system scale and hierarchical configuration by the node in the cluster network determines.
2. the cluster network based on space coordinates according to claim 1 configures and management method automatically, it is characterized in that, in the configuration step of the described network address, the positional information coding is divided into low data section, meta data segment and high position data section.
3. the cluster network based on space coordinates according to claim 2 configures and management method automatically, it is characterized in that, in the configuration step of the described network address, decides the length of low data section according to the number of nodes on the node group card.
4. the cluster network based on space coordinates according to claim 2 configures and management method automatically, it is characterized in that, in the configuration step of the described network address, decides the length of meta data segment according to the quantity of the node group card in the cluster network.
5. the cluster network based on space coordinates according to claim 2 configures and management method automatically, it is characterized in that, in the configuration step of the described network address, the length of high position data section is set to two.
6. according to claim 1 to one of 5 described cluster networks based on space coordinates automatically configuration and management method, it is characterized in that, in the configuration step of the described network address, utilize the high position data section to come given network address configuration mode and significance bit sign; Be that the situation of particular value judges present encoding effectively and the use location information coding carries out the meshed network address configuration in the high position data section, otherwise expression adopt the network address configuration file of node file system to carry out the meshed network address configuration.
7. according to claim 2 to one of 5 described cluster networks based on space coordinates automatically configuration and management method, it is characterized in that, described network address configuration step comprises:
First step wherein utilizes the control node to write the different network addresss according to the scale of cluster network to different node group cards;
Second step, the positional information that reads in the network address by control interface when node starts is encoded;
Third step, high position data section according to the positional information coding that reads judges whether present encoding is effective, and wherein, if the high position data section according to the positional information coding that reads judges that present encoding is effective, then process and forward the 4th step to, if judge that according to the high position data section present encoding is invalid, then process forwarding the 5th step to;
The 4th step, the use location information coding carries out the meshed network address configuration, simultaneously network address configuration is write in the network address configuration script of file system.
CN201210374987.4A 2012-09-28 2012-09-28 Cluster network automatic configuration and management method based on space coordinates Active CN102868761B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210374987.4A CN102868761B (en) 2012-09-28 2012-09-28 Cluster network automatic configuration and management method based on space coordinates

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210374987.4A CN102868761B (en) 2012-09-28 2012-09-28 Cluster network automatic configuration and management method based on space coordinates

Publications (2)

Publication Number Publication Date
CN102868761A true CN102868761A (en) 2013-01-09
CN102868761B CN102868761B (en) 2014-10-22

Family

ID=47447347

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210374987.4A Active CN102868761B (en) 2012-09-28 2012-09-28 Cluster network automatic configuration and management method based on space coordinates

Country Status (1)

Country Link
CN (1) CN102868761B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015196719A1 (en) * 2014-06-25 2015-12-30 中兴通讯股份有限公司 Address configuration method, apparatus and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040184408A1 (en) * 2003-03-22 2004-09-23 Sbc Properties, L.P. Ethernet architecture with data packet encapsulation
CN101047631A (en) * 2006-04-29 2007-10-03 华为技术有限公司 Customer position information transmitting method, MAC address automatic allocating method, network creating method and system
CN102546852A (en) * 2011-12-13 2012-07-04 西安交通大学 Address automatic configuration method of fault-tolerant data center network
CN102622349A (en) * 2011-01-26 2012-08-01 北京四维图新科技股份有限公司 Processing method and processing device of spatial position information database

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040184408A1 (en) * 2003-03-22 2004-09-23 Sbc Properties, L.P. Ethernet architecture with data packet encapsulation
CN101047631A (en) * 2006-04-29 2007-10-03 华为技术有限公司 Customer position information transmitting method, MAC address automatic allocating method, network creating method and system
CN102622349A (en) * 2011-01-26 2012-08-01 北京四维图新科技股份有限公司 Processing method and processing device of spatial position information database
CN102546852A (en) * 2011-12-13 2012-07-04 西安交通大学 Address automatic configuration method of fault-tolerant data center network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李学斌 等: "大规模无线传感器网络中的地址管理方法研究", 《计算机工程与应用》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015196719A1 (en) * 2014-06-25 2015-12-30 中兴通讯股份有限公司 Address configuration method, apparatus and device

Also Published As

Publication number Publication date
CN102868761B (en) 2014-10-22

Similar Documents

Publication Publication Date Title
WO2019144553A1 (en) Data storage method and apparatus, and storage medium
CN104170323A (en) Fault handling method, device and system based on network function virtualization
CN111917846A (en) Kafka cluster switching method, device and system, electronic equipment and readable storage medium
CN102035862A (en) Configuration node fault transfer method and system in SVC cluster
CN102984214B (en) A kind of method and device realizing business migration in telecom cloud
CN102137007B (en) Method and system for generating network topology as well as coordinator
US10826812B2 (en) Multiple quorum witness
CN102316043B (en) Port virtualization method, switch and communication system
CN110287151B (en) Distributed storage system, data writing method, device and storage medium
CN102194009A (en) Database hosting method and database hosting platform system
WO2014026524A1 (en) Resource allocation method and device
CN104424048A (en) Data storage method and equipment
CN113783765B (en) Method, system, equipment and medium for realizing intercommunication between cloud internal network and cloud external network
CN104750428A (en) Block storage access and gateway module, storage system and method, and content delivery apparatus
CN104144215A (en) Method for building Internet-of-Things ubiquitous device resource model
CN103092798A (en) On-chip system and method for accessing to equipment under bus
CN115277566B (en) Load balancing method and device for data access, computer equipment and medium
CN105095103A (en) Storage device management method and device used for cloud environment
EP3014817B1 (en) Hardware management communication protocol
CN104111874A (en) High-concurrence high-reliability load balance software architecture design of virtual mainframe in cloud computing environment
CN113051104A (en) Method and related device for recovering data between disks based on erasure codes
CN111147274A (en) System and method for creating a highly available arbitration set for a cluster solution
CN114003350B (en) Data distribution method and system of super-fusion system
CN114371914A (en) Container IP address configuration method and device, storage medium and electronic equipment
CN105354332A (en) Method and system for implementing mutual standby of database and middleware based on BCP (Batch Communications Program)

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
C53 Correction of patent of invention or patent application
CB03 Change of inventor or designer information

Inventor after: Hao Ziyu

Inventor after: Xie Xianghui

Inventor after: Wu Dong

Inventor after: Yuan Hao

Inventor after: Qian Lei

Inventor after: Cang Chunfeng

Inventor after: Li Xi

Inventor after: Han Wenbao

Inventor after: Zhu Guiming

Inventor before: Hao Ziyu

Inventor before: Xie Xianghui

Inventor before: Wu Dong

Inventor before: Yuan Hao

Inventor before: Qian Lei

Inventor before: Cang Chunfeng

Inventor before: Li Xi

Inventor before: Zhu Guiming

COR Change of bibliographic data

Free format text: CORRECT: INVENTOR; FROM: HAO ZIYU XIE XIANGHUI WU DONG YUAN HAO QIAN LEI ZANG CHUNFENG LI XI ZHU GUIMING TO: HAO ZIYU XIE XIANGHUI WU DONG YUAN HAO QIAN LEI ZANG CHUNFENG LI XI HAN WENBAO ZHU GUIMING