CN101183973A - Method of implementing command line configuration distribution in distributed system - Google Patents
Method of implementing command line configuration distribution in distributed system Download PDFInfo
- Publication number
- CN101183973A CN101183973A CNA2007101248644A CN200710124864A CN101183973A CN 101183973 A CN101183973 A CN 101183973A CN A2007101248644 A CNA2007101248644 A CN A2007101248644A CN 200710124864 A CN200710124864 A CN 200710124864A CN 101183973 A CN101183973 A CN 101183973A
- Authority
- CN
- China
- Prior art keywords
- configuration order
- configuration
- character string
- primary processor
- processors
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Multi Processors (AREA)
Abstract
The invention discloses a distributed system command line configuring and delivering method, which adopts the technical proposal that: firstly, parameter analysis, abstraction and configuration of the configuration command character string is performed on the main processor and then the configuration command character string is transmitted to the other processor; secondly, other processor receives the configuration command character string for parameter analysis, abstraction and configuration. The invention has the advantages that: configuration command character string is used instead of memory data structure, so that the communication information quantity between the main processor and other processors is reduced, bandwidth utilization rate is reduced, and the stability and efficiency of out-band communication is increased; the processing flow of the main processor and the other processor is uniform, so that the realization and maintenance is simpler and more convenient.
Description
Technical field
The present invention relates to a kind of implementation method of computer network communication, in particular a kind of method that realizes the distributed system command down-transmitting.
Background technology
In the prior art, the user command row configuration that receives on the distributed system primary processor often needs to be issued to carry out on other processors can make configuration take-effective.At present, primary processor adopts the following steps process more when the capable configuration of other processor transmitting order to lower levels: receive the configuration order character string on primary processor; Resolve the configuration order character string on the primary processor, draw keyword, the parameter of configuration order; On primary processor, carry out configuration order, in corresponding configuration write memory data structure; Described primary processor carries out the isochronous memory data structure to other processors; Other processors receive the data structure that primary processors are come synchronously, extract in wherein data, the write memory data structure and make configuration take-effective.
But there is following problem in this method of prior art:
The one, communication information amount is very big between primary processor and other processors, can waste the out-of-band communication bandwidth, causes communication failure easily; Secondly, the flow process difference of fill order configuration realizes and the attended operation complexity between primary processor and other processors.
Therefore, also there is defective in prior art, and awaits improving and development.
Summary of the invention
Technical problem to be solved by this invention is: it is higher to overcome the complexity that exists in the prior art, problem that reliability and maintainability is relatively poor and defective, provide a kind of reliably, command line configuration distribution method easily.
Technical scheme of the present invention comprises:
The implementation method of command line configuration distribution in a kind of distributed system, it may further comprise the steps:
A, the parameter of carrying out the configuration order character string on primary processor are resolved, are extracted and configuration, and send described configuration order character string to other processors;
B, other processors receive described configuration order character string, and carry out relevant parameter and resolve, extract and configuration.
Described implementation method, wherein, described steps A also comprises:
A1, described primary processor receive described configuration order character string from the user;
A2, described primary processor are resolved this configuration order character string;
A3, described primary processor are carried out configuration order, configurable write are gone into the internal storage data structure of primary processor;
A4, described primary processor judge whether configuration order runs succeeded; If configuration order runs succeeded, described primary processor then sends to other processors with this configuration order character string.
Described implementation method, wherein, described steps A 2 also comprises: the keyword of coupling configuration order, extract configuration order parameter wherein, carry out the parameter validity checking.
Described implementation method, wherein, described step B also comprises:
B1, described other processors receive described configuration order character string from described primary processor;
B2, described other processors are resolved the configuration order character string;
B3, described other processors are carried out configuration order, configuration parameter are write the internal storage data structure of this processor;
B4, according to described configuration order parameter configuration take-effective on other processors.
Described implementation method, wherein, described step B2 also comprises: coupling configuration order keyword, extract the configuration order parameter, carry out the parameter validity checking.
The implementation method of command line configuration distribution in a kind of distributed system provided by the present invention, compared with prior art, because it is configuration order character string rather than internal storage data structure that the present invention adopts synchronous, reduced the communication information amount between primary processor and other processors, reduce bandwidth availability ratio, increased stable, the efficient performance of out-of-band communication; Primary processor and other processors are carried out unified handling process, make realization and safeguard simple more, convenient.
Description of drawings
Fig. 1 is the flow chart that the inventive method primary processor configuration order is handled;
Fig. 2 is the flow chart that other processor configuration orders of the inventive method are handled.
Embodiment
Below in conjunction with accompanying drawing, will carry out comparatively detailed explanation to each preferred embodiment of the present invention.
The core improvement of the implementation method of command line configuration distribution is to adopt the configuration order character string to carry out synchronously rather than the internal storage data structure in the distributed system of the present invention.
The method of command line configuration distribution of the present invention may further comprise the steps: receive the configuration order character string on primary processor; On primary processor, resolve the configuration order character string, draw keyword, the parameter of configuration order; On primary processor, carry out configuration order, in corresponding configuration write memory data structure; If the command execution success, then primary processor directly sends to other processors with the configuration order character string; After other processors receive the configuration order character string of primary processor transmission, operations such as execution and the essentially identical parameter parsing of primary processor, extraction, configuration; After running succeeded on other processors, make configuration take-effective.
What the inventive method was carried out synchronous transmission between primary processor and other processors is the configuration order character string, and other processing procedures all are same as the prior art, therefore, repeats no more its concrete processing procedure.
For proving absolutely the processing procedure of the inventive method, the entire process process can be decomposed and comprise the processing of primary processor configuration order and two processes of other processor configuration order handling processes.
As shown in Figure 1, be the primary processor configuration order handling process of the inventive method, it comprises the steps:
A1, primary processor receive the configuration order character string there from the user;
A2, primary processor are resolved this configuration order character string, and the keyword of coupling configuration order extracts configuration order parameter wherein, carries out the parameter validity checking;
A3, described primary processor are carried out configuration order, and configuration is write corresponding internal storage data structure;
A4, described primary processor judge whether configuration order runs succeeded; If configuration order runs succeeded, described primary processor then sends to other processors with this configuration order character string.
In steps A 4, described primary processor is that the configuration order character string is directly issued other processors, the synchronizing process of carrying out the internal storage data structure of this and existing processing method is compared, with the communication bandwidth of saving greatly between primary processor and other processors, because send a command string usually as long as tens, tens bytes at most, sending the internal storage data structure in the existing processing method then needs several thousand even go up Mbytes, so just makes out-of-band communication between primary processor and other processors stable more, efficiently.
As shown in Figure 2, be other processor configuration order handling processes of the inventive method, it comprises the steps:
B1, other processors receive described configuration order character string from primary processor;
B2, other processors are resolved the configuration order character string, and coupling configuration order keyword extracts the configuration order parameter, carries out the parameter validity checking;
B3, other processors are carried out configuration order, and configuration is write corresponding internal storage data structure;
B4, according to described configuration order parameter configuration take-effective on other processors.
As above step, identical on the handling process of B1 wherein, B2, B3 step and the primary processor, when program development, can carry out code reuse, only need safeguard a cover code when safeguarding, realize comparing with the different disposal flow process different code of existing method, design very convenient, be easy to maintenance, make program running more reliable.
Should be understood that above-mentioned description at preferred embodiment of the present invention is comparatively detailed and concrete, can not therefore think the restriction to scope of patent protection of the present invention, scope of patent protection of the present invention should be as the criterion with claims.
Claims (5)
1. the implementation method of command line configuration distribution in the distributed system, it may further comprise the steps:
A, the parameter of carrying out the configuration order character string on primary processor are resolved, are extracted and configuration, and
Send described configuration order character string to other processors;
B, other processors receive described configuration order character string, and carry out relevant parameter and resolve, extract and configuration.
2. implementation method according to claim 1 is characterized in that, described steps A also comprises:
A1, described primary processor receive described configuration order character string from the user;
A2, described primary processor are resolved this configuration order character string;
A3, described primary processor are carried out configuration order, configurable write are gone into the internal storage data structure of primary processor;
A4, described primary processor judge whether configuration order runs succeeded; If configuration order runs succeeded, described primary processor then sends to other processors with this configuration order character string.
3. implementation method according to claim 2 is characterized in that, described steps A 2 also comprises: the keyword of coupling configuration order, extract configuration order parameter wherein, and carry out the parameter validity checking.
4. implementation method according to claim 1 is characterized in that, described step B also comprises:
B1, described other processors receive described configuration order character string from described primary processor;
B2, described other processors are resolved the configuration order character string;
B3, described other processors are carried out configuration order, configuration parameter are write the internal storage data structure of this processor;
B4, according to described configuration order parameter configuration take-effective on other processors.
5. implementation method according to claim 4 is characterized in that, described step B2 also comprises: coupling configuration order keyword, extract the configuration order parameter, and carry out the parameter validity checking.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2007101248644A CN101183973A (en) | 2007-12-06 | 2007-12-06 | Method of implementing command line configuration distribution in distributed system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2007101248644A CN101183973A (en) | 2007-12-06 | 2007-12-06 | Method of implementing command line configuration distribution in distributed system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101183973A true CN101183973A (en) | 2008-05-21 |
Family
ID=39449069
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2007101248644A Pending CN101183973A (en) | 2007-12-06 | 2007-12-06 | Method of implementing command line configuration distribution in distributed system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101183973A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102289372A (en) * | 2011-07-21 | 2011-12-21 | 京信通信系统(中国)有限公司 | Character string protocol resolution method and device based on launcher umbilical tower (LUT) |
CN102436458A (en) * | 2011-03-02 | 2012-05-02 | 奇智软件(北京)有限公司 | Command analyzing method and system |
CN103036668A (en) * | 2012-12-11 | 2013-04-10 | 上海斐讯数据通信技术有限公司 | Rack-mounted equipment tab configuration synchronization method based on a command line |
CN103457761A (en) * | 2013-07-17 | 2013-12-18 | 国家电网公司 | Cross-platform command line configuration interface implementation method |
CN112564999A (en) * | 2020-11-02 | 2021-03-26 | 鹏城实验室 | Network measurement method, measurement management server, system and storage medium |
-
2007
- 2007-12-06 CN CNA2007101248644A patent/CN101183973A/en active Pending
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102436458A (en) * | 2011-03-02 | 2012-05-02 | 奇智软件(北京)有限公司 | Command analyzing method and system |
CN102289372A (en) * | 2011-07-21 | 2011-12-21 | 京信通信系统(中国)有限公司 | Character string protocol resolution method and device based on launcher umbilical tower (LUT) |
CN103036668A (en) * | 2012-12-11 | 2013-04-10 | 上海斐讯数据通信技术有限公司 | Rack-mounted equipment tab configuration synchronization method based on a command line |
CN103036668B (en) * | 2012-12-11 | 2018-01-30 | 上海斐讯数据通信技术有限公司 | Configuration and synchronization method between a kind of rack-mount unit card based on order line |
CN103457761A (en) * | 2013-07-17 | 2013-12-18 | 国家电网公司 | Cross-platform command line configuration interface implementation method |
CN103457761B (en) * | 2013-07-17 | 2017-02-08 | 国家电网公司 | Cross-platform command line configuration interface implementation method |
CN112564999A (en) * | 2020-11-02 | 2021-03-26 | 鹏城实验室 | Network measurement method, measurement management server, system and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100388675C (en) | A method for implementing foreground data configuration in network management system | |
CN101188566B (en) | A method and system for data buffering and synchronization under cluster environment | |
CN101588086B (en) | Method for processing recording file of multiple-plug-in component embedded type fault information system substation | |
CN103064731A (en) | Device and method for improving message queue system performance | |
CN104077420A (en) | Method and device for importing data into HBase database | |
CN102033912A (en) | Distributed-type database access method and system | |
CN100466563C (en) | Central monitoring method of the data service system without network management interface | |
CN103927218A (en) | Event dispatching method and system | |
CN111585344B (en) | Substation intelligent checking method and device based on total station IED simulation | |
CN101110706A (en) | Configuration data synchronization method | |
CN101183973A (en) | Method of implementing command line configuration distribution in distributed system | |
CN103067230A (en) | Method for achieving hyper text transport protocol (http) service monitoring through embedding monitoring code | |
CN102404306B (en) | Protocol configuration method and device | |
CN101729562A (en) | Reliable data transmission method under unreliable network connection | |
CN114449018B (en) | Automatic log file uploading method and system for power acquisition terminal | |
CN101576855A (en) | Data storing system and method based on cache | |
CN102929224A (en) | Condition acquisition controller (CAC) for power transformer equipment and system control method | |
CN103092866A (en) | Data monitoring method and monitoring device | |
CN102521356A (en) | Regular expression matching equipment and method on basis of deterministic finite automaton | |
WO2024149297A1 (en) | Container network packet capture processing method, apparatus and device, and readable storage medium | |
CN101324989A (en) | Automatic recognition technique of electrical energy meter in centralized meter reading system | |
CN101127640A (en) | A method for improving data synchronization efficiency via the incremental mode | |
CN110086678A (en) | Binary channels real-time data acquisition system and acquisition method based on Redis | |
CN102622415A (en) | Synchronous transmission method for multi-platform power quality monitoring data | |
CN104506939A (en) | Information reporting method and television terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Open date: 20080521 |