WO2016090938A1 - Data communication method and apparatus, and computer storage medium - Google Patents

Data communication method and apparatus, and computer storage medium Download PDF

Info

Publication number
WO2016090938A1
WO2016090938A1 PCT/CN2015/086622 CN2015086622W WO2016090938A1 WO 2016090938 A1 WO2016090938 A1 WO 2016090938A1 CN 2015086622 W CN2015086622 W CN 2015086622W WO 2016090938 A1 WO2016090938 A1 WO 2016090938A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
network management
server
management client
communication
Prior art date
Application number
PCT/CN2015/086622
Other languages
French (fr)
Chinese (zh)
Inventor
张博
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016090938A1 publication Critical patent/WO2016090938A1/en

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/34Signalling channels for network management communication

Definitions

  • the present invention relates to the field of wireless communication technologies, and in particular, to a data communication method, apparatus, and computer storage medium.
  • the embodiment of the present invention is to provide a data communication method, device, and computer storage medium, which can solve the problem that various faults occur in the network management system due to the excessive amount of communication data between the network management client and the server.
  • an embodiment of the present invention provides a data communication method, where the method The law includes:
  • the mirror data corresponding to the object is locally obtained.
  • the step of obtaining the mirrored data of the communication data that needs to be acquired from the server during the network state management of the network management client includes:
  • the mirror data of the communication data that needs to be acquired from the server during the network state management of the network management client is acquired.
  • the method further includes: updating the mirrored data stored by the network management client when the network management client and the server are idle.
  • the step of updating the mirrored data stored by the network management client includes:
  • the method before the obtaining the mirroring data corresponding to the object, the method further includes: determining whether the mirrored data locally stored by the network management client is the same as the communication data currently stored by the server;
  • the mirror data of the communication data currently stored by the server is obtained, and the mirror data stored by the network management client is updated according to the mirror data, and the communication data corresponding to the object is locally acquired.
  • the method further includes: when the network management client and the server are idle, acquiring an identifier of the mirrored data, where the identifier of the mirrored data is the communication in the server a mirrored identifier of the identity of the data;
  • the step of determining whether the mirrored data stored locally by the network management client is the same as the communication data currently stored by the server includes:
  • the method further includes:
  • the identifier of the communication data includes: a timestamp of the last time the server updates the communication data.
  • the communication data includes: a user transmitting data.
  • the embodiment of the present invention further provides another data communication method, including:
  • the step of sending the mirrored data to the network management client includes:
  • the method further includes:
  • the mirroring data of the communication data currently stored by the server is generated and sent to the network management client when the mirroring data stored locally on the network management client is different from the communication data currently stored by the server.
  • the method further includes:
  • the mirroring identifier of the identifier of the communication data currently stored by the server is generated and sent to the network management client when the mirroring data stored locally on the network management client is different from the communication data currently stored by the server.
  • the embodiment of the present invention further provides a data communication device, including: a first acquiring module, a storage module, and a second acquiring module;
  • the first obtaining module is configured to acquire mirror data of communication data that the network management client needs to obtain from the server in the network management process;
  • the storage module is configured to store mirror data of the communication data on a network management client
  • the second obtaining module is configured to obtain mirror data corresponding to the object locally if the object that needs to be obtained from the server has mirror data locally in the network management client.
  • the embodiment of the present invention further provides another data communication apparatus, including: a generating module and a sending module;
  • the generating module is configured to generate a network management client needs to be served from the network during the network management process Mirror data of communication data acquired in the device;
  • the sending module is configured to send the mirrored data to a network management client.
  • An embodiment of the present invention provides a computer storage medium, where the computer storage medium stores a computer program, and the computer program is used to execute the data communication method described above.
  • a data communication method, device, and computer storage medium provided by the embodiment of the present invention; acquiring mirror data of communication data that the network management client needs to obtain from the server in the network management process; storing the communication data on the network management client Mirroring data, in the network management process, if the object that is obtained from the server needs to have the mirroring data locally in the network management client, the mirroring data corresponding to the object is obtained locally;
  • the technical solution can convert part of the communication data in the original network management system from the C/S communication mode (client/server mode) to the communication mode of the client locally fetching data, thereby reducing the client and the server in the process of managing the network.
  • the amount of communication data exchanged between the two greatly avoids various types of faults caused by the excessive amount of communication data between the client and the server, improves the interaction efficiency of the C/S communication mode, and further improves the network management system. The efficiency of network management.
  • FIG. 1 is a schematic flowchart of a data communication method according to Embodiment 1 of the present invention.
  • FIG. 2 is a schematic flowchart of another data communication method according to Embodiment 1 of the present invention.
  • FIG. 3 is a schematic flowchart of image data update according to Embodiment 1 of the present invention.
  • FIG. 4 is a schematic flowchart of a data communication method according to Embodiment 2 of the present invention.
  • FIG. 5 is a schematic flowchart of a data communication method when a network management system is idle according to Embodiment 2 of the present invention
  • FIG. 6 is a schematic flowchart of a data communication method in a network management process according to Embodiment 2 of the present invention.
  • FIG. 7 is a schematic flowchart of image data acquisition according to Embodiment 3 of the present invention.
  • FIG. 8 is a schematic flowchart of a mirror data update according to Embodiment 3 of the present invention.
  • FIG. 9 is a schematic flowchart of reading mirror data according to Embodiment 3 of the present invention.
  • FIG. 10 is a schematic structural diagram of a data communication apparatus according to Embodiment 4 of the present invention.
  • FIG. 11 is a schematic structural diagram of another data communication apparatus according to Embodiment 4 of the present invention.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • the present invention is to pre-store the communication data that the client needs to obtain from the server in the client. Locally, in the network management process, the required communication data can be directly obtained from the local storage, and the amount of communication data exchanged between the client and the server is reduced, thereby preventing the network management system from malfunctioning due to excessive data volume.
  • This embodiment provides a data communication method, which is applied to the client side of the network management system, as shown in FIG. 1 , and includes the following steps:
  • Step 101 Obtain mirror data of communication data that the network management client needs to obtain from the server in the network management process.
  • the network management process in this step may include a network state management process, such as a process of implementing the OMMR state management "time slot" function. Therefore, this step can obtain communication data that needs to be queried from the server during the state management of the network management client.
  • a network state management process such as a process of implementing the OMMR state management "time slot" function. Therefore, this step can obtain communication data that needs to be queried from the server during the state management of the network management client.
  • the communication data in this step may be determined according to the data type; the communication types in the existing network management system may be divided into two types according to their functions, one is for transmitting data communication of user transmission data, and the other is for Control communication for transmitting control information; wherein the data communication data tends to occupy a relatively large bandwidth and is easy to generate mirror data. Therefore, preferentially, in the method of this embodiment
  • the communication data includes: data communication data, that is, the user transmits data; in this case, the step is to obtain mirror data of the user transmission data that the client needs to obtain from the server in the network management process.
  • the mirror data in this embodiment may be backup data of communication data, which is the same as the communication data.
  • the communication data can be selected as the target data by using the data communication data with high maintenance frequency and relatively low update of the client.
  • Step 102 Store mirror data of the communication data on a network management client.
  • Step 103 In the process of network management, if the object that needs to be obtained from the server has mirror data locally in the network management client, the mirror data corresponding to the object is locally obtained.
  • the implementation of obtaining data from the local in this step includes: slightly modifying the client part of the existing network management code to enable it to read the mirrored data. For example, just modify the function that the client reads the data. By modifying its processing flow for reading data requests, it is possible to complete the operation of reading data by calling a local image when needed.
  • the data communication method of the embodiment can convert part of the communication data in the original network management system from the C/S communication mode (client/server mode) to the communication mode of the client locally fetching data, thereby reducing the process of managing the network.
  • the amount of communication data exchanged between the client and the server largely avoids various types of failures caused by the excessive amount of communication data between the client and the server, and improves the interaction efficiency of the C/S communication mode. Thereby improving the efficiency of the network management system for network management.
  • the object that needs to be obtained from the server locally has mirror data, it needs to be processed according to the original process, that is, the request is sent to the server, and the server returns the corresponding data.
  • the embodiment may obtain the mirrored data of the communication data when the network management system is idle. Therefore, the step 101 may specifically include: the network management client and the When the server is idle, the mirror data of the communication data that needs to be obtained from the server during the network state management of the network management client is obtained.
  • the embodiment also needs to maintain the mirror data, that is, the local mirror data needs to be continuously updated to ensure the accuracy of the network management. Therefore, the method in this embodiment may further include: updating the mirrored data stored by the network management client when the network management client and the server are idle.
  • the mirror data can be updated periodically when the network management system is idle, that is, the mirror data is periodically maintained, and the mirrored data stored locally by the network management client is synchronized with the data stored in the server.
  • the method of the embodiment needs to determine whether the image data of the local object is the latest data before acquiring the mirror data corresponding to the object locally, and if so, Local direct read, if not, also need to force update mirror data; therefore, the method of this embodiment, if the object needs to be obtained from the server Before the mirroring data exists locally on the network management client, before the mirroring data corresponding to the object is obtained locally, the method may further include:
  • the mirror data of the communication data currently stored by the server is obtained, and the mirror data stored by the network management client is updated according to the mirror data, and the communication data corresponding to the object is locally acquired.
  • the data communication method in this embodiment may include the following steps, as shown in FIG. 2:
  • Step 201 Acquire, when the network management client and the server are idle, the mirror data and the identifier of the communication data that need to be obtained from the server during the network state management of the network management client.
  • the identifier of the mirrored data in this step is the mirrored identifier of the identifier of the communication data in the server, and the identifier of the mirrored identifier is the same as the identifier of the communication data stored by the server.
  • the mirrored data may be generated by backing up the communication data and the identifier in the server.
  • the image identifier which is the identifier of the mirrored data.
  • the identifier of the communication data in this embodiment may include: a timestamp of the last update of the communication data by the server.
  • Step 202 Store the mirrored data of the communication data and its identifier on the network management client.
  • Step 203 In the process of network management, determine whether the object that needs to be obtained from the server has mirror data locally in the network management client, and if yes, go to step 204, if no, go to step 208;
  • the data communication data to be queried has mirror data locally, the data communication data is obtained locally, and when the data communication data to be queried is in the present If there is no mirrored data, you need to get the data from the server according to the original process.
  • Step 204 Acquire an identifier of the communication data currently stored by the server.
  • the identification of the communication data is changed, so that the client can determine whether the locally stored mirror data is the same as the communication data stored by the server by the identifier.
  • Step 205 Determine whether the identifier of the mirrored data stored locally by the network management client is consistent with the identifier of the communication data currently stored by the server. If not, go to step 206. If yes, go to step 208.
  • the identifiers are used to determine whether the data corresponding to the identifiers are the same.
  • the identifiers are consistent, it indicates that the stored communication data of the server has not changed.
  • the locally stored mirror data is the same as the currently stored communication data of the server, and the identifiers are inconsistent.
  • the communication data stored in the server is changed, the locally stored mirror data is different from the communication data currently stored by the server.
  • Step 206 Acquire the mirror data of the communication data currently stored by the server and the identifier of the mirrored data, and update the identifier of the mirrored data and the mirrored data stored by the network management client according to the mirrored data and the identifier corresponding to the mirrored data. Go to step 207.
  • the locally stored mirrored data When the locally stored mirrored data is different from the currently stored communication data of the server, the locally stored mirrored data and the identifier need to be updated.
  • Step 207 Acquire image data corresponding to the object from the local.
  • Step 208 Obtain communication data corresponding to the object from the server according to the original process.
  • the update of the mirrored data in this embodiment may be performed when the network management system is idle.
  • the process of specifically updating the locally stored mirrored data may include, as shown in FIG. 3:
  • Step 301 Acquire an identifier of the communication data currently stored by the server when the network management client and the server are idle.
  • Step 302 Determine the identifier of the mirrored data stored locally by the network management client, and the current server Whether the stored identification of the communication data is consistent, if not, proceed to step 303, and if so, proceed to step 304;
  • Step 303 Acquire the mirror data of the communication data currently stored by the server and the identifier of the mirrored data, and update the identifier of the mirrored data and the mirrored data stored by the network management client according to the mirrored data and the identifier corresponding to the mirrored data.
  • Step 304 End the update process.
  • This embodiment can perform update synchronization of mirror data by providing a proxy service process independent of the network management process itself on the client and the server.
  • the partially time-consuming data communication in the network communication process is converted into a process of locally reading the “mirror image” of the client, thereby largely avoiding the excessive amount of communication data.
  • Various types of faults improve the interaction efficiency of the C/S structure.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • this embodiment provides a data communication method, which is applied to a server side or a third-party device side, and includes the following steps:
  • Step 401 Generate mirror data of communication data that the network management client needs to obtain from the server in the network management process.
  • This step first selects the target data that needs to generate mirror data, that is, the communication data that needs to be obtained from the server.
  • the target data may include: data communication data (ie, user transmission data) in the network management communication; further, data maintenance communication data with high frequency of use and relatively infrequent update of the client may be selected as the target data.
  • this step may back up or copy the communication data to generate mirror data.
  • Step 402 Send the mirrored data to the network management client.
  • the step is to send the mirrored data to the network management client when the network management client and the server are idle.
  • the method can select the communication data in the network management to create mirror data, and the number of mirrors is According to the storage sent to the network management client, in the network management process, when the selected communication data needs to be acquired, it is directly obtained from the local storage, and does not need to be obtained from the server through information interaction; the client and the server are reduced.
  • the amount of communication data exchanged avoids various types of failures caused by the excessive amount of communication data, improves the interaction efficiency of the C/S structure, and improves the efficiency of network management.
  • the method of the embodiment may further include: the mirrored data stored locally on the network management client is not in communication with the currently stored communication data of the server. At the same time, the mirror data of the communication data currently stored by the server is generated and sent to the network management client.
  • the method in this embodiment may further include:
  • the mirroring identifier of the identifier of the communication data currently stored by the server is generated and sent to the network management client when the mirroring data stored locally on the network management client is different from the communication data currently stored by the server.
  • the method in this embodiment can send the mirrored data and its identifier to the network management client when the network management system is idle, for the client to save, in the network management process, or when the network management client and the server are idle,
  • the identifier of the communication data currently stored by the server is sent to the client, and the client determines whether the data is synchronized at both ends.
  • the mirrored data of the communication data currently stored by the server and the identifier thereof may be sent to the client.
  • the client updates the stored data and identification to achieve data synchronization.
  • the communication method can include:
  • Step 501 Generate mirror data and identifiers of communication data that the network management client needs to obtain from the server in the network management process.
  • Step 502 Send the mirrored data and its identifier to the network management client.
  • Step 503 Send the communication data and the identifier currently stored by the server to the network management client.
  • Step 504 When the mirrored data stored locally by the network management client is different from the communication data currently stored by the server, the mirrored data and the identifier of the communication data currently stored by the server are generated and sent to the network management client.
  • the data communication method in this embodiment may include:
  • Step 601 Send the identifier of the communication data currently stored by the server to the network management client.
  • Step 602 When the mirrored data stored locally by the network management client is different from the communication data currently stored by the server, the mirrored data and the identifier of the communication data currently stored by the server are generated and sent to the network management client.
  • the embodiment of the present invention further describes a computer storage medium, where the computer storage medium stores a computer program, and the computer program is used to execute the data shown in FIG. 1, FIG. 2, and FIG. 3 in the embodiment of the present invention.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • the network management client implements the state management "time slot" function as an example to introduce the specific implementation of the data communication method according to the first embodiment and the second embodiment.
  • the current "slot" function needs to read the data set as a CSV file stored on the server side. First you need to add an "ID” file to mark these CSV files on the server side. This embodiment Consider using the system timestamp of the last modification of these files as the "ID file” for each CSV file. Then you need to write a separate thread responsible for the process of mirroring data acquisition and mirroring data updates.
  • the process of mirroring data acquisition includes:
  • Step 701 When it is checked that the network management system is in an idle state, the network management client initiates a mirror data request to the server.
  • Step 702 After receiving the mirror data request, the server copies the CSV file and the ID file, and sends the copied CSV file and the ID file to the network management client.
  • Step 703 The network management client receives the CSV file and the ID file and stores them.
  • the process of mirroring data update (synchronization) includes:
  • Step 801 When it is checked that the network management system is in an idle state, and waiting for a synchronization task in the synchronization queue, the network management client initiates a mirror synchronization request to the server.
  • Step 802 After receiving the mirror synchronization request, the server copies the currently stored CSV file and the ID file, and returns the copied CSV file and the ID file to the network management client.
  • Step 803 The network management client stores the received CSV file and ID file.
  • Step 804 Acquire an ID file of a CSV file currently stored by the server.
  • Step 805 Compare the ID file with the locally stored ID file. If different, add the corresponding synchronization task to wait for the synchronization queue. If they are the same, the synchronization process ends.
  • the interface for reading the time slot data called by the "slot" function page is a function A of a certain class
  • the function A needs to be modified, and the function A needs to be modified so that it can read the locally stored mirror data.
  • the process is added, as shown in FIG. 9, including:
  • Step 901 Determine whether the object of the query has mirror data (ie, a CSV file) locally on the client. If yes, go to step 902. If no, go to step 906.
  • mirror data ie, a CSV file
  • Step 902 Read the ID file of the CSV file currently stored by the server.
  • Step 903 Determine whether the locally stored ID file is consistent with the ID file currently stored by the server. If not, execute step 904. If yes, go to step 905.
  • Step 904 Clear the waiting synchronization queue to directly trigger the mirror data synchronization process.
  • the process of triggering the mirror data synchronization in this step can refer to the process shown in FIG. 8.
  • Step 905 Read the locally stored mirror data for implementing the "slot" function.
  • Step 906 Process according to the original process.
  • Embodiment 4 is a diagrammatic representation of Embodiment 4:
  • the embodiment provides a data communication device, which can be applied to a network management client, and the device includes: a first acquisition module 11, a storage module 12, and a second acquisition module 13;
  • the first obtaining module 11 is configured to acquire mirror data of communication data that the network management client needs to obtain from the server in the network management process;
  • the storage module 12 is configured to store mirror data of the communication data on a network management client
  • the second obtaining module 13 is configured to obtain mirror data corresponding to the object locally if the object that needs to be obtained from the server has mirror data locally in the network management client.
  • the first obtaining module 11 is further configured to:
  • the mirror data of the communication data that needs to be acquired from the server during the network state management of the network management client is acquired.
  • the storage module 12 is further configured to:
  • the storage module 12 is further configured to:
  • the second obtaining module 13 is further configured to:
  • the mirror data of the communication data currently stored by the server is obtained, and the mirror data stored by the network management client is updated according to the mirror data, and the communication data corresponding to the object is locally acquired.
  • the first obtaining module 11 is further configured to:
  • the network management client obtains, by the network management client, the identifier of the mirrored data, where the identifier of the mirrored data is a mirrored identifier of the identifier of the communication data in the server;
  • the storage module 12 is further configured to:
  • the identifier of the communication data includes: the last update of the server by the server The timestamp of the letter data.
  • the communication data includes: a user transmitting data.
  • the first obtaining module 11 and the second obtaining module 13 may each be a central processing unit (CPU) or a microprocessor (MPU) of the data communication device or the device to which the data communication device belongs. , Micro Processor Unit), Digital Signal Processor (DSP), or Field Programmable Gate Array (FPGA) implementation; the storage module 12 can be implemented by various types of memory.
  • CPU central processing unit
  • MPU microprocessor
  • DSP Digital Signal Processor
  • FPGA Field Programmable Gate Array
  • the embodiment provides a data communication device, which can be applied to a device in a server or other network management system, including: a generating module 21 and a sending module 22;
  • the generating module 21 is configured to generate mirror data of communication data that the network management client needs to obtain from the server in the network management process;
  • the sending module 22 is configured to send the mirrored data to the network management client.
  • the sending module 22 is further configured to:
  • the generating module 21 is further configured to: when the mirrored data stored locally by the network management client is different from the currently stored communication data of the server, generate communication data currently stored by the server.
  • Mirror data when the mirrored data stored locally by the network management client is different from the currently stored communication data of the server, generate communication data currently stored by the server.
  • the sending unit 22 is further configured to: send the mirror data of the communication data currently stored by the server generated by the generating module 21 to the network management client.
  • the generating module 21 is further configured to:
  • the sending unit 22 is further configured to: at the network management client and the service Sending the identifier of the mirrored data to the network management client when the device is idle;
  • the identifier of the communication data currently stored by the server is sent to the network management client during the network management process or when the network management client and the server are idle.
  • the generating module 21 is further configured to:
  • the sending unit 22 is further configured to: send the image identifier of the identifier of the communication data currently stored by the server generated by the generating module 21 to the network management client.
  • the generating module 21 may be implemented by a CPU, an MPU, a DSP, or the like of the data communication device or the device to which the data communication device belongs; the transmitting unit 22 may be implemented by a transmitter or a transmitter.
  • the data communication device provided in this embodiment can select the communication data in the network management to create mirror data, and send the mirror data to the network management client for storage, so that when the selected communication data needs to be acquired, the local communication is directly stored in the network management process. Acquired, without the need to obtain information from the server through information interaction; reduce the amount of communication data between the client and the server, avoiding various types of faults caused by the excessive amount of communication data, improving the C/S structure The efficiency of interaction, which in turn improves the efficiency of network management.
  • the mirror data of the communication data that the network management client needs to obtain from the server in the network management process is obtained; and the number of mirrors of the communication data is stored on the network management client.
  • the network management process if the object that needs to be obtained from the server has the mirror data locally in the network management client, the mirror data corresponding to the object is obtained locally; thus, the current network management client can be solved.
  • the amount of communication data exchanged between the server and the server is too large, which causes technical problems of various faults in the network management system.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Disclosed are a data communication method and apparatus, and a computer storage medium. The data communication method comprises: acquiring mirror data of communication data to be acquired by a network management system client from a server in a network management process; storing the mirror data of the communication data on the network management system client; and in the network management process, if an object to be acquired from the server has mirror data locally on the network management system client, locally acquiring the mirror data corresponding to the object.

