WO2019237856A1 - Method and system for displaying network status in real time, and storage medium and electronic device - Google Patents

Method and system for displaying network status in real time, and storage medium and electronic device Download PDF

Info

Publication number
WO2019237856A1
WO2019237856A1 PCT/CN2019/086083 CN2019086083W WO2019237856A1 WO 2019237856 A1 WO2019237856 A1 WO 2019237856A1 CN 2019086083 W CN2019086083 W CN 2019086083W WO 2019237856 A1 WO2019237856 A1 WO 2019237856A1
Authority
WO
WIPO (PCT)
Prior art keywords
local terminal
preset
server
network
parameter value
Prior art date
Application number
PCT/CN2019/086083
Other languages
French (fr)
Chinese (zh)
Inventor
柴义磊
吝旭阳
万安庆
刘淑英
Original Assignee
上海达龙信息科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN201810609944.7A external-priority patent/CN108600395A/en
Application filed by 上海达龙信息科技有限公司 filed Critical 上海达龙信息科技有限公司
Publication of WO2019237856A1 publication Critical patent/WO2019237856A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • H04L43/045Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate

Definitions

  • the present invention relates to the field of network technology, and in particular, to a method, a system, a storage medium, and an electronic device for displaying the status of a network in real time.
  • network delay refers to the time in milliseconds that a data packet starts from the source host process and reaches the destination host process.
  • High latency and slow network transmission result in more network program packet loss and poor customer experience; low latency and fast network transmission speed will be smooth when accessing cloud host programs, and the customer experience will be relatively good.
  • an object of the present invention is to provide a method, a system, a storage medium, and an electronic device for displaying a network status in real time, so as to solve the deficiencies in the prior art.
  • the present invention provides a method for displaying network conditions in real time, which is applied to a server that communicates with a local terminal; the method includes: according to the local terminal and the server Interactive data to calculate parameter values used to reflect current network conditions; find preset display colors and / or preset prompt words corresponding to preset value intervals to which the parameter values belong; and display the parameter values and the preset display The color and / or the preset prompt word are displayed on an interface of the local terminal.
  • the method further includes: finding a preset transparency corresponding to a preset value interval to which the parameter value belongs; and combining the parameter value with the preset display color and / or the preset The prompt words are displayed on the interface of the local terminal with the preset transparency.
  • the parameter values used to reflect the current network conditions include: a network delay value; and an implementation of calculating the network delay value based on interaction data between the local terminal and the server
  • the method includes: receiving a message sent by the local terminal, and then sending the message to the local terminal; based on (the moment when the local terminal receives the message-the local terminal sends the message Time) / 2, and the network delay value is calculated.
  • the parameter values used to reflect the current network conditions include: a frame delay value; and an implementation of calculating the frame delay value based on interaction data between the local terminal and the server
  • the method includes: obtaining the respective sending time and receiving time of two adjacent frames of pictures sent by the server to the local terminal; and calculating the obtained values based on the difference between the receiving time interval and the sending time interval of the adjacent two frames.
  • the frame delay value is described.
  • the parameter values used to reflect the current network conditions include: a network link speed value; and calculating the network link speed value based on the interaction data between the local terminal and the server.
  • An implementation manner includes: calculating the network connection speed value based on a total amount of data sent and received by the local terminal in a unit time.
  • the server includes: a cloud host that provides a virtual cloud desktop to the local terminal; the virtual cloud desktop includes a floating interface; the parameter value and its corresponding preset display color display At the suspension interface.
  • the method further includes: finding a preset transparency corresponding to a preset value interval to which the parameter value belongs; displaying the parameter value and its corresponding preset display color and / or preset prompt The words and the floating interface are displayed on the interface of the local terminal with the preset transparency.
  • the present invention provides a system for displaying network conditions in real time, which is applied to a server that communicates with a local terminal; the system includes: a parameter calculation module configured to The interaction data between the servers is used to calculate the parameter values used to reflect the current network conditions; the corresponding search module is used to find the preset display color corresponding to the preset numerical range to which the parameter value belongs; the parameter display module is used to Displaying the parameter value and the preset display color on an interface of the local terminal.
  • the present invention provides a computer-readable storage medium in which a computer program is stored, and when the computer program is loaded and executed by a processor, the method for real-time displaying a network condition is implemented.
  • the present invention provides an electronic device, including: a processor and a memory; wherein the memory is used to store a computer program; and the processor is used to load and execute the computer program so that all the The electronic device executes the method for displaying a network condition in real time.
  • the method, system, storage medium, and electronic device for displaying network conditions in real time calculate parameter values used to reflect the current network conditions according to the interaction data between the local terminal and the server; find the parameters A preset display color and / or a preset prompt word corresponding to a preset numerical interval to which the value belongs; and displaying the parameter value, the preset display color, and / or the preset prompt word on the local terminal interface.
  • the invention uses different display colors to reflect the current network status, which helps users to intuitively and quickly learn the interaction between the local terminal and the server, and to determine whether the reason affecting the access to the cloud desktop is a network factor. When the network situation is poor, take corresponding measures to improve in time.
  • FIG. 1 is a schematic diagram of the architecture of a local terminal and a server in the prior art.
  • FIG. 2 is a schematic flowchart of a method for displaying network conditions in real time according to an embodiment of the present invention.
  • FIG. 3 is a schematic block diagram of a system for displaying network conditions in real time according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • FIG. 1 is a structural diagram of a communication connection between a local terminal and a server in the prior art.
  • the local terminal may be a user-side desktop, laptop, tablet, smart phone, or other device
  • the server may be a physical server.
  • Cloud hosts such as virtual cloud desktop servers that provide virtual cloud desktops to user-side devices
  • the user-side device displays a virtual cloud desktop provided by the virtual cloud desktop server.
  • the communication protocol between the local terminal and the server may be a UDP protocol, a TCP protocol, or the like.
  • this embodiment provides a method for displaying network conditions in real time.
  • the method is performed by a server (such as the virtual cloud desktop server in FIG. 1), and includes the following steps:
  • the so-called parameter values used to reflect the current network conditions include: network delay values, frame delay values, network link speed values, and the like.
  • the implementation of this step is specifically: first, receiving a message sent by the local terminal, and then sending the message to the local terminal; second, based on (the local terminal receives the The time of the message-the time at which the local terminal sends the message) / 2, and the network delay value is calculated and obtained.
  • the local terminal sends a message with a timestamp sendTime to the virtual cloud desktop server. After receiving the message, the virtual cloud desktop server directly returns it to the local terminal. After receiving the message, the local terminal records the current time again. Using (receiveTimer-sendTime) / 2 as the calculation to obtain the network delay.
  • the implementation of this step is specifically: first, obtaining the respective sending time and receiving time of two adjacent frames of pictures sent by the server to the local terminal; secondly, based on the two adjacent frames A difference between the receiving time interval and the sending time interval, and calculating the frame delay value.
  • the time point when the server sends the previous frame of the picture is S1
  • the time point when the local terminal receives the picture frame is R1
  • the time point when the server sends the next frame of the picture is S2
  • the time point when the local terminal receives the picture frame is R2
  • the receiving time interval is (R2-R1)
  • the sending time interval is (S2-S1)
  • the frame delay value is
  • the user can understand one's own network status through one or more of the calculated network delay value, frame delay value, and network link speed value. If the access behavior is indeed affected by a network problem, you can improve it by increasing network bandwidth or using related tools to reduce the delay.
  • S22 Find a preset display color and / or a preset prompt word corresponding to a preset value interval to which the parameter value belongs.
  • the server stores multiple preset numerical intervals of different types of parameter values in advance, and the preset display colors and / or preset prompt words corresponding to each preset numerical interval.
  • Table 1 is taken as an example, and Table 1 is shown as The server presets two preset value intervals for the network delay value, which are "not more than 100ms" and “greater than 100ms". Each preset value interval corresponds to a preset display color, and "not more than 100ms" corresponds to "green”. "And” greater than 100ms "corresponds to” red ", each preset value interval corresponds to a preset prompt word,” not greater than 100ms “corresponds to” good “and” greater than 100ms “corresponds to” bad ".
  • Preset value interval No more than 100ms More than 100ms Preset display color green red Preset prompt words good Worse
  • the network delay value calculated in step S21 is 90ms, it is judged that 90ms belongs to the interval of "not more than 100ms" and the corresponding display color is "green” to indicate that the network condition is good; if the network delay value calculated in step S21 is good 150ms, it is judged that 150ms belongs to the interval "greater than 100ms", and the corresponding display color is "red” to indicate that the network condition is poor.
  • a correspondence relationship similar to Table 1 is pre-stored in the server side, and will not be described in detail here.
  • the number and upper and lower limits of each preset numerical interval, corresponding display colors, and prompt words the user can set them according to actual conditions.
  • a correspondence relationship similar to Table 1 may also exist outside the server. When the server needs to make a judgment based on the correspondence relationship, it can read and call from the outside.
  • the correspondence relationship similar to Table 1 includes a plurality of preset value intervals, and a preset display color and a preset prompt word corresponding to each preset value interval.
  • the corresponding preset transparency is shown in Table 2:
  • Preset value interval No more than 100ms More than 100ms Preset display color green red Preset prompt words good Worse Preset transparency 80% 30%
  • the network delay value calculated in step S21 is 90ms, it is judged that 90ms belongs to the interval of "not more than 100ms", the corresponding display color is "green”, and the corresponding transparency is "80%”, so that when the network condition is good Does not affect the display of other content; if the network delay value calculated in step S21 is 150ms, it is judged that 150ms belongs to the interval of "greater than 100ms", the corresponding display color is "red”, and the corresponding transparency is "30%”. It acts as a warning when the condition is poor.
  • a correspondence relationship similar to Table 2 is also pre-stored in the server, which will not be described in detail here.
  • the number and upper and lower limits of each preset numerical interval corresponding display colors and / or prompt words, and corresponding transparency, the user can set them according to actual conditions.
  • a correspondence relationship similar to Table 2 may also exist outside the server. When the server needs to make a judgment based on the correspondence relationship, it can read and call from the outside.
  • S23 Display the parameter value, the preset display color, and / or the preset prompt word on an interface of the local terminal.
  • the virtual cloud desktop server displays parameter values, corresponding preset display colors, and / or preset prompt words in the virtual cloud desktop; in the example shown in Table 2, the virtual The cloud desktop server displays the parameter values and their corresponding preset display colors and / or preset prompt words in the virtual cloud desktop with corresponding preset transparency.
  • a floating interface is displayed in the virtual cloud desktop.
  • the floating interface is a floating interface that is superimposed on the interface of the local terminal and can achieve specified operations under control.
  • the specified operations include locally using a mouse, keyboard, or touch.
  • Corresponding operations such as move, stop, fade, hide on the terminal interface.
  • the floating interface includes a first display area for displaying a current network delay value, a frame delay value, and a network link speed value, and a second display area for displaying a corresponding color.
  • real-time parameter values are displayed in corresponding display areas with corresponding colors and transparency.
  • the style of the levitation interface is preferably a levitation ball, of course, it may also be other regular or irregular shapes.
  • the floating interface is displayed with a preset transparency corresponding to the parameter value.
  • steps S21 to S23 are repeatedly performed at preset time intervals (such as 2s), and the parameter values are calculated in real time and the display content is refreshed, so as to achieve the effect of feedback to the real-time situation of the network.
  • the present invention also provides a computer program product including one or more computer instructions.
  • the computer instructions may be stored in a computer-readable storage medium.
  • the computer-readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a server, a data center, and the like that includes one or more available medium integration.
  • the usable medium may be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state hard disk (SSD)).
  • this embodiment provides a system 30 for displaying network conditions in real time, as a piece of software installed on a server to execute the method for displaying network conditions in real time as described in the foregoing method embodiment when running. Since the technical principle of this system embodiment is similar to the technical principle of the foregoing method embodiments, the same technical details will not be repeated repeatedly.
  • the system 30 for displaying the network status in real time in this embodiment specifically includes a parameter calculation module 31, a corresponding search module 32, and a parameter display module 33.
  • the parameter calculation module 31 is configured to perform step S21 described in the foregoing method embodiment
  • the corresponding search module 32 is configured to perform step S22 described in the foregoing method embodiment
  • the parameter display module 33 is configured to perform step S23 described in the foregoing method embodiment.
  • each module in the embodiment of FIG. 3 is only a division of logical functions, and may be fully or partially integrated into one or more physical entities during actual implementation. And these modules can all be implemented in the form of software calling through processing elements or all in hardware. Some modules can also be implemented in calling software through processing elements, and some modules can be implemented in hardware.
  • the parameter calculation module 31 may be a separately established processing element, or it may be integrated into a certain chip for implementation.
  • the parameter calculation module 31 may also be stored in the form of program code in a memory, and may be called and executed by a certain processing element. Functions.
  • the implementation of other modules is similar.
  • the processing element described herein may be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each of the above modules may be completed by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
  • the electronic device 40 may be a desktop computer, a portable computer, a smart phone, or the like.
  • the electronic device 40 includes at least: a memory 42, a processor 43, and a display 44 connected through the bus 41.
  • the memory 42 is used to store a computer program
  • the processor 43 is used to execute the computer program stored in the memory 42 to execute the foregoing. All or part of the steps in a method embodiment.
  • the system bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the system bus can be divided into address bus, data bus, control bus and so on. For ease of representation, the figure only uses a thick line, but it does not mean that there is only one bus or one type of bus.
  • the communication interface is used to implement communication between the database access device and other devices (such as a client, a read-write library, and a read-only library).
  • the memory may include Random Access Memory (RAM), or may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
  • the above processor may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc .; it may also be a Digital Signal Processor (DSP) Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • CPU Central Processing Unit
  • NP Network Processor
  • DSP Digital Signal Processor
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • the method, system, storage medium, and electronic device for displaying the network status in real time display numerical values and color changes to facilitate users to clearly and clearly understand their network status (whether the network is stable or fluctuating, etc.). It helps to determine whether the access operation is affected by network reasons, and then decides whether to improve the network situation or use related tools to deal with the operation problems caused by the unsmooth network. Therefore, the present invention effectively overcomes various shortcomings in the prior art and has high industrial utilization value.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Environmental & Geological Engineering (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Provided are a method and system for displaying a network status in real time, and a storage medium and an electronic device. The method is applied to a server communicationally connected to a local terminal, and comprises: calculating, according to interaction data between the local terminal and the server, a parameter value for reflecting a current network status; searching for a preset display color and/or a preset prompt word corresponding to a preset numerical range of the parameter value; and displaying the parameter value, and the preset display color and/or the preset prompt word on an interface of the local terminal. According to the present invention, a different display color is used for reflecting a current network status, which facilitates a user intuitively and rapidly obtaining an interaction condition between a local terminal and a server, and determining whether a network factor causes that cloud desktop access is affected.

Description

实时显示网络状况的方法、系统、存储介质、及电子设备Method, system, storage medium and electronic equipment for displaying network status in real time 技术领域Technical field
本发明涉及网络技术领域,特别是涉及实时显示网络状况的方法、系统、存储介质、及电子设备。The present invention relates to the field of network technology, and in particular, to a method, a system, a storage medium, and an electronic device for displaying the status of a network in real time.
背景技术Background technique
随着互联网技术的快速应用,越来越多的用户使用各终端设备访问云端主机参与各种活动,例如:本地设备配置较低的情况下使用云端主机参与到云游戏中。然而,本地设备在进入云游戏时对于网络延迟以及网络速度有一定的要求。网络延迟顾名思义是指一个数据报文从源主机进程发出开始计时,到达目的地主机进程为止,所经历的时间,以毫秒为单位。延迟高,网络传输速度慢,致使网络程序丢包较多,客户体验差;延迟低,网络传输速度快,在访问云端主机程序时便会很顺畅,客户体验也会相对较好。With the rapid application of Internet technology, more and more users use terminal devices to access cloud hosts to participate in various activities. For example, when the local device configuration is low, use cloud hosts to participate in cloud games. However, local devices have certain requirements on network latency and network speed when entering cloud games. As the name implies, network delay refers to the time in milliseconds that a data packet starts from the source host process and reaches the destination host process. High latency and slow network transmission result in more network program packet loss and poor customer experience; low latency and fast network transmission speed will be smooth when accessing cloud host programs, and the customer experience will be relatively good.
在现有技术中,用户在进入网络程序访问时通常使用各类网络测速服务获取自己的上传、下载网络访问速度等,例如speedtest服务,又如奇虎的加速球装置,该装置实时显示网络访问的上传和下载速度,但都无法为用户实时提供本地终端访问云端主机服务的网络延迟情况以及网络链接速度,也就无法确定是否因为网络情况而影响了用户访问云桌面的行为。In the prior art, when users access network programs, they usually use various network speed measurement services to obtain their own upload and download network access speeds, such as the speedtest service, and like Qihoo ’s speed dome device, which displays network access in real time. Uploading and downloading speeds, but neither can provide users with real-time local terminal access to cloud host services, network delays and network link speeds, nor can it be determined whether network access has affected users ’access to cloud desktops.
发明内容Summary of the Invention
鉴于以上所述现有技术的缺点,本发明的目的在于提供实时显示网络状况的方法、系统、存储介质、及电子设备,以解决现有技术中的不足。In view of the shortcomings of the prior art described above, an object of the present invention is to provide a method, a system, a storage medium, and an electronic device for displaying a network status in real time, so as to solve the deficiencies in the prior art.
为实现上述目的及其它相关目的,本发明提供一种实时显示网络状况的方法,应用于与本地终端通信连接的服务端;所述方法包括:根据所述本地终端与所述服务端之间的交互数据,计算用于反应当前网络状况的参数值;查找所述参数值所属预设数值区间所对应的预设显示颜色和/或预设提示词语;将所述参数值、所述预设显示颜色和/或所述预设提示词语显示于所述本地终端的界面。In order to achieve the above-mentioned object and other related objects, the present invention provides a method for displaying network conditions in real time, which is applied to a server that communicates with a local terminal; the method includes: according to the local terminal and the server Interactive data to calculate parameter values used to reflect current network conditions; find preset display colors and / or preset prompt words corresponding to preset value intervals to which the parameter values belong; and display the parameter values and the preset display The color and / or the preset prompt word are displayed on an interface of the local terminal.
于本发明一实施例中,所述方法还包括:查找所述参数值所属预设数值区间所对应的预设透明度;将所述参数值和所述预设显示颜色和/或所述预设提示词语以所述预设透明度显示于所述本地终端的界面。In an embodiment of the present invention, the method further includes: finding a preset transparency corresponding to a preset value interval to which the parameter value belongs; and combining the parameter value with the preset display color and / or the preset The prompt words are displayed on the interface of the local terminal with the preset transparency.
于本发明一实施例中,所述用于反应当前网络状况的参数值包括:网络延迟值;所述根据所述本地终端与所述服务端之间的交互数据计算所述网络延迟值的实现方式包括:接收由 所述本地终端发送的报文,再将所述报文发送至所述本地终端;基于(所述本地终端接收所述报文的时刻-所述本地终端发送所述报文的时刻)/2,计算得到所述网络延迟值。In an embodiment of the present invention, the parameter values used to reflect the current network conditions include: a network delay value; and an implementation of calculating the network delay value based on interaction data between the local terminal and the server The method includes: receiving a message sent by the local terminal, and then sending the message to the local terminal; based on (the moment when the local terminal receives the message-the local terminal sends the message Time) / 2, and the network delay value is calculated.
于本发明一实施例中,所述用于反应当前网络状况的参数值包括:帧延迟值;所述根据所述本地终端与所述服务端之间的交互数据计算所述帧延迟值的实现方式包括:获取由所述服务端向所述本地终端发送的相邻两帧画面各自的发送时刻与接收时刻;基于所述相邻两帧的接收时间间隔与发送时间间隔之差,计算得到所述帧延迟值。In an embodiment of the present invention, the parameter values used to reflect the current network conditions include: a frame delay value; and an implementation of calculating the frame delay value based on interaction data between the local terminal and the server The method includes: obtaining the respective sending time and receiving time of two adjacent frames of pictures sent by the server to the local terminal; and calculating the obtained values based on the difference between the receiving time interval and the sending time interval of the adjacent two frames. The frame delay value is described.
于本发明一实施例中,所述用于反应当前网络状况的参数值包括:网络链接速度值;所述根据所述本地终端与所述服务端之间的交互数据计算所述网络链接速度值的实现方式包括:基于所述本地终端于单位时间内发送的数据总量与接收的数据总量,计算得到所述网络连接速度值。In an embodiment of the present invention, the parameter values used to reflect the current network conditions include: a network link speed value; and calculating the network link speed value based on the interaction data between the local terminal and the server. An implementation manner includes: calculating the network connection speed value based on a total amount of data sent and received by the local terminal in a unit time.
于本发明一实施例中,所述服务端包括:向所述本地终端提供虚拟云桌面的云端主机;所述虚拟云桌面中包括悬浮界面;所述参数值及其对应的预设显示颜色显示于所述悬浮界面。In an embodiment of the present invention, the server includes: a cloud host that provides a virtual cloud desktop to the local terminal; the virtual cloud desktop includes a floating interface; the parameter value and its corresponding preset display color display At the suspension interface.
于本发明一实施例中,所述方法还包括:查找所述参数值所属预设数值区间所对应的预设透明度;将所述参数值及其对应的预设显示颜色和/或预设提示词语,以及所述悬浮界面以所述预设透明度显示于所述本地终端的界面。In an embodiment of the present invention, the method further includes: finding a preset transparency corresponding to a preset value interval to which the parameter value belongs; displaying the parameter value and its corresponding preset display color and / or preset prompt The words and the floating interface are displayed on the interface of the local terminal with the preset transparency.
为实现上述目的及其它相关目的,本发明提供一种实时显示网络状况的系统,应用于与本地终端通信连接的服务端;所述系统包括:参数计算模块,用于根据所述本地终端与所述服务端之间的交互数据,计算用于反应当前网络状况的参数值;对应查找模块,用于查找所述参数值所属预设数值区间所对应的预设显示颜色;参数显示模块,用于将所述参数值和所述预设显示颜色显示于所述本地终端的界面。In order to achieve the above and other related objectives, the present invention provides a system for displaying network conditions in real time, which is applied to a server that communicates with a local terminal; the system includes: a parameter calculation module configured to The interaction data between the servers is used to calculate the parameter values used to reflect the current network conditions; the corresponding search module is used to find the preset display color corresponding to the preset numerical range to which the parameter value belongs; the parameter display module is used to Displaying the parameter value and the preset display color on an interface of the local terminal.
为实现上述目的及其它相关目的,本发明提供一种计算机可读存储介质,其中存储有计算机程序,所述计算机程序被处理器加载执行时,实现所述的实时显示网络状况的方法。In order to achieve the above-mentioned object and other related objects, the present invention provides a computer-readable storage medium in which a computer program is stored, and when the computer program is loaded and executed by a processor, the method for real-time displaying a network condition is implemented.
为实现上述目的及其它相关目的,本发明提供一种电子设备,包括:处理器及存储器;其中,所述存储器用于存储计算机程序;所述处理器用于加载执行所述计算机程序,以使所述电子设备执行所述的实时显示网络状况的方法。To achieve the above and other related objectives, the present invention provides an electronic device, including: a processor and a memory; wherein the memory is used to store a computer program; and the processor is used to load and execute the computer program so that all the The electronic device executes the method for displaying a network condition in real time.
如上所述,本发明的实时显示网络状况的方法、系统、存储介质、及电子设备,根据本地终端与服务端之间的交互数据,计算用于反应当前网络状况的参数值;查找所述参数值所属预设数值区间所对应的预设显示颜色和/或预设提示词语;将所述参数值、所述预设显示颜色显示和/或所述预设提示词语显示于所述本地终端的界面。本发明用不同显示颜色来反 映当前的网络状况,有助于用户直观地、快速地获知本地终端与服务端之间的交互情况,确定影响云桌面访问的原因是否为网络因素,以在遇到网络情况较差时采取相应措施及时改善。As described above, the method, system, storage medium, and electronic device for displaying network conditions in real time according to the present invention calculate parameter values used to reflect the current network conditions according to the interaction data between the local terminal and the server; find the parameters A preset display color and / or a preset prompt word corresponding to a preset numerical interval to which the value belongs; and displaying the parameter value, the preset display color, and / or the preset prompt word on the local terminal interface. The invention uses different display colors to reflect the current network status, which helps users to intuitively and quickly learn the interaction between the local terminal and the server, and to determine whether the reason affecting the access to the cloud desktop is a network factor. When the network situation is poor, take corresponding measures to improve in time.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1显示为现有技术中本地终端与服务端的架构示意图。FIG. 1 is a schematic diagram of the architecture of a local terminal and a server in the prior art.
图2显示为本发明一实施例中的实时显示网络状况的方法的流程示意图。FIG. 2 is a schematic flowchart of a method for displaying network conditions in real time according to an embodiment of the present invention.
图3显示为本发明一实施例中的实时显示网络状况的系统的模块示意图。FIG. 3 is a schematic block diagram of a system for displaying network conditions in real time according to an embodiment of the present invention.
图4显示为本发明一实施例中的电子设备的结构示意图。FIG. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
具体实施方式detailed description
以下通过特定的具体实例说明本发明的实施方式,本领域技术人员可由本说明书所揭露的内容轻易地了解本发明的其它优点与功效。本发明还可以通过另外不同的具体实施方式加以实施或应用,本说明书中的各项细节也可以基于不同观点与应用,在没有背离本发明的精神下进行各种修饰或改变。需说明的是,在不冲突的情况下,以下实施例及实施例中的特征可以相互组合。The following describes the embodiments of the present invention through specific specific examples. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that, in the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.
需要说明的是,以下实施例中所提供的图示仅以示意方式说明本发明的基本构想,遂图式中仅显示与本发明中有关的组件而非按照实际实施时的组件数目、形状及尺寸绘制,其实际实施时各组件的型态、数量及比例可为一种随意的改变,且其组件布局型态也可能更为复杂。It should be noted that the illustrations provided in the following embodiments are only a schematic illustration of the basic idea of the present invention, and therefore only the components related to the present invention are shown in the drawings instead of the number, shape and For size drawing, the type, quantity, and proportion of each component can be changed at will in actual implementation, and the component layout type may be more complicated.
图1显示为现有技术中本地终端与服务端之间通信连接的架构图,其中,本地终端可以是用户侧的台式机、便携式电脑、平板电脑、智能手机等设备,服务端可以是物理服务器、云端主机(如向用户侧设备提供虚拟云桌面的虚拟云桌面服务器)等设备。在图1所示的应用场景中,用户侧设备显示虚拟云桌面服务器提供的虚拟云桌面。本地终端与服务端之间的通信协议可以是UDP协议、TCP协议等。FIG. 1 is a structural diagram of a communication connection between a local terminal and a server in the prior art. The local terminal may be a user-side desktop, laptop, tablet, smart phone, or other device, and the server may be a physical server. , Cloud hosts (such as virtual cloud desktop servers that provide virtual cloud desktops to user-side devices) and other devices. In the application scenario shown in FIG. 1, the user-side device displays a virtual cloud desktop provided by the virtual cloud desktop server. The communication protocol between the local terminal and the server may be a UDP protocol, a TCP protocol, or the like.
日常,用户通过网络测速软件可以获取到自己的网络上传速度、下载速度信息,但都无法获得网络延迟等信息。对用户而言,在进入虚拟云桌面服务器时,无法一眼明确自己的网络状况,包括本地终端到虚拟云桌面服务器时的网络延迟、网络链接速度等。至此,用户对于网络带宽和延迟没有一个清晰的了解,导致在访问虚拟云桌面服务器时遇到网络问题,也难以判断出这些问题是带宽导致的还是地域距离导致的。Every day, users can get their own network upload speed and download speed information through the network speed measurement software, but they can't get information such as network delay. For users, when entering the virtual cloud desktop server, they can't know their network conditions at a glance, including the network delay from the local terminal to the virtual cloud desktop server, and the speed of the network link. So far, users do not have a clear understanding of network bandwidth and latency, which leads to network problems when accessing virtual cloud desktop servers, and it is difficult to determine whether these problems are caused by bandwidth or geographical distance.
如图2所示,为弥补这一不足,本实施例提供一种实时显示网络状况的方法,该方法由 服务端(如图1中的虚拟云桌面服务器)负责执行,包括如下步骤:As shown in FIG. 2, in order to make up for this shortcoming, this embodiment provides a method for displaying network conditions in real time. The method is performed by a server (such as the virtual cloud desktop server in FIG. 1), and includes the following steps:
S21:根据本地终端与服务端之间的交互数据,计算用于反应当前网络状况的参数值。S21: Calculate a parameter value used to reflect the current network status according to the interaction data between the local terminal and the server.
具体的,所谓的用于反应当前网络状况的参数值包括:网络延迟值、帧延迟值、网络链接速度值等。Specifically, the so-called parameter values used to reflect the current network conditions include: network delay values, frame delay values, network link speed values, and the like.
对于网络延迟值,本步骤的实现方式具体为:首先,接收由所述本地终端发送的报文,再将所述报文发送至所述本地终端;其次,基于(所述本地终端接收所述报文的时刻-所述本地终端发送所述报文的时刻)/2,计算得到所述网络延迟值。例如:本地终端向虚拟云桌面服务器发送一个带时间戳sendTime的报文,虚拟云桌面服务器收到该报文后直接将其返回给本地终端,本地终端收到该报文后再次记录当前时间receiveTime,将(receiveTimer-sendTime)/2作为计算得到网络延时。For the network delay value, the implementation of this step is specifically: first, receiving a message sent by the local terminal, and then sending the message to the local terminal; second, based on (the local terminal receives the The time of the message-the time at which the local terminal sends the message) / 2, and the network delay value is calculated and obtained. For example: the local terminal sends a message with a timestamp sendTime to the virtual cloud desktop server. After receiving the message, the virtual cloud desktop server directly returns it to the local terminal. After receiving the message, the local terminal records the current time again. Using (receiveTimer-sendTime) / 2 as the calculation to obtain the network delay.
对于帧延迟值,本步骤的实现方式具体为:首先,获取由所述服务端向所述本地终端发送的相邻两帧画面各自的发送时刻与接收时刻;其次,基于所述相邻两帧的接收时间间隔与发送时间间隔的差值,计算得到所述帧延迟值。例如:服务端发送画面前一帧的时间点为S1,本地终端接收该画面帧的时间点为R1,服务端发送画面后一帧的时间点为S2,本地终端接收该画面帧的时间点为R2,则接收时间间隔为(R2-R1),发送时间间隔为(S2-S1),帧延迟值即为|(R2-R1)-(S2-S1)|。For the frame delay value, the implementation of this step is specifically: first, obtaining the respective sending time and receiving time of two adjacent frames of pictures sent by the server to the local terminal; secondly, based on the two adjacent frames A difference between the receiving time interval and the sending time interval, and calculating the frame delay value. For example, the time point when the server sends the previous frame of the picture is S1, the time point when the local terminal receives the picture frame is R1, the time point when the server sends the next frame of the picture is S2, and the time point when the local terminal receives the picture frame is R2, the receiving time interval is (R2-R1), the sending time interval is (S2-S1), and the frame delay value is | (R2-R1)-(S2-S1) |.
对于网络链接速度值,本步骤的实现方式具体为:基于所述本地终端于单位时间内发送的数据总量与接收的数据总量,计算得到所述网络连接速度值。例如:统计t秒内(如t=2)本地终端发送的数据总量m1,统计发送数据总量m1的同时这t秒内本地终端接收的数据总量m2,将(m1+m2)/t作为计算得到的网络链接速度。For the network link speed value, the implementation of this step is specifically: calculating the network connection speed value based on the total amount of data sent and received by the local terminal in a unit time. For example: Count the total amount of data m1 sent by the local terminal within t seconds (such as t = 2), and count the total amount of data received by the local terminal m2 within t seconds while counting the total amount of data sent by m1, and (m1 + m2) / t As the calculated network link speed.
用户通过计算得到的网络延迟值、帧延迟值、网络链接速度值中的一种或多种,即可了解自己的网络状况。若确实是因为网络问题而影响了访问行为,则可通过增加网络带宽或采用相关的工具来进行改善,从而减小延迟时长。The user can understand one's own network status through one or more of the calculated network delay value, frame delay value, and network link speed value. If the access behavior is indeed affected by a network problem, you can improve it by increasing network bandwidth or using related tools to reduce the delay.
S22:查找所述参数值所属预设数值区间所对应的预设显示颜色和/或预设提示词语。S22: Find a preset display color and / or a preset prompt word corresponding to a preset value interval to which the parameter value belongs.
服务端中预先存储有不同类型的参数值的多个预设数值区间,以及每个预设数值区间对应的预设显示颜色和/或预设提示词语,以表1为例,表1展示为服务器为网络延迟值预先设置的两个预设数值区间,分别为“不大于100ms”和“大于100ms”,每个预设数值区间对应一种预设显示颜色,“不大于100ms”对应“绿色”且“大于100ms”对应“红色”,每个预设数值区间对应一个预设提示词语,“不大于100ms”对应“良好”且“大于100ms”对应“较差”等。The server stores multiple preset numerical intervals of different types of parameter values in advance, and the preset display colors and / or preset prompt words corresponding to each preset numerical interval. Table 1 is taken as an example, and Table 1 is shown as The server presets two preset value intervals for the network delay value, which are "not more than 100ms" and "greater than 100ms". Each preset value interval corresponds to a preset display color, and "not more than 100ms" corresponds to "green". "And" greater than 100ms "corresponds to" red ", each preset value interval corresponds to a preset prompt word," not greater than 100ms "corresponds to" good "and" greater than 100ms "corresponds to" bad ".
需要说明的是,本领域技术人员可自行设置预设数值区间的个数及分界值、每个预设数值区间所对应的显示颜色及提示词语等,并不以表1的示例为限。It should be noted that those skilled in the art can set the number and cutoff values of the preset numerical intervals, display colors and prompt words corresponding to each preset numerical interval, and the examples are not limited to those in Table 1.
表1Table 1
预设数值区间Preset value interval 不大于100msNo more than 100ms 大于100msMore than 100ms
预设显示颜色Preset display color 绿色green 红色red
预设提示词语Preset prompt words 良好good 较差Worse
由此,若步骤S21计算的网络延迟值为90ms,则判断90ms属于“不大于100ms”的区间,对应的显示颜色为“绿色”,以表示网络状况良好;若步骤S21计算的网络延迟值为150ms,则判断150ms属于“大于100ms”的区间,对应的显示颜色为“红色”,以表示网络状况较差。Therefore, if the network delay value calculated in step S21 is 90ms, it is judged that 90ms belongs to the interval of "not more than 100ms" and the corresponding display color is "green" to indicate that the network condition is good; if the network delay value calculated in step S21 is good 150ms, it is judged that 150ms belongs to the interval "greater than 100ms", and the corresponding display color is "red" to indicate that the network condition is poor.
对于帧延迟值、网络链接速度值,服务端中也会预存有类似表1的对应关系,于此不再展开详述。至于每个预设数值区间的个数与上下限、对应的显示颜色及提示词语,则可以由用户根据实际情况进行设定。需要说明的是,类似表1的对应关系也可以存在服务端之外,当服务端需要基于该对应关系做出判断时,从外部读取调用。For the frame delay value and the network link speed value, a correspondence relationship similar to Table 1 is pre-stored in the server side, and will not be described in detail here. As for the number and upper and lower limits of each preset numerical interval, corresponding display colors, and prompt words, the user can set them according to actual conditions. It should be noted that a correspondence relationship similar to Table 1 may also exist outside the server. When the server needs to make a judgment based on the correspondence relationship, it can read and call from the outside.
进一步地,在一实施例中,类似表1的对应关系中,除了包括多个预设数值区间,以及每个预设数值区间对应的预设显示颜色、预设提示词语之外,还包括与其对应的预设透明度,如表2所示:Further, in an embodiment, the correspondence relationship similar to Table 1 includes a plurality of preset value intervals, and a preset display color and a preset prompt word corresponding to each preset value interval. The corresponding preset transparency is shown in Table 2:
表2Table 2
预设数值区间Preset value interval 不大于100msNo more than 100ms 大于100msMore than 100ms
预设显示颜色Preset display color 绿色green 红色red
预设提示词语Preset prompt words 良好good 较差Worse
预设透明度Preset transparency 80%80% 30%30%
由此,若步骤S21计算的网络延迟值为90ms,则判断90ms属于“不大于100ms”的区间,对应的显示颜色为“绿色”,对应的透明度为“80%”,以在网络状况良好时不影响其它内容的显示;若步骤S21计算的网络延迟值为150ms,则判断150ms属于“大于100ms”的区间,对应的显示颜色为“红色”,对应的透明度为“30%”,以在网络状况较差时起警示作用。Therefore, if the network delay value calculated in step S21 is 90ms, it is judged that 90ms belongs to the interval of "not more than 100ms", the corresponding display color is "green", and the corresponding transparency is "80%", so that when the network condition is good Does not affect the display of other content; if the network delay value calculated in step S21 is 150ms, it is judged that 150ms belongs to the interval of "greater than 100ms", the corresponding display color is "red", and the corresponding transparency is "30%". It acts as a warning when the condition is poor.
对于帧延迟值、网络链接速度值,服务端中也会预存有类似表2的对应关系,于此不再展开详述。至于每个预设数值区间的个数与上下限、对应的显示颜色和/或提示词语、对应的透明度,则可以由用户根据实际情况进行设定。需要说明的是,类似表2的对应关系也可以存在服务端之外,当服务端需要基于该对应关系做出判断时,从外部读取调用。For the frame delay value and the network link speed value, a correspondence relationship similar to Table 2 is also pre-stored in the server, which will not be described in detail here. As for the number and upper and lower limits of each preset numerical interval, corresponding display colors and / or prompt words, and corresponding transparency, the user can set them according to actual conditions. It should be noted that a correspondence relationship similar to Table 2 may also exist outside the server. When the server needs to make a judgment based on the correspondence relationship, it can read and call from the outside.
表1和表2中的具体数值仅作为示例进行说明,不应被视为对本发明的限制。The specific numerical values in Tables 1 and 2 are merely illustrative, and should not be considered as limiting the present invention.
S23:将所述参数值、所述预设显示颜色和/或所述预设提示词语显示于所述本地终端的界面。S23: Display the parameter value, the preset display color, and / or the preset prompt word on an interface of the local terminal.
详细而言,在表1所展示的示例下,虚拟云桌面服务器在虚拟云桌面中显示参数值、对应的预设显示颜色和/或预设提示词语;在表2所展示的示例下,虚拟云桌面服务器在虚拟云桌面中以相应的预设透明度显示参数值及其对应的预设显示颜色和/或预设提示词语。In detail, in the example shown in Table 1, the virtual cloud desktop server displays parameter values, corresponding preset display colors, and / or preset prompt words in the virtual cloud desktop; in the example shown in Table 2, the virtual The cloud desktop server displays the parameter values and their corresponding preset display colors and / or preset prompt words in the virtual cloud desktop with corresponding preset transparency.
较佳的,虚拟云桌面中显示有悬浮界面,悬浮界面为叠加在本地终端的界面上、能够在控制下实现指定操作的悬浮界面,其中,指定操作包括通过鼠标、键盘或触摸等方式在本地终端界面上实现的移动、停止、淡化、隐藏等相应的操作。悬浮界面包括用于显示当前网络延迟值、帧延迟值、网络链接速度值的第一显示区域、以及用于显示相应颜色的第二显示区域。本步骤将实时参数值以相应的颜色、透明度显示于对应的显示区域中。此外,悬浮界面的样式优选为悬浮球,当然,也可以是其它规则或非规则的形状。在一较佳的实施例中,悬浮界面以与参数值对应的预设透明度进行显示。Preferably, a floating interface is displayed in the virtual cloud desktop. The floating interface is a floating interface that is superimposed on the interface of the local terminal and can achieve specified operations under control. Among them, the specified operations include locally using a mouse, keyboard, or touch. Corresponding operations such as move, stop, fade, hide on the terminal interface. The floating interface includes a first display area for displaying a current network delay value, a frame delay value, and a network link speed value, and a second display area for displaying a corresponding color. In this step, real-time parameter values are displayed in corresponding display areas with corresponding colors and transparency. In addition, the style of the levitation interface is preferably a levitation ball, of course, it may also be other regular or irregular shapes. In a preferred embodiment, the floating interface is displayed with a preset transparency corresponding to the parameter value.
需要说明的是,在实际应用中,步骤S21~S23以预设时间间隔(如2s)重复执行,实时计算参数值并刷新显示内容,从而达到反馈网络实时情况的效果。It should be noted that, in practical applications, steps S21 to S23 are repeatedly performed at preset time intervals (such as 2s), and the parameter values are calculated in real time and the display content is refreshed, so as to achieve the effect of feedback to the real-time situation of the network.
实现上述各方法实施例的全部或部分步骤可以通过计算机程序相关的硬件来完成。基于这样的理解,本发明还提供一种计算机程序产品,包括一个或多个计算机指令。所述计算机指令可以存储在计算机可读存储介质中。所述计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(如:软盘、硬盘、磁带)、光介质(如:DVD)、或者半导体介质(如:固态硬盘Solid State Disk(SSD))等。All or part of the steps for implementing the foregoing method embodiments may be completed by computer program related hardware. Based on this understanding, the present invention also provides a computer program product including one or more computer instructions. The computer instructions may be stored in a computer-readable storage medium. The computer-readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a server, a data center, and the like that includes one or more available medium integration. The usable medium may be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state hard disk (SSD)).
参阅图3,本实施例提供一种实时显示网络状况的系统30,作为一款软件搭载于服务端,以在运行时执行前述方法实施例所述的实时显示网络状况的方法。由于本系统实施例的技术原理与前述方法实施例的技术原理相似,因而不再对同样的技术细节做重复性赘述。Referring to FIG. 3, this embodiment provides a system 30 for displaying network conditions in real time, as a piece of software installed on a server to execute the method for displaying network conditions in real time as described in the foregoing method embodiment when running. Since the technical principle of this system embodiment is similar to the technical principle of the foregoing method embodiments, the same technical details will not be repeated repeatedly.
本实施例的实时显示网络状况的系统30具体包括:参数计算模块31、对应查找模块32、参数显示模块33。参数计算模块31用于执行前述方法实施例介绍的步骤S21,对应查找模块32用于执行前述方法实施例介绍的步骤S22,参数显示模块33用于执行前述方法实施例介绍的步骤S23。The system 30 for displaying the network status in real time in this embodiment specifically includes a parameter calculation module 31, a corresponding search module 32, and a parameter display module 33. The parameter calculation module 31 is configured to perform step S21 described in the foregoing method embodiment, the corresponding search module 32 is configured to perform step S22 described in the foregoing method embodiment, and the parameter display module 33 is configured to perform step S23 described in the foregoing method embodiment.
本领域技术人员应当理解,图3实施例中的各个模块的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个或多个物理实体上。且这些模块可以全部以软件通过处理元件调用的形式实现,也可以全部以硬件的形式实现,还可以部分模块通过处理元 件调用软件的形式实现,部分模块通过硬件的形式实现。例如,参数计算模块31可以为单独设立的处理元件,也可以集成在某一个芯片中实现,此外,也可以以程序代码的形式存储于存储器中,由某一个处理元件调用并执行参数计算模块31的功能。其它模块的实现与之类似。这里所述的处理元件可以是一种集成电路,具有信号的处理能力。在实现过程中,上述方法的各步骤或以上各个模块可以通过处理器元件中的硬件的集成逻辑电路或者软件形式的指令完成。Those skilled in the art should understand that the division of each module in the embodiment of FIG. 3 is only a division of logical functions, and may be fully or partially integrated into one or more physical entities during actual implementation. And these modules can all be implemented in the form of software calling through processing elements or all in hardware. Some modules can also be implemented in calling software through processing elements, and some modules can be implemented in hardware. For example, the parameter calculation module 31 may be a separately established processing element, or it may be integrated into a certain chip for implementation. In addition, the parameter calculation module 31 may also be stored in the form of program code in a memory, and may be called and executed by a certain processing element. Functions. The implementation of other modules is similar. The processing element described herein may be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each of the above modules may be completed by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
参阅图4,本实施例提供一种电子设备40,电子设备40可以是台式机、便携式电脑、智能手机等设备。详细的,电子设备40至少包括通过总线41连接的:存储器42、处理器43、显示器44,其中,存储器42用于存储计算机程序,处理器43用于执行存储器42存储的计算机程序,以执行前述方法实施例中的全部或部分步骤。Referring to FIG. 4, an electronic device 40 is provided in this embodiment. The electronic device 40 may be a desktop computer, a portable computer, a smart phone, or the like. In detail, the electronic device 40 includes at least: a memory 42, a processor 43, and a display 44 connected through the bus 41. The memory 42 is used to store a computer program, and the processor 43 is used to execute the computer program stored in the memory 42 to execute the foregoing. All or part of the steps in a method embodiment.
上述提到的系统总线可以是外设部件互连标准(Peripheral Pomponent Interconnect,简称PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,简称EISA)总线等。该系统总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。通信接口用于实现数据库访问装置与其它设备(例如客户端、读写库和只读库)之间的通信。存储器可能包含随机存取存储器(Random Access Memory,简称RAM),也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。The system bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The system bus can be divided into address bus, data bus, control bus and so on. For ease of representation, the figure only uses a thick line, but it does not mean that there is only one bus or one type of bus. The communication interface is used to implement communication between the database access device and other devices (such as a client, a read-write library, and a read-only library). The memory may include Random Access Memory (RAM), or may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(Digital Signal Processing,简称DSP)、专用集成电路(Application Specific Integrated Circuit,简称ASIC)、现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above processor may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc .; it may also be a Digital Signal Processor (DSP) Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
综上所述,本发明的实时显示网络状况的方法、系统、存储介质、及电子设备,通过数值以及颜色变化显示,方便用户清楚明确地了解其网络状态(网络是否稳定或者波动等),有助于判断是否是由于网络原因而影响了访问操作,从而决定是否改善网络情况或采用相关的工具来处理网络不通畅导致的操作问题。所以,本发明有效克服了现有技术中的种种缺点而具高度产业利用价值。In summary, the method, system, storage medium, and electronic device for displaying the network status in real time according to the present invention display numerical values and color changes to facilitate users to clearly and clearly understand their network status (whether the network is stable or fluctuating, etc.). It helps to determine whether the access operation is affected by network reasons, and then decides whether to improve the network situation or use related tools to deal with the operation problems caused by the unsmooth network. Therefore, the present invention effectively overcomes various shortcomings in the prior art and has high industrial utilization value.
上述实施例仅例示性说明本发明的原理及其功效,而非用于限制本发明。任何熟悉此技术的人士皆可在不违背本发明的精神及范畴下,对上述实施例进行修饰或改变。因此,举凡所属技术领域中具有通常知识者在未脱离本发明所揭示的精神与技术思想下所完成的一切等 效修饰或改变,仍应由本发明的权利要求所涵盖。The above-mentioned embodiments merely illustrate the principle of the present invention and its effects, but are not intended to limit the present invention. Anyone familiar with this technology can modify or change the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by a person having ordinary knowledge in the technical field without departing from the spirit and technical ideas disclosed in the present invention should still be covered by the claims of the present invention.

