CN112231340B - Data display method and device and electronic equipment - Google Patents

Data display method and device and electronic equipment Download PDF

Info

Publication number
CN112231340B
CN112231340B CN202011424767.9A CN202011424767A CN112231340B CN 112231340 B CN112231340 B CN 112231340B CN 202011424767 A CN202011424767 A CN 202011424767A CN 112231340 B CN112231340 B CN 112231340B
Authority
CN
China
Prior art keywords
time
data
network node
time offset
deadline
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011424767.9A
Other languages
Chinese (zh)
Other versions
CN112231340A (en
Inventor
何瑞丰
金宏伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jinrui Tongchuang Beijing Technology Co ltd
Original Assignee
Jinrui Tongchuang Beijing Technology Co ltd
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 Jinrui Tongchuang Beijing Technology Co ltd filed Critical Jinrui Tongchuang Beijing Technology Co ltd
Priority to CN202011424767.9A priority Critical patent/CN112231340B/en
Publication of CN112231340A publication Critical patent/CN112231340A/en
Application granted granted Critical
Publication of CN112231340B publication Critical patent/CN112231340B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2453Query optimisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems

Abstract

The embodiment of the application provides a data display method, a data display device and electronic equipment, wherein the method comprises the steps of obtaining network node data at preset time intervals, and storing the obtained data in a local database; calculating a time offset and storing the time offset in the local database, wherein the time offset indicates a difference between a time at which the acquired traffic is stored in the local database and a time at which the traffic is acquired; acquiring data from the local database according to time parameters and service parameters, wherein the time parameters comprise display starting time and display ending time; and calculating an actual presentation deadline from the time parameter and the time offset. Through the processing scheme of the application, the data display effect is improved.

Description

Data display method and device and electronic equipment
Technical Field
The present application relates to the field of data display technologies, and in particular, to a data display method and apparatus, and an electronic device.
Background
With the explosive development of computer software technology and internet technology, more and more companies are beginning to implement informatization management. Company business operations are also increasingly relying on the internet. Monitoring of business system performance is directly related to the normal operation of the company. Monitoring software for business systems has also been introduced by many internet companies.
For companies with complex service systems and network environments, more analysis software is used to understand the network operation conditions in order to make the network operate healthily. A considerable amount of analysis software analyzes its own network by configuring the corresponding network service (the specific network task configured by the user). The analysis can greatly improve the operation maintenance capability and the fault handling efficiency of the network and effectively reduce the fault time.
However, in this process, the user often cannot accurately and intuitively obtain the condition of the network service logic of the user, graphical display is a technology capable of visually displaying the service condition, but when service data is obtained through a probe and the like, due to delay in obtaining data from the data, if the obtained data is displayed in real time, the displayed condition may not truly reflect the service condition, and management personnel are troubled.
For example, for a banking system, business data of the banking system is acquired in real time through a probe, the business data is acquired from the probe through an interface and stored locally, and the business data is displayed based on the business data stored locally. There is a delay in the process of acquiring traffic data from the probe over the interface, however, such that when, for example, traffic data is presented for a period of time (e.g., 9:00-10:00), for 10: data of 00, due to the delay, at 10:00, stored locally 10: the data of 00 is empty, which causes great trouble if it is displayed at the front end.
Disclosure of Invention
In view of this, embodiments of the present application provide a data display method, an apparatus, and an electronic device, which at least partially solve the problems in the prior art.
In a first aspect, an embodiment of the present application provides a data display method, where the method includes:
acquiring network node data at preset time intervals, and storing the acquired data in a local database;
calculating a time offset and storing the time offset in the local database, wherein the time offset indicates a difference between a time at which the acquired traffic is stored in the local database and a time at which the traffic is acquired;
acquiring data from the local database according to time parameters and service parameters, wherein the time parameters comprise display starting time and display ending time; and
and calculating the actual display deadline according to the time parameter and the time offset.
According to a specific implementation manner of the embodiment of the present application, the method further includes: and displaying data according to the actual display deadline.
According to a specific implementation manner of the embodiment of the present application, the service parameter includes an IP address, and the acquiring data from the local database according to the time parameter and the service parameter includes acquiring data of the IP address corresponding to the time parameter from the local database.
According to a specific implementation manner of the embodiment of the present application, the calculating a time offset and storing the time offset in the local database includes:
sequentially obtaining accumulated time offset when the network node data is acquired according to the time sequence;
obtaining the absolute time offset of each acquisition time interval according to the accumulated time offset; and
and storing the network node data acquired at the time interval and the corresponding absolute time offset in the local database.
According to a specific implementation manner of the embodiment of the present application, the calculating an actual display deadline according to the time parameter and the time offset includes:
obtaining the display deadline in the time parameter;
according to the display deadline and the time interval, obtaining the time for obtaining the network node data at the previous time of the display deadline; and
and determining the actual display deadline according to a comparison result of the sum of the time of obtaining the network node data at the previous time and the corresponding time offset and the display deadline.
According to a specific implementation manner of the embodiment of the present application, the determining the actual display deadline according to a comparison result between the display deadline and a sum of the time of obtaining the network node data last time and a corresponding time offset includes:
when the sum of the time for acquiring the network node data at the previous time and the corresponding time offset is later than the display deadline, taking the time for acquiring the network node data at the previous time as the actual display deadline; and is
And when the sum of the time for acquiring the network node data at the previous time and the corresponding time offset is earlier than the display deadline, determining the actual display deadline according to a comparison result of the sum of the time for acquiring the network node data at the previous time and the corresponding time offset and the display deadline.
According to a specific implementation manner of the embodiment of the present application, the network node data includes a plurality of network node data, and the time offset includes a time offset of each of the plurality of network nodes.
According to a specific implementation manner of the embodiment of the present application, the obtaining data from the local database according to the time parameter and the service parameter includes:
determining a network node related to the service parameter;
acquiring the time offset of the network node related to the service parameter; and
and comparing the time offset of the network node related to the service parameter and taking the maximum time offset as the time offset.
According to a specific implementation manner of the embodiment of the present application, the calculating the time offset includes:
acquiring time offsets of the plurality of network nodes;
comparing time offsets of the plurality of network nodes; and
taking a maximum time offset among the time offsets of the plurality of network nodes as the time offset.
In a second aspect, there is provided a data presentation apparatus comprising:
a network node data acquisition device that acquires network node data at predetermined time intervals and stores the acquired data in a local database;
time offset calculation means that calculates a time offset indicating a difference between a time at which the acquired traffic is stored in a local database and a time at which the traffic is acquired, and stores the time offset in the local database;
the data acquisition device acquires data from the local database according to a time parameter and a service parameter, wherein the time parameter comprises display starting time and display ending time; and
actual display deadline calculation means for calculating an actual display deadline on the basis of the time parameter and the time offset.
In a third aspect, an electronic device is provided, which includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the first aspect described above or any implementation of the first aspect.
In a fourth aspect, a non-transitory computer-readable storage medium stores computer instructions for causing a computer to perform the data presentation method of the first aspect or any implementation manner of the first aspect.
In a fifth aspect, the present application also provides a computer program product, where the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions, which, when executed by a computer, cause the computer to execute the data presentation method in the foregoing first aspect or any implementation manner of the first aspect.
The data display method in the embodiment of the application comprises the steps of obtaining network node data at preset time intervals, and storing the obtained data in a local database; calculating a time offset and storing the time offset in the local database, wherein the time offset indicates a difference between a time at which the acquired traffic is stored in the local database and a time at which the traffic is acquired; acquiring data from the local database according to time parameters and service parameters, wherein the time parameters comprise display starting time and display ending time; and calculating an actual presentation deadline from the time parameter and the time offset. Through the processing scheme of the application, the data display effect is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a data presentation method according to an embodiment of the present application;
FIG. 2 is a flow chart of calculating a time offset according to an embodiment of the present application;
FIG. 3 is a flowchart of calculating an actual presentation deadline based on the time parameter and the time offset according to an embodiment of the present application;
fig. 4 is a flowchart illustrating an embodiment of obtaining data from a local database according to a time parameter and a service parameter;
FIG. 5 is a flow chart of calculating a time offset according to an embodiment of the present application;
FIG. 6 is a schematic structural diagram of a data display device according to an embodiment of the present application; and is
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
The following description of the embodiments of the present application is provided by way of specific examples, and other advantages and effects of the present application will be readily apparent to those skilled in the art from the disclosure herein. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. The present application is capable of other and different embodiments and its several details are capable of modifications and/or changes in various respects, all without departing from the spirit of the present application. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It is noted that various aspects of the embodiments are described below within the scope of the appended claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the present application, one skilled in the art should appreciate that one aspect described herein may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. Additionally, such an apparatus may be implemented and/or such a method may be practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present application, and the drawings only show the components related to the present application rather than the number, shape and size of the components in actual implementation, and the type, amount and ratio of the components in actual implementation may be changed arbitrarily, and the layout of the components may be more complicated.
In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects may be practiced without these specific details.
The embodiment of the application provides a data display method, which comprises the steps of acquiring network node data at preset time intervals, and storing the acquired data in a local database; calculating a time offset and storing the time offset in the local database, wherein the time offset indicates a difference between a time at which the acquired traffic is stored in the local database and a time at which the traffic is acquired; acquiring data from the local database according to time parameters and service parameters, wherein the time parameters comprise display starting time and display ending time; and calculating an actual presentation deadline from the time parameter and the time offset. Through the processing scheme of the application, the data display effect is improved.
Next, a data presentation method according to an embodiment of the present application will be described in detail with reference to the drawings.
Referring to fig. 1, a data display method provided in an embodiment of the present application includes:
s100: network node data is acquired at predetermined time intervals and the acquired data is stored in a local database.
In the embodiment of the present application, data may be acquired in a network node, such as a router, of a network system through a network probe, for example, and the acquired data may include traffic, a traffic type, and the like, for example. And the acquired data may be stored locally for subsequent transactions such as presentation, analysis, and the like.
In the present embodiment, the predetermined time interval may be, for example, 5min, 10min, or any other time interval, and the network node data acquired in the time interval is stored in the local database for subsequent traffic.
S200: a time offset is calculated and stored in the local database, wherein the time offset indicates a difference between a time at which the acquired traffic is stored in the local database and a time at which the traffic is acquired.
Generally, for a data acquisition device such as a probe, data acquisition can be performed manually, but in the process of storing the data acquired by the probe in a local database, for example, data needs to be acquired from the probe through a special interface, and the adoption of the interface and a transmission path causes a time difference between the acquisition of the data and the local storage of the data. In the embodiment of the present application, a difference between a time at which data acquired by a network probe is stored in a local database and a time at which the traffic is acquired is defined as a time offset, and the time offset is stored in the local database.
For example, for a time interval of 5min, the network probe may perform real-time acquisition in the time period, and then the data acquired by the network probe is transmitted to the local database through an interface or the like, and there is a delay in the transmission process, so that for example, for the network probe, 10: 00-10: 05 data collected during this time period, it may be between 10:06 is stored in the local database, the time offset can be assumed to be 1min, and the time offset (1 min) is stored in the local database together with the data acquired during the time period.
S300: and acquiring data from the local database according to time parameters and service parameters, wherein the time parameters comprise display starting time and display ending time.
In the process of data or service exhibition, what needs to be exhibited is data in a specific time period, such as exhibition 10: 00-11: data in time period 00. That is, in the embodiment of the present application, the time parameter indicates a time period in which the service needs to be shown, and includes a show start time and a show deadline. For example for a time parameter < 10:00, 11: 00>, which shows a start time of 10:00, and exhibits a cutoff time of 11: 00. it should be understood that the presentation start time and the presentation deadline may not be fixed time points, but may be variable amounts, for example, the presentation deadline may refer to the current time, so that the current business situation can be presented in real time.
The service parameter may be, for example, a parameter such as an IP address, so that service data corresponding to the IP address can be acquired according to the IP address.
In the case that the time parameter and the service parameter (for example, IP) are known, the service data of the port corresponding to the IP address within the time parameter can be obtained from a local database, for example. Although the form of acquiring the service data is specifically recited in the embodiment of the present application, the embodiment of the present application is not limited to this, and the time parameter and the service parameter may be combined to acquire the service data in other manners.
S400: and calculating the actual display deadline according to the time parameter and the time offset.
As described above, since there is a delay in acquiring the service data from the probe to be stored in the local database, if the display is performed in real time, the service data corresponding to the current time point may be empty, which may cause an abnormal display.
To solve this problem, in the embodiment of the present application, the actual presentation deadline is also calculated from the time parameter and the time offset. That is, at the time of presentation, presentation is not performed exactly in accordance with the set time parameter, but the deadline of presentation is set with reference to the time delay as well.
Specifically, for example, the presentation deadline in the set time parameter is 10: 02, and at 5min intervals from 9:00 acquires the data of the network node, in this case, if the data is transmitted at 10: when the time shift amount at 00 is less than 2min, the time shift amount is set to 10: and when 02, the display can normally show that 10:00, but if at 10: when the time offset at 00 is greater than 2min, 9: 55-10: 00 the time period has not been stored in the local database and thus cannot be normally presented. In this case, in the present embodiment, the presentation deadline is recalculated. Specifically, for example, in the range of 10: and under the condition that the time offset at 00 is less than 2min, setting the actual display deadline to be 10:00, if the ratio of 10: and when the time offset of 00 hours is more than 2min, setting the actual display deadline to be 9:55, thereby avoiding display anomalies.
According to the data display method, display abnormity possibly caused by data delay is considered, so that the actual display deadline time is set according to the time offset, the display integrity is guaranteed, and the display effect is improved.
According to a specific implementation manner of the embodiment of the application, after the actual display deadline is obtained, data is displayed according to the actual display deadline. Specifically, after the actual display deadline is obtained, only the business data from the display start time to the actual display deadline is displayed during display, thereby ensuring the integrity of the display.
According to a specific implementation manner of the embodiment of the present application, the service parameter may be an IP address, and in this case, when data is acquired from the local database, service data corresponding to the IP address and within the set time parameter may be acquired from the local database. Thus, desired data can be obtained conveniently. It should be understood that although in the embodiment of the present application, the service parameter is described as an IP address, the service parameter may also be other parameters such as an object type and a traffic size.
Referring to fig. 2, according to a specific implementation manner of the embodiment of the present application, the calculating a time offset and storing the time offset in the local database in step 200 includes:
s201: and sequentially obtaining the accumulated time offset when the network node data is acquired according to the time sequence.
For example, for a time period of 9:00-10:00, and a predetermined time interval of 5min, time offsets at time points of 9:05,9: 10..10:00, etc. are obtained in sequence. The time offset obtained in this case is a cumulative time offset, e.g., for time 9:10, the time offset obtained at the change point is an overall time offset for the period of time 9:00-9: 10.
S202: and obtaining the absolute time offset of each acquisition time interval according to the accumulated time offset.
As described above, for each time node, the time offset directly obtained by the time node is the accumulated time offset, and the delay reflected by the accumulated time offset is also the delay of all the services before the time point, so that the time delay in the acquisition time interval with finer granularity cannot be accurately described. Thus, in the present embodiment, an absolute time offset is obtained for each acquisition time interval.
Specifically, for example, the accumulated time offsets at 9:05,9: 10..10:00 are t1, t2, and t3., respectively, the absolute time offset of the acquisition time interval can be obtained by subtracting the previous accumulated time offset from the next accumulated time offset. For example, for an acquisition time interval <9:05,9:10>, the absolute time offset is t2-t 1.
S203: and storing the network node data acquired at the time interval and the corresponding absolute time offset in the local database.
After the absolute time offset is obtained by step S202, the network node data collected for the time interval and the corresponding absolute time offset are stored in a local database.
By the scheme, the time delay of each service can be analyzed at a finer granularity, so that help is provided for subsequent adjustment of display strategies and search of delay reasons.
Referring to fig. 3, according to a specific implementation manner of the embodiment of the present application, the calculating an actual display deadline according to the time parameter and the time offset includes:
s301: and acquiring the display deadline in the time parameter.
In general, the presentation deadline may be a time considered to be set, e.g., 10:00, or may be a current time of change.
S302: and obtaining the time for acquiring the network node data at the previous time of the display deadline according to the display deadline and the time interval.
For example, in the case where the presentation deadline is set to 10:04 and the time interval is set to 5min, the time at which the network node data was acquired the previous time of the presentation deadline at this time is 10: 00. Alternatively, in a case where the presentation deadline is set to the current time and the time interval is set to 5min, assuming that the current time is 10:03, the time at which the network node data was acquired the previous time at which the presentation deadline was present is 10:00, and in a case where the current time is 10:06, the time at which the network node data was acquired the previous time at which the presentation deadline was present is 10: 05.
S303: and determining the actual display deadline according to a comparison result of the sum of the time of obtaining the network node data at the previous time and the corresponding time offset and the display deadline.
Specifically, in order to ensure the integrity of the display, when the sum of the time of obtaining the network node data last time and the corresponding time offset is earlier than the display deadline, the time of obtaining the network node data last time is taken as the actual display deadline. For example, when the current time is 10:03 and the time for acquiring the network node data at the previous time of displaying the deadline is 10:00, if the time offset corresponding to the time 10:00 is less than 3min, the time 10:00 is taken as the actual display deadline.
And when the sum of the time for obtaining the network node data in the previous time and the corresponding time offset is later than the display deadline, determining the actual display deadline according to a comparison result of the sum of the time for obtaining the network node data in the previous time and the corresponding time offset and the display deadline. For example, in the case that the current time is 10:03 and the time of obtaining the network node data at the previous time of showing the deadline is 10:00, if the time offset corresponding to the time 10:00 is greater than 3min, that is, the sum of the time 10:00 of obtaining the network node data at the previous time and the corresponding time offset (e.g., 4 min) is later than the showing deadline, the actual showing deadline is determined according to the comparison result of the sum of the time (9: 55) of obtaining the network node data at the previous time and the corresponding time offset (e.g., 4 min) and the showing deadline (10: 03), and specifically, when the comparison result is earlier than the showing deadline (10: 03), the time of obtaining the network node data at the previous time is taken as the actual showing deadline.
That is, the time of the previous acquisition of the network node data and the corresponding time offset are sequentially determined until the sum thereof is less than the presentation deadline.
According to a specific implementation manner of the embodiment of the present application, the network node data may include a plurality of network node data, and the time offset includes a time offset of each of the plurality of network nodes. That is, the traffic data stored in the local database may be data acquired from a plurality of network nodes, in this case, including time offset data of the respective network nodes. In this case, referring to fig. 4, according to a specific implementation manner of the embodiment of the present application, the obtaining data from the local database according to the time parameter and the service parameter includes:
s401: and determining the network node related to the service parameter.
In order to obtain data from the local database in a targeted manner, the network nodes associated with the traffic parameters are first determined. Specifically, when the service parameter is an IP address, the network node corresponding to the IP address is obtained in the local database, and then the data corresponding to the network node is obtained.
S402: and acquiring the time offset of the network node related to the service parameter.
In this embodiment, a difference between a time at which the acquired data of each network node is stored in the local database and a time at which the data is acquired is defined as a time offset of the network node.
S403: and comparing the time offset of the network node related to the service parameter and taking the maximum time offset as the time offset.
Since the data corresponding to the traffic parameter may come from multiple network nodes, in this case, only the time offsets of the network nodes related to the traffic parameter need to be compared and the maximum time offset obtained. Therefore, when the service data related to a plurality of network nodes are displayed, the time offset of each network node does not need to be calculated independently during displaying, the actual display deadline of each node is obtained, the normal displaying of the service data can be met only by taking the maximum time offset as the time offset, and the calculation resources are saved.
Referring to fig. 5, according to a specific implementation manner of the embodiment of the present application, the calculating a time offset includes:
s501: obtaining time offsets of the plurality of network nodes.
S502: the time offsets of the plurality of network nodes are compared.
S503: taking a maximum time offset among the time offsets of the plurality of network nodes as the time offset.
For the same service, the delays at different nodes may be different due to the intermediate service process, and in this case, in order to ensure the display integrity of the same service, only the maximum time offset among the time offsets in each network node needs to be considered, so that the whole process of the service can be completely displayed. Thus, the amount of calculation at the time of presentation can be reduced.
In correspondence with the above method embodiment, referring to fig. 6, the present application embodiment further provides a data presentation apparatus 600, including:
a network node data acquisition means 601, said network node data acquisition means 601 acquiring network node data at predetermined time intervals and storing the acquired data in a local database;
time offset calculation means 602, said time offset calculation means 602 calculating a time offset indicating a difference between a time at which the acquired traffic is stored in a local database and a time at which the traffic is acquired and storing the time offset in the local database;
a data obtaining device 603, where the data obtaining device 603 obtains data from the local database according to a time parameter and a service parameter, where the time parameter includes a display start time and a display end time; and
actual presentation deadline calculating means 604, said actual presentation deadline calculating means 604 calculating an actual presentation deadline based on said time parameter and said time offset.
The apparatus shown in fig. 6 may correspondingly execute the content in the above method embodiment, and details of the part not described in detail in this embodiment refer to the content described in the above method embodiment, which is not described again here.
Referring to fig. 7, an embodiment of the present application further provides an electronic device 700, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the data presentation method of the foregoing method embodiments.
The embodiment of the present application further provides a non-transitory computer-readable storage medium, which stores computer instructions for causing the computer to execute the data presentation method in the foregoing method embodiment.
The present application also provides a computer program product, which includes a computer program stored on a non-transitory computer readable storage medium, the computer program including program instructions, when executed by a computer, cause the computer to execute the data presentation method in the foregoing method embodiment.
Referring now to FIG. 7, shown is a schematic diagram of an electronic device 700 suitable for use in implementing embodiments of the present application. The electronic device 700 in the embodiment of the present application may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device 700 shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 7, electronic device 700 may include a processing means (e.g., central processing unit, graphics processor, etc.) 701 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 702 or a program loaded from storage 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the electronic apparatus 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Generally, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touch pad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, or the like; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication means 709 may allow the electronic device 700 to communicate wirelessly or by wire with other devices to exchange data. While the figures illustrate an electronic device 700 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication means 709, or may be installed from the storage means 708, or may be installed from the ROM 702. The computer program, when executed by the processing device 701, performs the above-described functions defined in the methods of the embodiments of the present application.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof.
The above description is only for the specific embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present disclosure should be covered within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. A method for presenting data, the method comprising:
acquiring network node data at preset time intervals, and storing the acquired data in a local database;
calculating a time offset and storing the time offset in the local database, wherein the time offset indicates a difference between a time at which the acquired data is stored in the local database and a time at which the data is acquired;
acquiring data from the local database according to time parameters and service parameters, wherein the time parameters comprise display starting time and display ending time; and
calculating an actual presentation deadline time based on the time parameter and the time offset,
wherein said calculating an actual presentation deadline from said time parameter and said time offset comprises:
obtaining the display deadline in the time parameter;
according to the display deadline and the time interval, obtaining the time for obtaining the network node data at the previous time of the display deadline; and
determining the actual display deadline according to a comparison of the sum of the time of the last acquisition of the network node data and the corresponding time offset with the display deadline, and
the determining the actual display deadline according to a comparison result of the display deadline and a sum of the time of obtaining the network node data last time and the corresponding time offset includes:
when the sum of the time for acquiring the network node data at the previous time and the corresponding time offset is earlier than the display deadline, taking the time for acquiring the network node data at the previous time as the actual display deadline; and is
And when the sum of the time for obtaining the network node data at the previous time and the corresponding time offset is later than the display deadline, determining the actual display deadline according to a comparison result of the sum of the time for obtaining the network node data at the previous time and the corresponding time offset and the display deadline.
2. The method of claim 1, further comprising:
and displaying data according to the actual display deadline.
3. The data presentation method according to claim 1, wherein the service parameter comprises an IP address, and the obtaining data from the local database according to the time parameter and the service parameter comprises obtaining data of the IP address corresponding to the time parameter from the local database.
4. The data presentation method of claim 1, wherein said calculating and storing a time offset in said local database comprises:
sequentially obtaining accumulated time offset when the network node data is acquired according to the time sequence;
obtaining the absolute time offset of each acquisition time interval according to the accumulated time offset; and
and storing the network node data acquired at the time interval and the corresponding absolute time offset in the local database.
5. The data presentation method of claim 1, wherein the network node data comprises a plurality of network node data and the time offset comprises a time offset for each of the plurality of network nodes.
6. The method of claim 5, wherein the obtaining data from the local database according to the time parameter and the service parameter comprises:
determining a network node related to the service parameter;
acquiring the time offset of the network node related to the service parameter; and
and comparing the time offset of the network node related to the service parameter and taking the maximum time offset as the time offset.
7. The data presentation method of claim 5, wherein said calculating a time offset comprises:
acquiring time offsets of the plurality of network nodes;
comparing time offsets of the plurality of network nodes; and
taking a maximum time offset among the time offsets of the plurality of network nodes as the time offset.
8. A data presentation device, comprising:
a network node data acquisition device that acquires network node data at predetermined time intervals and stores the acquired data in a local database;
time offset calculation means that calculates a time offset indicating a difference between a time at which the acquired traffic is stored in a local database and a time at which the traffic is acquired, and stores the time offset in the local database;
the data acquisition device acquires data from the local database according to a time parameter and a service parameter, wherein the time parameter comprises display starting time and display ending time; and
actual presentation deadline calculation means for calculating an actual presentation deadline on the basis of the time parameter and the time offset,
wherein said calculating an actual presentation deadline from said time parameter and said time offset comprises:
obtaining the display deadline in the time parameter;
according to the display deadline and the time interval, obtaining the time for obtaining the network node data at the previous time of the display deadline; and
determining the actual display deadline according to a comparison of the sum of the time of the last acquisition of the network node data and the corresponding time offset with the display deadline, and
the determining the actual display deadline according to a comparison result of the display deadline and a sum of the time of obtaining the network node data last time and the corresponding time offset includes:
when the sum of the time for acquiring the network node data at the previous time and the corresponding time offset is earlier than the display deadline, taking the time for acquiring the network node data at the previous time as the actual display deadline; and is
And when the sum of the time for obtaining the network node data at the previous time and the corresponding time offset is later than the display deadline, determining the actual display deadline according to a comparison result of the sum of the time for obtaining the network node data at the previous time and the corresponding time offset and the display deadline.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the data presentation method of any one of the preceding claims 1-7.
10. A non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the data presentation method of any one of the preceding claims 1-7.
CN202011424767.9A 2020-12-09 2020-12-09 Data display method and device and electronic equipment Active CN112231340B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011424767.9A CN112231340B (en) 2020-12-09 2020-12-09 Data display method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011424767.9A CN112231340B (en) 2020-12-09 2020-12-09 Data display method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112231340A CN112231340A (en) 2021-01-15
CN112231340B true CN112231340B (en) 2021-03-23

Family

ID=74124512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011424767.9A Active CN112231340B (en) 2020-12-09 2020-12-09 Data display method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112231340B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150178327A1 (en) * 2013-12-24 2015-06-25 Ronen Cohen Systems and methods providing master data management statistics
CN106648904A (en) * 2017-01-09 2017-05-10 大连理工大学 Self-adaptive rate control method for stream data processing
CN106911589A (en) * 2015-12-22 2017-06-30 阿里巴巴集团控股有限公司 A kind of data processing method and equipment
CN112000675A (en) * 2019-05-27 2020-11-27 招商证券股份有限公司 Market data updating method and device, terminal equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106202324B (en) * 2016-06-30 2020-10-30 北京奇虎科技有限公司 Data processing method and device for real-time computing platform
CN109558441A (en) * 2018-10-25 2019-04-02 平安科技(深圳)有限公司 Financial index automatic monitoring method, device, computer equipment and storage medium
CN111899406A (en) * 2020-07-17 2020-11-06 维沃移动通信有限公司 Queuing method and device and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150178327A1 (en) * 2013-12-24 2015-06-25 Ronen Cohen Systems and methods providing master data management statistics
CN106911589A (en) * 2015-12-22 2017-06-30 阿里巴巴集团控股有限公司 A kind of data processing method and equipment
CN106648904A (en) * 2017-01-09 2017-05-10 大连理工大学 Self-adaptive rate control method for stream data processing
CN112000675A (en) * 2019-05-27 2020-11-27 招商证券股份有限公司 Market data updating method and device, terminal equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《基于流计算的证券数据流异常检测系统的设计与实现》;饶伊文;《中国优秀硕士学位论文全文数据库 信息科技辑》;20200215;全文 *

Also Published As

Publication number Publication date
CN112231340A (en) 2021-01-15

Similar Documents

Publication Publication Date Title
CN111475298B (en) Task processing method, device, equipment and storage medium
CN110209315B (en) Method and device for displaying characters in user interface, electronic equipment and storage medium
CN111291244B (en) House source information display method, device, terminal and storage medium
CN112291370B (en) Method for processing service access relation and related equipment
CN111198859B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN113806212A (en) Application program exception positioning method and device and electronic equipment
CN110865846B (en) Application management method, device, terminal, system and storage medium
CN110837333A (en) Method, device, terminal and storage medium for adjusting playing progress of multimedia file
CN112291121B (en) Data processing method and related equipment
CN110908752A (en) Control setting method and device, electronic equipment and interaction system
CN112261176B (en) Method for acquiring actual network access relationship and related equipment
CN112884376A (en) Work order processing method and device, electronic equipment and computer readable storage medium
CN111309798B (en) Processing method, device, equipment and storage medium of table
CN112231340B (en) Data display method and device and electronic equipment
CN111857518A (en) Method and device for canceling image editing operation, electronic equipment and medium
CN111198853B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN110134905B (en) Page update display method, device, equipment and storage medium
CN111177260A (en) Database remote copying method and device and electronic equipment
CN112988313B (en) Path determining method and device and electronic equipment
CN113506356B (en) Method and device for drawing area map, readable medium and electronic equipment
CN112688793B (en) Data packet obtaining method and device and electronic equipment
CN110996141B (en) Method and device for sending information in live broadcast room and electronic equipment
CN111258582B (en) Window rendering method and device, computer equipment and storage medium
CN111381813B (en) Front-end page debugging method and device, computer equipment and storage medium
CN109284350B (en) Method and device for updating search content, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant