WO2016090938A1 - 一种数据通信方法、装置及计算机存储介质 - Google Patents

一种数据通信方法、装置及计算机存储介质 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
English (en)
French (fr)
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/zh

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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明实施例公开了一种数据通信方法、装置及计算机存储介质;其中,所述数据通信方法,包括:获取在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据;在网管客户端上存储所述通信数据的镜像数据,在网络管理的过程中,如果需要从服务器中获取的对象在所述网管客户端本地存在镜像数据时,则从本地获取与所述对象对应的镜像数据。

Description

一种数据通信方法、装置及计算机存储介质 技术领域
本发明涉及无线通信技术领域,尤其一种数据通信方法、装置及计算机存储介质。
背景技术
近年来,随着网管系统的功能逐步加强,就要求状态管理能够为用户或者其他功能模块提供更为强大的数据支持,即需要状态管理模块采集到更为庞大的控制器数据。随之而来的是状态管理模块客户端和服务器端通信压力的激增,如此会对网管正常功能造成很大的影响。例如,无线操作维护模块(OMMR,Operation and Maintenance Module Radio)状态管理“时隙”功能的查询过程当中,经常会查询到几十万条数据,这就会造成客户端界面卡死的现象,这样的故障在客户使用过程中出现是非常严重的。目前的解决办法是把“时隙”数据的过滤过程放到了服务器端来执行,减小客户端和服务器端的传输数据量来避免该故障的。但这毕竟不是长久之计。随着网管控制的基站控制器越来越多,网管功能需要通信的信息量越来越庞大,通信将会成为网管状态管理的发展的瓶颈,仍然会存在由于通讯数据量过于庞大,从而网管系统出现各类故障。
发明内容
有鉴于此,本发明实施例期望提供一种数据通信方法、装置及计算机存储介质,能够解决目前由于网管客户端和服务器之间交互的通信数据量过于庞大导致网管系统出现各类故障的问题。
为解决上述技术问题,本发明实施例提供一种数据通信方法,所述方 法包括:
获取在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据;
在网管客户端上存储所述通信数据的镜像数据;
在网络管理的过程中,如果需要从服务器中获取的对象在所述网管客户端本地存在镜像数据时,则从本地获取与所述对象对应的镜像数据。
上述方案中,所述获取在网管客户端进行网络状态管理的过程中需要从服务器中获取的通信数据的镜像数据的步骤包括:
在所述网管客户端和所述服务器空闲时,获取在网管客户端进行网络状态管理的过程中需要从服务器中获取的通信数据的镜像数据。
上述方案中,所述方法还包括:在所述网管客户端和所述服务器空闲时,更新所述网管客户端存储的镜像数据。
上述方案中,所述更新所述网管客户端存储的镜像数据的步骤包括:
判断网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据是否相同,若否,则获取所述服务器当前存储的通信数据的镜像数据,并根据该镜像数据更新所述网管客户端存储的镜像数据。
上述方案中,在从本地获取与所述对象对应的镜像数据之前,所述方法还包括:判断网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据是否相同;
若是,则从本地获取与所述对象对应的镜像数据;
若否,则获取所述服务器当前存储的通信数据的镜像数据,并根据该镜像数据更新所述网管客户端存储的镜像数据,从本地获取与所述对象对应的通信数据。
上述方案中,所述方法还包括:在所述网管客户端和所述服务器空闲时,获取所述镜像数据的标识,所述镜像数据的标识为服务器中所述通信 数据的标识的镜像标识;
所述判断网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据是否相同的步骤包括:
获取服务器当前存储的所述通信数据的标识;
判断网管客户端本地存储的镜像数据的标识、与服务器当前存储的所述通信数据的标识是否一致;
若否,则判定网管客户端本地存储的镜像数据和服务器当前存储的通信数据不同;
若是,则判定网管客户端存储的所述镜像数据和服务器当前存储的通信数据相同;
在判定网管客户端本地存储的镜像数据和服务器当前存储的通信数据不同之后,所述方法还包括:
根据所述服务器当前存储的通信数据的标识的镜像标识更新网管客户端本地存储的镜像数据的标识。
上述方案中,所述通信数据的标识包括:服务器最后一次更新所述通信数据的时间戳。
上述方案中,所述通信数据包括:用户传输数据。
同样为了解决上述技术问题,本发明实施例还提供了另一种数据通信方法,包括:
生成在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据;
将所述镜像数据发送给网管客户端。
上述方案中,所述将所述镜像数据发送给网管客户端的步骤包括:
在所述网管客户端和所述服务器空闲时,将所述镜像数据发送给网管客户端。
上述方案中,所述方法还包括:
在网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据不相同时,生成所述服务器当前存储的通信数据的镜像数据,并发送给所述网管客户端。
上述方案中,所述方法还包括:
对服务器中所述通信数据设置标识,且生成所述标识的镜像标识,所述镜像标识为镜像数据的标识;
在所述网管客户端和所述服务器空闲时,将所述镜像数据的标识发送给所述网管客户端;
在网络管理过程中、或者在所述网管客户端和所述服务器空闲时,将所述服务器当前存储的通信数据的标识发送给网管客户端;
在网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据不相同时,生成所述服务器当前存储的通信数据的标识的镜像标识,并发送给网管客户端。
同样为了解决上述技术问题,本发明实施例还提供了一种数据通信装置,包括:第一获取模块、存储模块和第二获取模块;
所述第一获取模块,配置为获取在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据;
所述存储模块,配置为在网管客户端上存储所述通信数据的镜像数据;
所述第二获取模块,配置为在网络管理的过程中,如果需要从服务器中获取的对象在所述网管客户端本地存在镜像数据时,则从本地获取与所述对象对应的镜像数据。
同样为了解决上述技术问题,本发明实施例还提供了另一种数据通信装置,包括:生成模块和发送模块;
所述生成模块,配置为生成在网络管理过程中网管客户端需要从服务 器中获取的通信数据的镜像数据;
所述发送模块,配置为将所述镜像数据发送给网管客户端。
本发明实施例提供了一种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序用于执行以上所述的数据通信方法。
本发明实施例所提供的一种数据通信方法、装置及计算机存储介质;获取在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据;在网管客户端上存储所述通信数据的镜像数据,在网络管理的过程中,如果需要从服务器中获取的对象在所述网管客户端本地存在镜像数据时,则从本地获取与所述对象对应的镜像数据;本发明实施例所述技术方案可以将原有网管系统中部分通信数据由C/S通信模式(客户端/服务器模式)转变为客户端本地取数据的通信模式,减少了在对网络进行管理的过程中客户端与服务器之间交互的通信数据量,很大程度上避免因为客户端与服务器之间交互的通信数据量过于庞大所带来的各类故障,提高C/S通信模式的交互效率,进而提高了网管系统对网络管理的效率。
附图说明
图1为本发明实施例一提供的一种数据通信方法的流程示意图;
图2为本发明实施例一提供的另一种数据通信方法的流程示意图;
图3为本发明实施例一提供的一种镜像数据更新的流程示意图;
图4为本发明实施例二提供的一种数据通信方法的流程示意图;
图5为本发明实施例二提供的在一种在网管系统空闲时的数据通信方法的流程示意图;
图6为本发明实施例二提供的一种在网络管理的过程中数据通信方法的流程示意图;
图7为本发明实施例三提供的一种镜像数据获取的流程示意图;
图8为本发明实施例三提供的一种镜像数据更新的流程示意图;
图9为本发明实施例三提供的一种读取镜像数据的流程示意图;
图10为本发明实施例四提供的一种数据通信装置的结构示意图;
图11为本发明实施例四提供的另一种数据通信装置的结构示意图。
具体实施方式
下面通过具体实施方式结合附图对本发明作进一步详细说明。
实施例一:
现有网管系统中在对网络管理过程中需要从服务器中查询大量的通信数据,这样会导致网管客户端与服务器之间交互的通信数据量过于庞大,会导致网管系统出现故障,例如客户端界面卡死。为了解决目前由于网管客户端和服务器之间交互的通信数据量过于庞大导致网管系统出现各类故障的技术问题,本发明思想为:将客户端需要从服务器中获取的通信数据预先存储在客户端本地,在网络管理过程中,可以直接从本地存储中获取需要的通信数据,减小客户端与服务器之间交互的通信数据量,避免了网管系统因数据量过大出现故障。
本实施例提供了一种数据通信方法,应用于网管客户端侧,如图1所示,包括如下步骤:
步骤101:获取在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据。
本步骤中网络管理过程可以包括网络状态管理过程,例如实现OMMR状态管理“时隙”功能的过程。因此,本步骤可以获取在网管客户端实现状态管理的过程中,需要从服务器中查询的通信数据。
本步骤中通信数据可以根据数据类型而定;在现有网管系统中的通信类型按作用可分为两个类型,一种用于传输用户传输数据的数据性通信,另一种为,用于传递控制信息的控制性通信;其中数据性通信数据往往占用比较大的带宽,并容易生成镜像数据。因此,优先地,本实施例方法中 通信数据包括:数据性通信数据,即用户传输数据;此时本步骤是获取网络管理过程中客户端需要从服务器中获取的用户传输数据的镜像数据。
以目前OMMR网管状态管理模块的“时隙”功能曾经出现过的故障为例,首先这里由于客户端有从服务器端读取逗号分隔值(CSV,Comma Separated Values)文件并返回客户端大量数据结果的需求,因此导致通信闭塞,出现客户端卡死的故障。经分析,该通信就是数据性通信,同时考虑到该需求所要查询的数据集并没有超出普通个人计算机(PC,Personal Computer)的能力,因此可以考虑将这部分数据集在客户端制作镜像文件。
本实施例中镜像数据可以为通信数据的备份数据,其与通信数据相同。
本实施例方法中通信数据可以选取客户端使用频率较高且更新相对不频繁的维护简单的数据性通信数据作为目标数据。
步骤102:在网管客户端上存储所述通信数据的镜像数据。
步骤103:在网络管理的过程中,如果需要从服务器中获取的对象在所述网管客户端本地存在镜像数据时,则从本地获取与所述对象对应的镜像数据。
本步骤中从本地获取数据的实现方式包括:在现有网管代码的客户端部分稍作修改,使其能够读取镜像数据。例如,只要修改客户端读取数据的函数即可。通过修改其对读取数据请求的处理流程,使其能够在需要时通过调用本地镜像完成读数据的操作。
本实施例的数据通信方法可以将原有网管系统中部分通信数据由C/S通信模式(客户端/服务器模式)转变为客户端本地取数据的通信模式,减少了在对网络进行管理的过程中客户端与服务器之间交互的通信数据量,很大程度上避免因为客户端与服务器之间交互的通信数据量过于庞大所带来的各类故障,提高C/S通信模式的交互效率,进而提高了网管系统对网络管理的效率。
在本实施例中如果需要从服务器中获取的对象在本地存在镜像数据时,则需要按照原有的流程处理,即发送请求至服务器,服务器返回对应的数据。
为了避免获取镜像数据与网络管理的时间上的冲突,优先地,本实施例可以在网管系统空闲时获取通信数据的镜像数据,因此,上述步骤101可以具体包括:在所述网管客户端和所述服务器空闲时,获取在网管客户端进行网络状态管理的过程中需要从服务器中获取的通信数据的镜像数据。
考虑到通信数据的变化,本实施例还需要维护镜像数据,即需要不断地更新本地的镜像数据,以保证网络管理的精确性。因此,本实施例方法还可以包括:在所述网管客户端和所述服务器空闲时,更新所述网管客户端存储的镜像数据。
本实施例方法可以在网管系统空闲时定时更新镜像数据,即定时维护镜像数据,保证网管客户端本地存储的镜像数据与服务器中存储的数据同步。
本实施例中更新所述网管客户端存储的镜像数据的过程可以包括:
判断网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据是否相同;
若否,则获取所述服务器当前存储的通信数据的镜像数据,并根据该镜像数据更新所述网管客户端存储的镜像数据;
若是,则不更新镜像数据。
同样为保证网络管理的精确性或者可以实现,本实施例方法在从本地获取与所述对象对应的镜像数据之前,还需要判断获取对象在本地的镜像数据是否是最新的数据,若是,则从本地直接读取,若否,还需要强制更新镜像数据;因此,本实施例方法,如果需要从服务器中获取的对象在所 述网管客户端本地存在镜像数据时,在从本地获取与所述对象对应的镜像数据之前,还可以包括:
判断网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据是否相同;
若是,则从本地获取与所述对象对应的镜像数据;
若否,则获取所述服务器当前存储的通信数据的镜像数据,并根据该镜像数据更新所述网管客户端存储的镜像数据,从本地获取与所述对象对应的通信数据。
在本实施例中判断数据是否相同可以通过判断标识是否相同的方式来实现,本实施例数据通信方法,可以包括如下步骤,如图2所示:
步骤201:在所述网管客户端和所述服务器空闲时,获取在网管客户端进行网络状态管理的过程中需要从服务器中获取的通信数据的镜像数据及其标识。
本步骤中镜像数据的标识为服务器中所述通信数据的标识的镜像标识,镜像标识与服务器存储的通信数据的标识是相同,具体地,可以在对服务器中通信数据和标识进行备份生成镜像数据和镜像标识,该镜像标识即为镜像数据的标识。
在一实施例中,本实施例中通信数据的标识可以包括:服务器最后一次更新所述通信数据的时间戳。
步骤202:在网管客户端上存储所述通信数据的镜像数据及其标识。
步骤203:在网络管理的过程中,判断需要从服务器中获取的对象在所述网管客户端本地是否存在镜像数据,若是,执行步骤204,若否,则执行步骤208;
例如在状态管理过程中,需要查询的数据性通信数据在本地有镜像数据,则从本地获取该数据性通信数据,当需要查询的数据性通信数据在本 地没有镜像数据时,则需要按照原来的流程从服务器中获取数据。
步骤204:获取服务器当前存储的所述通信数据的标识。
在服务器端,在通信数据改变的情况下,改变通信数据的标识,这样就在客户端就可以通过标识来判断本地存储的镜像数据与服务器存储的通信数据是否相同。
步骤205:判断网管客户端本地存储的镜像数据的标识、与服务器当前存储的所述通信数据的标识是否一致,若否,则执行步骤206,若是,则执行步骤208。
本步骤中通过标识来判断标识对应的数据是否相同,当标识一致时,说明服务器当存储的通信数据没有发生变化,此时,本地存储的镜像数据与服务器当前存储的通信数据相同,当标识不一致时,说明服务器当期存储的通信数据发生变化,此时本地存储的镜像数据与服务器当前存储的通信数据不相同。
步骤206:获取所述服务器当前存储的通信数据的镜像数据和该镜像数据的标识,并根据该镜像数据和该镜像数据对应的标识更新所述网管客户端存储的镜像数据和镜像数据的标识,转步骤207。
当本地存储的镜像数据与服务器当前存储的通信数据不相同时,需要更新本地存储的镜像数据和标识。
步骤207:从本地获取与所述对象对应的镜像数据。
步骤208:按照原来的流程从服务器中获取与对象对应的通信数据。
本实施例中镜像数据的更新可以在网管系统空闲时进行,具体更新本地存储的镜像数据的过程可以包括,如图3所示:
步骤301:在所述网管客户端和所述服务器空闲时,获取服务器当前存储的所述通信数据的标识;
步骤302:判断网管客户端本地存储的镜像数据的标识、与服务器当前 存储的所述通信数据的标识是否一致,若否,则执行步骤303,若是,则执行步骤304;
步骤303:获取所述服务器当前存储的通信数据的镜像数据和该镜像数据的标识,并根据该镜像数据和该镜像数据对应的标识更新所述网管客户端存储的镜像数据和镜像数据的标识。
步骤304:结束更新流程。
本实施例可以通过在客户端和服务器端提供独立于网管进程本身的代理服务进程来进行镜像数据的更新同步。
应用本实施例方法,由于将网管通信过程中部分耗时高的数据性通讯转变为客户端本地读取“镜像”的过程,从而可以很大程度上避免因为通讯数据量过于庞大所带来的各类故障,提高C/S结构的交互效率。
实施例二:
如图4所示,本实施例提供了一种数据通信方法,应用于服务器侧或者第三方设备侧,包括如下步骤:
步骤401:生成在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据。
本步骤首先选取需要生成镜像数据的目标数据,即需要从服务器中获取的通信数据。该目标数据可以包括:在网管通信中数据性通信数据(即用户传输数据);进一步地,可以选取客户端使用频率较高且更新相对不频繁的维护简单的数据性通信数据作为目标数据。
在一实施例中,本步骤可以对通信数据进行备份或拷贝生成镜像数据。
步骤402:将所述镜像数据发送给网管客户端。
优选地,本步骤可以在所述网管客户端和所述服务器空闲时,将所述镜像数据发送给网管客户端。
本实施例方法可以选取网管中的通信数据制作镜像数据,且将镜像数 据发送给网管客户端存储,使得在网络管理过程中,当需要获取的选取的通信数据时直接从本地存储中获取,而不需要通过信息交互从服务器中获取;减小了客户端与服务器之间交互的通信数据量,避免了因为通讯数据量过于庞大所带来的各类故障,提高C/S结构的交互效率,进而提高了网络管理的效率。
在一实施例中,为了保证服务器和客户端的通信数据同步,即相同,本实施例方法,还可以包括:在网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据不相同时,生成所述服务器当前存储的通信数据的镜像数据,并发送给所述网管客户端。
在一实施例中,为了能够实现通过标识来判断服务器和客户端的通信数据是否相同,本实施例方法,还可以包括:
对服务器中所述通信数据设置标识,且生成所述标识的镜像标识,所述镜像标识为镜像数据的标识;
在所述网管客户端和所述服务器空闲时,将所述镜像数据的标识发送给所述网管客户端;
在网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据不相同时,生成所述服务器当前存储的通信数据的标识的镜像标识,并发送给网管客户端。
这样,本实施例方法在网管系统空闲时可以将镜像数据及其标识发送给网管客户端,供客户端保存,在网络管理过程中、或者在所述网管客户端和所述服务器空闲时,将服务器当前存储的通信数据的标识发送给客户端,供客户端判断两端是否数据同步;在需要数据更新的过程中,可以将服务器当前存储的通信数据的镜像数据及其标识发送给客户端,供客户端更新存储的数据和标识,实现数据同步。
根据上述的描述,如图5所示,在网管系统空闲时,本实施例的数据 通信方法可以包括:
步骤501:生成在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据及其标识。
步骤502:将所述镜像数据及其标识发送给网管客户端
步骤503:将服务器当前存储的所述通信数据及其标识发送给网管客户端。
步骤504:在网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据不相同时,生成服务器当前存储的所述通信数据的镜像数据及其标识,并发送给网管客户端。
根据上述的描述,如图6所示,在网络管理的过程中,本实施例数据通信方法可以包括:
步骤601:将所述服务器当前存储的通信数据的标识发送给网管客户端;
步骤602:在网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据不相同时,生成服务器当前存储的所述通信数据的镜像数据及其标识,并发送给网管客户端。
相应地,本发明实施例还记载一种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序用于执行本发明实施例中图1、图2、图3所示的数据通信方法,和/或,图4、图5、图6所示的数据通信方法。
实施例三:
本实施例以网管客户端实现状态管理“时隙”功能为例,来介绍实施例一和二所述的数据通信方法的具体实现。
目前“时隙”功能需要读取的数据集为存储在服务器端的CSV文件。首先需要在服务器端添加用于标注这些CSV文件的“ID”文件。本实施例 考虑使用最后一次修改这些文件的系统时间戳作为每个CSV文件的“ID文件”。然后需要编写独立的线程负责镜像数据获取和镜像数据更新的过程,
如图7所示,镜像数据获取的过程包括:
步骤701:在检查到网管系统处于空闲状态时,网管客户端向服务器发起镜像数据请求;
步骤702:服务器接收到镜像数据请求后,拷贝CSV文件和ID文件,并将拷贝的CSV文件和ID文件发送给网管客户端;
步骤703:网管客户端接收CSV文件和ID文件并存储。
如图8所示,镜像数据更新(同步)的过程包括:
步骤801:在检查到网管系统处于空闲状态,且等待同步队列中有同步任务时,网管客户端向服务器发起镜像同步请求;
步骤802:服务器接收到镜像同步请求后,拷贝当前存储的CSV文件和ID文件,并将拷贝的CSV文件和ID文件返回给网管客户端;
步骤803:网管客户端存储接收到的CSV文件和ID文件;
步骤804:获取服务器当前存储的CSV文件的ID文件;
步骤805:将该ID文件与本地存储的ID文件比较,若不同,添加对应的同步任务至等待同步队列中,若相同,至结束同步流程。
以上步骤均可以在网管系统空闲时进行。
然后,假设“时隙”功能页面调用的读取时隙数据的接口是某个类的函数A,则需要修改该函数A,则需要修改该函数A,使其能够读取本地存储的镜像数据。接着,在固有处理流程的基础上添加入下过程,如图9所示,包括:
步骤901:判断查询的对象是否在客户端本地存在镜像数据(即CSV文件),若是,则执行步骤902,若否,则执行步骤906。
步骤902:读取服务器当前存储的CSV文件的ID文件。
步骤903:判断本地存储的ID文件是否与服务器端当前存储的ID文件一致,若否,则执行步骤904,若是,执行步骤905.
步骤904:清空等待同步队列,直接强制触发镜像数据同步过程。
本步骤中触发镜像数据同步过程可以参考图8所示的流程。
步骤905:读取本地存储的镜像数据用于实现“时隙”功能。
步骤906:按照原来的流程处理。
实施例四:
如图10所示,本实施例提供了一种数据通信装置,可应用于网管客户端,所述装置包括:第一获取模块11、存储模块12和第二获取模块13;其中,
所述第一获取模块11,配置为获取在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据;
所述存储模块12,配置为在网管客户端上存储所述通信数据的镜像数据;
所述第二获取模块13,配置为在网络管理的过程中,如果需要从服务器中获取的对象在所述网管客户端本地存在镜像数据时,则从本地获取与所述对象对应的镜像数据。
在一实施例中,所述第一获取模块11,还配置为:
在所述网管客户端和所述服务器空闲时,获取在网管客户端进行网络状态管理的过程中需要从服务器中获取的通信数据的镜像数据。
在一实施例中,所述存储模块12,还配置为:
在所述网管客户端和所述服务器空闲时,更新所述网管客户端存储的镜像数据。
在一实施例中,所述存储模块12,还配置为:
判断网管客户端本地存储的所述镜像数据与所述服务器当前存储的通 信数据是否相同,若否,则获取所述服务器当前存储的通信数据的镜像数据,并根据该镜像数据更新所述网管客户端存储的镜像数据。
在一实施例中,所述第二获取模块13,还配置为:
在从本地获取与所述对象对应的镜像数据之前,判断网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据是否相同;
若是,则从本地获取与所述对象对应的镜像数据;
若否,则获取所述服务器当前存储的通信数据的镜像数据,并根据该镜像数据更新所述网管客户端存储的镜像数据,从本地获取与所述对象对应的通信数据。
在一实施例中,所述第一获取模块11,还配置为:
在所述网管客户端和所述服务器空闲时,获取所述镜像数据的标识,所述镜像数据的标识为服务器中所述通信数据的标识的镜像标识;
相应地,所述存储模块12,还配置为:
获取服务器当前存储的所述通信数据的标识;
判断网管客户端本地存储的镜像数据的标识、与服务器当前存储的所述通信数据的标识是否一致;
若否,则判定网管客户端本地存储的镜像数据和服务器当前存储的通信数据不同;
若是,则判定网管客户端存储的所述镜像数据和服务器当前存储的通信数据相同;
在判定网管客户端本地存储的镜像数据和服务器当前存储的通信数据不同之后,
根据所述服务器当前存储的通信数据的标识的镜像标识更新网管客户端本地存储的镜像数据的标识。
上述方案中,所述通信数据的标识包括:服务器最后一次更新所述通 信数据的时间戳。
上述方案中,所述通信数据包括:用户传输数据。
在实际应用中,所述第一获取模块11和第二获取模块13均可由所述数据通信装置或所述数据通信装置所属设备的中央处理器(CPU,Central Processing Unit)、微处理器(MPU,Micro Processor Unit)、数字信号处理器(DSP,Digital Signal Processor)、或现场可编程门阵列(FPGA,Field Programmable Gate Array)等实现;所述存储模块12可以由各种类型的存储器来实现。
如图11所示,本实施例提供了一种数据通信装置,可应用于服务器或者其他网管系统中的设备,包括:生成模块21和发送模块22;
所述生成模块21,配置为生成在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据;
所述发送模块22,配置为将所述镜像数据发送给网管客户端。
在一实施例中,所述发送模块22,还配置为:
在所述网管客户端和所述服务器空闲时,将所述镜像数据发送给网管客户端。
在一实施例中,所述生成模块21,还配置为:在网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据不相同时,生成所述服务器当前存储的通信数据的镜像数据;
相应地,所述发送单元22,还配置为:将所述生成模块21生成的所述服务器当前存储的通信数据的镜像数据发送给所述网管客户端。
在一实施例中,所述生成模块21,还配置为:
对服务器中所述通信数据设置标识,且生成所述标识的镜像标识,所述镜像标识为镜像数据的标识;
相应地,所述发送单元22,还配置为:在所述网管客户端和所述服务 器空闲时,将所述镜像数据的标识发送给所述网管客户端;
在网络管理过程中、或者在所述网管客户端和所述服务器空闲时,将所述服务器当前存储的通信数据的标识发送给网管客户端。
在一实施例中,所述生成模块21,还配置为:
在网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据不相同时,生成所述服务器当前存储的通信数据的标识的镜像标识;
相应地,所述发送单元22,还配置为:将所述生成模块21生成的所述服务器当前存储的通信数据的标识的镜像标识发送给网管客户端。
在实际应用中,所述生成模块21可由所述数据通信装置或所述数据通信装置所属设备的CPU、MPU、DSP等实现;所述发送单元22可以由发射机或发送器来实现。
本实施例提供的数据通信装置可以选取网管中的通信数据制作镜像数据,且将镜像数据发送给网管客户端存储,使得在网络管理过程中,当需要获取的选取的通信数据时直接从本地存储中获取,而不需要通过信息交互从服务器中获取;减小了客户端与服务器之间交互的通信数据量,避免了因为通讯数据量过于庞大所带来的各类故障,提高C/S结构的交互效率,进而提高了网络管理的效率。
以上内容是结合具体的实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。
工业实用性
本发明实施例中,获取在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据;在网管客户端上存储所述通信数据的镜像数 据,在网络管理的过程中,如果需要从服务器中获取的对象在所述网管客户端本地存在镜像数据时,则从本地获取与所述对象对应的镜像数据;如此,能够解决目前由于网管客户端和服务器之间交互的通信数据量过于庞大导致网管系统出现各类故障的技术问题。

