WO2017128710A1 - 一种端口重定向的方法、服务器和系统 - Google Patents

一种端口重定向的方法、服务器和系统 Download PDF

Info

Publication number
WO2017128710A1
WO2017128710A1 PCT/CN2016/096567 CN2016096567W WO2017128710A1 WO 2017128710 A1 WO2017128710 A1 WO 2017128710A1 CN 2016096567 W CN2016096567 W CN 2016096567W WO 2017128710 A1 WO2017128710 A1 WO 2017128710A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
physical port
target
server
mapping relationship
Prior art date
Application number
PCT/CN2016/096567
Other languages
English (en)
French (fr)
Inventor
李明灯
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2017128710A1 publication Critical patent/WO2017128710A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/08Protocols specially adapted for terminal emulation, e.g. Telnet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/663Transport layer addresses, e.g. aspects of transmission control protocol [TCP] or user datagram protocol [UDP] ports

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, a server, and a system for port redirection.
  • Remote virtual desktop means that computing and storage resources are concentrated on the remote server side (usually the data center), and the remote virtual desktop interface is delivered to various local terminals through remote desktop protocols (eg, thin clients, desktop computers, portable computers). Displayed on the mobile terminal PAD, smart phone, etc., and can input various input and output devices of the local terminal (such as keyboard, mouse, Universal Serial Bus (USB), serial parallel port peripherals, Headphones, microphones, etc.) are mapped to the remote server side.
  • remote desktop protocols eg, thin clients, desktop computers, portable computers.
  • USB Universal Serial Bus
  • ports there are one or more "ports (hardware)" on the terminal.
  • the operating system recognizes these serial communication ports, loads the "port driver” that comes with the system in turn, and creates the corresponding "port device file” by default. Referred to as “port” (such as COM1, COM2, etc.) to correspond to it.
  • port such as COM1, COM2, etc.
  • all operations on “ports” actually operate on “port physical devices” connected to "ports (hardware)”.
  • the terminal and the server are generally included. If the server needs to use a port physical device such as a port printer on the terminal side, one way is to first access the terminal by using a USB port line mode, and then use a USB redirection method.
  • the physical device on the terminal side is mapped to the remote server.
  • the "USB client”, “USB server”, “USB to serial port driver” and other parts constitute the USB redirection frame body.
  • responsible for completing the redirection mapping of the USB device successfully mapping the physical USB device on the local terminal side to the remote virtual desktop system of the server, and then working with the USB port driver installed in the remote desktop to create a visible view in the device manager.
  • the port device object, and the associated port of the supply operation (such as COM1), the subsequent read and write operations for this port, is actually the port physical device on the read and write operation terminal side.
  • the present invention provides a port redirection method, a terminal, and a server, which prevent the application in the server from opening the port before the port redirection, resulting in abnormal subsequent work.
  • an embodiment of the present application provides a method for port redirection, where the port redirection method is applied to a cloud interaction system (such as a remote virtual desktop system), where the cloud interaction system includes a server and a user equipment, and is in the server.
  • the mapping relationship configuration table is preset, and the mapping relationship configuration table includes at least one port binding relationship, wherein the port may be a serial port (the identifier is generally a COM plus a numeric serial number, such as COM1) or a parallel port (the identifier is generally an LPT plus a numeric serial number, For example, LPT1), each port binding relationship records a binding relationship between a virtual port identifier and a physical port identifier.
  • the virtual port identifier recorded in the port binding relationship is used to identify a virtual port in the server.
  • the virtual port identifier is a differentiated server.
  • the physical port ID of the port binding relationship record is used to identify the physical port of the terminal.
  • the physical port identifier is the unique identifier of the physical port that distinguishes the terminal.
  • At least one application is installed in the server, where each application can respectively correspond to one or more port binding relationships, the at least one application includes a target application, such as a document editing application word, and the target virtual port refers to a target application in the server.
  • the virtual port is used.
  • the target physical port is the physical port that the target application is expected to use.
  • the target virtual port corresponds to the target physical port.
  • the virtual port COM1 corresponds to the physical port COM1.
  • the method includes:
  • the server creates a target virtual port according to the virtual port identifier recorded in the port binding relationship corresponding to the target application in the mapping relationship configuration table, and generates a mapping relationship table according to the mapping relationship configuration table, where the mapping relationship table includes the mapping relationship configuration table.
  • the server notifies the terminal to open the target physical port corresponding to the target virtual port according to the mapping relationship table, and the terminal starts the target after receiving the notification.
  • the target physical port corresponding to the virtual port for example, the target virtual port COM1 is opened by the word.
  • the terminal can be notified to open the target physical port COM1 corresponding to the target virtual port COM1, and the terminal starts the target after receiving the notification.
  • Virtual port The target physical port COM1 corresponding to COM1.
  • the above process creates a virtual port in advance before the application opens the virtual port in the server, which prevents the application in the server from opening the virtual port before the port redirection works normally, causing the subsequent work to be abnormal.
  • the server generates a mapping relationship table according to the mapping relationship configuration table, which may be implemented by the following process:
  • the terminal may send the port identifier of the at least one physical port to the server, where the port identifier of the at least one physical port may be a physical port identifier list including the port identifier of the at least one physical port, and the server acquires the terminal from the terminal.
  • the physical port identifier of the at least one physical port, and the obtained physical port identifier includes the first physical port identifier, where the first physical port identifier is a physical port identifier recorded in the mapping relationship configuration table in the obtained physical port identifier.
  • the target physical port has the first physical port identifier;
  • the server adds the port binding relationship corresponding to the first physical port identifier to the mapping relationship table according to the mapping relationship configuration table.
  • the port identifier of the at least one physical port includes physical ports COM1 and COM2, where COM1 is
  • the mapping relationship configuration table records the physical port identifier. If COM2 is not recorded, COM1 is the first physical port identifier. In this case, the port binding relationship corresponding to COM1 is added to the mapping table.
  • mapping the physical port identifier recorded in the mapping relationship configuration table of the physical port identifier obtained by the server is added to the mapping relationship table to implement the binding relationship. Mapping.
  • the obtained physical port identifier includes a second physical port identifier
  • the second physical port identifier is a physical port identifier that is not recorded in the mapping relationship configuration table in the obtained physical port identifier, that is, for example, The mapping relationship configuration table described above records COM2;
  • the method further includes: the server creates a port binding relationship between the second physical port identifier and the preset virtual port identifier, and adds the created port binding relationship to the mapping relationship table.
  • the preset virtual port may be a virtual port reserved by the server according to the mapping relationship configuration table, or may be a newly created virtual port.
  • the physical port identifier is included in the port information list.
  • the port information list also includes physical port identifiers COM 3 and COM4, and there is no terminal side object in the mapping relationship configuration table.
  • the port identifies the binding relationship between COM3 and COM4 and the virtual port on the server side. Therefore, it needs to be created or assigned to the virtual ports corresponding to the physical ports COM 3 and COM4, create their binding relationships, and create the port binding relationship. Add a mapping table.
  • the identifier of the virtual port created by the server according to the mapping relationship configuration table is bound to the second physical port identifier.
  • a new virtual port is created.
  • the virtual port identifier COM2 on the server side does not specify the physical port on the terminal side. Since the physical port identifier COM3 on the terminal side does not have a direct virtual port, the physical port identifier COM3 on the terminal side takes precedence. The idle virtual port ID matches the binding. Here, the virtual port identifier COM2 is matched. When there is no free virtual port identifier on the server side, the new virtual port identifier is created to match the physical port identifier COM3 on the terminal side.
  • the server can create a corresponding port binding relationship for the physical port identifier that is not recorded in the mapping relationship configuration table of the obtained physical port identifier, and add the corresponding port binding relationship to the mapping relationship table.
  • the preset condition is satisfied that the port automatic connection switch preset by the server is in a closed state, wherein the port automatic connection switch has two states of an open state and a closed state.
  • the target virtual port is opened by the target application, the target virtual port is notified by the target application to open the target corresponding to the target virtual port according to the mapping relationship table. Physical port.
  • the preset condition is not satisfied, which may be that the port automatic connection switch preset by the server is in an open state;
  • the method further includes: the server notifying the terminal to open the physical port specified by the physical port identifier of each port binding relationship record in the mapping relationship table.
  • the server directly informs the terminal to open the physical port specified by the physical port identifier of each port binding relationship record in the mapping relationship table, and does not need to open the target virtual port by the target application. Open the corresponding physical port to improve the efficiency of subsequent port data writing.
  • the terminal is notified to open the target physical port corresponding to the target virtual port according to the mapping relationship table, including: the server queries the mapping relationship table when acquiring the data of the target application to be written to the target physical port. If the status of the target physical port is queried, the terminal is notified that the target physical port is closed. After receiving the corresponding notification, the terminal opens the target physical port. After the target physical port is opened, the terminal can notify the server. Update mapping table The state of the target physical port in the middle, if there is a closed state (such as true) changed to open (for example, false).
  • the terminal is notified to open the target physical port corresponding to the target virtual port according to the mapping relationship table, including:
  • the server When the server obtains the data to be written to the target physical port, the server queries the status of the target physical port in the mapping relationship table. If the status of the target physical port is closed, the terminal is notified to open the target physical port. At this time, when the data to be written to the target physical port is applied, the corresponding target physical port is opened, thereby avoiding waste of resources.
  • the server sends the data to be written to the target virtual port when the terminal opens the target physical port, and forwards the data to be written to the target physical port through the target virtual port, and the target physical port of the terminal receives the data.
  • the data to be written that is, the data to be written, implements the use of the physical port by the application.
  • the server when the server knows that the terminal opens the target physical port, the server updates the state of the target physical port in the mapping relationship table to an open state, implements automatic dynamic management of the mapping relationship table, and improves ease of use.
  • the port automatic connection switch preset in the server is in the open state of the port automatic connection switch, and the server notifies the terminal to open the physical port specified by the physical port identifier of each port binding relationship record in the mapping relationship table.
  • the physical port state of the terminal in the mapping relationship table is changed to an open state, that is, it is changed from false to true; for example, when the server obtains the target application to be written
  • the terminal is notified that the target physical port is opened, and the state of the target physical port on the terminal side in the mapping relationship table is also changed to an open state, that is, it is also changed from false to true.
  • the server sends the data to be written to the target virtual port, and forwards the data to be written to the target physical port via the target virtual port.
  • the mapping relationship configuration table further includes a physical port identifier that is forbidden to create a corresponding virtual port. In this case, by mapping the relationship configuration table, the physical port of the terminal can be avoided. The port pointer is changed, causing a port conflict.
  • the preset condition is not satisfied, or the preset port redirection switch in the server is in a closed state, that is, the physical port of the terminal is not allowed to be redirected.
  • the method is The method further includes: the server acquiring the target application to be written to the target physical port The data is directly discarded, which improves the efficiency of processing the port data corresponding to the application.
  • the mapping relationship configuration table may be a fixed static table, and the mapping relationship table may be an updateable dynamic table, and the server generates a mapping relationship table according to the mapping relationship configuration table, because the mapping relationship configuration table is The need to be fixed, the mapping relationship table can be automatically updated, and the mapping action is completed, so that when the port is redirected, the problem that the mapping needs to be manually established or adjusted frequently in the prior art is avoided, the ease of use is improved, and the use is reduced. Claim.
  • the port is a serial port or a parallel port.
  • an embodiment of the present application provides a server, where a mapping relationship configuration table is preset on a server, where the mapping relationship configuration table includes at least one port binding relationship, and each port binding relationship records a virtual port identifier and a physics.
  • the port identification binding relationship, the virtual port ID recorded in the port binding relationship is the unique identifier of the virtual port established by the server.
  • the physical port ID recorded in the port binding relationship is the unique identifier of the physical port of the terminal.
  • At least one application each of the at least one application respectively corresponding to one or more of the port binding relationships; at least one application includes the target application, and the target virtual port refers to a virtual port in the server for use by the target application
  • the target physical port is a physical port that is intended to be used by the target application in the terminal, and the target virtual port corresponds to the target physical port
  • the server includes:
  • a creating unit configured to create the target virtual port according to the virtual port identifier recorded in the port binding relationship corresponding to the target application in the mapping relationship configuration table;
  • a generating unit configured to generate a mapping relationship table according to the mapping relationship configuration table, where the mapping relationship table includes a port binding relationship corresponding to the target virtual port in the mapping relationship configuration table;
  • a notification unit configured to notify the terminal to open a target physical port corresponding to the target virtual port according to the mapping relationship table, if the target virtual port is opened by the target application, when the preset condition is met.
  • the generating unit is specifically configured to acquire, when the terminal logs in to the server, a physical port identifier of the at least one physical port of the terminal, where the obtained physical port identifier includes a physical port identifier, where the first physical port identifier is a physical port identifier recorded in the mapping relationship configuration table in the obtained physical port identifier, where the target physical port has the first physical port identifier According to the mapping relationship configuration table, the port binding relationship corresponding to all the first physical port identifiers is added to the mapping relationship table.
  • the obtained physical port identifier further includes a second physical port identifier, and the second physical port identifier refers to the mapping relationship configuration in the obtained physical port identifier.
  • the physical port identifier is not recorded in the table;
  • the creating unit is further configured to create a port binding relationship between the second physical port identifier and the preset virtual port identifier, and add the created port binding relationship to the mapping relationship table.
  • the preset condition is satisfied that the port automatic connection switch preset by the server is in a closed state.
  • the preset condition is not satisfied, that is, the port automatic connection switch preset by the server is in an open state
  • the notification unit is further configured to notify the terminal to open a physical port specified by a physical port identifier of each port binding relationship record in the mapping relationship table.
  • the notification unit is specifically configured to query a status of the target physical port in the mapping relationship table when acquiring data of the target application to be written to the target physical port, if If the status of the target physical port is queried, the terminal is notified to open the target physical port.
  • the server further includes:
  • a sending unit configured to send data to be written to the target virtual port when the terminal opens the target physical port, and forward data to be written to the target physical port by using the target virtual port.
  • the server further includes:
  • an updating unit configured to update the state of the target physical port in the mapping relationship table to an open state when the terminal is notified that the target physical port is opened.
  • the sending unit is further configured to: when the state of the target physical port is an open state, send data to be written to the target virtual port, and go to the target through the target virtual port.
  • the physical port forwards the data to be written.
  • mapping relationship configuration table further includes a preset physical port identifier that prohibits creation of a corresponding virtual port.
  • the port is a serial port or a parallel port.
  • an embodiment of the present application further provides a server, where the server includes a receiver, a transmitter, a processor, a memory, and a bus; and the transmitter, the receiver, the processor, and the memory pass through a bus Interconnection communication, the memory storing a mapping relationship configuration table, the mapping relationship configuration table includes at least one port binding relationship, each of the port binding relationships recording a binding of a virtual port identifier and a physical port identifier Relationship, the virtual port of the port binding relationship record
  • the identifier is a unique identifier of the virtual port established by the server, and the physical port identifier of the port binding relationship record is a unique identifier of the physical port of the terminal;
  • the server is installed with at least one application, the at least one application Each of the applications corresponds to one or more of the port binding relationships; the at least one application includes the target application, and the target virtual port refers to a virtual port in the server for use by the target application, and the target physical port is Refers to a physical port that is used by the
  • mapping relationship table According to the mapping relationship configuration table, where the mapping relationship table includes a port binding relationship corresponding to the target virtual port in the mapping relationship configuration table;
  • the transmitter is notified by the sender to open a target physical port corresponding to the target virtual port.
  • the processor is specifically configured to perform the following steps by calling an operation instruction stored in the memory:
  • the physical port identifier of the at least one physical port of the terminal is obtained by the receiver from the terminal, and the obtained physical port identifier includes a first physical port identifier, where the first The physical port identifier is a physical port identifier recorded in the mapping relationship configuration table in the obtained physical port identifier, where the target physical port has the first physical port identifier; according to the mapping relationship configuration table, Add the port binding relationship corresponding to each of the first physical port identifiers to the mapping relationship table.
  • the obtained physical port identifier further includes a second physical port identifier, where the second physical port identifier indicates that the mapping relationship configuration table is not recorded in the obtained physical port identifier.
  • the processor is further configured to perform the following steps by calling an operation instruction stored by the memory:
  • the port binding relationship between the second physical port identifier and the preset virtual port identifier is created, and the created port binding relationship is added to the mapping relationship table.
  • the preset condition is satisfied that the port automatic connection switch preset by the server is in a closed state.
  • the preset condition is not satisfied, which refers to the port preset by the server.
  • the automatic connection switch is turned on;
  • the processor is further configured to perform the following steps by calling an operation instruction stored by the memory:
  • the processor is specifically configured to perform the following steps by invoking an operation instruction stored in the memory:
  • the state of the target physical port in the mapping relationship table is queried, and if the state of the target physical port is queried, the The transmitter notifies the terminal to open the target physical port.
  • the processor is specifically configured to perform the following steps by invoking an operation instruction stored in the memory:
  • the data to be written is sent to the target virtual port, and the data to be written is forwarded to the target physical port by the sender through the target virtual port.
  • the processor is further configured to perform the following steps by invoking an operation instruction stored in the memory:
  • the state of the target physical port in the mapping relationship table is updated to an open state.
  • the processor is further configured to perform the following steps by invoking an operation instruction stored in the memory:
  • the data to be written is sent to the target virtual port, and the data to be written is forwarded to the target physical port by the sender through the target virtual port.
  • mapping relationship configuration table further includes a preset physical port identifier that prohibits creation of a corresponding virtual port.
  • the port is a serial port or a parallel port.
  • an embodiment of the present application further provides a server, where the server includes a processor and a memory, and the processor is connected to the memory through a bus;
  • the memory is configured to store computer execution instructions that, when the server is running, read the computer execution instructions stored by the memory to cause the server to perform port redirection as described above method.
  • an embodiment of the present application provides a port redirection system, including a terminal and a server, the server being the server according to any of the second aspect or the third aspect.
  • the embodiments of the present application have the following advantages:
  • the application creates a virtual port in advance before the application opens the virtual port in the server, which prevents the application in the server from opening the virtual port before the port redirection works normally, causing the subsequent work to be abnormal.
  • FIG. 1 is a schematic diagram of a conventional USB serial port redirection method
  • FIG. 2 is a schematic diagram of a remote virtual desktop system
  • FIG. 3 is a schematic diagram of a remote virtual desktop system architecture
  • FIG. 4 is a schematic diagram of an embodiment of a method for port redirection in an embodiment of the present application
  • FIG. 5 is a schematic diagram of an embodiment of a server in an embodiment of the present application.
  • FIG. 6 is a schematic diagram of another embodiment of a server in an embodiment of the present application.
  • FIG. 7 is a schematic diagram of another embodiment of a server in an embodiment of the present application.
  • the present invention provides a port redirection method, a terminal, and a server, which prevent the application in the server from opening the port before the port redirection works normally, resulting in abnormal follow-up work.
  • FIG. 2 it is a schematic diagram of a general remote virtual desktop system.
  • the remote data center is centralized with server resources and storage resources 100; multiple virtual machines are virtualized by virtualization technology (English name: Virtual Machine, English abbreviation: VM) 120 , such as VM1, VM2, etc. in FIG. 2, or directly use the physical computer 121 without virtualization technology, such as PM3 in FIG. 2, install the operating system 130 on these virtual machines or physical computers, and remote virtual desktops through the remote desktop protocol 150.
  • the interface delivery is displayed on the local terminal 160 while the input and output devices on the local terminal are mapped to the server side of the remote virtual desktop.
  • the remote virtual desktop system architecture includes a terminal 170 (including various input and output devices), a desktop management system 171, and a remote virtual desktop computer (including virtual machines 172, 173 and physical computers 174, 175).
  • the desktop management system 171 mainly manages the registration of the remote virtual desktop computer (such as 172, 173, 174, 175 in FIG. 3) and the remote terminal 170, and the management of the user login remote virtual desktop; the remote desktop protocol is supported by the client and the server.
  • the composition is internally divided into different service implementations according to different functions, for example, USB/serial parallel port service client and server side interaction realize mapping redirection of various peripherals; display service client and server side interaction realize remote virtual desktop delivery to terminal
  • the audio service client and the server end interact to realize two-way audio mapping
  • the multimedia service client and the server end interact to realize the playback and recording of the multimedia service
  • the mouse and keyboard service client and the server end realize the mapping of the keyboard and the mouse to the remote virtual desktop.
  • the commonly described "port” (such as serial port COM1 or parallel port LPT1, etc.), that is, "port device file”, is actually a symbolic link, and its pointing can be defined by calling an API provided by the operating system. And modified, subject to the final point; and the object pointed to by this "port” does not have to be the device object displayed in the device manager, specifically related to the implementation, and a "port” can only point to one Object, but different "ports” can point to the same object.
  • the method for port redirection can be applied to a remote virtual desktop system, where the server can be a virtual machine or a physical computer in a remote data center, and the terminal can be Thin client or physical computer, etc.
  • an embodiment of a method for port redirection in the present application is preset in a server.
  • the mapping relationship configuration table includes at least one port binding relationship, and each of the port binding relationships records a binding relationship between a virtual port identifier and a physical port identifier, and the port binding relationship record
  • the virtual port identifier is a unique identifier that distinguishes the virtual port established by the server
  • the physical port identifier of the port binding relationship record is a unique identifier that distinguishes the physical port of the terminal
  • at least one application is installed in the server, Each of the at least one application corresponds to one or more of the port binding relationships;
  • the at least one application includes the target application, and the target virtual port refers to a virtual port in the server for use by the target application, the target A physical port is a physical port that is used by the target application in the terminal, and the target virtual port corresponds to the target physical port
  • the method includes:
  • the server creates the target virtual port according to the virtual port identifier recorded in the port binding relationship corresponding to the target application in the mapping relationship configuration table.
  • the port may be a serial port or a parallel port.
  • the port may include a virtual port, including, for example, a target virtual port; the port may also include a physical port, including, for example, a target physical port.
  • the mapping relationship configuration table includes at least one port binding relationship.
  • Each port binding relationship records a virtual port identifier; the server can create a virtual port by using the virtual port identifier recorded by the port binding relationship, for example, creating a target virtual port by using the virtual port identifier corresponding to the target application.
  • various types of port drivers such as a serial port driver and a parallel port driver, are configured.
  • the target virtual device is loaded according to the port driver preset in the server.
  • the port driver corresponding to the port is configured to enable the target virtual port to be in a usable state.
  • the serial port driver corresponding to the target virtual serial port is loaded according to the serial port driver preset in the server.
  • the server generates a mapping relationship table according to the mapping relationship configuration table.
  • the mapping relationship table includes a port binding relationship corresponding to the target virtual port in the mapping relationship configuration table.
  • the mapping relationship configuration table includes at least one port binding relationship, and each of the port binding relationships records a binding relationship between a virtual port identifier and a physical port identifier, and specifically includes configuration format information and at least For a port binding relationship, the port is the serial port.
  • the mapping relationship configuration table can be as follows: Table 1-1 (Configuration Format Information) and Table 1-2 (Port Binding Relationship):
  • mapping relationship table generated according to the mapping relationship configuration table may be as shown in Table 2 below;
  • false represents the closed state
  • true represents the open state
  • the server notifies the terminal to open a target physical port corresponding to the target virtual port according to the mapping relationship table, if the target virtual port is opened by the target application, when the preset condition is met.
  • the application creates a virtual port in advance before the port is opened in the server, which prevents the application in the server from opening the port before the port redirection works normally, causing the subsequent work to be abnormal.
  • third-party components such as a USB to serial cable
  • port redirection improves the ease of use and overall reliability of the port device.
  • the server generates a mapping relationship table according to the mapping relationship configuration table, and specifically includes:
  • the server acquires the terminal from the terminal to The physical port identifier of the one physical port, the physical port identifier obtained by the physical port identifier includes the first physical port identifier, and the first physical port identifier is the physical port recorded in the mapping relationship configuration table in the obtained physical port identifier.
  • the server adds a port binding relationship corresponding to all the first physical port identifiers to the mapping relationship table according to the mapping relationship configuration table.
  • the server obtains the physical port identifier of the at least one physical port of the terminal from the terminal, and may be one of the following two methods: (1) the server sends the terminal to query the Querying information of the terminal port, so that the terminal queries the physical port identifier of the terminal to obtain the physical port identifier of the at least one physical port, and returns the identifier to the server, where the server receives the at least one physical returned by the terminal a physical port identifier of the port; (2) the terminal sends the physical port identifier of the at least one physical port of the terminal to the server, and the server receives the physical port identifier of the at least one physical port returned by the terminal, where There is no specific limit.
  • the terminal adds the physical port identifier of the at least one physical port to the physical port identifier list, and sends a physical port identifier list to the server.
  • the physical port identifier list includes a first physical port identifier, the first physical port identifier may be one or more, and the first physical port identifier is already in the mapping relationship configuration table. recording.
  • the server receives the physical port identifier list returned by the terminal, where the physical port identifier list includes the first physical port identifiers: COM1 and COM2, and the server configures the table according to the mapping relationship (Table 1-2 above). Adding the port binding relationship of each of the first physical port identifiers to the mapping relationship table, as shown in Table 3 below:
  • the method may further include: the server creates the second physical port identifier and the physical port identifier of the obtained physical port identifier. Prefix the port binding relationship of the virtual port ID and add the created port binding relationship to the mapping relationship table.
  • the preset virtual port may be a virtual port reserved in the virtual port created by the server according to the mapping relationship configuration table, or may be a newly created virtual port.
  • the method may further include: the server creating a virtual port corresponding to the second physical port identifier.
  • the physical port identifier list is included in the port information list.
  • the port information list also includes the physical port identifiers COM 3 and COM4.
  • the physical port identifiers COM3 and COM4 on the terminal side are not tied to the virtual ports on the server side. The relationship is the same, so you need to create or assign the virtual port corresponding to the physical ports COM 3 and COM4, create their binding relationship, and add the created port binding relationship to the mapping table. Show.
  • the identifier of the virtual port created by the server according to the mapping relationship configuration table may be bound to the second physical port identifier instead of the physical port identifier.
  • Re-create a new virtual port As shown in Table 3 above, the virtual port ID COM2 on the server side does not specify the physical port on the terminal side.
  • the physical port ID on the terminal side is the physical port identifier COM3 on the terminal side.
  • the COM3 priority will match the binding of the idle virtual port ID.
  • the virtual port ID COM2 will be matched.
  • the new virtual port ID will be created to the physical port on the terminal side. Identifies the COM3 match.
  • the server can also delete the virtual serial ports that are not created in advance (create the virtual ports corresponding to COM 3 and COM4 created as follows), and restore the mapping relationship table to the initial state.
  • the preset condition is satisfied, that is, the port automatic connection switch preset by the server is in a closed state, that is, a port automatic connection switch preset in the server, when the port automatic connection switch is in a closed state.
  • the target virtual port is opened by the target application, notifying the terminal to open a target physical port corresponding to the target virtual port according to the mapping relationship table.
  • the preset condition is not satisfied, which may be that the port automatic connection switch preset by the server is in an open state.
  • the method may also be The server is configured to notify the terminal to open the physical port specified by the physical port identifier of each port binding relationship record in the mapping relationship table, that is, notify the terminal to open all the binding relationship records in the mapping relationship table.
  • the physical port of the physical port identifies the physical port. This scenario is applicable to the scenario where the port usage is high. In this scenario, the target virtual port is not required to be opened by the target application to open the corresponding physical port. .
  • the notifying the terminal to open according to the mapping relationship table may include:
  • the server When the server obtains the data to be written to the target physical port, the server queries the state of the target physical port in the mapping relationship table, and if the state of the target physical port is queried, the state is off. And notifying the terminal to open the target physical port.
  • the server sends data to be written to the target virtual port when the terminal opens the target physical port, and forwards data to be written to the target physical port by using the target virtual port.
  • the server updates the state of the target physical port in the mapping relationship table to an open state when the terminal opens the target physical port, and implements automatic dynamic management of the mapping relationship table, thereby improving Ease of use.
  • the port automatic connection switch preset in the server is in the open state of the port automatic connection switch, and the server notifies the terminal to open the physical port identifier specified by each port binding relationship record in the mapping relationship table.
  • the physical port status of the terminal in the mapping relationship table is changed to an open state, that is, it is changed from false to true; for example, the server obtains the target.
  • the state of the target physical port on the terminal side in the mapping relationship table is also changed to the open state, that is, also by false. Modified to true.
  • the server sends data to be written to the target virtual port, and forwards data to be written to the target physical port by using the target virtual port.
  • the preset condition is not satisfied, and the preset switch redirection switch in the server is in the closed state, that is, the physical port of the terminal is not allowed to be redirected.
  • the server directly discards the data to be written to the target physical port by the target application, which improves the efficiency of processing port data corresponding to the application.
  • the mapping relationship configuration table may further include a physical port identifier that is forbidden to create a corresponding virtual port.
  • the physical port of the terminal may be avoided, and for some reason, the port is not expected to be pointed. Change, causing port conflicts.
  • the mapping relationship configuration table may be a static static table, and the mapping relationship table may be an updateable dynamic table, and the server generates a mapping relationship table according to the mapping relationship configuration table.
  • the mapping relationship configuration table can be fixed as needed, and the mapping relationship table can be automatically updated, and the mapping operation is completed, so that when the port is redirected, the problem of frequently establishing or adjusting the mapping relationship in the prior art is avoided, and the problem is improved. Useability reduces the use requirements.
  • a mapping relationship configuration table is preset in the server, where the mapping relationship configuration table includes at least one port binding relationship, and each of the port binding relationships records a virtual A binding relationship between the port identifier and a physical port identifier.
  • the virtual port identifier recorded in the port binding relationship is a unique identifier of the virtual port established by the server.
  • the physical port identifier recorded in the port binding relationship is a differentiated terminal.
  • the server includes:
  • the creating unit 501 is configured to create the target virtual port according to the virtual port identifier recorded in the port binding relationship corresponding to the target application in the mapping relationship configuration table.
  • the generating unit 502 is configured to generate a mapping relationship table according to the mapping relationship configuration table, where the mapping relationship table includes a port binding relationship corresponding to the target virtual port in the mapping relationship configuration table.
  • the notification unit 503 is configured to notify the terminal to open a target physical port corresponding to the target virtual port according to the mapping relationship table, if the target virtual port is opened by the target application when the preset condition is met.
  • the generating unit 502 is specifically configured to: when the terminal logs in to the server, acquire, by the terminal, a physical port identifier of the at least one physical port of the terminal, where the obtained physical port identifier includes the first physical a port identifier, where the first physical port identifier is a physical port identifier recorded in the mapping relationship configuration table in the obtained physical port identifier, where the target physical port has the first physical port identifier;
  • the mapping relationship configuration table adds a port binding relationship corresponding to each of the first physical port identifiers to the mapping relationship table.
  • the obtained physical port identifier further includes a second physical port identifier, where the second physical port identifier is a physical port identifier that is not recorded in the mapping relationship configuration table in the obtained physical port identifier. ;
  • the creating unit 501 is further configured to create the second physical port identifier and a preset virtual port identifier. Port binding relationship, and the created port binding relationship is added to the mapping relationship table.
  • the preset condition is satisfied that the port automatic connection switch preset by the server is in a closed state.
  • the preset condition is not satisfied, that is, the port automatic connection switch preset by the server is in an open state;
  • the notification unit 503 is further configured to notify the terminal to open a physical port specified by a physical port identifier of each port binding relationship record in the mapping relationship table.
  • the notification unit 503 is configured to query, when the data of the target application is to be written into the target physical port, the status of the target physical port in the mapping relationship table, if the query is found The state of the target physical port is a closed state, and the terminal is notified to open the target physical port.
  • the server further includes:
  • a sending unit configured to send data to be written to the target virtual port when the terminal opens the target physical port, and forward data to be written to the target physical port by using the target virtual port.
  • the server further includes:
  • an updating unit configured to update the state of the target physical port in the mapping relationship table to an open state when the terminal is notified that the target physical port is opened.
  • the sending unit is further configured to: when the state of the target physical port is an open state, send data to be written to the target virtual port, and forward the data to the target physical port by using the target virtual port. Write the data.
  • mapping relationship configuration table further includes a preset physical port identifier that is prohibited from creating a corresponding virtual port.
  • the port is a serial port or a parallel port.
  • the server 600 in the embodiment of the present invention includes:
  • the receiver 601, the transmitter 602, the processor 603, and the memory 604 (wherein the number of the processors 603 may be one or more, and one processor 603 is taken as an example in FIG. 6).
  • the receiver 601, the transmitter 602, the processor 603, and the memory 604 may be connected by a bus or other means, wherein the bus connection is taken as an example in FIG.
  • a mapping relationship configuration table is stored in the memory 604, where the mapping relationship configuration table includes at least one port binding relationship, and each of the port binding relationships records a binding relationship between a virtual port identifier and a physical port identifier.
  • the virtual port identifier recorded in the port binding relationship is a unique identifier of the virtual port established by the server, and the physical port identifier recorded in the port binding relationship is a unique identifier of the physical port of the terminal;
  • At least one application each of the at least one application respectively corresponding to one or more of the port binding relationships; the at least one application includes the target application, and the target virtual port refers to the target application in the server
  • the virtual port used, the target physical port refers to a physical port that is used by the target application in the terminal, and the target virtual port corresponds to the target physical port, wherein by calling an operation instruction stored by the memory 604,
  • the processor 603 is configured to perform the following steps:
  • mapping relationship table According to the mapping relationship configuration table, where the mapping relationship table includes a port binding relationship corresponding to the target virtual port in the mapping relationship configuration table;
  • the transmitter is notified by the sender to open a target physical port corresponding to the target virtual port.
  • the processor 603 is specifically configured to perform the following steps by using an operation instruction stored in the memory 604:
  • the physical port identifier of the at least one physical port of the terminal is obtained from the terminal by the receiver 601, and the obtained physical port identifier includes a first physical port identifier, where the A physical port identifier is a physical port identifier recorded in the mapping relationship configuration table in the obtained physical port identifier, where the target physical port has the first physical port identifier; and the mapping table is configured according to the mapping relationship.
  • the port binding relationship corresponding to all the first physical port identifiers is added to the mapping relationship table.
  • the obtained physical port identifier further includes a second physical port identifier, where the second physical port identifier is a physical port identifier that is not recorded in the mapping relationship configuration table in the obtained physical port identifier. ;
  • the processor 603 is further configured to perform the following steps by calling an operation instruction stored by the memory 604:
  • the preset condition is satisfied that the port automatic connection switch preset by the server is in a closed state.
  • the preset condition is not satisfied, that is, the port automatic connection switch preset by the server is in an open state;
  • the processor 603 is further configured to perform the following steps by calling an operation instruction stored by the memory 604:
  • the processor 603 is specifically configured to perform the following steps by using an operation instruction stored in the memory 604:
  • the state of the target physical port in the mapping relationship table is queried, and if the state of the target physical port is queried, the The transmitter 602 notifies the terminal to open the target physical port.
  • the processor 603 is specifically configured to perform the following steps by using an operation instruction stored in the memory 604:
  • the data to be written is sent to the target virtual port, and the data to be written is forwarded to the target physical port by the sender through the target virtual port.
  • the processor 603 is further configured to perform the following steps by using an operation instruction stored in the memory 604:
  • the state of the target physical port in the mapping relationship table is updated to an open state.
  • the processor 603 is further configured to perform the following steps by using an operation instruction stored in the memory 604:
  • the data to be written is sent to the target virtual port, and the data to be written is forwarded to the target physical port by the sender through the target virtual port.
  • mapping relationship configuration table further includes a preset physical port identifier that is prohibited from creating a corresponding virtual port.
  • the port is a serial port or a parallel port.
  • the server according to an embodiment of the present invention may have more or less components than those shown in FIG. 6, may combine two or more components, or may have different component configurations or settings, and each component may include one Hardware, software, or a combination of hardware and software, including multiple signal processing and/or application specific integrated circuits.
  • An embodiment of the present application further provides a server, where the server includes a processor 701 and a memory 702, and the processor 701 is connected to the memory 702 through a bus;
  • the memory 702 is configured to store computer execution instructions, and when the server is running, the processor 701 reads the computer execution instructions stored by the memory 702 to cause the server to execute any of the ports described above The method of redirection.
  • a port redirection system is provided in the embodiment of the present application, including a terminal and a server, where the server is a server described in any of the foregoing cases.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some port, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. You can choose some or all of them according to actual needs.
  • the unit is to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Abstract

本申请公开了一种端口重定向的方法、服务器和系统,本申请方法包括:服务器根据所述映射关系配置表中与目标应用对应的端口绑定关系所记录的虚拟端口标识,创建目标虚拟端口;服务器根据映射关系配置表生成映射关系表,所述映射关系表包括映射关系配置表中与目标虚拟端口对应的端口绑定关系;服务器在预设条件满足时,若目标虚拟端口被所述目标应用打开,根据映射关系表通知终端开启与所述目标虚拟端口对应的目标物理端口。本申请在所述服务器中应用打开虚拟端口之前,提前创建虚拟端口,避免了服务器内应用先于端口重定向正常工作之前就打开虚拟端口,导致后续工作不正常问题。

Description

一种端口重定向的方法、服务器和系统 技术领域
本发明涉及通信技术领域,特别涉及一种端口重定向的方法、服务器和系统。
背景技术
远程虚拟桌面是指计算和存储资源集中在远程服务器端(一般为数据中心),通过远程桌面协议将远程虚拟桌面的界面投递到本地的各种终端(如:瘦客户机,台式电脑、便携电脑、移动终端PAD、智能手机等)上显示出来,同时能把本地终端的各种输入输出设备(如:键盘,鼠标,通用串行总线(USB,Universal Serial Bus)外设,串并口外设,耳机和麦克风等)映射到远程服务器端。
一般终端上带有一个或多个“端口(硬件)”,操作系统会识别出这些串行通信端口,依次加载系统自带的“端口驱动”,并默认创建出对应的“端口设备文件”,简称“端口”(如COM1、COM2等)来与之对应。后续操作系统内,所有针对“端口”(如COM1)的操作,实际上就是对连接在“端口(硬件)”上的“端口物理设备”进行操作。
在远程虚拟桌面系统中,一般包括终端和服务器,如果服务器需要使用终端侧的端口打印机等端口物理设备,一种方式是可以先采用USB转端口线方式接入终端,然后通过USB重定向方式,把终端侧的物理设备,映射到远程服务器中,如图1所示,如上“USB客户端”、“USB服务端”、“USB总转串口驱动”等几部分,构成USB重定向框架主体,负责完成USB设备的重定向映射工作,把本地终端侧的物理USB设备,成功映射到了服务器的远程虚拟桌面系统中,再配合远程桌面中安装的USB转端口驱动,创建出在设备管理器中可见的端口设备对象,以及关联的供应用操作的端口(如COM1)来,后续针对此端口的读写操作,实际上就是读写操作终端侧的端口物理设备。
上述使用端口设备的方式,某些应用(一般是服务)在安装时,需要绑定具体的虚拟端口(如COM1),且在操作系统启动过程中,该应用就会自动运行并立即打开此端口,而此时桌面用户还没有通过终端登录远程桌面,也就是终 端侧的端口还没有在远程桌面中映射出来,也就意味着应用此时打开的虚拟端口可能不存在,或者可能虚拟端口(如COM1)存在,但它所指向的不是真正用户想要使用的终端侧端口物理设备,最终桌面用户登录远程桌面后,使用时会发现不能正常工作。
发明内容
本申请提供了一种端口重定向的方法、终端和服务器,避免了服务器内应用先于端口重定向之前就打开端口,导致后续工作不正常问题。
一方面,本申请的实施例提供一种端口重定向的方法,该端口重定向方法应用于云交互系统(例如远程虚拟桌面系统)中,该云交互系统中包括服务器和用户设备,在服务器中预置有映射关系配置表,该映射关系配置表包括至少一个端口绑定关系,其中,端口可以是串口(标识一般为COM加数字序号,如COM1)或者并口(标识一般为LPT加数字序号,如LPT1),每个端口绑定关系记录一个虚拟端口标识与一个物理端口标识的绑定关系,端口绑定关系记录的虚拟端口标识用来标识服务器中的虚拟端口,该虚拟端口标识为区别服务器建立的虚拟端口的唯一标识,端口绑定关系记录的物理端口标识用来标识终端的物理端口,该物理端口标识为区别终端的物理端口的唯一标识;
在服务器中安装有至少一个应用,其中,每个应用可以分别对应一个或多个端口绑定关系,该至少一个应用包括目标应用,例如文档编辑应用word,目标虚拟端口是指服务器中供目标应用使用的虚拟端口,目标物理端口是指终端中目标应用期望使用的物理端口,目标虚拟端口与目标物理端口对应,例如,虚拟端口COM1与物理端口COM1对应,该方法包括:
服务器根据映射关系配置表中与目标应用对应的端口绑定关系所记录的虚拟端口标识,创建目标虚拟端口,并根据映射关系配置表生成映射关系表,其中,映射关系表包括映射关系配置表中与目标虚拟端口对应的端口绑定关系;
服务器在预设条件满足时,在所述目标虚拟端口被目标应用打开的情况下,根据映射关系表通知终端开启与所述目标虚拟端口对应的目标物理端口,终端接收到通知后,即开启目标虚拟端口对应的目标物理端口,例如目标虚拟端口COM1被word打开,此时,根据该映射关系表即可通知终端开启目标虚拟端口COM1对应的目标物理端口COM1,终端接收到通知后,即开启目标虚拟端口 COM1对应的目标物理端口COM1。
上述过程在所述服务器中应用打开虚拟端口之前,提前了创建虚拟端口,避免了服务器内应用先于端口重定向正常工作之前就打开虚拟端口,导致后续工作不正常问题。
在一个可能的设计中,服务器根据映射关系配置表生成映射关系表,具体可以是如下过程实现:
在终端登录服务器时,终端可以将至少一个物理端口的端口标识向服务器发送,该至少一个物理端口的端口标识可以是包括至少一个物理端口的端口标识的物理端口标识列表,服务器从终端获取终端的至少一个物理端口的物理端口标识,获取到的物理端口标识包括第一物理端口标识,其中,第一物理端口标识是指在获取到的物理端口标识中映射关系配置表记录有的物理端口标识,例如,目标物理端口具有该第一物理端口标识;
服务器根据所述映射关系配置表,将所有第一物理端口标识所各自对应的端口绑定关系添入映射关系表,例如,至少一个物理端口的端口标识包括物理端口COM1、COM2,其中,COM1为映射关系配置表记录有的物理端口标识,而COM2未记录,则COM1为第一物理端口标识,此时将COM1对应的端口绑定关系添入映射表。
此过程中,服务器获取到的物理端口标识中映射关系配置表记录有的物理端口标识,将所有第一物理端口标识所各自对应的端口绑定关系添入所述映射关系表,实现绑定关系的映射。
在另一个可能的设计中,获取到的物理端口标识包括第二物理端口标识,第二物理端口标识是指在获取到的物理端口标识中映射关系配置表未记录有的物理端口标识,即例如上面描述的映射关系配置表记录有的COM2;
所述方法还包括:服务器创建第二物理端口标识与预设虚拟端口标识的端口绑定关系,并将创建的端口绑定关系添入所述映射关系表。
其中,预设虚拟端口可以是服务器根据映射关系配置表创建的虚拟端口中,预留的虚拟端口,也可以是预先新创建的虚拟端口。
例如,以获取到的物理端口标识为物理端口标识列表为例,在物理端口标识列表中存在所述映射关系配置表未记录有的物理端口标识时,如在端口信息列表中包括上述物理端口标识COM1、COM2的基础上,端口信息列表中还包括物理端口标识COM 3、COM4,由于上述映射关系配置表中没有终端侧的物 理端口标识COM3、COM4与服务器侧的虚拟端口的绑定关系,因此需要再创建或分配给物理端口COM 3、COM4对应的虚拟端口,创建它们的绑定关系,并将创建的端口绑定关系添入映射关系表。
在物理端口标识列表中存在所述映射关系配置表未记录有的物理端口标识时,还可以将服务器根据映射关系配置表创建的虚拟端口的标识与第二物理端口标识绑定,而不用重新再创建新的虚拟端口,例如,上述服务器侧的虚拟端口标识COM2未指定终端侧的物理端口,由于终端侧的物理端口标识COM3没有直接的虚拟端口对应,则终端侧的物理端口标识COM3优先会从空闲的虚拟端口标识去匹配绑定,此处会匹配上虚拟端口标识COM2,当服务器侧无空闲的虚拟端口标识时,才会去创建新的虚拟端口标识给终端侧的物理端口标识COM3匹配。
这样,服务器对于获取到的物理端口标识中所述映射关系配置表未记录有的物理端口标识,可以创建对应的端口绑定关系,并添加到映射关系表。
在另一个可能的设计中,预设条件满足是指所述服务器预置的端口自动连接开关处于关闭状态,其中,端口自动连接开关具有打开状态和关闭状态两种状态。
在另一个可能的设计中,同样在处于关闭状态服务器预置的端口自动连接开关情况下,若目标虚拟端口被目标应用打开,才根据映射关系表通知终端开启与所述目标虚拟端口对应的目标物理端口。
在另一个可能的设计中,所述预设条件不满足可以是指所述服务器预置的端口自动连接开关处于打开状态;
所述方法还包括:服务器通知终端开启所述映射关系表中每条端口绑定关系记录的物理端口标识所指定的物理端口。
这种情况下,服务器直接通知所述终端开启所述映射关系表中每条端口绑定关系记录的物理端口标识所指定的物理端口,而不需要在目标虚拟端口被所述目标应用打开才去打开对应的物理端口,提高后续端口数据写入效率。
在另一个可能的设计中,根据映射关系表通知终端开启与所述目标虚拟端口对应的目标物理端口,包括:服务器在获取到目标应用待写入目标物理端口的数据时,查询映射关系表中目标物理端口的状态,若查询到目标物理端口的状态为关闭状态,则通知终端打开目标物理端口,终端接收到相应通知后,即打开目标物理端口,终端在打开目标物理端口后还可以通知服务器更新映射表 中目标物理端口的状态,如有关闭状态(例如true表示)更改为打开状态(例如false表示)。
在另一个可能的设计中,根据映射关系表通知终端开启与所述目标虚拟端口对应的目标物理端口,包括:
服务器在获取到所述目标应用待写入目标物理端口的数据时,查询映射关系表中目标物理端口的状态,若查询到目标物理端口的状态为关闭状态,则通知终端打开所述目标物理端口,此时,在应用有待写入所述目标物理端口的数据时,才去开启对应的目标物理端口,避免了资源的浪费。
在另一个可能的设计中,服务器在获知终端打开目标物理端口时,向目标虚拟端口发送待写的数据,经目标虚拟端口向目标物理端口转发待写的数据,终端的目标物理端口接收到该待写的数据,即写入该待写的数据,实现了应用对物理端口的使用。
在另一个可能的设计中,服务器在获知终端打开所述目标物理端口时,更新映射关系表中目标物理端口的状态为打开状态,实现了映射关系表的自动动态管理,提高了易用性。
例如,在服务器中预置的端口自动连接开关,在端口自动连接开关处于打开状态,服务器通知所述终端开启所述映射关系表中每条端口绑定关系记录的物理端口标识所指定的物理端口的情况下,在获知终端开启了对应的物理端口后,将映射关系表中终端的物理端口状态修改为打开状态,即由false修改为true;又例如,在服务器在获取到目标应用待写入所述目标物理端口的数据时,通知所述终端打开所述目标物理端口的情况下,将映射关系表中终端侧的目标物理端口状态也对应修改为打开状态,即也由false修改为true。
在另一个可能的设计中,若目标物理端口的状态为打开状态,则服务器向目标虚拟端口发送待写的数据,经目标虚拟端口向所述目标物理端口转发待写的数据。
在另一个可能的设计中,所述映射关系配置表还包括预置的禁止创建对应虚拟端口的物理端口标识,此时,通过映射关系配置表,可以避免终端的物理端口因某些原因不希望端口指向被改变,而造成端口冲突的问题。
在另一个可能的设计中,所述预设条件不满足还可以是所述服务器内预置端口重定向总开关处于关闭状态,即不允许对终端物理端口进行重定向,此时,所述方法还包括:所述服务器将获取到所述目标应用待写入所述目标物理端口 的数据直接丢弃,提高了处理应用对应的端口数据的效率。
在另一个可能的设计中,映射关系配置表可以是固定的静态表,映射关系表可以是可更新的动态表,上述服务器根据所述映射关系配置表生成映射关系表,由于映射关系配置表根据需要可固定下来,映射关系表后续可自动更新,完成映射动作,使得在端口重定向时,避免了现有技术中需要频繁手工建立或调整映射关系的问题,提高了易用性,降低了使用要求。
在另一个可能的设计中,所述端口为串口或并口。
另一方面,本申请的实施例提供一种服务器,在服务器预置有映射关系配置表,映射关系配置表包括至少一个端口绑定关系,每个端口绑定关系记录一个虚拟端口标识与一个物理端口标识的绑定关系,端口绑定关系记录的虚拟端口标识为区别服务器建立的虚拟端口的唯一标识,端口绑定关系记录的物理端口标识为区别终端的物理端口的唯一标识;在服务器安装有至少一个应用,至少一个应用中的每个应用分别对应一个或多个所述端口绑定关系;至少一个应用包括所述目标应用,目标虚拟端口是指服务器中供所述目标应用使用的虚拟端口,目标物理端口是指终端中目标应用期望使用的物理端口,所述目标虚拟端口与目标物理端口对应,所述服务器包括:
创建单元,用于根据所述映射关系配置表中与所述目标应用对应的端口绑定关系所记录的虚拟端口标识,创建所述目标虚拟端口;
生成单元,用于根据所述映射关系配置表生成映射关系表,所述映射关系表包括所述映射关系配置表中与所述目标虚拟端口对应的端口绑定关系;
通知单元,用于在预设条件满足时,若所述目标虚拟端口被所述目标应用打开,根据所述映射关系表通知所述终端开启与所述目标虚拟端口对应的目标物理端口。
在一个可能的设计中,所述生成单元具体用于在所述终端登录所述服务器时,从所述终端获取所述终端的至少一个物理端口的物理端口标识,获取到的物理端口标识包括第一物理端口标识,所述第一物理端口标识是指在获取到的物理端口标识中所述映射关系配置表记录有的物理端口标识,其中,所述目标物理端口具有所述第一物理端口标识;根据所述映射关系配置表,将所有第一物理端口标识所各自对应的端口绑定关系添入所述映射关系表。
在另一个可能的设计中,所述获取到的物理端口标识还包括第二物理端口标识,所述第二物理端口标识是指在获取到的物理端口标识中所述映射关系配置 表未记录有的物理端口标识;
所述创建单元还用于创建所述第二物理端口标识与预设虚拟端口标识的端口绑定关系,并将创建的端口绑定关系添入所述映射关系表。
在另一个可能的设计中,所述预设条件满足是指所述服务器预置的端口自动连接开关处于关闭状态。
在另一个可能的设计中,所述预设条件不满足是指所述服务器预置的端口自动连接开关处于打开状态;
所述通知单元还用于通知所述终端开启所述映射关系表中每条端口绑定关系记录的物理端口标识所指定的物理端口。
在另一个可能的设计中,所述通知单元具体用于在获取到所述目标应用待写入所述目标物理端口的数据时,查询所述映射关系表中所述目标物理端口的状态,若查询到所述目标物理端口的状态为关闭状态,则通知所述终端打开所述目标物理端口。
在另一个可能的设计中,所述服务器还包括:
发送单元,用于在获知所述终端打开所述目标物理端口时,向所述目标虚拟端口发送待写的数据,经所述目标虚拟端口向所述目标物理端口转发待写的数据。
在另一个可能的设计中,所述服务器还包括:
更新单元,用于在获知所述终端打开所述目标物理端口时,更新所述映射关系表中所述目标物理端口的状态为打开状态。
在另一个可能的设计中,所述发送单元还用于在所述目标物理端口的状态为打开状态时,向所述目标虚拟端口发送待写的数据,经所述目标虚拟端口向所述目标物理端口转发待写的数据。
在另一个可能的设计中,所述映射关系配置表还包括预置的禁止创建对应虚拟端口的物理端口标识。
在另一个可能的设计中,所述端口为串口或并口。
另一方面,本申请的实施例还提供一种服务器,所述服务器包括接收器、发送器、处理器、存储器和总线;所述发送器、所述接收器、处理器和存储器之间通过总线相互连接通信,所述存储器中存储有映射关系配置表,所述映射关系配置表包括至少一个端口绑定关系,每个所述端口绑定关系记录一个虚拟端口标识与一个物理端口标识的绑定关系,所述端口绑定关系记录的虚拟端口 标识为区别所述服务器建立的虚拟端口的唯一标识,所述端口绑定关系记录的物理端口标识为区别终端的物理端口的唯一标识;在所述服务器安装有至少一个应用,所述至少一个应用中的每个应用分别对应一个或多个所述端口绑定关系;所述至少一个应用包括所述目标应用,目标虚拟端口是指服务器中供所述目标应用使用的虚拟端口,目标物理端口是指终端中所述目标应用期望使用的物理端口,所述目标虚拟端口与所述目标物理端口对应,其中,通过调用所述存储器存储的操作指令,所述处理器用于执行如下步骤:
根据所述映射关系配置表中与所述目标应用对应的端口绑定关系所记录的虚拟端口标识,创建所述目标虚拟端口;
根据所述映射关系配置表生成映射关系表,所述映射关系表包括所述映射关系配置表中与所述目标虚拟端口对应的端口绑定关系;
在预设条件满足时,若所述目标虚拟端口被所述目标应用打开,根据所述映射关系表,通过所述发送器通知所述终端开启与所述目标虚拟端口对应的目标物理端口。
在一个可能的设计中,通过调用所述存储器存储的操作指令,所述处理器具体用于执行如下步骤:
在所述终端登录所述服务器时,通过所述接收器从所述终端获取所述终端的至少一个物理端口的物理端口标识,获取到的物理端口标识包括第一物理端口标识,所述第一物理端口标识是指在获取到的物理端口标识中所述映射关系配置表记录有的物理端口标识,其中,所述目标物理端口具有所述第一物理端口标识;根据所述映射关系配置表,将所有第一物理端口标识所各自对应的端口绑定关系添入所述映射关系表。
在另一个可能的设计中,所述获取到的物理端口标识还包括第二物理端口标识,所述第二物理端口标识是指在获取到的物理端口标识中所述映射关系配置表未记录有的物理端口标识;
通过调用所述存储器存储的操作指令,所述处理器还用于执行如下步骤:
创建所述第二物理端口标识与预设虚拟端口标识的端口绑定关系,并将创建的端口绑定关系添入所述映射关系表。
在另一个可能的设计中,所述预设条件满足是指所述服务器预置的端口自动连接开关处于关闭状态。
在另一个可能的设计中,所述预设条件不满足是指所述服务器预置的端口 自动连接开关处于打开状态;
通过调用所述存储器存储的操作指令,所述处理器还用于执行如下步骤:
通过所述发送器通知所述终端开启所述映射关系表中每条端口绑定关系记录的物理端口标识所指定的物理端口。
在另一个可能的设计中,通过调用所述存储器存储的操作指令,所述处理器具体用于执行如下步骤:
在获取到所述目标应用待写入所述目标物理端口的数据时,查询所述映射关系表中所述目标物理端口的状态,若查询到所述目标物理端口的状态为关闭状态,则通过所述发送器通知所述终端打开所述目标物理端口。
在另一个可能的设计中,通过调用所述存储器存储的操作指令,所述处理器具体用于执行如下步骤:
在获知所述终端打开所述目标物理端口时,向所述目标虚拟端口发送待写的数据,通过所述发送器经所述目标虚拟端口向所述目标物理端口转发待写的数据。
在另一个可能的设计中,通过调用所述存储器存储的操作指令,所述处理器还用于执行如下步骤:
在获知所述终端打开所述目标物理端口时,更新所述映射关系表中所述目标物理端口的状态为打开状态。
在另一个可能的设计中,通过调用所述存储器存储的操作指令,所述处理器还用于执行如下步骤:
在所述目标物理端口的状态为打开状态时,向所述目标虚拟端口发送待写的数据,通过所述发送器经所述目标虚拟端口向所述目标物理端口转发待写的数据。
在另一个可能的设计中,所述映射关系配置表还包括预置的禁止创建对应虚拟端口的物理端口标识。
在另一个可能的设计中,所述端口为串口或并口。
另一方面,本申请的实施例还提供一种服务器,所述服务器包括处理器和存储器,所述处理器与所述存储器通过总线连接;
所述存储器用于存储计算机执行指令,当所述服务器运行时,所述处理器读取所述存储器存储的所述计算机执行指令,以使所述服务器执行上述任一所述的端口重定向的方法。
另一方面,本申请的实施例提供一种端口重定向系统,包括终端和服务器,所述服务器为如第二方面或者第三方面中任一项所述的服务器。
从以上技术方案可以看出,本申请实施例具有以下优点:
本申请在所述服务器中应用打开虚拟端口之前,提前创建虚拟端口,避免了服务器内应用先于端口重定向正常工作之前就打开虚拟端口,导致后续工作不正常问题。
附图说明
图1是现有的USB串口重定向方法的示意图;
图2是远程虚拟桌面系统示意图;
图3是远程虚拟桌面系统架构示意图;
图4是本申请实施例中端口重定向的方法的一个实施例示意图;
图5是本申请实施例中服务器的一个实施例示意图;
图6是本申请实施例中服务器的另一个实施例示意图;
图7是本申请实施例中服务器的另一个实施例示意图。
具体实施方式
本申请提供了一种端口重定向的方法、终端和服务器,避免了服务器内应用先于端口重定向正常工作之前就打开端口,导致后续工作不正常问题。
为了使本技术领域的人员更好地理解本发明方案,下面将结合本申请中的附图,对本申请中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单 元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
如图2所示,为一般的远程虚拟桌面系统示意图,远程数据中心集中了服务器资源和存储资源100;通过虚拟化技术虚拟出多个虚拟机(英文全称:Virtual Machine,英文简称:VM)120,如图2中VM1、VM2等,或者无需虚拟化技术直接使用物理计算机121,如图2中PM3,在这些虚拟机或者物理计算机上安装操作系统130,并通过远程桌面协议150将远程虚拟桌面的界面投递在本地终端160上显示出来,同时把本地终端上的输入输出设备映射到远程虚拟桌面的服务器端。
如图3所示为远程虚拟桌面系统架构,包括终端170(包括各种输入输出设备)、桌面管理系统171、远程虚拟桌面计算机(包括虚拟机172,173和物理计算机174,175)三部分组成;桌面管理系统171主要是管理远程虚拟桌面计算机(如图3中172,173,174,175等)和远程终端170的注册以及用户登录远程虚拟桌面的管理;远程桌面协议由客户端和服务端组成,内部根据不同功能划分为不同的服务实现,例如USB/串并口服务客户端和服务器端交互实现各种外设的映射重定向;显示服务客户端和服务器端交互实现远程虚拟桌面投递到终端显示器;音频服务客户端和服务器端交互实现双向音频映射;多媒体服务客户端和服务器端交互实现多媒体服务的播放和录制;键鼠服务客户端和服务器端实现键盘与鼠标映射到远程虚拟桌面。
本申请中,通常所述的“端口”(如串口COM1或并口LPT1等),即“端口设备文件”,实际上是一个符号连接,它的指向是可以调用操作系统提供的API对其进行定义和修改的,以最后的指向为准;并且此“端口”所指向的对象,不一定要是在设备管理器中显示的设备对象,具体与实现有关,还有,一个“端口”只能指向一个对象,但不同“端口”可以指向同一对象。
一般应用程序在打开“端口”时,其操作的对象是此时“端口”所指向的对象,后续此端口所指向的对象如果被更换,不影响之前已经打开的,只影响后续打开的。
下面介绍本申请中端口重定向的方法的实施例,本申请实施例中,端口重定向的方法可以应用于远程虚拟桌面系统,服务器可以为远程数据中心中的虚拟机或者物理计算机,终端可以是瘦客户机或物理计算机等。
请参阅图4,本申请中一种端口重定向的方法的一个实施例,在服务器预置 有映射关系配置表,所述映射关系配置表包括至少一个端口绑定关系,每个所述端口绑定关系记录一个虚拟端口标识与一个物理端口标识的绑定关系,所述端口绑定关系记录的虚拟端口标识为区别所述服务器建立的虚拟端口的唯一标识,所述端口绑定关系记录的物理端口标识为区别终端的物理端口的唯一标识;在所述服务器安装有至少一个应用,所述至少一个应用中的每个应用分别对应一个或多个所述端口绑定关系;所述至少一个应用包括所述目标应用,目标虚拟端口是指服务器中供所述目标应用使用的虚拟端口,目标物理端口是指终端中所述目标应用期望使用的物理端口,所述目标虚拟端口与所述目标物理端口对应,所述方法包括:
401、服务器根据所述映射关系配置表中与所述目标应用对应的端口绑定关系所记录的虚拟端口标识,创建所述目标虚拟端口;
本实施例中,所述端口可以为串口或并口。所述端口可以包括虚拟端口,例如包括目标虚拟端口;所述端口还可以包括物理端口,例如包括目标物理端口。
所述映射关系配置表中包括至少一个端口绑定关系。每个端口绑定关系都记录有虚拟端口标识;服务器可以使用端口绑定关系所记录的虚拟端口标识创建虚拟端口,例如使用与目标应用对应的虚拟端口标识创建目标虚拟端口。
在远程虚拟桌面系统的服务器中,配置了各种类型的端口驱动,例如串口驱动,并口驱动等,在创建对应的目标虚拟端口后,根据所述服务器中预置的端口驱动加载所述目标虚拟端口对应的端口驱动,实现目标虚拟端口处于可使用状态,例如,创建了目标虚拟串口后,根据所述服务器中预置的串口驱动加载所述目标虚拟串口对应的串口驱动。
402、服务器根据所述映射关系配置表生成映射关系表;
其中,所述映射关系表包括所述映射关系配置表中与所述目标虚拟端口对应的端口绑定关系。
本申请实施例中映射关系配置表包括至少一个端口绑定关系,每个所述端口绑定关系记录一个虚拟端口标识与一个物理端口标识的绑定关系,具体的,可以包括配置格式信息和至少一个端口绑定关系,以端口为串口为例,映射关系配置表可以包括如下表1-1(配置格式信息)和表1-2(端口绑定关系):
表1-1
Figure PCTCN2016096567-appb-000001
表1-2
Figure PCTCN2016096567-appb-000002
根据映射关系配置表生成的映射关系表可以如下表2所示;
表2
Figure PCTCN2016096567-appb-000003
其中,false代表关闭状态,true代表打开状态。
403、服务器在预设条件满足时,若所述目标虚拟端口被所述目标应用打开,根据所述映射关系表通知所述终端开启与所述目标虚拟端口对应的目标物理端口。
本申请在所述服务器中应用打开端口之前,提前创建虚拟端口,避免了服务器内应用先于端口重定向正常工作之前就打开端口,导致后续工作不正常问题。
同时,本申请实施例中不需要第三方部件(如USB转串口线)来实现端口重定向,提高了端口设备的易用性和整体可靠性。
可选的,所述服务器根据所述映射关系配置表生成映射关系表,具体可以包括:
在所述终端登录所述服务器时,所述服务器从所述终端获取所述终端的至 少一个物理端口的物理端口标识,获取到的物理端口标识包括第一物理端口标识,所述第一物理端口标识是指在获取到的物理端口标识中所述映射关系配置表记录有的物理端口标识,其中,所述目标物理端口具有所述第一物理端口标识;
所述服务器根据所述映射关系配置表,将所有第一物理端口标识所各自对应的端口绑定关系添入所述映射关系表。
本实施例中,所述服务器从所述终端获取所述终端的至少一个物理端口的物理端口标识可以是如下两种方式之一:(1)所述服务器向所述终端发送用于查询所述终端端口的查询信息,以使得所述终端查询自身的物理端口标识得到所述至少一个物理端口的物理端口标识,并返回给所述服务器,所述服务器接收所述终端返回的所述至少一个物理端口的物理端口标识;(2)所述终端将自身的至少一个物理端口的物理端口标识向所述服务器发送,所述服务器接收所述终端返回的所述至少一个物理端口的物理端口标识,此处不作具体限定。
可选地,所述终端将所述至少一个物理端口的物理端口标识添加入物理端口标识列表,向服务器发送物理端口标识列表。本实施例中,所述物理端口标识列表包括包括第一物理端口标识,所述第一物理端口标识可以是一个或多个,并且所述第一物理端口标识已在所述映射关系配置表中记录。
例如,假设服务器接收所述终端返回的物理端口标识列表,该物理端口标识列表中包括第一物理端口标识:COM1和COM2,此时所述服务器根据所述映射关系配置表(如上表1-2),将所有第一物理端口标识所各自对应的端口绑定关系添入所述映射关系表,得到如下表3所示:
表3
Figure PCTCN2016096567-appb-000004
Figure PCTCN2016096567-appb-000005
在所述获取到的物理端口标识(即所述至少一个物理端口的物理端口标识)中包括第二物理端口标识,所述第二物理端口标识是指在获取到的物理端口标识中所述映射关系配置表未记录有的物理端口标识,即所述获取到的物理端口标识存在没有对应绑定关系的物理端口时,所述方法还可以包括:所述服务器创建所述第二物理端口标识与预设虚拟端口标识的端口绑定关系,并将创建的端口绑定关系添入所述映射关系表。
其中,预设虚拟端口可以是服务器根据映射关系配置表创建的虚拟端口中预留的虚拟端口,也可以是预先新创建的虚拟端口。
当所述预设虚拟端口为根据第二物理端口标识预先创建的新的虚拟端口时,在所述服务器创建所述第二物理端口标识与预设虚拟端口标识的端口绑定关系之前,所述方法还可以包括:所述服务器创建所述第二物理端口标识对应的虚拟端口。
例如,以所述获取到的物理端口标识为物理端口标识列表为例,在所述物理端口标识列表中存在所述映射关系配置表未记录有的物理端口标识时,如在端口信息列表中包括上述物理端口标识COM1、COM2的基础上,端口信息列表中还包括物理端口标识COM 3、COM4,由于上述映射关系配置表中没有终端侧的物理端口标识COM3、COM4与服务器侧的虚拟端口的绑定关系,因此需要再创建或分配给物理端口COM 3、COM4对应的虚拟端口,创建它们的绑定关系,并将创建的端口绑定关系添入所述映射关系表,具体可以如下表4所示。
在所述物理端口标识列表中存在所述映射关系配置表未记录有的物理端口标识时,还可以将服务器根据映射关系配置表创建的虚拟端口的标识与第二物理端口标识绑定,而不用重新再创建新的虚拟端口,如上表3中,服务器侧的虚拟端口标识COM2未指定终端侧的物理端口,由于终端侧的物理端口标识COM3没有直接的虚拟端口对应,则终端侧的物理端口标识COM3优先会从空闲的虚拟端口标识去匹配绑定,此处会匹配上虚拟端口标识COM2,当服务器侧无空闲的虚拟端口标识时,才会去创建新的虚拟端口标识给终端侧的物理端口标识COM3匹配。
表4
Figure PCTCN2016096567-appb-000006
当终端与服务器断开连接后,服务器还可以删除那些非提前创建的虚拟串口(如上后续创建的创建COM 3、COM4对应的虚拟端口),还原映射关系表到初始状态。
本申请实施例中,所述预设条件满足可以是指所述服务器预置的端口自动连接开关处于关闭状态,即在服务器中预置的端口自动连接开关,在端口自动连接开关处于关闭状态时,若所述目标虚拟端口被所述目标应用打开,才根据所述映射关系表通知所述终端开启与所述目标虚拟端口对应的目标物理端口。
在服务器中预置的端口自动连接开关的情况下,可选的,所述预设条件不满足可以是指所述服务器预置的端口自动连接开关处于打开状态,此时,所述方法还可以包括:所述服务器通知所述终端开启所述映射关系表中每条端口绑定关系记录的物理端口标识所指定的物理端口,即通知终端开启所述映射关系表中所有的有绑定关系记录的物理端口标识所指定的物理端口,此种情况适用于端口使用率比较高的场景,此种场景下不需要在目标虚拟端口被所述目标应用打开才去打开对应的物理端口,提高了效率。
可选的,本申请实施例中,所述根据所述映射关系表通知所述终端开启与 所述目标虚拟端口对应的目标物理端口,具体可以包括:
所述服务器在获取到所述目标应用待写入所述目标物理端口的数据时,查询所述映射关系表中所述目标物理端口的状态,若查询到所述目标物理端口的状态为关闭状态,则通知所述终端打开所述目标物理端口。
即在应用有待写入所述目标物理端口的数据时,才去开启对应的目标物理端口,避免了资源的浪费。
可选的,所述服务器在获知所述终端打开所述目标物理端口时,向所述目标虚拟端口发送待写的数据,经所述目标虚拟端口向所述目标物理端口转发待写的数据。
可选的,所述服务器在获知所述终端打开所述目标物理端口时,更新所述映射关系表中所述目标物理端口的状态为打开状态,实现了映射关系表的自动动态管理,提高了易用性。
例如,在服务器中预置的端口自动连接开关,在端口自动连接开关处于打开状态,所述服务器通知所述终端开启所述映射关系表中每条端口绑定关系记录的物理端口标识所指定的物理端口的情况下,在获知终端开启了对应的物理端口后,将映射关系表中终端的物理端口状态修改为打开状态,即由false修改为true;又例如,在服务器在获取到所述目标应用待写入所述目标物理端口的数据时,通知所述终端打开所述目标物理端口的情况下,将映射关系表中终端侧的目标物理端口状态也对应修改为打开状态,即也由false修改为true。
可选的,若所述目标物理端口的状态为打开状态,则所述服务器向所述目标虚拟端口发送待写的数据,经所述目标虚拟端口向所述目标物理端口转发待写的数据。
本申请实施例中,所述预设条件不满足还可以是所述服务器内预置端口重定向总开关处于关闭状态,即不允许对终端物理端口进行重定向,此时,所述方法还包括:所述服务器将获取到所述目标应用待写入所述目标物理端口的数据直接丢弃,提高了处理应用对应的端口数据的效率。
可选的,所述映射关系配置表还可以包括预置的禁止创建对应虚拟端口的物理端口标识,此时,通过映射关系配置表,可以避免终端的物理端口因某些原因不希望端口指向被改变,而造成端口冲突的问题。
本申请实施例中,映射关系配置表可以是固定的静态表,映射关系表可以是可更新的动态表,上述服务器根据所述映射关系配置表生成映射关系表,由 于映射关系配置表根据需要可固定下来,映射关系表后续可自动更新,完成映射动作,使得在端口重定向时,避免了现有技术中需要频繁手工建立或调整映射关系的问题,提高了易用性,降低了使用要求。
下面介绍本申请实施例中服务器的实施例。
请参阅图5,为本申请中服务器的一个实施例,在服务器预置有映射关系配置表,所述映射关系配置表包括至少一个端口绑定关系,每个所述端口绑定关系记录一个虚拟端口标识与一个物理端口标识的绑定关系,所述端口绑定关系记录的虚拟端口标识为区别所述服务器建立的虚拟端口的唯一标识,所述端口绑定关系记录的物理端口标识为区别终端的物理端口的唯一标识;在所述服务器安装有至少一个应用,所述至少一个应用中的每个应用分别对应一个或多个所述端口绑定关系;所述至少一个应用包括所述目标应用,目标虚拟端口是指服务器中供所述目标应用使用的虚拟端口,目标物理端口是指终端中所述目标应用期望使用的物理端口,所述目标虚拟端口与所述目标物理端口对应,所述服务器包括:
创建单元501,用于根据所述映射关系配置表中与所述目标应用对应的端口绑定关系所记录的虚拟端口标识,创建所述目标虚拟端口;
生成单元502,用于根据所述映射关系配置表生成映射关系表,所述映射关系表包括所述映射关系配置表中与所述目标虚拟端口对应的端口绑定关系;
通知单元503,用于在预设条件满足时,若所述目标虚拟端口被所述目标应用打开,根据所述映射关系表通知所述终端开启与所述目标虚拟端口对应的目标物理端口。
可选的,所述生成单元502具体用于在所述终端登录所述服务器时,从所述终端获取所述终端的至少一个物理端口的物理端口标识,获取到的物理端口标识包括第一物理端口标识,所述第一物理端口标识是指在获取到的物理端口标识中所述映射关系配置表记录有的物理端口标识,其中,所述目标物理端口具有所述第一物理端口标识;根据所述映射关系配置表,将所有第一物理端口标识所各自对应的端口绑定关系添入所述映射关系表。
可选的,所述获取到的物理端口标识还包括第二物理端口标识,所述第二物理端口标识是指在获取到的物理端口标识中所述映射关系配置表未记录有的物理端口标识;
所述创建单元501还用于创建所述第二物理端口标识与预设虚拟端口标识 的端口绑定关系,并将创建的端口绑定关系添入所述映射关系表。
可选的,所述预设条件满足是指所述服务器预置的端口自动连接开关处于关闭状态。
可选的,所述预设条件不满足是指所述服务器预置的端口自动连接开关处于打开状态;
所述通知单元503还用于通知所述终端开启所述映射关系表中每条端口绑定关系记录的物理端口标识所指定的物理端口。
可选的,所述通知单元503具体用于在获取到所述目标应用待写入所述目标物理端口的数据时,查询所述映射关系表中所述目标物理端口的状态,若查询到所述目标物理端口的状态为关闭状态,则通知所述终端打开所述目标物理端口。
可选的,所述服务器还包括:
发送单元,用于在获知所述终端打开所述目标物理端口时,向所述目标虚拟端口发送待写的数据,经所述目标虚拟端口向所述目标物理端口转发待写的数据。
可选的,所述服务器还包括:
更新单元,用于在获知所述终端打开所述目标物理端口时,更新所述映射关系表中所述目标物理端口的状态为打开状态。
可选的,所述发送单元还用于在所述目标物理端口的状态为打开状态时,向所述目标虚拟端口发送待写的数据,经所述目标虚拟端口向所述目标物理端口转发待写的数据。
可选的,所述映射关系配置表还包括预置的禁止创建对应虚拟端口的物理端口标识。
可选的,所述端口为串口或并口。
上面从单元化功能实体的角度对本发明实施例中的服务器进行了描述,下面从硬件处理的角度对本发明实施例中的服务器进行描述,请参阅图6,本发明实施例中的服务器600包括:
接收器601、发送器602、处理器603和存储器604(其中处理器603的数量可以一个或多个,图6中以一个处理器603为例)。在本发明的一些实施例中,接收器601、发送器602、处理器603和存储器604可通过总线或其它方式连接,其中,图6中以通过总线连接为例。
所述存储器604中存储有映射关系配置表,所述映射关系配置表包括至少一个端口绑定关系,每个所述端口绑定关系记录一个虚拟端口标识与一个物理端口标识的绑定关系,所述端口绑定关系记录的虚拟端口标识为区别所述服务器建立的虚拟端口的唯一标识,所述端口绑定关系记录的物理端口标识为区别终端的物理端口的唯一标识;在所述服务器安装有至少一个应用,所述至少一个应用中的每个应用分别对应一个或多个所述端口绑定关系;所述至少一个应用包括所述目标应用,目标虚拟端口是指服务器中供所述目标应用使用的虚拟端口,目标物理端口是指终端中所述目标应用期望使用的物理端口,所述目标虚拟端口与所述目标物理端口对应,其中,通过调用所述存储器604存储的操作指令,所述处理器603用于执行如下步骤:
根据所述映射关系配置表中与所述目标应用对应的端口绑定关系所记录的虚拟端口标识,创建所述目标虚拟端口;
根据所述映射关系配置表生成映射关系表,所述映射关系表包括所述映射关系配置表中与所述目标虚拟端口对应的端口绑定关系;
在预设条件满足时,若所述目标虚拟端口被所述目标应用打开,根据所述映射关系表,通过所述发送器通知所述终端开启与所述目标虚拟端口对应的目标物理端口。
可选的,通过调用所述存储器604存储的操作指令,所述处理器603具体用于执行如下步骤:
在所述终端登录所述服务器时,通过所述接收器601从所述终端获取所述终端的至少一个物理端口的物理端口标识,获取到的物理端口标识包括第一物理端口标识,所述第一物理端口标识是指在获取到的物理端口标识中所述映射关系配置表记录有的物理端口标识,其中,所述目标物理端口具有所述第一物理端口标识;根据所述映射关系配置表,将所有第一物理端口标识所各自对应的端口绑定关系添入所述映射关系表。
可选的,所述获取到的物理端口标识还包括第二物理端口标识,所述第二物理端口标识是指在获取到的物理端口标识中所述映射关系配置表未记录有的物理端口标识;
通过调用所述存储器604存储的操作指令,所述处理器603还用于执行如下步骤:
创建所述第二物理端口标识与预设虚拟端口标识的端口绑定关系,并将创 建的端口绑定关系添入所述映射关系表。
可选的,所述预设条件满足是指所述服务器预置的端口自动连接开关处于关闭状态。
可选的,所述预设条件不满足是指所述服务器预置的端口自动连接开关处于打开状态;
通过调用所述存储器604存储的操作指令,所述处理器603还用于执行如下步骤:
通过所述发送器602通知所述终端开启所述映射关系表中每条端口绑定关系记录的物理端口标识所指定的物理端口。
可选的,通过调用所述存储器604存储的操作指令,所述处理器603具体用于执行如下步骤:
在获取到所述目标应用待写入所述目标物理端口的数据时,查询所述映射关系表中所述目标物理端口的状态,若查询到所述目标物理端口的状态为关闭状态,则通过所述发送器602通知所述终端打开所述目标物理端口。
可选的,通过调用所述存储器604存储的操作指令,所述处理器603具体用于执行如下步骤:
在获知所述终端打开所述目标物理端口时,向所述目标虚拟端口发送待写的数据,通过所述发送器经所述目标虚拟端口向所述目标物理端口转发待写的数据。
可选的,通过调用所述存储器604存储的操作指令,所述处理器603还用于执行如下步骤:
在获知所述终端打开所述目标物理端口时,更新所述映射关系表中所述目标物理端口的状态为打开状态。
可选的,通过调用所述存储器604存储的操作指令,所述处理器603还用于执行如下步骤:
在所述目标物理端口的状态为打开状态时,向所述目标虚拟端口发送待写的数据,通过所述发送器经所述目标虚拟端口向所述目标物理端口转发待写的数据。
可选的,所述映射关系配置表还包括预置的禁止创建对应虚拟端口的物理端口标识。
可选的,所述端口为串口或并口。
本发明实施例涉及的服务器可以具有比图6所示出的更多或更少的部件,可以组合两个或更多个部件,或者可以具有不同的部件配置或设置,各个部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件或硬件和软件的组合实现。
本申请的实施例还提供一种服务器,如图7所示所述服务器包括处理器701和存储器702,所述处理器701与所述存储器702通过总线连接;
所述存储器702用于存储计算机执行指令,当所述服务器运行时,所述处理器701读取所述存储器702存储的所述计算机执行指令,以使所述服务器执行上述任一所述的端口重定向的方法。
本申请实施例中提供一种端口重定向系统,包括终端和服务器,所述服务器为上述任一种情况所描述的服务器。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些端口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部 单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims (22)

  1. 一种端口重定向的方法,其特征在于,在服务器预置有映射关系配置表,所述映射关系配置表包括至少一个端口绑定关系,每个所述端口绑定关系记录一个虚拟端口标识与一个物理端口标识的绑定关系,所述端口绑定关系记录的虚拟端口标识为区别所述服务器建立的虚拟端口的唯一标识,所述端口绑定关系记录的物理端口标识为区别终端的物理端口的唯一标识;在所述服务器安装有至少一个应用,所述至少一个应用中的每个应用分别对应一个或多个所述端口绑定关系;所述至少一个应用包括所述目标应用,目标虚拟端口是指服务器中供所述目标应用使用的虚拟端口,目标物理端口是指终端中所述目标应用期望使用的物理端口,所述目标虚拟端口与所述目标物理端口对应,所述方法包括:
    所述服务器根据所述映射关系配置表中与所述目标应用对应的端口绑定关系所记录的虚拟端口标识,创建所述目标虚拟端口;
    所述服务器根据所述映射关系配置表生成映射关系表,所述映射关系表包括所述映射关系配置表中与所述目标虚拟端口对应的端口绑定关系;
    所述服务器在预设条件满足时,若所述目标虚拟端口被所述目标应用打开,根据所述映射关系表通知所述终端开启与所述目标虚拟端口对应的目标物理端口。
  2. 根据权利要求1所述的方法,其特征在于,所述服务器根据所述映射关系配置表生成映射关系表,具体包括:
    在所述终端登录所述服务器时,所述服务器从所述终端获取所述终端的至少一个物理端口的物理端口标识,获取到的物理端口标识包括第一物理端口标识,所述第一物理端口标识是指在获取到的物理端口标识中所述映射关系配置表记录有的物理端口标识,其中,所述目标物理端口具有所述第一物理端口标识;
    所述服务器根据所述映射关系配置表,将所有第一物理端口标识所各自对应的端口绑定关系添入所述映射关系表。
  3. 根据权利要求2所述的方法,其特征在于,所述获取到的物理端口标识包括第二物理端口标识,所述第二物理端口标识是指在获取到的物理端口标识中所述映射关系配置表未记录有的物理端口标识;
    所述方法还包括:
    所述服务器创建所述第二物理端口标识与预设虚拟端口标识的端口绑定关系,并将创建的端口绑定关系添入所述映射关系表。
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述预设条件满足是指所述服务器预置的端口自动连接开关处于关闭状态。
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,
    所述预设条件不满足是指所述服务器预置的端口自动连接开关处于打开状态;
    所述方法还包括:
    所述服务器通知所述终端开启所述映射关系表中每条端口绑定关系记录的物理端口标识所指定的物理端口。
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,
    所述根据所述映射关系表通知所述终端开启与所述目标虚拟端口对应的目标物理端口,包括:
    所述服务器在获取到所述目标应用待写入所述目标物理端口的数据时,查询所述映射关系表中所述目标物理端口的状态,若查询到所述目标物理端口的状态为关闭状态,则通知所述终端打开所述目标物理端口。
  7. 根据权利要求6所述的方法,其特征在于,所述方法包括:
    所述服务器在获知所述终端打开所述目标物理端口时,向所述目标虚拟端口发送待写的数据,经所述目标虚拟端口向所述目标物理端口转发待写的数据。
  8. 根据权利要求7所述的方法,其特征在于,所述方法包括:
    所述服务器在获知所述终端打开所述目标物理端口时,更新所述映射关系表中所述目标物理端口的状态为打开状态。
  9. 根据权利要求6或7所述的方法,其特征在于,所述方法还包括:
    若所述目标物理端口的状态为打开状态,则所述服务器向所述目标虚拟端口发送待写的数据,经所述目标虚拟端口向所述目标物理端口转发待写的数据。
  10. 根据权利要求1至9中任一项所述的方法,其特征在于,
    所述映射关系配置表还包括预置的禁止创建对应虚拟端口的物理端口标识。
  11. 根据权利要求1至10中任一项所述的方法,其特征在于,
    所述端口为串口或并口。
  12. 一种服务器,其特征在于,在服务器预置有映射关系配置表,所述映射关系配置表包括至少一个端口绑定关系,每个所述端口绑定关系记录一个虚拟端口标识与一个物理端口标识的绑定关系,所述端口绑定关系记录的虚拟端口标识为区别所述服务器建立的虚拟端口的唯一标识,所述端口绑定关系记录的物理端口标识为区别终端的物理端口的唯一标识;在所述服务器安装有至少一个应用,所述至少一个应用中的每个应用分别对应一个或多个所述端口绑定关系;所述至少一个应用包括所述目标应用,目标虚拟端口是指服务器中供所述目标应用使用的虚拟端口,目标物理端口是指终端中所述目标应用期望使用的物理端口,所述目标虚拟端口与所述目标物理端口对应,所述服务器包括:
    创建单元,用于根据所述映射关系配置表中与所述目标应用对应的端口绑定关系所记录的虚拟端口标识,创建所述目标虚拟端口;
    生成单元,用于根据所述映射关系配置表生成映射关系表,所述映射关系表包括所述映射关系配置表中与所述目标虚拟端口对应的端口绑定关系;
    通知单元,用于在预设条件满足时,若所述目标虚拟端口被所述目标应用打开,根据所述映射关系表通知所述终端开启与所述目标虚拟端口对应的目标物理端口。
  13. 根据权利要求12所述的服务器,其特征在于,所述生成单元具体用于在所述终端登录所述服务器时,从所述终端获取所述终端的至少一个物理端口的物理端口标识,获取到的物理端口标识包括第一物理端口标识,所述第一物理端口标识是指在获取到的物理端口标识中所述映射关系配置表记录有的物理端口标识,其中,所述目标物理端口具有所述第一物理端口标识;根据所述映射关系配置表,将所有第一物理端口标识所各自对应的端口绑定关系添入所述映射关系表。
  14. 根据权利要求13所述的服务器,其特征在于,所述获取到的物理端口标识还包括第二物理端口标识,所述第二物理端口标识是指在获取到的物理端口标识中所述映射关系配置表未记录有的物理端口标识;
    所述创建单元还用于创建所述第二物理端口标识与预设虚拟端口标识的端口绑定关系,并将创建的端口绑定关系添入所述映射关系表。
  15. 根据权利要求12至14中任一项所述的服务器,其特征在于,所述 预设条件满足是指所述服务器预置的端口自动连接开关处于关闭状态。
  16. 根据权利要求12至15中任一项所述的服务器,其特征在于,所述预设条件不满足是指所述服务器预置的端口自动连接开关处于打开状态;
    所述通知单元还用于通知所述终端开启所述映射关系表中每条端口绑定关系记录的物理端口标识所指定的物理端口。
  17. 根据权利要求12至16中任一项所述的服务器,其特征在于,
    所述通知单元具体用于在获取到所述目标应用待写入所述目标物理端口的数据时,查询所述映射关系表中所述目标物理端口的状态,若查询到所述目标物理端口的状态为关闭状态,则通知所述终端打开所述目标物理端口。
  18. 根据权利要求17所述的服务器,其特征在于,所述服务器还包括:
    发送单元,用于在获知所述终端打开所述目标物理端口时,向所述目标虚拟端口发送待写的数据,经所述目标虚拟端口向所述目标物理端口转发待写的数据。
  19. 根据权利要求18所述的服务器,其特征在于,所述服务器还包括:
    更新单元,用于在获知所述终端打开所述目标物理端口时,更新所述映射关系表中所述目标物理端口的状态为打开状态。
  20. 根据权利要求17或18所述的服务器,其特征在于,所述发送单元还用于在所述目标物理端口的状态为打开状态时,向所述目标虚拟端口发送待写的数据,经所述目标虚拟端口向所述目标物理端口转发待写的数据。
  21. 根据权利要求12至20中任一所述的服务器,其特征在于,所述映射关系配置表还包括预置的禁止创建对应虚拟端口的物理端口标识。
  22. 一种服务器,其特征在于,所述服务器包括处理器和存储器,所述处理器与所述存储器通过总线连接;
    所述存储器用于存储计算机执行指令,当所述服务器运行时,所述处理器读取所述存储器存储的所述计算机执行指令,以使所述服务器执行权利要求1至11任一项所述的端口重定向的方法方法。
PCT/CN2016/096567 2016-01-29 2016-08-24 一种端口重定向的方法、服务器和系统 WO2017128710A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610067163.0 2016-01-29
CN201610067163.0A CN105721566B (zh) 2016-01-29 2016-01-29 一种端口重定向的方法、服务器

Publications (1)

Publication Number Publication Date
WO2017128710A1 true WO2017128710A1 (zh) 2017-08-03

Family

ID=56155229

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/096567 WO2017128710A1 (zh) 2016-01-29 2016-08-24 一种端口重定向的方法、服务器和系统

Country Status (2)

Country Link
CN (1) CN105721566B (zh)
WO (1) WO2017128710A1 (zh)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105721566B (zh) * 2016-01-29 2019-05-24 华为技术有限公司 一种端口重定向的方法、服务器
CN107612702A (zh) * 2016-07-12 2018-01-19 中兴通讯股份有限公司 一种路由器配置方法及装置
KR20180074151A (ko) * 2016-12-23 2018-07-03 에이치피프린팅코리아 주식회사 화상 형성 장치 및 화상 형성 장치에서 네트워크를 설정하는 방법
CN107066409A (zh) * 2017-03-31 2017-08-18 福建升腾资讯有限公司 基于业务系统的通信口重定向和通信数据二次处理的方法
CN108809672B (zh) * 2017-04-26 2022-04-19 中兴通讯股份有限公司 一种虚拟端口的管理方法及装置
CN107483538B (zh) * 2017-07-06 2021-01-01 聚好看科技股份有限公司 一种在微服务集群的节点上处理访问请求包的方法和装置
CN107395423A (zh) * 2017-07-28 2017-11-24 郑州云海信息技术有限公司 绑定网络端口与网卡接口的方法和装置
CN110115835B (zh) * 2018-02-05 2022-12-20 网宿科技股份有限公司 基于Android系统的云游戏运行方法及服务器
CN108696437B (zh) * 2018-06-22 2021-05-28 新华三技术有限公司 一种流量转发方法及装置
CN109144592B (zh) * 2018-09-10 2022-03-22 郑州云海信息技术有限公司 一种基于port模式的驱动业务执行系统及方法
CN109309635A (zh) * 2018-09-28 2019-02-05 新华三云计算技术有限公司 虚拟机弹性伸缩方法、装置、主机设备和计算机可读介质
CN110231923B (zh) * 2019-05-31 2020-05-29 浙江口碑网络技术有限公司 数据管理方法和装置
CN112699071A (zh) * 2020-12-14 2021-04-23 北京握奇智能科技有限公司 一种基于Linux系统的USB端口绑定结构和方法

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1825272A (zh) * 2005-02-22 2006-08-30 中国科学院计算技术研究所 一种多节点智能网络应用服务系统中的远程打印方法
CN101296185A (zh) * 2008-06-05 2008-10-29 杭州华三通信技术有限公司 一种均衡组的流量控制方法及装置
CN101329639A (zh) * 2008-07-24 2008-12-24 武汉理工大学 一种在制造网格环境中实现应用程序共享的方法
US20140003445A1 (en) * 2012-07-02 2014-01-02 Electronics And Telecommunications Research Institute Network application virtualization method and system
CN103530159A (zh) * 2013-10-21 2014-01-22 深圳市中兴物联科技有限公司 无线通信模块的升级方法和系统
CN105721566A (zh) * 2016-01-29 2016-06-29 华为技术有限公司 一种端口重定向的方法、服务器和系统

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8397092B2 (en) * 2010-03-24 2013-03-12 Emulex Design & Manufacturing Corporation Power management for input/output devices by creating a virtual port for redirecting traffic
CN102508795B (zh) * 2011-10-14 2014-10-22 深圳市京华科讯科技有限公司 一种并行端口重定向的方法及系统
CN102508796B (zh) * 2011-10-14 2014-10-22 深圳市京华科讯科技有限公司 一种串行端口重定向的方法及系统
CN103051716A (zh) * 2012-12-25 2013-04-17 中标软件有限公司 一种面向网络的串口设备重定向的方法及系统
CN104410668A (zh) * 2014-10-31 2015-03-11 国云科技股份有限公司 一种适用于公有云的虚拟机远程桌面管理方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1825272A (zh) * 2005-02-22 2006-08-30 中国科学院计算技术研究所 一种多节点智能网络应用服务系统中的远程打印方法
CN101296185A (zh) * 2008-06-05 2008-10-29 杭州华三通信技术有限公司 一种均衡组的流量控制方法及装置
CN101329639A (zh) * 2008-07-24 2008-12-24 武汉理工大学 一种在制造网格环境中实现应用程序共享的方法
US20140003445A1 (en) * 2012-07-02 2014-01-02 Electronics And Telecommunications Research Institute Network application virtualization method and system
CN103530159A (zh) * 2013-10-21 2014-01-22 深圳市中兴物联科技有限公司 无线通信模块的升级方法和系统
CN105721566A (zh) * 2016-01-29 2016-06-29 华为技术有限公司 一种端口重定向的方法、服务器和系统

