CN101345775B - Synchronization method and system for man-computer command script document between network manager and network element - Google Patents
Synchronization method and system for man-computer command script document between network manager and network element Download PDFInfo
- Publication number
- CN101345775B CN101345775B CN2008101420442A CN200810142044A CN101345775B CN 101345775 B CN101345775 B CN 101345775B CN 2008101420442 A CN2008101420442 A CN 2008101420442A CN 200810142044 A CN200810142044 A CN 200810142044A CN 101345775 B CN101345775 B CN 101345775B
- Authority
- CN
- China
- Prior art keywords
- man
- network element
- file
- command script
- computer command
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention discloses a synchronization method and system of man-machine command script files between a network manager and network elements. The synchronization method includes the following steps: A. the network manager and network elements, respectively, configure file characteristics for the man-machine command script files of the local side; B. the network manager acquires the filecharacteristics of the man-machine command script files of each network element, compares with the file characteristics for the man-machine command script files of the local side, if one network element whose file characteristics for the man-machine command script files do not exist, downloading the corresponding man-machine command script files from the network element. In the synchronization system, the network element includes a file characteristic configuring module, a file characteristic comparison module and a file content synchronization module. The present invention can flexibly and conveniently complete the synchronization of man-machine command script files between a network manager and network elements, and can guarantee the dynamic consistency of man-machine command script files between a network manager and network elements.
Description
Technical field
The present invention relates to telecom network management system, the method for synchronous and the system of the man-computer command script document between particularly a kind of webmaster and network element.
Background technology
Because good ease for use and the extensibility of manmachine command, a lot of network management systems adopt the interface between man-computer command script document conduct and the network element.In telecom network management system, along with the network element of needs management is more and more, webmaster needs compatible a plurality of network element versions simultaneously, for this employing man-computer command script document as and network element between the network management system of interface, just need guarantee the synchronous of script file between webmaster and the network element.
At present, with the scheme that solves script file stationary problem between webmaster and the network element be, when making the version of network management system, the various script files of the network element version correspondence that needs are supported, as the part of webmaster version, there is following shortcoming in the method for the stationary problem of this solution script file: a) network management system limited, the fixing several network element versions that can only support to support in advance; B) because the various script files of network element version correspondence are the parts as the webmaster version, the webmaster version has very big dependence to network element version, when the script file of network element changes, network management system need be upgraded its version and could the script file of local terminal be upgraded synchronously, causes renewal untimely.
Summary of the invention
In view of this, the invention provides the method for synchronous and the system of the man-computer command script document between a kind of webmaster and network element, can realize flexibly and easily between webmaster and the network element man-computer command script document synchronously.
In order to solve the problems of the technologies described above, the present invention adopts following technical scheme:
The method for synchronous of the man-computer command script document between a kind of webmaster and network element comprises following steps:
A, webmaster and each network element are respectively the man-computer command script document configuration file feature of local terminal;
B, webmaster obtain the file characteristic of the man-computer command script document of each network element, relatively judge with the file characteristic of the man-computer command script document of local terminal, do not exist at local terminal if judge the file characteristic of the man-computer command script document of certain network element, download corresponding man-computer command script document from this network element.
Described method for synchronous, described file characteristic adopt the CRC check value of man-computer command script document to set up.
Described method for synchronous, in described step B, webmaster is downloaded man-computer command script document from network element and is carried out as follows:
Timer downloaded by D1, network management configuration file and the message bag receives timer, sends download request to network element;
D2, webmaster receive the man-computer command script document message bag that network element sends according to the order of sequence, receive timer expiry if the message bag takes place in transmission course, and webmaster is retransmission format with current unreceived message bag sequence number arrangement, and the request network element is retransmitted; Download timer expiry or receive the error of transmission indication if file takes place, cancel this download;
D3, webmaster judge whether all message bags of the man-machine script file that network element sends collect, and in this way, download successfully, discharge downloaded resources; Otherwise, continue to download.
Described method for synchronous, described message bag is made up of message header and message body, and described message header comprises sequence number, overall budget number, last bag mark, message-length, syllable sequence mark and error code.
Described method for synchronous, in described step B, the file characteristic that webmaster obtains the man-computer command script document of each network element is regularly to carry out to each network element request mode with webmaster.
The invention also discloses the synchro system of the man-computer command script document between a kind of webmaster and network element, wherein, described network element comprises the file characteristic configuration module, is used to local terminal man-computer command script document configuration file feature; Described webmaster comprises file characteristic configuration module, file characteristic comparison module and file content synchronization module, and described webmaster side file characteristic configuration module is used to local terminal man-computer command script document configuration file feature; Described file characteristic comparison module is used to obtain the file characteristic of the man-computer command script document of each network element, relatively judge with the file characteristic of the man-computer command script document of local terminal, if judging the file characteristic of the man-computer command script document of certain network element does not exist at local terminal, send the indication of downloading corresponding man-computer command script document from this network element to described file content synchronization module, described file content synchronization module is used for the download indication according to the file characteristic comparison module, finishes corresponding man-computer command script document and downloads.
Described synchro system, described file characteristic are the CRC check value of man-computer command script document.
Described synchro system, described file content synchronization module comprises that file is downloaded timer and the message bag receives timer, the file content synchronization module is when receiving the message bag of the man-computer command script document that network element sends according to the order of sequence, if taking place, the message bag receives timer expiry, then current unreceived message bag sequence number arrangement is retransmission format, the request network element is retransmitted; Download timer expiry or receive the error of transmission indication if file takes place, then cancel this download; And when collecting, all message bags of judging the man-machine script file that network element sends discharge downloaded resources.
Described synchro system, described message bag is made up of message header and message body, and described message header comprises sequence number, overall budget number, last bag mark, message-length, syllable sequence mark and error code.
The mode of file characteristic that described synchro system, webmaster are obtained the man-computer command script document of each network element is that webmaster is regularly to each network element request mode.
The present invention by webmaster and network element separately to the man-machine script file configuration file feature of local terminal, whether webmaster does not relatively exist at local terminal from the file characteristic that network element obtains, if there is no, then download corresponding man-computer command script document from this network element, thereby can be flexible finish man-computer command script document between webmaster and network element synchronously, guarantee the dynamic conformance of man-computer command script document between webmaster and network element.
Further, receive timer and file download timer by the configuration messages bag, when the reception of message bag was unsuccessful, the request network element was retransmitted; Unsuccessful in whole file download, cancellation is downloaded, the reliability when having improved file synchronization.
Description of drawings
Fig. 1 is the real-time synchronous overall flow framework schematic diagram of the man-computer command script document of the specific embodiment of the invention;
Fig. 2 is the file characteristic comparison module schematic diagram of the specific embodiment of the invention;
Fig. 3 is the synchronous schematic diagram of the script file of the specific embodiment of the invention;
Fig. 4 is the synchro system block diagram of the specific embodiment of the invention.
Embodiment
Below the contrast accompanying drawing and in conjunction with embodiment the present invention is described in detail.
Referring to Fig. 1 to Fig. 4, the method for synchronous and the system of the webmaster of the specific embodiment of the invention and the man-computer command script document between network element (hereinafter referred is a script file) mainly are to utilize configuration and comparison document feature to realize that the script file between webmaster and the network element is synchronous.In this example, the file characteristic configuration is meant CRC (Cyclic Redundancy Check, the Cyclical Redundancy Check) check value by calculating script file, then with the file characteristic of CRC check value as corresponding script file.
Carry out file characteristic relatively before, at first network management system and network element carry out initialization:
A) during the network management system initialization, all script files of scanning of home calculate the CRC check value of each script file and the corresponding relation of buffer memory check value and script file;
B) during the network element initialization,, calculate the CRC check value of network element batter presents according to the algorithm identical with network management system, and this check value of buffer memory.
As depicted in figs. 1 and 2, after initialization procedure finishes, carry out the file characteristic comparison procedure, the file characteristic comparison procedure comprises:
The CRC check value of webmaster side direction network element side request network element batter step file, in this example, the request mode is to adopt network management system periodic regularly to network element transmission CRC check value request mode;
Network element side acknowledges requests passes to the webmaster side with the CRC check value of the script file of local terminal;
The webmaster side is handled the network element response message, CRC check value in the CRC check value list of the check value of network element batter presents and local cache is compared one by one, if there be the CRC check value identical in the network management system with the network element side, then use local corresponding script file, continue periodic request CRC check value; Otherwise, trigger the file content synchronizing process.
In the file content synchronizing process, the network element side is gathered the script file of correspondence with the message bag form sends to the webmaster side, and each message bag of script file transmission is made up of message header and message body two large divisions.Wherein, message header consists of the following components:
A) bag sequence number: show current message transfer bag sequence number, since 1, order increases progressively 1;
B) overall budget number: show what message bags script file need be divided into and transmit;
C) last bag mark: show whether be last message bag of script file;
D) message-length: the length that shows message body;
E) syllable sequence mark: show that adopting the network preface still is the main frame preface; (existing computer normally with 8 bytes as storage cell, therefore, for multibyte two kinds of storing modes are arranged: the network preface: the LAP Low Address Part that the high significance bit in the multibyte is placed on internal memory; Main frame preface: the high address section that the high significance bit in the multibyte is placed on internal memory)
F) error code: show the mistake that the network element side produces in transmission script file process, 0 represents successfully.
Message body: the particular content that is script file.
The script file downloading process of the specific embodiment of the invention specifically comprises:
Network management system is after obtaining the synchronous notice of script, start the synchronous master control flow process of script, the master control flow process issues the download preparation request by the network element communication module to network element, after network element is received this request, according to the size of script file and the size of each message bag, calculate total message bag number, and return to webmaster.Afterwards, network element carries out subpackage with script file, form with message bag set is sent to webmaster with the script file content, webmaster after whenever receiving the message bag that network element returns, the sequence number of taking out the message bag, if the message bag of this sequence number exists, then abandon, if there is no, then the message call processing capacity is carried out the parsing of message bag, after resolving the good news bag, package according to message bag sequence number; By the I/O processing module script file is kept at this locality; Its concrete downloading process is:
1) network management system starts two timers, and a file is downloaded timer timerl, and a message bag receives timer timer2, sends the script file download request to network element, and network management system whenever receives a message bag, just restarts timer2 one time; Wherein, file is downloaded timer timerl and is used for being provided with script file total download time, and whether the message bag receives timer timer2 and be used for being provided with the message bag and need to retransmit;
2) after network element receives download request, according to the order of sequence the message bag is sent to network management system, when sending last bag, last bag mark in the message header is set to very;
3) if in transmission course, network generation hit causes timer2 overtime, and network management system is " i﹠amp with the current message bag sequence number arrangement that does not receive; J﹠amp; K﹠amp; ﹠amp; N " retransmission format, the request network element retransmit this message bag;
When 4) network management system is received last bag, check whether this locality has received all message bags, if the message bag collects, then explanation is downloaded successfully, discharges and downloads the related resource that takies; Otherwise, the current message bag sequence number arrangement that does not receive is " i﹠amp; J﹠amp; K﹠amp; ﹠amp; N " retransmission format, the request network element is retransmitted, until all message bags all collect or synchronously flow process finish;
5) if in transmission course, the timerl of network management system is overtime, perhaps receives error of transmission indication, and it is non-0 promptly to receive in the message header of data error code, then cancels this file and downloads flow process.
As shown in Figure 4, the synchro system of the specific embodiment of the invention comprises a webmaster and one or more network element, and network element comprises the file characteristic configuration module, is used to local terminal script file configuration file feature; Webmaster comprises file characteristic configuration module, file characteristic comparison module and file content synchronization module, and webmaster side file characteristic configuration module is used to local terminal script file configuration file feature and management document feature configuration table; The file characteristic comparison module is used to obtain the file characteristic of the script file of each network element, relatively judge with the file characteristic of local terminal script file, if judging the file characteristic of the script file of certain network element does not exist at local terminal, send the indication of downloading corresponding script file from this network element to the file content synchronization module, the file content synchronization module is according to the download indication of file characteristic comparison module, and the download of finishing corresponding script file is synchronous.
The method for synchronous of the specific embodiment of the invention and system, the script file of the synchronous network element side of network management system energy real-time and dynamic, by the consistency of relatively guaranteeing script file of CRC check value, by having the downloading mode of retransmission mechanism, the reliability when the raising script file is synchronous.With respect to prior art, the method for synchronization more promptly and accurately, and is initiatively flexible.
Above content be in conjunction with concrete preferred implementation to further describing that the present invention did, can not assert that concrete enforcement of the present invention is confined to these explanations.For the general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, can also make some simple deduction or replace, all should be considered as belonging to protection scope of the present invention.
Claims (8)
1. the method for synchronous of the man-computer command script document between webmaster and network element is characterized in that, comprises following steps:
A, webmaster and each network element are respectively the man-computer command script document configuration file feature of local terminal;
B, webmaster obtain the file characteristic of the man-computer command script document of each network element, relatively judge with the file characteristic of the man-computer command script document of local terminal, do not exist at local terminal if judge the file characteristic of the man-computer command script document of certain network element, download corresponding man-computer command script document from this network element;
Downloading man-computer command script document from network element carries out as follows:
Timer downloaded by D1, network management configuration file and the message bag receives timer, sends download request to network element;
After D2, webmaster reception network element carry out subpackage with script file, the man-computer command script document message bag that sends according to the order of sequence, comprise the bag sequence number in the described message bag, if taking place, the message bag receives timer expiry in transmission course, webmaster is retransmission format with current unreceived message bag sequence number arrangement, and the request network element is retransmitted; Download timer expiry or receive the error of transmission indication if file takes place, cancel this download;
D3, webmaster judge whether all message bags of the man-machine script file that network element sends collect, and in this way, download successfully, discharge downloaded resources; Otherwise, continue to download.
2. method for synchronous as claimed in claim 1 is characterized in that, described file characteristic adopts the CRC check value of man-computer command script document to set up.
3. method for synchronous as claimed in claim 1 is characterized in that, described message bag is made up of message header and message body, and described message header comprises sequence number, overall budget number, last bag mark, message-length, syllable sequence mark and error code.
4. as the arbitrary described method for synchronous of claim 1 to 3, it is characterized in that among the described step B, the file characteristic that webmaster obtains the man-computer command script document of each network element is regularly to carry out to each network element request mode with webmaster.
5. the synchro system of the man-computer command script document between webmaster and network element is characterized in that described network element comprises the file characteristic configuration module, is used to local terminal man-computer command script document configuration file feature; Described webmaster comprises file characteristic configuration module, file characteristic comparison module and file content synchronization module, and described webmaster side file characteristic configuration module is used to local terminal man-computer command script document configuration file feature; Described file characteristic comparison module is used to obtain the file characteristic of the man-computer command script document of each network element, relatively judge with the file characteristic of the man-computer command script document of local terminal, if judging the file characteristic of the man-computer command script document of certain network element does not exist at local terminal, send the indication of downloading corresponding man-computer command script document from this network element to described file content synchronization module, described file content synchronization module is used for the download indication according to the file characteristic comparison module, finishes corresponding man-computer command script document and downloads; Described file content synchronization module comprises that file is downloaded timer and the message bag receives timer, the file content synchronization module is after the reception network element carries out subpackage with script file, during the message bag of the man-computer command script document that sends according to the order of sequence, comprise the bag sequence number in the described message bag, if taking place, the message bag receives timer expiry, then current unreceived message bag sequence number arrangement is retransmission format, the request network element is retransmitted; Download timer expiry or receive the error of transmission indication if file takes place, then cancel this download; And when collecting, all message bags of judging the man-machine script file that network element sends discharge downloaded resources.
6. synchro system as claimed in claim 5 is characterized in that, described file characteristic is the CRC check value of man-computer command script document.
7. synchro system as claimed in claim 5 is characterized in that, described message bag is made up of message header and message body, and described message header comprises sequence number, overall budget number, last bag mark, message-length, syllable sequence mark and error code.
8. as the arbitrary described synchro system of claim 5 to 7, it is characterized in that the mode of file characteristic that webmaster obtains the man-computer command script document of each network element is that webmaster is regularly to each network element request mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008101420442A CN101345775B (en) | 2008-08-25 | 2008-08-25 | Synchronization method and system for man-computer command script document between network manager and network element |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008101420442A CN101345775B (en) | 2008-08-25 | 2008-08-25 | Synchronization method and system for man-computer command script document between network manager and network element |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101345775A CN101345775A (en) | 2009-01-14 |
CN101345775B true CN101345775B (en) | 2011-12-28 |
Family
ID=40247657
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008101420442A Expired - Fee Related CN101345775B (en) | 2008-08-25 | 2008-08-25 | Synchronization method and system for man-computer command script document between network manager and network element |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101345775B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101902363A (en) * | 2010-08-16 | 2010-12-01 | 中兴通讯股份有限公司 | Method and device for managing network element equipment |
CN102769627B (en) * | 2012-07-26 | 2015-06-17 | 北京神州绿盟信息安全科技股份有限公司 | Configuration file synchronizing method and device |
CN104980257B (en) * | 2015-05-29 | 2020-08-25 | 北京盛特思信息技术有限公司 | Internet of things communication method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6128656A (en) * | 1998-09-10 | 2000-10-03 | Cisco Technology, Inc. | System for updating selected part of configuration information stored in a memory of a network element depending on status of received state variable |
CN1537396A (en) * | 2001-05-23 | 2004-10-13 | �����ɷ� | Synchronization of stored servoce parameters in communication system |
CN1866875A (en) * | 2006-03-30 | 2006-11-22 | 华为技术有限公司 | Storage management method and system for realizing data collocation between network element and network management |
CN1874270A (en) * | 2006-06-23 | 2006-12-06 | 北京佳讯飞鸿电气有限责任公司 | Data synchronization method for implementing remote network management |
CN101110705A (en) * | 2007-07-12 | 2008-01-23 | 中兴通讯股份有限公司 | Background server management system and management method thereof |
-
2008
- 2008-08-25 CN CN2008101420442A patent/CN101345775B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6128656A (en) * | 1998-09-10 | 2000-10-03 | Cisco Technology, Inc. | System for updating selected part of configuration information stored in a memory of a network element depending on status of received state variable |
CN1537396A (en) * | 2001-05-23 | 2004-10-13 | �����ɷ� | Synchronization of stored servoce parameters in communication system |
CN1866875A (en) * | 2006-03-30 | 2006-11-22 | 华为技术有限公司 | Storage management method and system for realizing data collocation between network element and network management |
CN1874270A (en) * | 2006-06-23 | 2006-12-06 | 北京佳讯飞鸿电气有限责任公司 | Data synchronization method for implementing remote network management |
CN101110705A (en) * | 2007-07-12 | 2008-01-23 | 中兴通讯股份有限公司 | Background server management system and management method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN101345775A (en) | 2009-01-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107087033B (en) | Message pushing method and device, storage medium and computer equipment | |
CN102064955B (en) | Method and system for remotely upgrading optical network unit | |
CN101593119B (en) | Method and device for firmware over-the-air of exclusive flash memory combined equipment | |
CN102510409A (en) | Method and system for quickly and remotely updating program of mobile terminal by using wireless network | |
CN106886438A (en) | System remote update method based on FPGA | |
CN103248424A (en) | Optical module firmware upgrading method and system | |
CN113746892B (en) | Remote upgrading method and wireless terminal equipment | |
EP3654718A2 (en) | Method, device and system for controlling air interface resource | |
CN103391215A (en) | Remote software downloading and updating method, device and system based on chain network | |
CN103685489A (en) | File transmitting method in wireless network | |
CN102857354A (en) | Method, device and system for reporting alarm information | |
CN105450720A (en) | GPS data collection and transmission method and device | |
CN101345775B (en) | Synchronization method and system for man-computer command script document between network manager and network element | |
CN104215853A (en) | Data acquiring method of power quality monitoring system | |
CN110399149A (en) | A kind of remote upgrade method under low-power consumption scene | |
CN111263448A (en) | Method and device for information transmission | |
CN104184834A (en) | File transmission method and device and terminal | |
US8130653B2 (en) | Deletion request after number of failed acknowledgements to addition requests | |
CN109194720A (en) | Standby machine method of data synchronization, device and computer equipment | |
CN113031990B (en) | Broadcasting upgrading method, system, equipment and storage medium of street lamp terminal | |
CN103457748A (en) | Data transmission method, system and device | |
CN111436116A (en) | Paging method, device and system | |
CN102868945B (en) | The upgrade method of ONU in a kind of EPON | |
CN104010010A (en) | Internet resource acquisition method, device and cache system | |
EP2515601B1 (en) | Dial-up connection method and device of mobile data 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 | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20111228 Termination date: 20160825 |
|
CF01 | Termination of patent right due to non-payment of annual fee |