Claims (15)

  1. 一种数据通信方法,所述方法包括:
    获取在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据;
    在网管客户端上存储所述通信数据的镜像数据;
    在网络管理的过程中,如果需要从服务器中获取的对象在所述网管客户端本地存在镜像数据时,则从本地获取与所述对象对应的镜像数据。
  2. 如权利要求1所述的方法,其中,所述获取在网管客户端进行网络状态管理的过程中需要从服务器中获取的通信数据的镜像数据的步骤包括:
    在所述网管客户端和所述服务器空闲时,获取在网管客户端进行网络状态管理的过程中需要从服务器中获取的通信数据的镜像数据。
  3. 如权利要求2所述的方法,其中,所述方法还包括:在所述网管客户端和所述服务器空闲时,更新所述网管客户端存储的镜像数据。
  4. 如权利要求3所述的方法,其中,所述更新所述网管客户端存储的镜像数据的步骤包括:
    判断网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据是否相同,若否,则获取所述服务器当前存储的通信数据的镜像数据,并根据该镜像数据更新所述网管客户端存储的镜像数据。
  5. 如权利要求4所述的方法,其中,在从本地获取与所述对象对应的镜像数据之前,所述方法还包括:判断网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据是否相同;
    若是,则从本地获取与所述对象对应的镜像数据;
    若否,则获取所述服务器当前存储的通信数据的镜像数据,并根据该镜像数据更新所述网管客户端存储的镜像数据,从本地获取与所述对象对 应的通信数据。
  6. 如权利要求4或5所述的方法,其中,所述方法还包括:在所述网管客户端和所述服务器空闲时,获取所述镜像数据的标识,所述镜像数据的标识为服务器中所述通信数据的标识的镜像标识;
    所述判断网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据是否相同的步骤包括:
    获取服务器当前存储的所述通信数据的标识;
    判断网管客户端本地存储的镜像数据的标识、与服务器当前存储的所述通信数据的标识是否一致;
    若否,则判定网管客户端本地存储的镜像数据和服务器当前存储的通信数据不同;
    若是,则判定网管客户端存储的所述镜像数据和服务器当前存储的通信数据相同;
    在判定网管客户端本地存储的镜像数据和服务器当前存储的通信数据不同之后,所述方法还包括:
    根据所述服务器当前存储的通信数据的标识的镜像标识更新网管客户端本地存储的镜像数据的标识。
  7. 如权利要求6所述的方法,其中,所述通信数据的标识包括:服务器最后一次更新所述通信数据的时间戳。
  8. 如权利要求1至7任一项所述的方法,其中,所述通信数据包括:用户传输数据。
  9. 一种数据通信方法,所述方法包括:
    生成在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据;
    将所述镜像数据发送给网管客户端。
  10. 如权利要求9所述的方法,其中,所述将所述镜像数据发送给网管客户端的步骤包括:
    在所述网管客户端和所述服务器空闲时,将所述镜像数据发送给网管客户端。
  11. 如权利要求10所述的方法,其中,所述方法还包括:
    在网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据不相同时,生成所述服务器当前存储的通信数据的镜像数据,并发送给所述网管客户端。
  12. 如权利要求11所述的方法,其中,所述方法还包括:
    对服务器中所述通信数据设置标识,且生成所述标识的镜像标识,所述镜像标识为镜像数据的标识;
    在所述网管客户端和所述服务器空闲时,将所述镜像数据的标识发送给所述网管客户端;
    在网络管理过程中、或者在所述网管客户端和所述服务器空闲时,将所述服务器当前存储的通信数据的标识发送给网管客户端;
    在网管客户端本地存储的所述镜像数据与所述服务器当前存储的通信数据不相同时,生成所述服务器当前存储的通信数据的标识的镜像标识,并发送给网管客户端。
  13. 一种数据通信装置,所述装置包括:第一获取模块、存储模块和第二获取模块;
    所述第一获取模块,配置为获取在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据;
    所述存储模块,配置为在网管客户端上存储所述通信数据的镜像数据;
    所述第二获取模块,配置为在网络管理的过程中,如果需要从服务器中获取的对象在所述网管客户端本地存在镜像数据时,则从本地获取与所 述对象对应的镜像数据。
  14. 一种数据通信装置,所述装置包括:生成模块和发送模块;
    所述生成模块,配置为生成在网络管理过程中网管客户端需要从服务器中获取的通信数据的镜像数据;
    所述发送模块,配置为将所述镜像数据发送给网管客户端。
  15. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至8任一项所述的数据通信方法,和/或权利要求9至12任一项所述的数据通信方法。