Also Published As

Publication number Publication date
CN105721566B (zh) 2019-05-24
CN105721566A (zh) 2016-06-29

Similar Documents

Publication Publication Date Title
WO2017128710A1 (zh) 一种端口重定向的方法、服务器和系统
US8495625B1 (en) Method and system for creation of streamed files on-demand
US8966499B2 (en) Virtual switch extensibility
US8539484B1 (en) Multi-platform computer system management for virtualized environments
US9207959B2 (en) Creating a virtual disk using set of binding information of a paravirtual network interface card and a physical network interface card
US9201709B2 (en) Shell integration for an application executing remotely on a server
US11294735B2 (en) Method and apparatus for accessing desktop cloud virtual machine, and desktop cloud controller
US11249788B2 (en) Cloud management platform, and virtual machine management method and system
US11099865B2 (en) Auditing clipboard operations in virtual desktop environments
US10152402B2 (en) Supporting multiple streams for a redirected USB device
US10313448B2 (en) Employing an auxiliary device to implement USB device redirection
US8782630B2 (en) Smart rebinding for live product install
CN107580011B (zh) 一种数据共享方法及桌面云服务端
US8875132B2 (en) Method and apparatus for implementing virtual proxy to support heterogeneous systems management
US10496590B2 (en) Enabling redirection policies to be applied based on the windows class of a USB device
CN110908753A (zh) 一种智能融合的云桌面服务器、客户端及系统
US20180267918A1 (en) Virtualizing a non-usb device as a usb device
US20130238673A1 (en) Information processing apparatus, image file creation method, and storage medium
US10536559B2 (en) Blocking an interface of a redirected USB composite device
US20160197849A1 (en) Method and Apparatus for Implementing a Messaging Interface
CN108536410B (zh) 无线传屏方法及系统
US20140297953A1 (en) Removable Storage Device Identity and Configuration Information
CN114911421B (zh) 基于csi插件的数据存储方法、系统、装置及存储介质
US20240103881A1 (en) Sideband bare metal provisioning
US11513811B2 (en) Device identifier translation systems and methods

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

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

Country of ref document: EP

Kind code of ref document: A1