Claims (10)

  1. 一种实时显示网络状况的方法,其特征在于,应用于与本地终端通信连接的服务端;所述方法包括:A method for displaying network conditions in real time, which is characterized in that it is applied to a server that is in communication connection with a local terminal; the method includes:
    根据所述本地终端与所述服务端之间的交互数据,计算用于反应当前网络状况的参数值;Calculating parameter values for reflecting current network conditions according to interaction data between the local terminal and the server;
    查找所述参数值所属预设数值区间所对应的预设显示颜色和/或预设提示词语;Find a preset display color and / or a preset prompt word corresponding to a preset numerical range to which the parameter value belongs;
    将所述参数值、所述预设显示颜色和/或所述预设提示词语显示于所述本地终端的界面。Displaying the parameter value, the preset display color, and / or the preset prompt word on an interface of the local terminal.
  2. 根据权利要求1所述的方法,其特征在于,还包括:The method according to claim 1, further comprising:
    查找所述参数值所属预设数值区间所对应的预设透明度;Find a preset transparency corresponding to a preset numerical range to which the parameter value belongs;
    将所述参数值、所述预设显示颜色和/或所述预设提示词语以所述预设透明度显示于所述本地终端的界面。Displaying the parameter value, the preset display color, and / or the preset prompt word on an interface of the local terminal with the preset transparency.
  3. 根据权利要求1所述的方法,其特征在于,所述用于反应当前网络状况的参数值包括:The method according to claim 1, wherein the parameter value for reflecting the current network condition comprises:
    网络延迟值;所述根据所述本地终端与所述服务端之间的交互数据计算所述网络延迟值的实现方式包括:Network delay value; the implementation manner of calculating the network delay value based on the interaction data between the local terminal and the server includes:
    接收由所述本地终端发送的报文,再将所述报文发送至所述本地终端;Receiving a message sent by the local terminal, and sending the message to the local terminal;
    基于(所述本地终端接收所述报文的时刻-所述本地终端发送所述报文的时刻)/2,计算得到所述网络延迟值。Based on (the time when the local terminal receives the message-the time when the local terminal sends the message) / 2, the network delay value is calculated and obtained.
  4. 根据权利要求1所述的方法,其特征在于,所述用于反应当前网络状况的参数值包括:The method according to claim 1, wherein the parameter value for reflecting the current network condition comprises:
    帧延迟值;所述根据所述本地终端与所述服务端之间的交互数据计算所述帧延迟值的实现方式包括:Frame delay value; the implementation manner of calculating the frame delay value based on the interaction data between the local terminal and the server includes:
    获取由所述服务端向所述本地终端发送的相邻两帧画面各自的发送时刻与接收时刻;Obtaining the respective sending time and receiving time of two adjacent frames of pictures sent by the server to the local terminal;
    基于所述相邻两帧的接收时间间隔与发送时间间隔的差值,计算得到所述帧延迟值。Based on the difference between the reception time interval and the transmission time interval of the two adjacent frames, the frame delay value is calculated.
  5. 根据权利要求1所述的方法,其特征在于,所述用于反应当前网络状况的参数值包括:The method according to claim 1, wherein the parameter value for reflecting the current network condition comprises:
    网络链接速度值;所述根据所述本地终端与所述服务端之间的交互数据计算所述网络链接速度值的实现方式包括:Network link speed value; the implementation of calculating the network link speed value based on the interaction data between the local terminal and the server includes:
    基于所述本地终端于单位时间内发送的数据总量与接收的数据总量,计算得到所述网络连接速度值。The network connection speed value is calculated based on the total amount of data sent and received by the local terminal in a unit time.
  6. 根据权利要求1所述的方法,其特征在于,所述服务端包括:向所述本地终端提供虚拟 云桌面的云端主机;所述虚拟云桌面中包括悬浮界面;所述参数值和对应的预设显示颜色显示于所述悬浮界面。The method according to claim 1, wherein the server comprises: a cloud host that provides a virtual cloud desktop to the local terminal; the virtual cloud desktop includes a floating interface; the parameter values and corresponding pre- It is assumed that a display color is displayed on the floating interface.
  7. 根据权利要求6所述的方法,其特征在于,还包括:The method according to claim 6, further comprising:
    查找所述参数值所属预设数值区间所对应的预设透明度;Find a preset transparency corresponding to a preset numerical range to which the parameter value belongs;
    将所述参数值、对应的预设显示颜色和/或预设提示词语,以及所述悬浮界面以所述预设透明度显示于所述本地终端的界面。Displaying the parameter value, the corresponding preset display color and / or preset prompt word, and the floating interface on the interface of the local terminal with the preset transparency.
  8. 一种实时显示网络状况的系统,其特征在于,应用于与本地终端通信连接的服务端;所述系统包括:A system for displaying network conditions in real time, which is characterized in that it is applied to a server that communicates with a local terminal; the system includes:
    参数计算模块,用于根据所述本地终端与所述服务端之间的交互数据,计算用于反应当前网络状况的参数值;A parameter calculation module, configured to calculate a parameter value for reflecting a current network condition according to the interaction data between the local terminal and the server;
    对应查找模块,用于查找所述参数值所属预设数值区间所对应的预设显示颜色和/或预设提示词语;A corresponding search module, configured to find a preset display color and / or a preset prompt word corresponding to a preset numerical range to which the parameter value belongs;
    参数显示模块,用于将所述参数值、所述预设显示颜色和/或所述预设提示词语显示于所述本地终端的界面。A parameter display module is configured to display the parameter value, the preset display color, and / or the preset prompt word on an interface of the local terminal.
  9. 一种计算机可读存储介质,其中存储有计算机程序,其特征在于,所述计算机程序被处理器加载执行时,实现如权利要求1至7中任一所述的实时显示网络状况的方法。A computer-readable storage medium having stored therein a computer program, wherein when the computer program is loaded and executed by a processor, the method for real-time displaying a network condition according to any one of claims 1 to 7 is implemented.
  10. 一种电子设备,其特征在于,包括:处理器及存储器;其中,An electronic device, comprising: a processor and a memory; wherein,
    所述存储器用于存储计算机程序;The memory is used to store a computer program;
    所述处理器用于加载执行所述计算机程序,以使所述电子设备执行如权利要求1至7中任一所述的实时显示网络状况的方法。The processor is configured to load and execute the computer program, so that the electronic device executes the method for displaying network conditions in real time according to any one of claims 1 to 7.
