CN110233771A - A kind of judgment method and device of the network link environment based on spice agreement - Google Patents

A kind of judgment method and device of the network link environment based on spice agreement Download PDF

Info

Publication number
CN110233771A
CN110233771A CN201910301448.XA CN201910301448A CN110233771A CN 110233771 A CN110233771 A CN 110233771A CN 201910301448 A CN201910301448 A CN 201910301448A CN 110233771 A CN110233771 A CN 110233771A
Authority
CN
China
Prior art keywords
mouse
cloud host
mode
network link
message
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.)
Granted
Application number
CN201910301448.XA
Other languages
Chinese (zh)
Other versions
CN110233771B (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.)
Yangtze Optical Fibre and Cable Co Ltd
Original Assignee
Yangtze Optical Fibre and Cable 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 Yangtze Optical Fibre and Cable Co Ltd filed Critical Yangtze Optical Fibre and Cable Co Ltd
Priority to CN201910301448.XA priority Critical patent/CN110233771B/en
Publication of CN110233771A publication Critical patent/CN110233771A/en
Application granted granted Critical
Publication of CN110233771B publication Critical patent/CN110233771B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/0823Errors, e.g. transmission errors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/03Protocol definition or specification 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses the judgment methods and device of a kind of network link environment based on spice agreement, method is the following steps are included: 1) client logs in cloud host, it establishes and is connected to the network with cloud host, establish mouse channel, it is used for transmission mouse related data, and obtains the dimension information of cloud host screen;2) data for monitoring mouse channel in real time, obtain and respond the relevant operation of mouse;3) according to the mouse related data of acquisition, judge whether mouse message is abnormal;If the position of the transverse and longitudinal coordinate of mouse is in the size range of cloud host screen, at this point, the parameter of recording responses, judges that mouse message is normal;If the position of the transverse and longitudinal coordinate of mouse not in screen ranges, judges mouse message for exception;4) according to mouse exception information, judge network link environment.The method of the present invention utilizes spice agreement mouse channel, obtains mouse message to judge the link state of client Yu cloud host, judges client to cloud host link failure, judging result is accurately and timely.

Description