PCT/CN2015/086622 2014-12-09 2015-08-11 一种数据通信方法、装置及计算机存储介质 WO2016090938A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410751267.4 2014-12-09
CN201410751267.4A CN105743669A (zh) 2014-12-09 2014-12-09 一种数据通信方法和装置

Publications (1)

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

Family

ID=56106600

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/086622 WO2016090938A1 (zh) 2014-12-09 2015-08-11 一种数据通信方法、装置及计算机存储介质

Country Status (2)

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

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108075919A (zh) * 2016-11-15 2018-05-25 北京视联动力国际信息技术有限公司 一种视联网中获取终端信息的方法及系统
CN108205481B (zh) * 2016-12-19 2022-03-08 华为技术有限公司 应用的容器实例创建方法和装置
CN109067913A (zh) * 2018-09-19 2018-12-21 量子云未来(北京)信息科技有限公司 一种维持数据同步的方法及装置

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 (zh) * 2008-12-16 2009-06-17 北京大学 一种网站镜像的方法、系统及装置
US20090182887A1 (en) * 2008-01-16 2009-07-16 Inventec Corporation Data transmission and writing method using multicast data flows
CN102708060A (zh) * 2012-05-14 2012-10-03 华为技术有限公司 一种镜像文件访问方法、装置及系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751474A (zh) * 2010-01-19 2010-06-23 山东高效能服务器和存储研究院 基于集中式存储连续数据保护方法
CN103841167A (zh) * 2012-11-27 2014-06-04 中国移动通信集团公司 一种用户数据同步方法及设备

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 (zh) * 2008-12-16 2009-06-17 北京大学 一种网站镜像的方法、系统及装置
CN102708060A (zh) * 2012-05-14 2012-10-03 华为技术有限公司 一种镜像文件访问方法、装置及系统

