CN102801610B - Method for merging network ports of peripheral equipment and port mapping - Google Patents

Method for merging network ports of peripheral equipment and port mapping Download PDF

Info

Publication number
CN102801610B
CN102801610B CN201210228893.6A CN201210228893A CN102801610B CN 102801610 B CN102801610 B CN 102801610B CN 201210228893 A CN201210228893 A CN 201210228893A CN 102801610 B CN102801610 B CN 102801610B
Authority
CN
China
Prior art keywords
port
request
service
terminal
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210228893.6A
Other languages
Chinese (zh)
Other versions
CN102801610A (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.)
Guangzhou Fengyun Information Technology Co.,Ltd.
Original Assignee
SHENZHEN JINGHUA KEXUN TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN JINGHUA KEXUN TECHNOLOGY Co Ltd filed Critical SHENZHEN JINGHUA KEXUN TECHNOLOGY Co Ltd
Priority to CN201210228893.6A priority Critical patent/CN102801610B/en
Publication of CN102801610A publication Critical patent/CN102801610A/en
Application granted granted Critical
Publication of CN102801610B publication Critical patent/CN102801610B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention provides a method for merging network ports of peripheral equipment and port mapping, comprising the following steps: a: integrating a peripheral service, a port service and a user configured service of a terminal; b: sending mark information with one byte by a virtual desktop end; c: analyzing the mark information by the terminal according to the received mark information to distinguish equipment, port and user configuration requirements; and d: sending a service request to the terminal by the virtual desktop end and orientating the request to the terminal from the virtual desktop end; and feeding a result back to a virtual desktop after the terminal processes the service request. The method for merging the network ports of the peripheral equipment and the port mapping disclosed by the invention, the peripheral equipment, the port and the user configuration, which are merged, are single service; and the unified network is occupied and the problem of resource waste and complicated deployment is solved. Therefore, the resource expenditure is reduced and the whole efficiency of a system is improved; and the deployment and the configuration of the system are simpler.

Description

The method of the network port merging of a kind of peripheral hardware and port mapping
Technical field
The present invention relates to communication technical field, the method that the network port particularly relating to a kind of peripheral hardware and port mapping merges.
Background technology
Peripheral hardware and port mapping technology, the technology namely will used in the USB peripheral hardware of terminal, serial ports and parallel port device redirection to virtual desktop in desktop virtual.
In virtualized environment, the I/O service using the peripheral hardware on terminal thin client or PC to provide by peripheral hardware and port mapping technology, as USB device, serial ports and and jaws equipment etc., this makes the Consumer's Experience of virtual desktop environment and conventional desktop environment more close, and user can use various peripheral hardware easily, easily.
Existing peripheral hardware and port mapping technology can take multiple network port usually on terminating machine; these network ports have application targets different separately; as USB device mapping services can use the different network ports usually from serial paralled interface mapping services; in addition another also being used independent for providing user to configure the port with management service, mainly containing following shortcoming like this:
1, Internet resources are wasted
Equipment, port and user's configuration service are separated and take the different network ports separately and bring unnecessary resource overhead, and the whole work efficiency of meeting influential system.
2, management and deployment complexity
The taking of multiple network port is similarly deployment and brings trouble, we need in the configuration of fire compartment wall, open the normal use be located at outside more port guarantee in virtual desktop environment, and this is also often do not conform to the service regeulations of fire compartment wall and internet security.
Summary of the invention
The object of the present invention is to provide the method that the network port of a kind of peripheral hardware and port mapping merges, to solve the wasting of resources and to dispose complicated problem.
The object of the invention is to be achieved through the following technical solutions:
A method for the network port merging of peripheral hardware and port mapping, comprises step:
A: the peripheral hardware service of terminal, miniport service and user's configuration service are integrated;
B: virtual desktop end sends the beacon information with a byte;
C: terminal according to the beacon information received, by resolving this beacon information with difference equipment, port and user's configuring request;
D: virtual desktop end sends service request to terminal, asks to be directed to terminal by virtual desktop end, after this service request of terminal processes by result feedback to virtual desktop.
Preferably, by creating unified socket service in step a, single-port is taken.
Preferably, beacon information described in step b is for distinguishing equipment, port and user's configuring request.
Preferably, described beacon information command format is: indicate byte | request packet header | and concrete data; Above-mentioned sign byte: 01-indicates usb data request; 02-indicates serial paralled interface request; 03-indicates user's configuring request.
Preferably, described service request comprises: device map request, port mapping requests and user's configuring request.
Preferably, described device map request is USB port mapping request, and port mapping requests is serial paralled interface mapping request.
Preferably, step c resolving specifically comprises: indicating byte is 01, USB process routine is submitted in the packet header of remainder and concrete data and carries out subsequent treatment; Indicating byte is 02, serial paralled interface process routine is submitted in the packet header of remainder and concrete data and carries out subsequent treatment; Indicating byte is 03, user's configuration process routine is submitted in the packet header of remainder and concrete data and carries out subsequent treatment.
Preferably, steps d THP terminal handler process comprises:
The usb protocol data of USB process routine self-virtualizing desktop end in future are sent to Kernel Driver, and data are submitted to the usb protocol stack of operating system by driver again, and usb protocol stack and terminal equipment carry out I/O and complete data interaction, and result returns the most at last;
The serial paralled interface data of serial paralled interface process routine in the future self-virtualizing desktop submit to the interface function that operating system provides, and these interface functions are responsible for and real serial paralled interface completes I/O data interaction and finally returns results;
User configuration information is stored in local profile and also directly returns by user's configuration routine.
Compared with prior art, the embodiment of the present invention has following beneficial effect:
The method that the present invention merges by providing the network port of a kind of peripheral hardware and port mapping, makes the peripheral hardware after merging, port and user be configured to single service, takies the unified network port, solve the wasting of resources and dispose complicated problem.Thus reduce resource overhead and elevator system whole efficiency, make the deployment of system and configure simpler.
Accompanying drawing explanation
Fig. 1 is the method flow diagram that the network port of peripheral hardware of the present invention and port mapping merges.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Before introducing technical solution of the present invention, also a simplicity of explanation is done to following noun.
Peripheral hardware and port mapping: the technology will used in the USB peripheral hardware of terminal, serial ports and parallel port device redirection to virtual desktop in desktop virtual.
The network port: in ICP/IP protocol, application program all will take a port of specifying by network communication, the network terminal slogan that Here it is says usually.
Refer to Fig. 1, the method for the network port merging of peripheral hardware of the present invention and port mapping, comprising:
Step 101: the peripheral hardware service of terminal, miniport service and user's configuration service are integrated, creates unified socket service, takies single-port.
Step 102: virtual desktop end sends the beacon information with a byte, and this beacon information is for distinguishing equipment, port and user's configuring request.
This beacon information command format:
Indicate byte | request packet header | concrete data
Above-mentioned sign byte:
01-indicates usb data request;
02-indicates serial paralled interface request;
03-indicates user's configuring request.
Step 103: terminal according to the beacon information received, by resolving this beacon information with difference equipment, port and user's configuring request.
Resolving:
Indicating byte is 01, USB process routine is submitted in the packet header of remainder and concrete data and carries out subsequent treatment;
Indicating byte is 02, serial paralled interface process routine is submitted in the packet header of remainder and concrete data and carries out subsequent treatment;
Indicating byte is 03, user's configuration process routine is submitted in the packet header of remainder and concrete data and carries out subsequent treatment.
Step 104: virtual desktop end sends service request to terminal, asks to be directed to terminal by virtual desktop end, after this service request of terminal processes by result feedback to virtual desktop.
THP terminal handler process:
The usb protocol data of USB process routine self-virtualizing desktop end in future are sent to Kernel Driver, and data are submitted to the usb protocol stack of operating system by driver again, and usb protocol stack and terminal equipment carry out I/O and complete data interaction, and result returns the most at last;
The serial paralled interface data of serial paralled interface process routine in the future self-virtualizing desktop submit to the interface function that operating system provides, and these interface functions are responsible for and real serial paralled interface completes I/O data interaction and finally returns results.
User configuration information is stored in local profile and also directly returns by user's configuration routine.
In virtual desktop, the single service request to terminal is merged in the request of the peripheral hardware service to terminal, miniport service and user's configuration service, the single-port of socket client's side link socket server.
Above-mentioned service request comprises: device map request, port mapping requests and user's configuring request.Wherein, device map request is USB port mapping request, and port mapping requests is for go here and there and to detain mapping request.
The method that the present invention merges by providing the network port of a kind of peripheral hardware and port mapping, makes the peripheral hardware after merging, port and user be configured to single service, takies the unified network port, solve the wasting of resources and dispose complicated problem.Thus reduce resource overhead and elevator system whole efficiency, make the deployment of system and configure simpler.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (7)