A kind of judgment method and device of the network link environment based on spice agreement
Technical field
The present invention relates to computer cloud more particularly to a kind of judgements of the network link environment based on spice agreement Method and apparatus.
Background technique
Spice agreement framework supports two kinds of mouse modes: client mouse mode and server end mouse mode.This mould Formula can be with switching at runtime, and can coordinate between clients and servers.Client window when the user clicks, cloud desktop obtain Mouse focus is taken, mouse enters Server Mode, and FTP client FTP mouse is hidden, and server end controls the position of mouse simultaneously And show, and when client loses focus or mouse removal cloud desktop, mouse is switched to client mode, mouse Shift position and the displaying system where client determine.
Client is connect with cloud desktop by spice agreement, and spice agreement does not judge machine to network link environment System, so client can not detect that cloud desktop state, cloud desk interface can not timely update and use when network environment mistake Family can not operate cloud desktop.
Summary of the invention
The technical problem to be solved in the present invention is that for the defects in the prior art, providing a kind of based on spice agreement Network link environment judgment method and device.
The technical solution adopted by the present invention to solve the technical problems is: a kind of network link ring based on spice agreement The judgment method in border, comprising the following steps:
1) client logs in cloud host, establishes and is connected to the network with cloud host, establishes mouse channel, is used for transmission mouse correlation Data, and obtain the dimension information of cloud host screen;The mouse related data includes: the moving coordinate value and mouse of mouse are pressed The key assignments of key;
2) data for monitoring mouse channel in real time, obtain and respond the relevant operation of mouse;Mouse performance mode is divided into visitor Family end mode and server mode, spice agreement supports mouse performance mode switching at runtime, when mouse is moved into cloud host window When, mouse mode is switched to server mode, and mouse removes cloud host, and mouse mode is switched to client mode;
3) according to the mouse related data obtained under server mode, judge whether mouse message is abnormal;If the cross of mouse The position of ordinate is in the size range of cloud host screen, at this point, the parameter of recording responses, judges that mouse message is normal; If the position of the transverse and longitudinal coordinate of mouse not in screen ranges, judges mouse message for exception;
4) according to mouse exception information, judge network link environment.
According to the above scheme, in the step 4), judge that network link environment is specific as follows: at interval of the sampling time according to mouse It whether abnormal marks information, judges whether network is abnormal, and frequency of abnormity threshold value N is arranged, initial frequency of abnormity T=0 is arranged, works as mouse When status information is normal, T is reset to 0;Otherwise T is incremented by 1, when frequency of abnormity T is more than threshold value N, judges network link ring Border is abnormal.
The present invention also provides a kind of judgment means of network link environment based on spice agreement, comprising:
Path setup module logs in cloud host for client, establishes and be connected to the network with cloud host, and foundation is used for transmission mouse The mouse channel of related data is marked, and obtains the dimension information of cloud host screen;The mouse related data includes: the shifting of mouse The key assignments of moving axes value and mousebutton;
Channel data monitors module and obtains and respond the relevant operation of mouse for monitoring the data in mouse channel in real time; Mouse performance mode is divided into client mode and server mode, and spice agreement supports mouse performance mode switching at runtime, works as mouse When mark is moved into cloud host window, mouse mode is switched to server mode, and mouse removes cloud host, and mouse mode is switched to visitor Family end mode;
Mouse message judgment module, for judging mouse message according to the mouse related data obtained under server mode It is whether abnormal;If the position of the transverse and longitudinal coordinate of mouse is in the size range of cloud host screen, at this point, the ginseng of recording responses Number, judges that mouse message is normal;If the position of the transverse and longitudinal coordinate of mouse not in screen ranges, judges mouse message for exception;
Network link environment judgment module, for judging network link environment according to mouse exception information.
According to the above scheme, in the network link environment judgment module, judge that network link environment is specific as follows: at interval of Whether the sampling time is abnormal according to mouse message, judges whether network is abnormal, and frequency of abnormity threshold value N is arranged, and is arranged initial abnormal T is reset to 0 when mouse state information is normal by number T=0;Otherwise T is incremented by 1, when frequency of abnormity T is more than threshold value N, Judge network link environmental abnormality.
The beneficial effect comprise that: the method for the present invention utilizes spice agreement mouse channel, obtains mouse message The link state for judging client Yu cloud host judges client to cloud host link failure, and judging result is accurately and timely.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
Fig. 1 is the method flow diagram of the embodiment of the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to embodiments, to the present invention It is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, is not used to limit The fixed present invention.
As shown in Figure 1, a kind of judgment method of the network link environment based on spice agreement, comprising the following steps:
1) client logs in cloud host, establishes and is connected to the network with cloud host, establishes mouse channel, is used for transmission mouse correlation Data, and obtain the dimension information of cloud host screen;The mouse related data includes: the moving coordinate value and mouse of mouse are pressed The key assignments of key;
Mouse channel is one of the plurality of passages by establishing after SPICE protocol connection distance host success, the channel Value transmission mouse data;
2) data for monitoring mouse channel in real time, obtain and respond the relevant operation of mouse;Mouse performance mode is divided into visitor Family end mode and server mode, spice agreement supports mouse performance mode switching at runtime, when mouse is moved into cloud host window When, mouse mode is switched to server mode, and mouse removes cloud host, and mouse mode is switched to client mode;
Under server mode, the operation of mouse and information are sent to cloud host (virtual machine), are converted to virtual machine system Coordinate-system;Under client mode, mouse action and information are shown in FTP client FTP, use the coordinate body of FTP client FTP System.
3) according to the mouse related data obtained under server mode, judge whether mouse message is abnormal;If the cross of mouse The position of ordinate is in the size range of cloud host screen, at this point, the parameter of recording responses, judges that mouse message is normal; If the position of the transverse and longitudinal coordinate of mouse not in screen ranges, judges mouse message for exception;
4) according to mouse exception information, judge network link environment;
Judge network link environment, it is different according to mouse at interval of the sampling time in order to reduce network jitter bring error Normal information judges whether network is abnormal, setting frequency of abnormity threshold value N (N >=2), initial frequency of abnormity T=0 is set, mouse is worked as When status information is normal, T is reset to 0, T is otherwise incremented by 1, when frequency of abnormity T is more than threshold value N, i.e., continuous T time detects Mouse is abnormal, that is, thinks network link environmental abnormality.
When client is interacted with cloud host, mouse message always dynamically updates, and judges mouse abnormal conditions, to reach prison Control the purpose of network link environment.
5) step 2) is repeated to 4), monitors cloud desktop environment network link status in real time.
For the present invention during realization, spice protocol definition one group of protocol message accesses, controls and receive client The operation of mouse device, and transmission output is replied, while defining mouse network channel, the relevant message of transmission mouse utilizes Spice agreement mouse channel obtains mouse message to judge the link state of client Yu cloud host, judges client to cloud master Machine link failure, judging result is accurately and timely.
According to above method, the judgment means of the corresponding network link environment based on spice agreement are easy to get, are wrapped It includes:
Path setup module logs in cloud host for client, establishes and be connected to the network with cloud host, and foundation is used for transmission mouse The mouse channel of related data is marked, and obtains the dimension information of cloud host screen;The mouse related data includes: the shifting of mouse The key assignments of moving axes value and mousebutton;
Channel data monitors module and obtains and respond the relevant operation of mouse for monitoring the data in mouse channel in real time; Mouse performance mode is divided into client mode and server mode, and spice agreement supports mouse performance mode switching at runtime, works as mouse When mark is moved into cloud host window, mouse mode is switched to server mode, and mouse removes cloud host, and mouse mode is switched to visitor Family end mode;
Mouse message judgment module, for judging mouse message according to the mouse related data obtained under server mode It is whether abnormal;If the position of the transverse and longitudinal coordinate of mouse is in the size range of cloud host screen, at this point, the ginseng of recording responses Number, judges that mouse message is normal;If the position of the transverse and longitudinal coordinate of mouse not in screen ranges, judges mouse message for exception;
Network link environment judgment module, for judging network link environment according to mouse exception information.
In network link environment judgment module, judge that network link environment is specific as follows: at interval of the sampling time according to mouse It whether abnormal marks information, judges whether network is abnormal, and frequency of abnormity threshold value N is arranged, initial frequency of abnormity T=0 is arranged, works as mouse When status information is normal, T is reset to 0;Otherwise T is incremented by 1, when frequency of abnormity T is more than threshold value N, judges network link ring Border is abnormal.
It should be understood that for those of ordinary skills, it can be modified or changed according to the above description, And all these modifications and variations should all belong to the protection domain of appended claims of the present invention.