PCT/CN2019/086083 2018-06-13 2019-05-09 Method and system for displaying network status in real time, and storage medium and electronic device WO2019237856A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201810609944.7 2018-06-13
CN201810609944.7A CN108600395A (en) 2018-06-13 2018-06-13 A kind of device and method for reminding the variation of user's current network
CN201910238337.9 2019-03-27
CN201910238337 2019-03-27

Publications (1)

Publication Number Publication Date
WO2019237856A1 true WO2019237856A1 (en) 2019-12-19

Family

ID=67320983

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/086083 WO2019237856A1 (en) 2018-06-13 2019-05-09 Method and system for displaying network status in real time, and storage medium and electronic device

Country Status (2)

Country Link
CN (1) CN110061892B (en)
WO (1) WO2019237856A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113521729A (en) * 2021-07-02 2021-10-22 咪咕互动娱乐有限公司 Cloud game delay detection method, server, client, system and medium
CN115086194A (en) * 2022-05-20 2022-09-20 阿里巴巴(中国)有限公司 Data transmission method for cloud application, computing equipment and computer storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112995739A (en) * 2019-12-13 2021-06-18 中兴通讯股份有限公司 Desktop display method and device, computer readable storage medium and electronic device
CN111538447A (en) * 2020-04-20 2020-08-14 北京小米移动软件有限公司 Information display method, device, equipment and storage medium
CN112057846B (en) * 2020-09-04 2022-09-20 厦门雅基软件有限公司 Interaction method, device, equipment and storage medium for cloud game service scheduling

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140164558A1 (en) * 2012-12-07 2014-06-12 Korea Electronics Technology Institute Method for transmitting contents in a smart home environment
CN106100924A (en) * 2016-06-15 2016-11-09 成都科来软件有限公司 The method and system that a kind of service logic and performance state represent simultaneously
CN106130755A (en) * 2016-06-15 2016-11-16 成都科来软件有限公司 The running status of a kind of application system and main frame, network represents method and system
CN106899449A (en) * 2017-01-22 2017-06-27 北京奇艺世纪科技有限公司 The methods of exhibiting and device of network round-trip time delay
CN108600395A (en) * 2018-06-13 2018-09-28 上海达龙信息科技有限公司 A kind of device and method for reminding the variation of user's current network

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447938A (en) * 2008-12-08 2009-06-03 深圳华为通信技术有限公司 Network service quality processing method, device and system
CN103279265B (en) * 2013-05-07 2016-08-17 富泰华工业(深圳)有限公司 The generation method at the terminal at display networks interface, system and interface
CN104244466B (en) * 2014-09-28 2018-03-16 宇龙计算机通信科技(深圳)有限公司 A kind of terminal and network state display methods
CN105323121B (en) * 2015-11-27 2019-08-16 上海斐讯数据通信技术有限公司 A kind of Network status detection method and device
CN107992252B (en) * 2017-11-28 2020-12-22 网易(杭州)网络有限公司 Information prompting method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140164558A1 (en) * 2012-12-07 2014-06-12 Korea Electronics Technology Institute Method for transmitting contents in a smart home environment
CN106100924A (en) * 2016-06-15 2016-11-09 成都科来软件有限公司 The method and system that a kind of service logic and performance state represent simultaneously
CN106130755A (en) * 2016-06-15 2016-11-16 成都科来软件有限公司 The running status of a kind of application system and main frame, network represents method and system
CN106899449A (en) * 2017-01-22 2017-06-27 北京奇艺世纪科技有限公司 The methods of exhibiting and device of network round-trip time delay
CN108600395A (en) * 2018-06-13 2018-09-28 上海达龙信息科技有限公司 A kind of device and method for reminding the variation of user's current network

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113521729A (en) * 2021-07-02 2021-10-22 咪咕互动娱乐有限公司 Cloud game delay detection method, server, client, system and medium
CN113521729B (en) * 2021-07-02 2023-10-20 咪咕互动娱乐有限公司 Cloud game delay detection method, server, client, system and medium
CN115086194A (en) * 2022-05-20 2022-09-20 阿里巴巴(中国)有限公司 Data transmission method for cloud application, computing equipment and computer storage medium
WO2023221947A1 (en) * 2022-05-20 2023-11-23 阿里巴巴(中国)有限公司 Data transmission method for cloud application, and computing device and computer storage medium
CN115086194B (en) * 2022-05-20 2024-02-02 阿里巴巴(中国)有限公司 Cloud application data transmission method, computing device and computer storage medium