1. a method for the network port merging of peripheral hardware and port mapping, is characterized in that, comprise step:
A: the peripheral hardware service of terminal, miniport service and user's configuration service are integrated;
B: virtual desktop end sends the beacon information with a byte;
C: terminal according to the beacon information received, by resolving this beacon information with difference equipment, port and user's configuring request;
D: virtual desktop end sends service request to terminal, asks to be directed to terminal by virtual desktop end, after this service request of terminal processes by result feedback to virtual desktop;
Wherein, step c resolving specifically comprises: indicating byte is 01, USB process routine is submitted in the packet header of remainder and concrete data and carries out subsequent treatment; Indicating byte is 02, serial paralled interface process routine is submitted in the packet header of remainder and concrete data and carries out subsequent treatment; Indicating byte is 03, user's configuration process routine is submitted in the packet header of remainder and concrete data and carries out subsequent treatment.
2. the method for the network port merging of peripheral hardware and port mapping as claimed in claim 1, is characterized in that, by creating unified socket service in step a, takies single-port.
3. the method for the network port merging of peripheral hardware and port mapping as claimed in claim 1, it is characterized in that, beacon information described in step b is for distinguishing equipment, port and user's configuring request.
4. the method for the network port merging of peripheral hardware and port mapping as claimed in claim 3, it is characterized in that, described beacon information command format is: indicate byte | request packet header | concrete data; Above-mentioned sign byte: 01-indicates usb data request; 02-indicates serial paralled interface request; 03-indicates user's configuring request.
5. the method for the network port merging of peripheral hardware and port mapping as claimed in claim 1, it is characterized in that, described service request comprises: device map request, port mapping requests and user's configuring request.
6. the method for the network port merging of peripheral hardware and port mapping as claimed in claim 5, it is characterized in that, described device map request is USB port mapping request, and port mapping requests is serial paralled interface mapping request.
7. the method for the network port merging of peripheral hardware and port mapping as claimed in claim 1, it is characterized in that, steps d THP terminal handler process comprises: the usb protocol data of USB process routine self-virtualizing desktop end in future are sent to Kernel Driver, data are submitted to the usb protocol stack of operating system by driver again, usb protocol stack and terminal equipment carry out I/O and complete data interaction, and result returns the most at last; The serial paralled interface data of serial paralled interface process routine in the future self-virtualizing desktop submit to the interface function that operating system provides, and these interface functions are responsible for and real serial paralled interface completes I/O data interaction and finally returns results; User configuration information is stored in local profile and also directly returns by user's configuration routine.
CN201210228893.6A 2012-07-04 2012-07-04 Method for merging network ports of peripheral equipment and port mapping Active CN102801610B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210228893.6A CN102801610B (en) 2012-07-04 2012-07-04 Method for merging network ports of peripheral equipment and port mapping

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210228893.6A CN102801610B (en) 2012-07-04 2012-07-04 Method for merging network ports of peripheral equipment and port mapping