Claims (4)

1. a kind of judgment method of the network link environment based on spice agreement, which comprises the following steps:
1) client logs in cloud host, establishes and is connected to the network with cloud host, establishes mouse channel, be used for transmission mouse dependency number According to, and obtain the dimension information of cloud host screen;The mouse related data includes: the moving coordinate value and mousebutton of mouse Key assignments;
2) data for monitoring mouse channel in real time, obtain and respond the relevant operation of mouse;Mouse performance mode is divided into client Mode and server mode, spice agreement supports mouse performance mode switching at runtime, when mouse is moved into cloud host window, Mouse mode is switched to server mode, and mouse removes cloud host, and mouse mode is switched to client mode;
3) according to the mouse related data obtained under server mode, judge whether mouse message is abnormal;If the transverse and longitudinal of mouse is sat Target position is in the size range of cloud host screen, at this point, the parameter of recording responses, judges that mouse message is normal;If mouse The position of target transverse and longitudinal coordinate judges mouse message for exception not in screen ranges;
4) according to mouse exception information, judge network link environment.
2. the judgment method of the network link environment according to claim 1 based on spice agreement, which is characterized in that institute It states in step 4), judges that network link environment is specific as follows: it is whether abnormal according to mouse message at interval of the sampling time, judge net Whether network is abnormal, and frequency of abnormity threshold value N is arranged, initial frequency of abnormity T=0 is arranged, when mouse state information is normal, by T weight It is set to 0;Otherwise T is incremented by 1, when frequency of abnormity T is more than threshold value N, judges network link environmental abnormality.
3. a kind of judgment means of the network link environment based on spice agreement characterized by comprising
Path setup module logs in cloud host for client, establishes and be connected to the network with cloud host, and foundation is used for transmission mouse phase The mouse channel of data is closed, and obtains the dimension information of cloud host screen;The mouse related data includes: the mobile seat of mouse The key assignments of scale value and mousebutton;
Channel data monitors module and obtains and respond the relevant operation of mouse for monitoring the data in mouse channel in real time;Mouse Operating mode is divided into client mode and server mode, and spice agreement supports mouse performance mode switching at runtime, when mouse moves When entering to cloud host window, mouse mode is switched to server mode, and mouse removes cloud host, and mouse mode is switched to client Mode;
Mouse message judgment module, for whether judging mouse message according to the mouse related data obtained under server mode It is abnormal;If the position of the transverse and longitudinal coordinate of mouse is in the size range of cloud host screen, at this point, the parameter of recording responses, sentences Disconnected mouse message is normal;If the position of the transverse and longitudinal coordinate of mouse not in screen ranges, judges mouse message for exception;
Network link environment judgment module, for judging network link environment according to mouse exception information.
4. the judgment means of the network link environment according to claim 3 based on spice agreement, which is characterized in that institute It states in network link environment judgment module, judges that network link environment is specific as follows: at interval of the sampling time according to mouse message It is whether abnormal, judge whether network is abnormal, and frequency of abnormity threshold value N is arranged, initial frequency of abnormity T=0 is arranged, when mouse state is believed When ceasing normal, T is reset to 0;Otherwise T is incremented by 1, when frequency of abnormity T is more than threshold value N, judges network link environmental abnormality.
CN201910301448.XA 2019-04-15 2019-04-15 Method and device for judging network link environment based on spice protocol Active CN110233771B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910301448.XA CN110233771B (en) 2019-04-15 2019-04-15 Method and device for judging network link environment based on spice protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910301448.XA CN110233771B (en) 2019-04-15 2019-04-15 Method and device for judging network link environment based on spice protocol