Description

一种数据通信方法、装置及计算机存储介质Data communication method, device and computer storage medium 技术领域Technical field
本发明涉及无线通信技术领域,尤其一种数据通信方法、装置及计算机存储介质。The present invention relates to the field of wireless communication technologies, and in particular, to a data communication method, apparatus, and computer storage medium.
背景技术Background technique
近年来,随着网管系统的功能逐步加强,就要求状态管理能够为用户或者其他功能模块提供更为强大的数据支持,即需要状态管理模块采集到更为庞大的控制器数据。随之而来的是状态管理模块客户端和服务器端通信压力的激增,如此会对网管正常功能造成很大的影响。例如,无线操作维护模块(OMMR,Operation and Maintenance Module Radio)状态管理“时隙”功能的查询过程当中,经常会查询到几十万条数据,这就会造成客户端界面卡死的现象,这样的故障在客户使用过程中出现是非常严重的。目前的解决办法是把“时隙”数据的过滤过程放到了服务器端来执行,减小客户端和服务器端的传输数据量来避免该故障的。但这毕竟不是长久之计。随着网管控制的基站控制器越来越多,网管功能需要通信的信息量越来越庞大,通信将会成为网管状态管理的发展的瓶颈,仍然会存在由于通讯数据量过于庞大,从而网管系统出现各类故障。In recent years, with the gradual strengthening of the functions of the network management system, state management is required to provide more powerful data support for users or other functional modules, that is, the state management module needs to collect more huge controller data. What followed was a surge in communication pressure between the state management module client and server, which would have a major impact on the normal function of the network management. For example, during the query process of the "time slot" function of the state management of the OMMR (Operation and Maintenance Module Radio), hundreds of thousands of data are often queried, which causes the client interface to be stuck. The failure of the customer during the use of the customer is very serious. The current solution is to put the "slotted" data filtering process on the server side to perform, reducing the amount of data transmitted by the client and server to avoid the failure. But this is not a long-term solution after all. With more and more base station controllers controlled by network management, the amount of information that network management functions need to communicate is becoming larger and larger, and communication will become a bottleneck in the development of network management status management. There will still be a large amount of communication data, so that the network management system Various types of failures have occurred.
发明内容Summary of the invention
有鉴于此,本发明实施例期望提供一种数据通信方法、装置及计算机存储介质,能够解决目前由于网管客户端和服务器之间交互的通信数据量过于庞大导致网管系统出现各类故障的问题。In view of this, the embodiment of the present invention is to provide a data communication method, device, and computer storage medium, which can solve the problem that various faults occur in the network management system due to the excessive amount of communication data between the network management client and the server.
为解决上述技术问题,本发明实施例提供一种数据通信方法,所述方 法包括:To solve the above technical problem, an embodiment of the present invention provides a data communication method, where the method The law includes:
获取在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据;Obtaining mirror data of communication data that the network management client needs to obtain from the server during the network management process;
在网管客户端上存储所述通信数据的镜像数据;Storing mirror data of the communication data on a network management client;
在网络管理的过程中,如果需要从服务器中获取的对象在所述网管客户端本地存在镜像数据时,则从本地获取与所述对象对应的镜像数据。In the process of network management, if the object that needs to be obtained from the server has mirror data locally in the network management client, the mirror data corresponding to the object is locally obtained.
上述方案中,所述获取在网管客户端进行网络状态管理的过程中需要从服务器中获取的通信数据的镜像数据的步骤包括:In the foregoing solution, the step of obtaining the mirrored data of the communication data that needs to be acquired from the server during the network state management of the network management client includes:
在所述网管客户端和所述服务器空闲时,获取在网管客户端进行网络状态管理的过程中需要从服务器中获取的通信数据的镜像数据。When the network management client and the server are idle, the mirror data of the communication data that needs to be acquired from the server during the network state management of the network management client is acquired.
上述方案中,所述方法还包括:在所述网管客户端和所述服务器空闲时,更新所述网管客户端存储的镜像数据。In the above solution, the method further includes: updating the mirrored data stored by the network management client when the network management client and the server are idle.
上述方案中,所述更新所述网管客户端存储的镜像数据的步骤包括:In the above solution, the step of updating the mirrored data stored by the network management client includes:
判断网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据是否相同,若否,则获取所述服务器当前存储的通信数据的镜像数据,并根据该镜像数据更新所述网管客户端存储的镜像数据。Determining whether the mirrored data stored locally by the network management client is the same as the communication data currently stored by the server, and if not, acquiring mirror data of the communication data currently stored by the server, and updating the network management client according to the mirrored data. Mirrored data stored at the end.
上述方案中,在从本地获取与所述对象对应的镜像数据之前,所述方法还包括:判断网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据是否相同;In the foregoing solution, before the obtaining the mirroring data corresponding to the object, the method further includes: determining whether the mirrored data locally stored by the network management client is the same as the communication data currently stored by the server;
若是,则从本地获取与所述对象对应的镜像数据;If yes, the mirror data corresponding to the object is obtained locally;
若否,则获取所述服务器当前存储的通信数据的镜像数据,并根据该镜像数据更新所述网管客户端存储的镜像数据,从本地获取与所述对象对应的通信数据。If not, the mirror data of the communication data currently stored by the server is obtained, and the mirror data stored by the network management client is updated according to the mirror data, and the communication data corresponding to the object is locally acquired.
上述方案中,所述方法还包括:在所述网管客户端和所述服务器空闲时,获取所述镜像数据的标识,所述镜像数据的标识为服务器中所述通信 数据的标识的镜像标识;In the above solution, the method further includes: when the network management client and the server are idle, acquiring an identifier of the mirrored data, where the identifier of the mirrored data is the communication in the server a mirrored identifier of the identity of the data;
所述判断网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据是否相同的步骤包括:The step of determining whether the mirrored data stored locally by the network management client is the same as the communication data currently stored by the server includes:
获取服务器当前存储的所述通信数据的标识;Obtaining an identifier of the communication data currently stored by the server;
判断网管客户端本地存储的镜像数据的标识、与服务器当前存储的所述通信数据的标识是否一致;Determining whether the identifier of the mirrored data stored locally by the network management client is consistent with the identifier of the communication data currently stored by the server;
若否,则判定网管客户端本地存储的镜像数据和服务器当前存储的通信数据不同;If not, it is determined that the mirrored data stored locally by the network management client is different from the currently stored communication data of the server;
若是,则判定网管客户端存储的所述镜像数据和服务器当前存储的通信数据相同;If yes, determining that the mirrored data stored by the network management client is the same as the currently stored communication data of the server;
在判定网管客户端本地存储的镜像数据和服务器当前存储的通信数据不同之后,所述方法还包括:After determining that the mirrored data stored locally by the network management client is different from the currently stored communication data of the server, the method further includes:
根据所述服务器当前存储的通信数据的标识的镜像标识更新网管客户端本地存储的镜像数据的标识。Updating the identifier of the mirrored data stored locally by the network management client according to the image identifier of the identifier of the communication data currently stored by the server.
上述方案中,所述通信数据的标识包括:服务器最后一次更新所述通信数据的时间戳。In the above solution, the identifier of the communication data includes: a timestamp of the last time the server updates the communication data.
上述方案中,所述通信数据包括:用户传输数据。In the above solution, the communication data includes: a user transmitting data.
同样为了解决上述技术问题,本发明实施例还提供了另一种数据通信方法,包括:In order to solve the above technical problem, the embodiment of the present invention further provides another data communication method, including:
生成在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据;Generating mirror data of communication data that the network management client needs to obtain from the server during the network management process;
将所述镜像数据发送给网管客户端。Send the mirrored data to the network management client.
上述方案中,所述将所述镜像数据发送给网管客户端的步骤包括:In the foregoing solution, the step of sending the mirrored data to the network management client includes:
在所述网管客户端和所述服务器空闲时,将所述镜像数据发送给网管客户端。 And sending the mirrored data to the network management client when the network management client and the server are idle.
上述方案中,所述方法还包括:In the above solution, the method further includes:
在网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据不相同时,生成所述服务器当前存储的通信数据的镜像数据,并发送给所述网管客户端。The mirroring data of the communication data currently stored by the server is generated and sent to the network management client when the mirroring data stored locally on the network management client is different from the communication data currently stored by the server.
上述方案中,所述方法还包括:In the above solution, the method further includes:
对服务器中所述通信数据设置标识,且生成所述标识的镜像标识,所述镜像标识为镜像数据的标识;Setting an identifier for the communication data in the server, and generating a mirrored identifier of the identifier, where the image identifier is an identifier of the mirrored data;
在所述网管客户端和所述服务器空闲时,将所述镜像数据的标识发送给所述网管客户端;Sending the identifier of the mirrored data to the network management client when the network management client and the server are idle;
在网络管理过程中、或者在所述网管客户端和所述服务器空闲时,将所述服务器当前存储的通信数据的标识发送给网管客户端;Sending, to the network management client, the identifier of the communication data currently stored by the server, in the network management process, or when the network management client and the server are idle;
在网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据不相同时,生成所述服务器当前存储的通信数据的标识的镜像标识,并发送给网管客户端。The mirroring identifier of the identifier of the communication data currently stored by the server is generated and sent to the network management client when the mirroring data stored locally on the network management client is different from the communication data currently stored by the server.
同样为了解决上述技术问题,本发明实施例还提供了一种数据通信装置,包括:第一获取模块、存储模块和第二获取模块;In order to solve the above technical problem, the embodiment of the present invention further provides a data communication device, including: a first acquiring module, a storage module, and a second acquiring module;
所述第一获取模块,配置为获取在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据;The first obtaining module is configured to acquire mirror data of communication data that the network management client needs to obtain from the server in the network management process;
所述存储模块,配置为在网管客户端上存储所述通信数据的镜像数据;The storage module is configured to store mirror data of the communication data on a network management client;
所述第二获取模块,配置为在网络管理的过程中,如果需要从服务器中获取的对象在所述网管客户端本地存在镜像数据时,则从本地获取与所述对象对应的镜像数据。The second obtaining module is configured to obtain mirror data corresponding to the object locally if the object that needs to be obtained from the server has mirror data locally in the network management client.
同样为了解决上述技术问题,本发明实施例还提供了另一种数据通信装置,包括:生成模块和发送模块;In order to solve the above technical problem, the embodiment of the present invention further provides another data communication apparatus, including: a generating module and a sending module;
所述生成模块,配置为生成在网络管理过程中网管客户端需要从服务 器中获取的通信数据的镜像数据;The generating module is configured to generate a network management client needs to be served from the network during the network management process Mirror data of communication data acquired in the device;
所述发送模块,配置为将所述镜像数据发送给网管客户端。The sending module is configured to send the mirrored data to a network management client.
本发明实施例提供了一种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序用于执行以上所述的数据通信方法。An embodiment of the present invention provides a computer storage medium, where the computer storage medium stores a computer program, and the computer program is used to execute the data communication method described above.
本发明实施例所提供的一种数据通信方法、装置及计算机存储介质;获取在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据;在网管客户端上存储所述通信数据的镜像数据,在网络管理的过程中,如果需要从服务器中获取的对象在所述网管客户端本地存在镜像数据时,则从本地获取与所述对象对应的镜像数据;本发明实施例所述技术方案可以将原有网管系统中部分通信数据由C/S通信模式(客户端/服务器模式)转变为客户端本地取数据的通信模式,减少了在对网络进行管理的过程中客户端与服务器之间交互的通信数据量,很大程度上避免因为客户端与服务器之间交互的通信数据量过于庞大所带来的各类故障,提高C/S通信模式的交互效率,进而提高了网管系统对网络管理的效率。A data communication method, device, and computer storage medium provided by the embodiment of the present invention; acquiring mirror data of communication data that the network management client needs to obtain from the server in the network management process; storing the communication data on the network management client Mirroring data, in the network management process, if the object that is obtained from the server needs to have the mirroring data locally in the network management client, the mirroring data corresponding to the object is obtained locally; The technical solution can convert part of the communication data in the original network management system from the C/S communication mode (client/server mode) to the communication mode of the client locally fetching data, thereby reducing the client and the server in the process of managing the network. The amount of communication data exchanged between the two greatly avoids various types of faults caused by the excessive amount of communication data between the client and the server, improves the interaction efficiency of the C/S communication mode, and further improves the network management system. The efficiency of network management.
附图说明DRAWINGS
图1为本发明实施例一提供的一种数据通信方法的流程示意图;1 is a schematic flowchart of a data communication method according to Embodiment 1 of the present invention;
图2为本发明实施例一提供的另一种数据通信方法的流程示意图;2 is a schematic flowchart of another data communication method according to Embodiment 1 of the present invention;
图3为本发明实施例一提供的一种镜像数据更新的流程示意图;FIG. 3 is a schematic flowchart of image data update according to Embodiment 1 of the present invention; FIG.
图4为本发明实施例二提供的一种数据通信方法的流程示意图;4 is a schematic flowchart of a data communication method according to Embodiment 2 of the present invention;
图5为本发明实施例二提供的在一种在网管系统空闲时的数据通信方法的流程示意图;FIG. 5 is a schematic flowchart of a data communication method when a network management system is idle according to Embodiment 2 of the present invention;
图6为本发明实施例二提供的一种在网络管理的过程中数据通信方法的流程示意图;6 is a schematic flowchart of a data communication method in a network management process according to Embodiment 2 of the present invention;
图7为本发明实施例三提供的一种镜像数据获取的流程示意图;FIG. 7 is a schematic flowchart of image data acquisition according to Embodiment 3 of the present invention;
图8为本发明实施例三提供的一种镜像数据更新的流程示意图; FIG. 8 is a schematic flowchart of a mirror data update according to Embodiment 3 of the present invention; FIG.
图9为本发明实施例三提供的一种读取镜像数据的流程示意图;FIG. 9 is a schematic flowchart of reading mirror data according to Embodiment 3 of the present invention;
图10为本发明实施例四提供的一种数据通信装置的结构示意图;FIG. 10 is a schematic structural diagram of a data communication apparatus according to Embodiment 4 of the present invention; FIG.
图11为本发明实施例四提供的另一种数据通信装置的结构示意图。FIG. 11 is a schematic structural diagram of another data communication apparatus according to Embodiment 4 of the present invention.
具体实施方式detailed description
下面通过具体实施方式结合附图对本发明作进一步详细说明。The present invention will be further described in detail below with reference to the accompanying drawings.
实施例一:Embodiment 1:
现有网管系统中在对网络管理过程中需要从服务器中查询大量的通信数据,这样会导致网管客户端与服务器之间交互的通信数据量过于庞大,会导致网管系统出现故障,例如客户端界面卡死。为了解决目前由于网管客户端和服务器之间交互的通信数据量过于庞大导致网管系统出现各类故障的技术问题,本发明思想为:将客户端需要从服务器中获取的通信数据预先存储在客户端本地,在网络管理过程中,可以直接从本地存储中获取需要的通信数据,减小客户端与服务器之间交互的通信数据量,避免了网管系统因数据量过大出现故障。In the existing network management system, a large amount of communication data needs to be queried from the server during the network management process. As a result, the amount of communication data exchanged between the network management client and the server is too large, which may cause the network management system to malfunction, such as the client interface. Stuck. In order to solve the technical problem that the network management system has various types of faults due to the excessive amount of communication data between the network management client and the server, the present invention is to pre-store the communication data that the client needs to obtain from the server in the client. Locally, in the network management process, the required communication data can be directly obtained from the local storage, and the amount of communication data exchanged between the client and the server is reduced, thereby preventing the network management system from malfunctioning due to excessive data volume.
本实施例提供了一种数据通信方法,应用于网管客户端侧,如图1所示,包括如下步骤:This embodiment provides a data communication method, which is applied to the client side of the network management system, as shown in FIG. 1 , and includes the following steps:
步骤101:获取在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据。Step 101: Obtain mirror data of communication data that the network management client needs to obtain from the server in the network management process.
本步骤中网络管理过程可以包括网络状态管理过程,例如实现OMMR状态管理“时隙”功能的过程。因此,本步骤可以获取在网管客户端实现状态管理的过程中,需要从服务器中查询的通信数据。The network management process in this step may include a network state management process, such as a process of implementing the OMMR state management "time slot" function. Therefore, this step can obtain communication data that needs to be queried from the server during the state management of the network management client.
本步骤中通信数据可以根据数据类型而定;在现有网管系统中的通信类型按作用可分为两个类型,一种用于传输用户传输数据的数据性通信,另一种为,用于传递控制信息的控制性通信;其中数据性通信数据往往占用比较大的带宽,并容易生成镜像数据。因此,优先地,本实施例方法中 通信数据包括:数据性通信数据,即用户传输数据;此时本步骤是获取网络管理过程中客户端需要从服务器中获取的用户传输数据的镜像数据。The communication data in this step may be determined according to the data type; the communication types in the existing network management system may be divided into two types according to their functions, one is for transmitting data communication of user transmission data, and the other is for Control communication for transmitting control information; wherein the data communication data tends to occupy a relatively large bandwidth and is easy to generate mirror data. Therefore, preferentially, in the method of this embodiment The communication data includes: data communication data, that is, the user transmits data; in this case, the step is to obtain mirror data of the user transmission data that the client needs to obtain from the server in the network management process.
以目前OMMR网管状态管理模块的“时隙”功能曾经出现过的故障为例,首先这里由于客户端有从服务器端读取逗号分隔值(CSV,Comma Separated Values)文件并返回客户端大量数据结果的需求,因此导致通信闭塞,出现客户端卡死的故障。经分析,该通信就是数据性通信,同时考虑到该需求所要查询的数据集并没有超出普通个人计算机(PC,Personal Computer)的能力,因此可以考虑将这部分数据集在客户端制作镜像文件。Take the fault that has appeared in the "time slot" function of the current OMMR network management status management module as an example. First, because the client has read the comma separated value (CSV, Comma Separated Values) file from the server side and returns a large amount of data results from the client. The demand, therefore, causes communication to occlude and a failure of the client to crash. After analysis, the communication is data communication, and the data set to be queried according to the requirement does not exceed the capabilities of a personal computer (PC, Personal Computer), so it can be considered to make this part of the data set on the client side to make an image file.
本实施例中镜像数据可以为通信数据的备份数据,其与通信数据相同。The mirror data in this embodiment may be backup data of communication data, which is the same as the communication data.
本实施例方法中通信数据可以选取客户端使用频率较高且更新相对不频繁的维护简单的数据性通信数据作为目标数据。In the method of the embodiment, the communication data can be selected as the target data by using the data communication data with high maintenance frequency and relatively low update of the client.
步骤102:在网管客户端上存储所述通信数据的镜像数据。Step 102: Store mirror data of the communication data on a network management client.
步骤103:在网络管理的过程中,如果需要从服务器中获取的对象在所述网管客户端本地存在镜像数据时,则从本地获取与所述对象对应的镜像数据。Step 103: In the process of network management, if the object that needs to be obtained from the server has mirror data locally in the network management client, the mirror data corresponding to the object is locally obtained.
本步骤中从本地获取数据的实现方式包括:在现有网管代码的客户端部分稍作修改,使其能够读取镜像数据。例如,只要修改客户端读取数据的函数即可。通过修改其对读取数据请求的处理流程,使其能够在需要时通过调用本地镜像完成读数据的操作。The implementation of obtaining data from the local in this step includes: slightly modifying the client part of the existing network management code to enable it to read the mirrored data. For example, just modify the function that the client reads the data. By modifying its processing flow for reading data requests, it is possible to complete the operation of reading data by calling a local image when needed.
本实施例的数据通信方法可以将原有网管系统中部分通信数据由C/S通信模式(客户端/服务器模式)转变为客户端本地取数据的通信模式,减少了在对网络进行管理的过程中客户端与服务器之间交互的通信数据量,很大程度上避免因为客户端与服务器之间交互的通信数据量过于庞大所带来的各类故障,提高C/S通信模式的交互效率,进而提高了网管系统对网络管理的效率。 The data communication method of the embodiment can convert part of the communication data in the original network management system from the C/S communication mode (client/server mode) to the communication mode of the client locally fetching data, thereby reducing the process of managing the network. The amount of communication data exchanged between the client and the server largely avoids various types of failures caused by the excessive amount of communication data between the client and the server, and improves the interaction efficiency of the C/S communication mode. Thereby improving the efficiency of the network management system for network management.
在本实施例中如果需要从服务器中获取的对象在本地存在镜像数据时,则需要按照原有的流程处理,即发送请求至服务器,服务器返回对应的数据。In this embodiment, if the object that needs to be obtained from the server locally has mirror data, it needs to be processed according to the original process, that is, the request is sent to the server, and the server returns the corresponding data.
为了避免获取镜像数据与网络管理的时间上的冲突,优先地,本实施例可以在网管系统空闲时获取通信数据的镜像数据,因此,上述步骤101可以具体包括:在所述网管客户端和所述服务器空闲时,获取在网管客户端进行网络状态管理的过程中需要从服务器中获取的通信数据的镜像数据。In order to avoid the time conflict between the mirroring data and the network management, the embodiment may obtain the mirrored data of the communication data when the network management system is idle. Therefore, the step 101 may specifically include: the network management client and the When the server is idle, the mirror data of the communication data that needs to be obtained from the server during the network state management of the network management client is obtained.
考虑到通信数据的变化,本实施例还需要维护镜像数据,即需要不断地更新本地的镜像数据,以保证网络管理的精确性。因此,本实施例方法还可以包括:在所述网管客户端和所述服务器空闲时,更新所述网管客户端存储的镜像数据。Considering the change of the communication data, the embodiment also needs to maintain the mirror data, that is, the local mirror data needs to be continuously updated to ensure the accuracy of the network management. Therefore, the method in this embodiment may further include: updating the mirrored data stored by the network management client when the network management client and the server are idle.
本实施例方法可以在网管系统空闲时定时更新镜像数据,即定时维护镜像数据,保证网管客户端本地存储的镜像数据与服务器中存储的数据同步。In this embodiment, the mirror data can be updated periodically when the network management system is idle, that is, the mirror data is periodically maintained, and the mirrored data stored locally by the network management client is synchronized with the data stored in the server.
本实施例中更新所述网管客户端存储的镜像数据的过程可以包括:The process of updating the mirrored data stored by the network management client in this embodiment may include:
判断网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据是否相同;Determining whether the mirrored data stored locally by the network management client is the same as the currently stored communication data of the server;
若否,则获取所述服务器当前存储的通信数据的镜像数据,并根据该镜像数据更新所述网管客户端存储的镜像数据;If not, acquiring mirror data of the communication data currently stored by the server, and updating the mirror data stored by the network management client according to the mirror data;
若是,则不更新镜像数据。If so, the mirror data is not updated.
同样为保证网络管理的精确性或者可以实现,本实施例方法在从本地获取与所述对象对应的镜像数据之前,还需要判断获取对象在本地的镜像数据是否是最新的数据,若是,则从本地直接读取,若否,还需要强制更新镜像数据;因此,本实施例方法,如果需要从服务器中获取的对象在所 述网管客户端本地存在镜像数据时,在从本地获取与所述对象对应的镜像数据之前,还可以包括:Also, in order to ensure the accuracy of the network management or the implementation, the method of the embodiment needs to determine whether the image data of the local object is the latest data before acquiring the mirror data corresponding to the object locally, and if so, Local direct read, if not, also need to force update mirror data; therefore, the method of this embodiment, if the object needs to be obtained from the server Before the mirroring data exists locally on the network management client, before the mirroring data corresponding to the object is obtained locally, the method may further include:
判断网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据是否相同;Determining whether the mirrored data stored locally by the network management client is the same as the currently stored communication data of the server;
若是,则从本地获取与所述对象对应的镜像数据;If yes, the mirror data corresponding to the object is obtained locally;
若否,则获取所述服务器当前存储的通信数据的镜像数据,并根据该镜像数据更新所述网管客户端存储的镜像数据,从本地获取与所述对象对应的通信数据。If not, the mirror data of the communication data currently stored by the server is obtained, and the mirror data stored by the network management client is updated according to the mirror data, and the communication data corresponding to the object is locally acquired.
在本实施例中判断数据是否相同可以通过判断标识是否相同的方式来实现,本实施例数据通信方法,可以包括如下步骤,如图2所示:In this embodiment, it is determined that the data is the same by determining whether the identifiers are the same. The data communication method in this embodiment may include the following steps, as shown in FIG. 2:
步骤201:在所述网管客户端和所述服务器空闲时,获取在网管客户端进行网络状态管理的过程中需要从服务器中获取的通信数据的镜像数据及其标识。Step 201: Acquire, when the network management client and the server are idle, the mirror data and the identifier of the communication data that need to be obtained from the server during the network state management of the network management client.
本步骤中镜像数据的标识为服务器中所述通信数据的标识的镜像标识,镜像标识与服务器存储的通信数据的标识是相同,具体地,可以在对服务器中通信数据和标识进行备份生成镜像数据和镜像标识,该镜像标识即为镜像数据的标识。The identifier of the mirrored data in this step is the mirrored identifier of the identifier of the communication data in the server, and the identifier of the mirrored identifier is the same as the identifier of the communication data stored by the server. Specifically, the mirrored data may be generated by backing up the communication data and the identifier in the server. And the image identifier, which is the identifier of the mirrored data.
在一实施例中,本实施例中通信数据的标识可以包括:服务器最后一次更新所述通信数据的时间戳。In an embodiment, the identifier of the communication data in this embodiment may include: a timestamp of the last update of the communication data by the server.
步骤202:在网管客户端上存储所述通信数据的镜像数据及其标识。Step 202: Store the mirrored data of the communication data and its identifier on the network management client.
步骤203:在网络管理的过程中,判断需要从服务器中获取的对象在所述网管客户端本地是否存在镜像数据,若是,执行步骤204,若否,则执行步骤208;Step 203: In the process of network management, determine whether the object that needs to be obtained from the server has mirror data locally in the network management client, and if yes, go to step 204, if no, go to step 208;
例如在状态管理过程中,需要查询的数据性通信数据在本地有镜像数据,则从本地获取该数据性通信数据,当需要查询的数据性通信数据在本 地没有镜像数据时,则需要按照原来的流程从服务器中获取数据。For example, in the state management process, if the data communication data to be queried has mirror data locally, the data communication data is obtained locally, and when the data communication data to be queried is in the present If there is no mirrored data, you need to get the data from the server according to the original process.
步骤204:获取服务器当前存储的所述通信数据的标识。Step 204: Acquire an identifier of the communication data currently stored by the server.
在服务器端,在通信数据改变的情况下,改变通信数据的标识,这样就在客户端就可以通过标识来判断本地存储的镜像数据与服务器存储的通信数据是否相同。On the server side, in the case where the communication data is changed, the identification of the communication data is changed, so that the client can determine whether the locally stored mirror data is the same as the communication data stored by the server by the identifier.
步骤205:判断网管客户端本地存储的镜像数据的标识、与服务器当前存储的所述通信数据的标识是否一致,若否,则执行步骤206,若是,则执行步骤208。Step 205: Determine whether the identifier of the mirrored data stored locally by the network management client is consistent with the identifier of the communication data currently stored by the server. If not, go to step 206. If yes, go to step 208.
本步骤中通过标识来判断标识对应的数据是否相同,当标识一致时,说明服务器当存储的通信数据没有发生变化,此时,本地存储的镜像数据与服务器当前存储的通信数据相同,当标识不一致时,说明服务器当期存储的通信数据发生变化,此时本地存储的镜像数据与服务器当前存储的通信数据不相同。In this step, the identifiers are used to determine whether the data corresponding to the identifiers are the same. When the identifiers are consistent, it indicates that the stored communication data of the server has not changed. At this time, the locally stored mirror data is the same as the currently stored communication data of the server, and the identifiers are inconsistent. When the communication data stored in the server is changed, the locally stored mirror data is different from the communication data currently stored by the server.
步骤206:获取所述服务器当前存储的通信数据的镜像数据和该镜像数据的标识,并根据该镜像数据和该镜像数据对应的标识更新所述网管客户端存储的镜像数据和镜像数据的标识,转步骤207。Step 206: Acquire the mirror data of the communication data currently stored by the server and the identifier of the mirrored data, and update the identifier of the mirrored data and the mirrored data stored by the network management client according to the mirrored data and the identifier corresponding to the mirrored data. Go to step 207.
当本地存储的镜像数据与服务器当前存储的通信数据不相同时,需要更新本地存储的镜像数据和标识。When the locally stored mirrored data is different from the currently stored communication data of the server, the locally stored mirrored data and the identifier need to be updated.
步骤207:从本地获取与所述对象对应的镜像数据。Step 207: Acquire image data corresponding to the object from the local.
步骤208:按照原来的流程从服务器中获取与对象对应的通信数据。Step 208: Obtain communication data corresponding to the object from the server according to the original process.
本实施例中镜像数据的更新可以在网管系统空闲时进行,具体更新本地存储的镜像数据的过程可以包括,如图3所示:The update of the mirrored data in this embodiment may be performed when the network management system is idle. The process of specifically updating the locally stored mirrored data may include, as shown in FIG. 3:
步骤301:在所述网管客户端和所述服务器空闲时,获取服务器当前存储的所述通信数据的标识;Step 301: Acquire an identifier of the communication data currently stored by the server when the network management client and the server are idle.
步骤302:判断网管客户端本地存储的镜像数据的标识、与服务器当前 存储的所述通信数据的标识是否一致,若否,则执行步骤303,若是,则执行步骤304;Step 302: Determine the identifier of the mirrored data stored locally by the network management client, and the current server Whether the stored identification of the communication data is consistent, if not, proceed to step 303, and if so, proceed to step 304;
步骤303:获取所述服务器当前存储的通信数据的镜像数据和该镜像数据的标识,并根据该镜像数据和该镜像数据对应的标识更新所述网管客户端存储的镜像数据和镜像数据的标识。Step 303: Acquire the mirror data of the communication data currently stored by the server and the identifier of the mirrored data, and update the identifier of the mirrored data and the mirrored data stored by the network management client according to the mirrored data and the identifier corresponding to the mirrored data.
步骤304:结束更新流程。Step 304: End the update process.
本实施例可以通过在客户端和服务器端提供独立于网管进程本身的代理服务进程来进行镜像数据的更新同步。This embodiment can perform update synchronization of mirror data by providing a proxy service process independent of the network management process itself on the client and the server.
应用本实施例方法,由于将网管通信过程中部分耗时高的数据性通讯转变为客户端本地读取“镜像”的过程,从而可以很大程度上避免因为通讯数据量过于庞大所带来的各类故障,提高C/S结构的交互效率。By applying the method of the embodiment, the partially time-consuming data communication in the network communication process is converted into a process of locally reading the “mirror image” of the client, thereby largely avoiding the excessive amount of communication data. Various types of faults improve the interaction efficiency of the C/S structure.
实施例二:Embodiment 2:
如图4所示,本实施例提供了一种数据通信方法,应用于服务器侧或者第三方设备侧,包括如下步骤:As shown in FIG. 4, this embodiment provides a data communication method, which is applied to a server side or a third-party device side, and includes the following steps:
步骤401:生成在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据。Step 401: Generate mirror data of communication data that the network management client needs to obtain from the server in the network management process.
本步骤首先选取需要生成镜像数据的目标数据,即需要从服务器中获取的通信数据。该目标数据可以包括:在网管通信中数据性通信数据(即用户传输数据);进一步地,可以选取客户端使用频率较高且更新相对不频繁的维护简单的数据性通信数据作为目标数据。This step first selects the target data that needs to generate mirror data, that is, the communication data that needs to be obtained from the server. The target data may include: data communication data (ie, user transmission data) in the network management communication; further, data maintenance communication data with high frequency of use and relatively infrequent update of the client may be selected as the target data.
在一实施例中,本步骤可以对通信数据进行备份或拷贝生成镜像数据。In an embodiment, this step may back up or copy the communication data to generate mirror data.
步骤402:将所述镜像数据发送给网管客户端。Step 402: Send the mirrored data to the network management client.
优选地,本步骤可以在所述网管客户端和所述服务器空闲时,将所述镜像数据发送给网管客户端。Preferably, the step is to send the mirrored data to the network management client when the network management client and the server are idle.
本实施例方法可以选取网管中的通信数据制作镜像数据,且将镜像数 据发送给网管客户端存储,使得在网络管理过程中,当需要获取的选取的通信数据时直接从本地存储中获取,而不需要通过信息交互从服务器中获取;减小了客户端与服务器之间交互的通信数据量,避免了因为通讯数据量过于庞大所带来的各类故障,提高C/S结构的交互效率,进而提高了网络管理的效率。In this embodiment, the method can select the communication data in the network management to create mirror data, and the number of mirrors is According to the storage sent to the network management client, in the network management process, when the selected communication data needs to be acquired, it is directly obtained from the local storage, and does not need to be obtained from the server through information interaction; the client and the server are reduced. The amount of communication data exchanged avoids various types of failures caused by the excessive amount of communication data, improves the interaction efficiency of the C/S structure, and improves the efficiency of network management.
在一实施例中,为了保证服务器和客户端的通信数据同步,即相同,本实施例方法,还可以包括:在网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据不相同时,生成所述服务器当前存储的通信数据的镜像数据,并发送给所述网管客户端。In an embodiment, in order to ensure that the communication data of the server and the client are synchronized, that is, the method is the same, the method of the embodiment may further include: the mirrored data stored locally on the network management client is not in communication with the currently stored communication data of the server. At the same time, the mirror data of the communication data currently stored by the server is generated and sent to the network management client.
在一实施例中,为了能够实现通过标识来判断服务器和客户端的通信数据是否相同,本实施例方法,还可以包括:In an embodiment, in order to determine whether the communication data of the server and the client are the same by the identifier, the method in this embodiment may further include:
对服务器中所述通信数据设置标识,且生成所述标识的镜像标识,所述镜像标识为镜像数据的标识;Setting an identifier for the communication data in the server, and generating a mirrored identifier of the identifier, where the image identifier is an identifier of the mirrored data;
在所述网管客户端和所述服务器空闲时,将所述镜像数据的标识发送给所述网管客户端;Sending the identifier of the mirrored data to the network management client when the network management client and the server are idle;
在网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据不相同时,生成所述服务器当前存储的通信数据的标识的镜像标识,并发送给网管客户端。The mirroring identifier of the identifier of the communication data currently stored by the server is generated and sent to the network management client when the mirroring data stored locally on the network management client is different from the communication data currently stored by the server.
这样,本实施例方法在网管系统空闲时可以将镜像数据及其标识发送给网管客户端,供客户端保存,在网络管理过程中、或者在所述网管客户端和所述服务器空闲时,将服务器当前存储的通信数据的标识发送给客户端,供客户端判断两端是否数据同步;在需要数据更新的过程中,可以将服务器当前存储的通信数据的镜像数据及其标识发送给客户端,供客户端更新存储的数据和标识,实现数据同步。In this way, the method in this embodiment can send the mirrored data and its identifier to the network management client when the network management system is idle, for the client to save, in the network management process, or when the network management client and the server are idle, The identifier of the communication data currently stored by the server is sent to the client, and the client determines whether the data is synchronized at both ends. In the process of requiring data update, the mirrored data of the communication data currently stored by the server and the identifier thereof may be sent to the client. The client updates the stored data and identification to achieve data synchronization.
根据上述的描述,如图5所示,在网管系统空闲时,本实施例的数据 通信方法可以包括:According to the above description, as shown in FIG. 5, when the network management system is idle, the data of this embodiment The communication method can include:
步骤501:生成在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据及其标识。Step 501: Generate mirror data and identifiers of communication data that the network management client needs to obtain from the server in the network management process.
步骤502:将所述镜像数据及其标识发送给网管客户端Step 502: Send the mirrored data and its identifier to the network management client.
步骤503:将服务器当前存储的所述通信数据及其标识发送给网管客户端。Step 503: Send the communication data and the identifier currently stored by the server to the network management client.
步骤504:在网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据不相同时,生成服务器当前存储的所述通信数据的镜像数据及其标识,并发送给网管客户端。Step 504: When the mirrored data stored locally by the network management client is different from the communication data currently stored by the server, the mirrored data and the identifier of the communication data currently stored by the server are generated and sent to the network management client.
根据上述的描述,如图6所示,在网络管理的过程中,本实施例数据通信方法可以包括:According to the above description, as shown in FIG. 6, in the process of network management, the data communication method in this embodiment may include:
步骤601:将所述服务器当前存储的通信数据的标识发送给网管客户端;Step 601: Send the identifier of the communication data currently stored by the server to the network management client.
步骤602:在网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据不相同时,生成服务器当前存储的所述通信数据的镜像数据及其标识,并发送给网管客户端。Step 602: When the mirrored data stored locally by the network management client is different from the communication data currently stored by the server, the mirrored data and the identifier of the communication data currently stored by the server are generated and sent to the network management client.
相应地,本发明实施例还记载一种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序用于执行本发明实施例中图1、图2、图3所示的数据通信方法,和/或,图4、图5、图6所示的数据通信方法。Correspondingly, the embodiment of the present invention further describes a computer storage medium, where the computer storage medium stores a computer program, and the computer program is used to execute the data shown in FIG. 1, FIG. 2, and FIG. 3 in the embodiment of the present invention. Communication method, and/or data communication method shown in FIG. 4, FIG. 5, and FIG.
实施例三:Embodiment 3:
本实施例以网管客户端实现状态管理“时隙”功能为例,来介绍实施例一和二所述的数据通信方法的具体实现。In this embodiment, the network management client implements the state management "time slot" function as an example to introduce the specific implementation of the data communication method according to the first embodiment and the second embodiment.
目前“时隙”功能需要读取的数据集为存储在服务器端的CSV文件。首先需要在服务器端添加用于标注这些CSV文件的“ID”文件。本实施例 考虑使用最后一次修改这些文件的系统时间戳作为每个CSV文件的“ID文件”。然后需要编写独立的线程负责镜像数据获取和镜像数据更新的过程,The current "slot" function needs to read the data set as a CSV file stored on the server side. First you need to add an "ID" file to mark these CSV files on the server side. This embodiment Consider using the system timestamp of the last modification of these files as the "ID file" for each CSV file. Then you need to write a separate thread responsible for the process of mirroring data acquisition and mirroring data updates.
如图7所示,镜像数据获取的过程包括:As shown in Figure 7, the process of mirroring data acquisition includes:
步骤701:在检查到网管系统处于空闲状态时,网管客户端向服务器发起镜像数据请求;Step 701: When it is checked that the network management system is in an idle state, the network management client initiates a mirror data request to the server.
步骤702:服务器接收到镜像数据请求后,拷贝CSV文件和ID文件,并将拷贝的CSV文件和ID文件发送给网管客户端;Step 702: After receiving the mirror data request, the server copies the CSV file and the ID file, and sends the copied CSV file and the ID file to the network management client.
步骤703:网管客户端接收CSV文件和ID文件并存储。Step 703: The network management client receives the CSV file and the ID file and stores them.
如图8所示,镜像数据更新(同步)的过程包括:As shown in Figure 8, the process of mirroring data update (synchronization) includes:
步骤801:在检查到网管系统处于空闲状态,且等待同步队列中有同步任务时,网管客户端向服务器发起镜像同步请求;Step 801: When it is checked that the network management system is in an idle state, and waiting for a synchronization task in the synchronization queue, the network management client initiates a mirror synchronization request to the server.
步骤802:服务器接收到镜像同步请求后,拷贝当前存储的CSV文件和ID文件,并将拷贝的CSV文件和ID文件返回给网管客户端;Step 802: After receiving the mirror synchronization request, the server copies the currently stored CSV file and the ID file, and returns the copied CSV file and the ID file to the network management client.
步骤803:网管客户端存储接收到的CSV文件和ID文件;Step 803: The network management client stores the received CSV file and ID file.
步骤804:获取服务器当前存储的CSV文件的ID文件;Step 804: Acquire an ID file of a CSV file currently stored by the server.
步骤805:将该ID文件与本地存储的ID文件比较,若不同,添加对应的同步任务至等待同步队列中,若相同,至结束同步流程。Step 805: Compare the ID file with the locally stored ID file. If different, add the corresponding synchronization task to wait for the synchronization queue. If they are the same, the synchronization process ends.
以上步骤均可以在网管系统空闲时进行。The above steps can all be performed when the network management system is idle.
然后,假设“时隙”功能页面调用的读取时隙数据的接口是某个类的函数A,则需要修改该函数A,则需要修改该函数A,使其能够读取本地存储的镜像数据。接着,在固有处理流程的基础上添加入下过程,如图9所示,包括:Then, assuming that the interface for reading the time slot data called by the "slot" function page is a function A of a certain class, the function A needs to be modified, and the function A needs to be modified so that it can read the locally stored mirror data. . Then, based on the inherent processing flow, the process is added, as shown in FIG. 9, including:
步骤901:判断查询的对象是否在客户端本地存在镜像数据(即CSV文件),若是,则执行步骤902,若否,则执行步骤906。Step 901: Determine whether the object of the query has mirror data (ie, a CSV file) locally on the client. If yes, go to step 902. If no, go to step 906.
步骤902:读取服务器当前存储的CSV文件的ID文件。 Step 902: Read the ID file of the CSV file currently stored by the server.
步骤903:判断本地存储的ID文件是否与服务器端当前存储的ID文件一致,若否,则执行步骤904,若是,执行步骤905.Step 903: Determine whether the locally stored ID file is consistent with the ID file currently stored by the server. If not, execute step 904. If yes, go to step 905.
步骤904:清空等待同步队列,直接强制触发镜像数据同步过程。Step 904: Clear the waiting synchronization queue to directly trigger the mirror data synchronization process.
本步骤中触发镜像数据同步过程可以参考图8所示的流程。The process of triggering the mirror data synchronization in this step can refer to the process shown in FIG. 8.
步骤905:读取本地存储的镜像数据用于实现“时隙”功能。Step 905: Read the locally stored mirror data for implementing the "slot" function.
步骤906:按照原来的流程处理。Step 906: Process according to the original process.
实施例四:Embodiment 4:
如图10所示,本实施例提供了一种数据通信装置,可应用于网管客户端,所述装置包括:第一获取模块11、存储模块12和第二获取模块13;其中,As shown in FIG. 10, the embodiment provides a data communication device, which can be applied to a network management client, and the device includes: a first acquisition module 11, a storage module 12, and a second acquisition module 13;
所述第一获取模块11,配置为获取在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据;The first obtaining module 11 is configured to acquire mirror data of communication data that the network management client needs to obtain from the server in the network management process;
所述存储模块12,配置为在网管客户端上存储所述通信数据的镜像数据;The storage module 12 is configured to store mirror data of the communication data on a network management client;
所述第二获取模块13,配置为在网络管理的过程中,如果需要从服务器中获取的对象在所述网管客户端本地存在镜像数据时,则从本地获取与所述对象对应的镜像数据。The second obtaining module 13 is configured to obtain mirror data corresponding to the object locally if the object that needs to be obtained from the server has mirror data locally in the network management client.
在一实施例中,所述第一获取模块11,还配置为:In an embodiment, the first obtaining module 11 is further configured to:
在所述网管客户端和所述服务器空闲时,获取在网管客户端进行网络状态管理的过程中需要从服务器中获取的通信数据的镜像数据。When the network management client and the server are idle, the mirror data of the communication data that needs to be acquired from the server during the network state management of the network management client is acquired.
在一实施例中,所述存储模块12,还配置为:In an embodiment, the storage module 12 is further configured to:
在所述网管客户端和所述服务器空闲时,更新所述网管客户端存储的镜像数据。Updating the mirrored data stored by the network management client when the network management client and the server are idle.
在一实施例中,所述存储模块12,还配置为:In an embodiment, the storage module 12 is further configured to:
判断网管客户端本地存储的所述镜像数据与所述服务器当前存储的通 信数据是否相同,若否,则获取所述服务器当前存储的通信数据的镜像数据,并根据该镜像数据更新所述网管客户端存储的镜像数据。Determining, by the network management client, the mirrored data stored locally and the current storage of the server Whether the data is the same or not, if not, acquiring the mirror data of the communication data currently stored by the server, and updating the mirror data stored by the network management client according to the mirror data.
在一实施例中,所述第二获取模块13,还配置为:In an embodiment, the second obtaining module 13 is further configured to:
在从本地获取与所述对象对应的镜像数据之前,判断网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据是否相同;Before obtaining the mirror data corresponding to the object, determining whether the mirrored data stored locally by the network management client is the same as the communication data currently stored by the server;
若是,则从本地获取与所述对象对应的镜像数据;If yes, the mirror data corresponding to the object is obtained locally;
若否,则获取所述服务器当前存储的通信数据的镜像数据,并根据该镜像数据更新所述网管客户端存储的镜像数据,从本地获取与所述对象对应的通信数据。If not, the mirror data of the communication data currently stored by the server is obtained, and the mirror data stored by the network management client is updated according to the mirror data, and the communication data corresponding to the object is locally acquired.
在一实施例中,所述第一获取模块11,还配置为:In an embodiment, the first obtaining module 11 is further configured to:
在所述网管客户端和所述服务器空闲时,获取所述镜像数据的标识,所述镜像数据的标识为服务器中所述通信数据的标识的镜像标识;And obtaining, by the network management client, the identifier of the mirrored data, where the identifier of the mirrored data is a mirrored identifier of the identifier of the communication data in the server;
相应地,所述存储模块12,还配置为:Correspondingly, the storage module 12 is further configured to:
获取服务器当前存储的所述通信数据的标识;Obtaining an identifier of the communication data currently stored by the server;
判断网管客户端本地存储的镜像数据的标识、与服务器当前存储的所述通信数据的标识是否一致;Determining whether the identifier of the mirrored data stored locally by the network management client is consistent with the identifier of the communication data currently stored by the server;
若否,则判定网管客户端本地存储的镜像数据和服务器当前存储的通信数据不同;If not, it is determined that the mirrored data stored locally by the network management client is different from the currently stored communication data of the server;
若是,则判定网管客户端存储的所述镜像数据和服务器当前存储的通信数据相同;If yes, determining that the mirrored data stored by the network management client is the same as the currently stored communication data of the server;
在判定网管客户端本地存储的镜像数据和服务器当前存储的通信数据不同之后,After determining that the mirrored data stored locally by the network management client is different from the currently stored communication data of the server,
根据所述服务器当前存储的通信数据的标识的镜像标识更新网管客户端本地存储的镜像数据的标识。Updating the identifier of the mirrored data stored locally by the network management client according to the image identifier of the identifier of the communication data currently stored by the server.
上述方案中,所述通信数据的标识包括:服务器最后一次更新所述通 信数据的时间戳。In the above solution, the identifier of the communication data includes: the last update of the server by the server The timestamp of the letter data.
上述方案中,所述通信数据包括:用户传输数据。In the above solution, the communication data includes: a user transmitting data.
在实际应用中,所述第一获取模块11和第二获取模块13均可由所述数据通信装置或所述数据通信装置所属设备的中央处理器(CPU,Central Processing Unit)、微处理器(MPU,Micro Processor Unit)、数字信号处理器(DSP,Digital Signal Processor)、或现场可编程门阵列(FPGA,Field Programmable Gate Array)等实现;所述存储模块12可以由各种类型的存储器来实现。In a practical application, the first obtaining module 11 and the second obtaining module 13 may each be a central processing unit (CPU) or a microprocessor (MPU) of the data communication device or the device to which the data communication device belongs. , Micro Processor Unit), Digital Signal Processor (DSP), or Field Programmable Gate Array (FPGA) implementation; the storage module 12 can be implemented by various types of memory.
如图11所示,本实施例提供了一种数据通信装置,可应用于服务器或者其他网管系统中的设备,包括:生成模块21和发送模块22;As shown in FIG. 11, the embodiment provides a data communication device, which can be applied to a device in a server or other network management system, including: a generating module 21 and a sending module 22;
所述生成模块21,配置为生成在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据;The generating module 21 is configured to generate mirror data of communication data that the network management client needs to obtain from the server in the network management process;
所述发送模块22,配置为将所述镜像数据发送给网管客户端。The sending module 22 is configured to send the mirrored data to the network management client.
在一实施例中,所述发送模块22,还配置为:In an embodiment, the sending module 22 is further configured to:
在所述网管客户端和所述服务器空闲时,将所述镜像数据发送给网管客户端。And sending the mirrored data to the network management client when the network management client and the server are idle.
在一实施例中,所述生成模块21,还配置为:在网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据不相同时,生成所述服务器当前存储的通信数据的镜像数据;In an embodiment, the generating module 21 is further configured to: when the mirrored data stored locally by the network management client is different from the currently stored communication data of the server, generate communication data currently stored by the server. Mirror data;
相应地,所述发送单元22,还配置为:将所述生成模块21生成的所述服务器当前存储的通信数据的镜像数据发送给所述网管客户端。Correspondingly, the sending unit 22 is further configured to: send the mirror data of the communication data currently stored by the server generated by the generating module 21 to the network management client.
在一实施例中,所述生成模块21,还配置为:In an embodiment, the generating module 21 is further configured to:
对服务器中所述通信数据设置标识,且生成所述标识的镜像标识,所述镜像标识为镜像数据的标识;Setting an identifier for the communication data in the server, and generating a mirrored identifier of the identifier, where the image identifier is an identifier of the mirrored data;
相应地,所述发送单元22,还配置为:在所述网管客户端和所述服务 器空闲时,将所述镜像数据的标识发送给所述网管客户端;Correspondingly, the sending unit 22 is further configured to: at the network management client and the service Sending the identifier of the mirrored data to the network management client when the device is idle;
在网络管理过程中、或者在所述网管客户端和所述服务器空闲时,将所述服务器当前存储的通信数据的标识发送给网管客户端。The identifier of the communication data currently stored by the server is sent to the network management client during the network management process or when the network management client and the server are idle.
在一实施例中,所述生成模块21,还配置为:In an embodiment, the generating module 21 is further configured to:
在网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据不相同时,生成所述服务器当前存储的通信数据的标识的镜像标识;And generating, by the network management client, the mirrored data of the identifier of the communication data currently stored by the server when the mirroring data stored by the network management client is different from the communication data currently stored by the server;
相应地,所述发送单元22,还配置为:将所述生成模块21生成的所述服务器当前存储的通信数据的标识的镜像标识发送给网管客户端。Correspondingly, the sending unit 22 is further configured to: send the image identifier of the identifier of the communication data currently stored by the server generated by the generating module 21 to the network management client.
在实际应用中,所述生成模块21可由所述数据通信装置或所述数据通信装置所属设备的CPU、MPU、DSP等实现;所述发送单元22可以由发射机或发送器来实现。In a practical application, the generating module 21 may be implemented by a CPU, an MPU, a DSP, or the like of the data communication device or the device to which the data communication device belongs; the transmitting unit 22 may be implemented by a transmitter or a transmitter.
本实施例提供的数据通信装置可以选取网管中的通信数据制作镜像数据,且将镜像数据发送给网管客户端存储,使得在网络管理过程中,当需要获取的选取的通信数据时直接从本地存储中获取,而不需要通过信息交互从服务器中获取;减小了客户端与服务器之间交互的通信数据量,避免了因为通讯数据量过于庞大所带来的各类故障,提高C/S结构的交互效率,进而提高了网络管理的效率。The data communication device provided in this embodiment can select the communication data in the network management to create mirror data, and send the mirror data to the network management client for storage, so that when the selected communication data needs to be acquired, the local communication is directly stored in the network management process. Acquired, without the need to obtain information from the server through information interaction; reduce the amount of communication data between the client and the server, avoiding various types of faults caused by the excessive amount of communication data, improving the C/S structure The efficiency of interaction, which in turn improves the efficiency of network management.
以上内容是结合具体的实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。The above is a further detailed description of the present invention in connection with the specific embodiments, and the specific embodiments of the present invention are not limited to the description. It will be apparent to those skilled in the art that the present invention may be made without departing from the spirit and scope of the invention.
工业实用性Industrial applicability
本发明实施例中,获取在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据;在网管客户端上存储所述通信数据的镜像数 据,在网络管理的过程中,如果需要从服务器中获取的对象在所述网管客户端本地存在镜像数据时,则从本地获取与所述对象对应的镜像数据;如此,能够解决目前由于网管客户端和服务器之间交互的通信数据量过于庞大导致网管系统出现各类故障的技术问题。 In the embodiment of the present invention, the mirror data of the communication data that the network management client needs to obtain from the server in the network management process is obtained; and the number of mirrors of the communication data is stored on the network management client. According to the network management process, if the object that needs to be obtained from the server has the mirror data locally in the network management client, the mirror data corresponding to the object is obtained locally; thus, the current network management client can be solved. The amount of communication data exchanged between the server and the server is too large, which causes technical problems of various faults in the network management system.

Claims (15)

  1. 一种数据通信方法,所述方法包括:A data communication method, the method comprising:
    获取在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据;Obtaining mirror data of communication data that the network management client needs to obtain from the server during the network management process;
    在网管客户端上存储所述通信数据的镜像数据;Storing mirror data of the communication data on a network management client;
    在网络管理的过程中,如果需要从服务器中获取的对象在所述网管客户端本地存在镜像数据时,则从本地获取与所述对象对应的镜像数据。In the process of network management, if the object that needs to be obtained from the server has mirror data locally in the network management client, the mirror data corresponding to the object is locally obtained.
  2. 如权利要求1所述的方法,其中,所述获取在网管客户端进行网络状态管理的过程中需要从服务器中获取的通信数据的镜像数据的步骤包括:The method of claim 1, wherein the step of obtaining mirror data of the communication data required to be acquired from the server during network state management of the network management client comprises:
    在所述网管客户端和所述服务器空闲时,获取在网管客户端进行网络状态管理的过程中需要从服务器中获取的通信数据的镜像数据。When the network management client and the server are idle, the mirror data of the communication data that needs to be acquired from the server during the network state management of the network management client is acquired.
  3. 如权利要求2所述的方法,其中,所述方法还包括:在所述网管客户端和所述服务器空闲时,更新所述网管客户端存储的镜像数据。The method of claim 2, wherein the method further comprises: updating the mirrored data stored by the network management client when the network management client and the server are idle.
  4. 如权利要求3所述的方法,其中,所述更新所述网管客户端存储的镜像数据的步骤包括:The method of claim 3, wherein the step of updating the mirrored data stored by the network management client comprises:
    判断网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据是否相同,若否,则获取所述服务器当前存储的通信数据的镜像数据,并根据该镜像数据更新所述网管客户端存储的镜像数据。Determining whether the mirrored data stored locally by the network management client is the same as the communication data currently stored by the server, and if not, acquiring mirror data of the communication data currently stored by the server, and updating the network management client according to the mirrored data. Mirrored data stored at the end.
  5. 如权利要求4所述的方法,其中,在从本地获取与所述对象对应的镜像数据之前,所述方法还包括:判断网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据是否相同;The method of claim 4, wherein before the obtaining the mirror data corresponding to the object locally, the method further comprises: determining that the mirrored data stored locally by the network management client is currently in communication with the server Whether the data is the same;
    若是,则从本地获取与所述对象对应的镜像数据;If yes, the mirror data corresponding to the object is obtained locally;
    若否,则获取所述服务器当前存储的通信数据的镜像数据,并根据该镜像数据更新所述网管客户端存储的镜像数据,从本地获取与所述对象对 应的通信数据。If not, acquiring mirror data of the communication data currently stored by the server, and updating the mirror data stored by the network management client according to the mirror data, and acquiring the pair with the object locally Communication data should be.
  6. 如权利要求4或5所述的方法,其中,所述方法还包括:在所述网管客户端和所述服务器空闲时,获取所述镜像数据的标识,所述镜像数据的标识为服务器中所述通信数据的标识的镜像标识;The method of claim 4 or 5, wherein the method further comprises: obtaining an identifier of the mirrored data when the network management client and the server are idle, and the identifier of the mirrored data is in a server a mirrored identifier of the identification of the communication data;
    所述判断网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据是否相同的步骤包括:The step of determining whether the mirrored data stored locally by the network management client is the same as the communication data currently stored by the server includes:
    获取服务器当前存储的所述通信数据的标识;Obtaining an identifier of the communication data currently stored by the server;
    判断网管客户端本地存储的镜像数据的标识、与服务器当前存储的所述通信数据的标识是否一致;Determining whether the identifier of the mirrored data stored locally by the network management client is consistent with the identifier of the communication data currently stored by the server;
    若否,则判定网管客户端本地存储的镜像数据和服务器当前存储的通信数据不同;If not, it is determined that the mirrored data stored locally by the network management client is different from the currently stored communication data of the server;
    若是,则判定网管客户端存储的所述镜像数据和服务器当前存储的通信数据相同;If yes, determining that the mirrored data stored by the network management client is the same as the currently stored communication data of the server;
    在判定网管客户端本地存储的镜像数据和服务器当前存储的通信数据不同之后,所述方法还包括:After determining that the mirrored data stored locally by the network management client is different from the currently stored communication data of the server, the method further includes:
    根据所述服务器当前存储的通信数据的标识的镜像标识更新网管客户端本地存储的镜像数据的标识。Updating the identifier of the mirrored data stored locally by the network management client according to the image identifier of the identifier of the communication data currently stored by the server.
  7. 如权利要求6所述的方法,其中,所述通信数据的标识包括:服务器最后一次更新所述通信数据的时间戳。The method of claim 6 wherein said identifying of said communication data comprises a timestamp at which said server last updated said communication data.
  8. 如权利要求1至7任一项所述的方法,其中,所述通信数据包括:用户传输数据。The method of any of claims 1 to 7, wherein the communication data comprises: a user transmitting data.
  9. 一种数据通信方法,所述方法包括:A data communication method, the method comprising:
    生成在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据;Generating mirror data of communication data that the network management client needs to obtain from the server during the network management process;
    将所述镜像数据发送给网管客户端。 Send the mirrored data to the network management client.
  10. 如权利要求9所述的方法,其中,所述将所述镜像数据发送给网管客户端的步骤包括:The method of claim 9, wherein the step of transmitting the mirrored data to a network management client comprises:
    在所述网管客户端和所述服务器空闲时,将所述镜像数据发送给网管客户端。And sending the mirrored data to the network management client when the network management client and the server are idle.
  11. 如权利要求10所述的方法,其中,所述方法还包括:The method of claim 10, wherein the method further comprises:
    在网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据不相同时,生成所述服务器当前存储的通信数据的镜像数据,并发送给所述网管客户端。The mirroring data of the communication data currently stored by the server is generated and sent to the network management client when the mirroring data stored locally on the network management client is different from the communication data currently stored by the server.
  12. 如权利要求11所述的方法,其中,所述方法还包括:The method of claim 11 wherein the method further comprises:
    对服务器中所述通信数据设置标识,且生成所述标识的镜像标识,所述镜像标识为镜像数据的标识;Setting an identifier for the communication data in the server, and generating a mirrored identifier of the identifier, where the image identifier is an identifier of the mirrored data;
    在所述网管客户端和所述服务器空闲时,将所述镜像数据的标识发送给所述网管客户端;Sending the identifier of the mirrored data to the network management client when the network management client and the server are idle;
    在网络管理过程中、或者在所述网管客户端和所述服务器空闲时,将所述服务器当前存储的通信数据的标识发送给网管客户端;Sending, to the network management client, the identifier of the communication data currently stored by the server, in the network management process, or when the network management client and the server are idle;
    在网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据不相同时,生成所述服务器当前存储的通信数据的标识的镜像标识,并发送给网管客户端。The mirroring identifier of the identifier of the communication data currently stored by the server is generated and sent to the network management client when the mirroring data stored locally on the network management client is different from the communication data currently stored by the server.
  13. 一种数据通信装置,所述装置包括:第一获取模块、存储模块和第二获取模块;A data communication device, the device comprising: a first acquisition module, a storage module, and a second acquisition module;
    所述第一获取模块,配置为获取在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据;The first obtaining module is configured to acquire mirror data of communication data that the network management client needs to obtain from the server in the network management process;
    所述存储模块,配置为在网管客户端上存储所述通信数据的镜像数据;The storage module is configured to store mirror data of the communication data on a network management client;
    所述第二获取模块,配置为在网络管理的过程中,如果需要从服务器中获取的对象在所述网管客户端本地存在镜像数据时,则从本地获取与所 述对象对应的镜像数据。The second obtaining module is configured to acquire the local data in the network management process if the object that needs to be obtained from the server has mirror data locally in the network management client. The mirror data corresponding to the object.
  14. 一种数据通信装置,所述装置包括:生成模块和发送模块;A data communication device, the device comprising: a generating module and a sending module;
    所述生成模块,配置为生成在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据;The generating module is configured to generate mirror data of communication data that the network management client needs to obtain from the server in the network management process;
    所述发送模块,配置为将所述镜像数据发送给网管客户端。The sending module is configured to send the mirrored data to a network management client.
  15. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至8任一项所述的数据通信方法,和/或权利要求9至12任一项所述的数据通信方法。 A computer storage medium having stored therein computer executable instructions for performing the data communication method of any one of claims 1 to 8, and/or claim 9 The data communication method according to any one of the preceding claims.