Also Published As

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

Similar Documents

Publication Publication Date Title
EP2494438B1 (en) Provisioning and managing replicated data instances
JP5191062B2 (ja) ストレージ制御システム、ストレージ制御システムに関する操作方法、データ・キャリア及びコンピュータ・プログラム
US9367261B2 (en) Computer system, data management method and data management program
JP5952960B2 (ja) 計算機システム、計算機システム管理方法及びプログラム
CN105279210A (zh) 同步复制环境中的自动模式切换
US20150188748A1 (en) Management system, control method in the management system, and storage medium thereof
US10726042B2 (en) Replication control using eventually consistent meta-data
WO2019041930A1 (zh) 巡检方法、装置、系统、计算机设备和存储介质
US10389653B2 (en) Request distribution system, management system, and method for controlling the same
CN103024065A (zh) 用于云存储系统的系统配置管理方法
WO2016090938A1 (zh) 一种数据通信方法、装置及计算机存储介质
WO2023193631A1 (zh) 一种请求调度方法、装置、计算机设备和存储介质
CN112235405A (zh) 分布式存储系统及数据投放方法
CN106339176B (zh) 中间文件处理方法、客户端、服务器和系统
US20240054054A1 (en) Data Backup Method and System, and Related Device
US9767023B2 (en) Method of controlling data writing to persistent storage device
US11442959B2 (en) System and method of time-based snapshot synchronization
US9977726B2 (en) System and method for smart framework for network backup software debugging
JP2015114952A (ja) ネットワークシステム、監視制御装置およびソフトウェア検証方法
KR102033489B1 (ko) 서버 클러스터 관리 방법 및 서버
US11074002B2 (en) Object storage system with meta object replication
JP6568232B2 (ja) 計算機システム、及び、装置の管理方法
JP2015072531A (ja) テスト支援方法、テスト支援装置およびプログラム
JP7450726B2 (ja) ハイブリッドクラウド非同期データ同期
CN112084261B (zh) 一种数据同步方法、系统、节点及存储介质

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