Publications (2)

Publication Number Publication Date
CN110233771A true CN110233771A (en) 2019-09-13
CN110233771B CN110233771B (en) 2022-05-24

Family

ID=67860192

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910301448.XA Active CN110233771B (en) 2019-04-15 2019-04-15 Method and device for judging network link environment based on spice protocol

Country Status (1)

Country Link
CN (1) CN110233771B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104808810A (en) * 2015-05-08 2015-07-29 三星电子(中国)研发中心 Method and mobile terminal for performing mouse input
US20150309694A1 (en) * 2014-04-28 2015-10-29 Fujitsu Component Limited Computer readable medium, relay device and information processing device
CN105306303A (en) * 2015-11-09 2016-02-03 上海斐讯数据通信技术有限公司 Fault real-time monitoring system based on terminal network device, and terminal network device
CN108989845A (en) * 2018-07-03 2018-12-11 凯尔博特信息科技(昆山)有限公司 A kind of video transmission method based on SPICE protocol

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150309694A1 (en) * 2014-04-28 2015-10-29 Fujitsu Component Limited Computer readable medium, relay device and information processing device
CN104808810A (en) * 2015-05-08 2015-07-29 三星电子(中国)研发中心 Method and mobile terminal for performing mouse input
CN105306303A (en) * 2015-11-09 2016-02-03 上海斐讯数据通信技术有限公司 Fault real-time monitoring system based on terminal network device, and terminal network device
CN108989845A (en) * 2018-07-03 2018-12-11 凯尔博特信息科技(昆山)有限公司 A kind of video transmission method based on SPICE protocol

Also Published As

Publication number Publication date
CN110233771B (en) 2022-05-24

Similar Documents

Publication Publication Date Title
CN102185733B (en) Network card testing method and system
CN103686813B (en) Device and method for testing automatic switching stability of wireless AP (access point) channel
CN104579822A (en) Automatic performance test system and method of mobile application based on Http protocol
CN104869203B (en) Method of testing, device and the test equipment of interim card
CN110505232A (en) The detection method and device of network attack, electronic equipment, storage medium
CN109977435B (en) Factory operation simulation method, factory operation simulation device and computer storage medium
CN110515854A (en) Reproducing method, device and the electronic equipment of application exception
US11245601B2 (en) Automated integrated test system and method thereof
CN104237699A (en) USB (universal serial bus) interface communication test system and method
CN102164166B (en) Method and system for remote-control sector transmission
CN109298806A (en) A kind of long-range quick interface exchange method and device based on Object identifying
CN105338545B (en) One mobile terminal tests the method and device of more mobile terminals simultaneously
US9800490B2 (en) Testing by simulation using variations of real-time traffic
CN107817789A (en) CAN emulation test system
CN106559236B (en) Equipment resource management method and device of service board, main control board and frame type equipment
CN110233771A (en) A kind of judgment method and device of the network link environment based on spice agreement
CN108600395A (en) A kind of device and method for reminding the variation of user's current network
CN104769891A (en) Method and apparatus to display information on a web browser based upon state of communication link
CN104158915A (en) Zoning transmission method and system for remote control
CN106789449A (en) A kind of CAN exploitation and method of testing and system
CN110460456B (en) Method and device for synchronously generating network topology by Management Information Base (MIB)
US6545690B1 (en) Liaison interface
CN110008430A (en) Pass the desktop component configuration method and device of screen equipment
CN103838466A (en) Information processing method and system and electronic equipment
CN203120069U (en) Video quality detecting device and system

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