PCT/CN2015/086622 2014-12-09 2015-08-11 Data communication method and apparatus, and computer storage medium WO2016090938A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410751267.4A CN105743669A (en) 2014-12-09 2014-12-09 Data communication method and apparatus
CN201410751267.4 2014-12-09

Publications (1)

Publication Number Publication Date
WO2016090938A1 true WO2016090938A1 (en) 2016-06-16

Family

ID=56106600

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/086622 WO2016090938A1 (en) 2014-12-09 2015-08-11 Data communication method and apparatus, and computer storage medium

Country Status (2)

Country Link
CN (1) CN105743669A (en)
WO (1) WO2016090938A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108075919A (en) * 2016-11-15 2018-05-25 北京视联动力国际信息技术有限公司 It is a kind of to regard the method and system that end message is obtained in networking
CN108205481B (en) * 2016-12-19 2022-03-08 华为技术有限公司 Application container instance creation method and device
CN109067913A (en) * 2018-09-19 2018-12-21 量子云未来(北京)信息科技有限公司 A kind of method and device for maintaining data synchronous

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040054698A1 (en) * 2002-09-18 2004-03-18 Hitachi, Ltd. Layered computer system with thin clients
CN101459571A (en) * 2008-12-16 2009-06-17 北京大学 Method, system and apparatus for website mirroring
US20090182887A1 (en) * 2008-01-16 2009-07-16 Inventec Corporation Data transmission and writing method using multicast data flows
CN102708060A (en) * 2012-05-14 2012-10-03 华为技术有限公司 Method, device and system for accessing image files

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751474A (en) * 2010-01-19 2010-06-23 山东高效能服务器和存储研究院 Continuous data protection method based on centralized storage
CN103841167A (en) * 2012-11-27 2014-06-04 中国移动通信集团公司 User data synchronizing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040054698A1 (en) * 2002-09-18 2004-03-18 Hitachi, Ltd. Layered computer system with thin clients
US20090182887A1 (en) * 2008-01-16 2009-07-16 Inventec Corporation Data transmission and writing method using multicast data flows
CN101459571A (en) * 2008-12-16 2009-06-17 北京大学 Method, system and apparatus for website mirroring
CN102708060A (en) * 2012-05-14 2012-10-03 华为技术有限公司 Method, device and system for accessing image files