Also Published As

Publication number Publication date
CN110061892B (en) 2023-07-21
CN110061892A (en) 2019-07-26

Similar Documents

Publication Publication Date Title
WO2019237856A1 (en) Method and system for displaying network status in real time, and storage medium and electronic device
US11411825B2 (en) In intelligent autoscale of services
US11915169B2 (en) Method for determining amount of time spent on a task and estimating amount of time required to complete the task
WO2021139177A1 (en) Image augmentation method and apparatus, computer device, and storage medium
US11670026B2 (en) Conditional modification of augmented reality object
WO2021184589A1 (en) Flow scheduling method and device, server, and storage medium
WO2022213538A1 (en) Method and apparatus for establishing simulation test platform, and electronic device
WO2021258512A1 (en) Data aggregation processing apparatus and method, and storage medium
CN113037795B (en) Thin terminal system and processing method thereof
CN111078695B (en) Method and device for calculating association relation of metadata in enterprise
WO2016127796A1 (en) Information interaction method and server
US20240214473A1 (en) Systems and methods of communicating electronic data transaction updates to client computer systems
US20240331038A1 (en) Systems and methods for non-intrusive monitoring of intra-process latency of application
WO2022057727A1 (en) Network quality determination method and apparatus, electronic device and readable storage medium
US10979848B1 (en) Method for identifying a device using attributes and location signatures from the device
CN109324906A (en) The method of selection processing node in cloud computing platform
US12105717B2 (en) Method and device for processing information by batch-stream fusion, and storage medium
WO2023098634A1 (en) Information processing method and apparatus
CN110020129B (en) Click rate correction method, prediction method, device, computing equipment and storage medium
WO2022095775A1 (en) Message notification display method, apparatus and device
CN115567602A (en) CDN node back-to-source method, device and computer readable storage medium
TWI733028B (en) Method, device and electronic equipment for determining user importance
CN114791905A (en) Resource record storage method and device, storage medium and electronic equipment
WO2020135143A1 (en) Application performance management information display method and apparatus, device and storage medium
US9622165B2 (en) Methods and systems for connecting a mobile device to a network

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: 19819428

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: 19819428

Country of ref document: EP

Kind code of ref document: A1