Publications (2)

Publication Number Publication Date
CN102801610A CN102801610A (en) 2012-11-28
CN102801610B true CN102801610B (en) 2015-05-13

Family

ID=47200579

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210228893.6A Active CN102801610B (en) 2012-07-04 2012-07-04 Method for merging network ports of peripheral equipment and port mapping

Country Status (1)

Country Link
CN (1) CN102801610B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI493344B (en) * 2013-05-21 2015-07-21 Unitech Electronics Co Ltd Integration method for creating virtual universal plug and play device and universal plug and play integration device thereof
CN108933801B (en) * 2017-05-24 2022-08-26 中兴通讯股份有限公司 Method and device for establishing cloud desktop channel and cloud desktop communication

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101356783A (en) * 2006-01-12 2009-01-28 博通以色列研发公司 Method and system for protocol offload and direct I/O with I/O sharing in a virtualized network environment
CN102419737A (en) * 2011-10-14 2012-04-18 深圳市京华科讯科技有限公司 Distributed resource management method and system for universal serial bus (USB) equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101356783A (en) * 2006-01-12 2009-01-28 博通以色列研发公司 Method and system for protocol offload and direct I/O with I/O sharing in a virtualized network environment
CN102419737A (en) * 2011-10-14 2012-04-18 深圳市京华科讯科技有限公司 Distributed resource management method and system for universal serial bus (USB) equipment

Also Published As

Publication number Publication date
CN102801610A (en) 2012-11-28

Similar Documents

Publication Publication Date Title
WO2016155394A1 (en) Method and device for establishing link between virtual network functions
EP2996294A1 (en) Virtual switch method, relevant apparatus, and computer system
US10171294B2 (en) Information processing device and system design support method
EP2891977A1 (en) Method, system and device for managing virtual machine software in cloud environment
CN103441867A (en) Method for updating internal network resource allocation of virtual machine
CN105847108B (en) Communication means and device between container
US10178068B2 (en) Translating network attributes of packets in a multi-tenant environment
TW201340663A (en) Server system and management method thereof
CN110389711B (en) Method, device, and non-transitory computer-readable medium for assisting endpoint device in implementing SR-IOV functionality
KR102153585B1 (en) Method and apparatus for network functions virtualization
CN107995321A (en) A kind of VPN client acts on behalf of the method and device of DNS
CN104683428A (en) Network service processing method and device
CN106569789B (en) Task submission method and device
JP6665190B2 (en) Network sharing implementation method and apparatus
CN105991755B (en) Service message distribution method and device
CN115022408A (en) Data transmission method and device based on service grid and electronic equipment
CN105190530A (en) Transmitting hardware-rendered graphical data
CN102801610B (en) Method for merging network ports of peripheral equipment and port mapping
CN107911496A (en) A kind of VPN service terminal acts on behalf of the method and device of DNS
CN103780674A (en) Virtual machine communication method and apparatus based on hardware simulation
CN113595905B (en) Distributed routing method, device, equipment and storage medium
CN103001966B (en) The process of a kind of private network IP, recognition methods and device
US9760315B2 (en) Dynamic device allocation apparatus, dynamic device allocation system, dynamic device allocation method and storage medium storing dynamic device allocation program
CN108989157B (en) Method and device for controlling intelligent equipment
CN113111666A (en) System and method for realizing multi-language translation of application program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220128

Address after: 510000 room b1309, No. 161, Linhe West Road, Tianhe District, Guangzhou City, Guangdong Province

Patentee after: Guangzhou Fengyun Information Technology Co.,Ltd.

Address before: 518000 room 425, floor 4, building 4, Zhongxing Industrial City, Chuangye Road, Nanshan District, Shenzhen, Guangdong Province

Patentee before: Shenzhen Jinghua Kexun Technology Co.,Ltd.