Also Published As

Publication number Publication date
CN105743669A (en) 2016-07-06

Similar Documents

Publication Publication Date Title
EP2494438B1 (en) Provisioning and managing replicated data instances
JP5191062B2 (en) Storage control system, operation method related to storage control system, data carrier, and computer program
US9367261B2 (en) Computer system, data management method and data management program
JP5952960B2 (en) Computer system, computer system management method and program
CN105279210A (en) Automatic mode switching in a synchronous replication environment
US20150188748A1 (en) Management system, control method in the management system, and storage medium thereof
US10726042B2 (en) Replication control using eventually consistent meta-data
WO2019041930A1 (en) Inspection method, device and system, computer apparatus, and storage medium
US10389653B2 (en) Request distribution system, management system, and method for controlling the same
CN103024065A (en) System configuration management method for cloud storage system
WO2015127850A1 (en) Data upgrading method and central server
WO2016090938A1 (en) Data communication method and apparatus, and computer storage medium
CN106339176B (en) Intermediate file processing method, client, server and system
US20240054054A1 (en) Data Backup Method and System, and Related Device
US9767023B2 (en) Method of controlling data writing to persistent storage device
JP2014229088A (en) Data processing system, data processing device, and storage medium
US11442959B2 (en) System and method of time-based snapshot synchronization
WO2023193631A1 (en) Request scheduling method and apparatus, and computer device and storage medium
US9977726B2 (en) System and method for smart framework for network backup software debugging
JP2015114952A (en) Network system, monitoring control unit, and software verification method
KR102033489B1 (en) Method and server for managing server cluster
US11074002B2 (en) Object storage system with meta object replication
CN114930313A (en) System and method for managing blockchain nodes
JP6568232B2 (en) Computer system and device management method
JP2015072531A (en) Test support method, test support device, and program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15866408

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15866408

Country of ref document: EP

Kind code of ref document: A1