CN107544930A - The transmitting method and device of a kind of COM1 - Google Patents

The transmitting method and device of a kind of COM1 Download PDF

Info

Publication number
CN107544930A
CN107544930A CN201610480633.6A CN201610480633A CN107544930A CN 107544930 A CN107544930 A CN 107544930A CN 201610480633 A CN201610480633 A CN 201610480633A CN 107544930 A CN107544930 A CN 107544930A
Authority
CN
China
Prior art keywords
port information
port
com1
information
com1s
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610480633.6A
Other languages
Chinese (zh)
Other versions
CN107544930B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610480633.6A priority Critical patent/CN107544930B/en
Priority to PCT/CN2017/086905 priority patent/WO2018001037A1/en
Publication of CN107544930A publication Critical patent/CN107544930A/en
Application granted granted Critical
Publication of CN107544930B publication Critical patent/CN107544930B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the invention discloses a kind of transmitting method of COM1 and device, this method includes:When the first COM1 of host is passed through into virtual machine, the first port information of the first COM1 is extracted;Obtain the port information of each COM1 in host;The second port information with first port information match is determined in the port information of all COM1s of host;Second COM1 corresponding to second port information is passed through into virtual machine.The second COM1 on the cascade device of first COM1 can automatically be passed through virtual machine by scheme provided by the invention in the case where the first COM1 is passed through virtual machine.

Description

The transmitting method and device of a kind of COM1
Technical field
The present invention relates to communication technical field, in particular, is related to the transmitting method and device of a kind of COM1.
Background technology
At present, in virtualization technology, in addition to the virtualization of processor, the virtualization of COM1 is included.In order to Ensure that COM1 can be exclusive using, it is necessary to will be logical using transparent transmission (passthrough) technology by the operating system of virtual machine Letter port passes through virtual machine.By some COM1 pass through virtual machine refer to providing to the operating system of the virtual machine it is logical Port isolation is believed, so that the COM1 can be by the exclusive use of the operating system of the virtual machine.
When the COM1 of host is passed through into virtual machine using Signal Transparent Transmission Technology, virtual machine can be with the use communication Port.But if user expands cascade device on the COM1, then just None- identified goes out the cascade and set virtual machine Standby COM1, so as to cause virtual machine can not use the COM1 of the cascade device.
For example, it is assumed that COM1 is communication universal serial bus (Universal Serial Bus, USB) port, host Upper to have 3 USB ports, this 3 USB ports are respectively port x1, port x2 and port x3, and virtual machine is provided with host Port x1 is passed through virtual machine A by A, host, so that virtual machine A can monopolize port x1.Now, user connects on the x1 of port A cascade device USB hub has been met, and there is 2 ports, respectively port x1.1 and port x1.2, phase on the USB hub When in port x1 has been expanded into port x1.1 and port x1.2 using the USB hub.Although user is wanted USB hub end Mouth x1.1 and x1.2 passes through virtual machine A uses, but virtual machine A None- identifieds go out USB hub port x1.1 and x1.2, institute Port x1.1 and x1.2 can not be used with virtual machine A.
Therefore, will be logical on the cascade device of the COM1 how in the case where COM1 passes through virtual machine Letter port automatically passes through virtual machine, turns into the technical problem of current urgent need to resolve.
The content of the invention
The embodiment of the present invention provides a kind of transmitting method and device of COM1, with saturating in the first COM1 In the case of being transmitted to virtual machine, the second COM1 on the cascade device of first COM1 is automatically passed through into the void Plan machine.
First aspect present invention provides a kind of transmitting method of COM1, and methods described is applied to be provided with virtual machine On host, methods described includes:
When the first COM1 of the host is passed through into the virtual machine, first COM1 is extracted First port information;
Obtain the port information of each COM1 in the host;
Determined in the port information of all COM1s of the host and the first port information match Second port information, the second COM1 corresponding to the second port information are the cascade device of first COM1 COM1;
Second COM1 corresponding to the second port information is passed through into the virtual machine.
With reference to above-mentioned in a first aspect, in the first possible implementation, each communication ends in the host are obtained After the step of port information of mouth, methods described also includes:
Judge to whether there is the with the first port information match in the port information of all COM1s Two-port netwerk information;
Described second with the first port information match in the port information of all COM1s be present During port information, the determined in the port information of all COM1s with the first port information match is performed The step of Two-port netwerk information;
Described the with the first port information match is not present in the port information of all COM1s During Two-port netwerk information, preset time is waited, performs the step for obtaining the port information of each COM1 in the host again Suddenly.
With reference to above-mentioned in a first aspect, in second of possible implementation, the of first COM1 is being extracted After the step of Single port information, methods described also includes:
First COM1 is monitored,
Judge whether to listen to the insertion event of first COM1;
When listening to the insertion event of first COM1, perform described obtain and each communicated in the host The step of port information of port;
When not hearing the insertion event of first COM1, continue to monitor first COM1.
Second with reference to the first possible implementation or first aspect of above-mentioned first aspect, first aspect may Implementation, in the third possible implementation, when the port information of the COM1 is port numbers, described Determined in the port information of all COM1s of host and the second port information of the first port information match Step includes:
The prefix part identical the 3rd with the first end slogan is determined in the port numbers of all COM1s Port numbers;
The second port number containing suffix portion is determined in the 3rd port numbers.
Second with reference to the first possible implementation or first aspect of above-mentioned first aspect, first aspect may Implementation, in the 4th kind of possible implementation, include port numbers and bus in the port information of the COM1 Number when, determined and the second of the first port information match in the port information of all COM1s of the host The step of port information, includes:
The 4th of the Bus number with the first port information is determined in the port information of all COM1s Port information;
Determined in the 4th port information and the prefix part identical of the port numbers of the first port information the Five port informations;
The second port information containing suffix portion is determined in the port numbers of the fifth port information.
Second aspect of the present invention provides the transmitting method of another COM1, and methods described is applied to be provided with virtually On the network equipment of machine, methods described includes:
Obtain the port information of each COM1 in the network equipment;
The with first port information match is determined in the port information of all COM1s of the network equipment Two-port netwerk information, the second COM1 corresponding to the second port information are the first communication corresponding to the first port information The COM1 of the cascade device of port;First COM1 is any one in all COM1s;
The matching relationship of the first port information and the second port information is sent in network controller;
Receiving that the network controller sends by the second COM1 transparent transmission corresponding to the second port information During instruction to the virtual machine, the second COM1 corresponding to the second port information is passed through into the virtual machine.
With reference to above-mentioned second aspect, in the first possible implementation, obtain and each communicated in the network equipment After the step of port information of port, methods described also includes:
Judge to whether there is the with the first port information match in the port information of all COM1s Two-port netwerk information;
Described second with the first port information match in the port information of all COM1s be present During port information, the determined in the port information of each COM1 with the first port information match is performed The step of Two-port netwerk information;
Described the with the first port information match is not present in the port information of all COM1s During Two-port netwerk information, preset time is waited, performs obtain the port information of each COM1 in the network equipment again Step.
With reference to above-mentioned second aspect, in second of possible implementation, each lead in the network equipment is obtained Before the step of believing the port information of port, methods described also includes:
Monitor each COM1 of the network equipment;
Judge whether to listen to the insertion event of first COM1;
When listening to the insertion event of first COM1, perform described obtain and each lead in the network equipment The step of believing the port information of port;
When not hearing the insertion event of first COM1, monitoring each communication ends are continued executing with The step of mouth.
Second with reference to the first possible implementation or second aspect of above-mentioned second aspect, second aspect may Implementation, in the third possible implementation, when the port information of the COM1 is port numbers, described The step of second port information with the first port information match is determined in the port information of all COM1s includes:
The prefix part identical the 3rd with the first end slogan is determined in the port numbers of all COM1s Port numbers;
The second port number containing suffix portion is determined in the 3rd port numbers.
Second with reference to the first possible implementation or second aspect of above-mentioned second aspect, second aspect may Implementation, in the 4th kind of possible implementation, include port numbers and bus in the port information of the COM1 Number when, determined and the second port information of the first port information match in the port information of all COM1s The step of include:
The 4th of the Bus number with the first port information is determined in the port information of all COM1s Port information;
Determined in the 4th port information and the prefix part identical of the port numbers of the first port information the Five port informations;
The second port information containing suffix portion is determined in the port numbers of the fifth port information.
Third aspect present invention provides the transmitting method of another COM1, described applied on network controller Method includes:
Receive the matching relationship of first port information and second port information that the network equipment is sent, the second port letter Second COM1 corresponding to breath is the COM1 of the cascade device of the first COM1 corresponding to the first port information;
Store the matching relationship of the first port information and the second port information;
Receive the second COM1 corresponding to the second port information is passed through into the instruction of virtual machine when, by institute State instruction and be sent to the network equipment.
Fourth aspect present invention provides a kind of transparent transmission device of COM1, and the device is host, described device bag Include:
Extraction unit, for when the first COM1 of the host is passed through into the virtual machine, described in extraction The first port information of first COM1;
Acquiring unit, for obtaining the port information of each COM1 in the host;
Determining unit, for being determined and the first port in the port information of all COM1s of the host The second port information of information match, the second COM1 corresponding to the second port information are first COM1 Cascade device COM1;
Transparent transmission unit, for the second COM1 corresponding to the second port information to be passed through into the virtual machine.
With reference to above-mentioned fourth aspect, in the first possible implementation, described device also includes:
First judging unit, whether there is in the port information for judging all COM1s and the first end The second port information of mouth information match;And trigger and exist and described first in the port information of all COM1s During the second port information that port information matches, the determining unit is triggered;Or at the end of all COM1s When the second port information with the first port information match is not present in message breath, preset time, triggering are waited The acquiring unit.
With reference to above-mentioned fourth aspect, in second of possible implementation, described device also includes:
Monitoring unit, for monitoring first COM1,
Second judging unit, for judging whether to listen to the insertion event of first COM1;And listening to During the insertion event of first COM1, the acquiring unit is triggered;Or first COM1 is not being heard During insertion event, the monitoring unit is triggered.
Second with reference to the first possible implementation or fourth aspect of above-mentioned fourth aspect, fourth aspect may Implementation, in the third possible implementation, the determining unit is specifically used for:
The prefix part identical the 3rd with the first end slogan is determined in the port numbers of all COM1s Port numbers;And the second port number containing suffix portion is determined in the 3rd port numbers.
Second with reference to the first possible implementation or fourth aspect of above-mentioned fourth aspect, fourth aspect may Implementation, in the 4th kind of possible implementation, the determining unit is specifically used for:
The 4th of the Bus number with the first port information is determined in the port information of all COM1s Port information;Determined in the 4th port information and the prefix part identical of the port numbers of the first port information the Five port informations;And the second port letter containing suffix portion is determined in the port numbers of the fifth port information Breath.
Fifth aspect present invention provides a kind of transparent transmission device of COM1, and described device is the network equipment, the dress Put including:
Acquiring unit, for obtaining the port information of each COM1 in the network equipment;
Determining unit, for being determined and first end message in the port information of all COM1s of the network equipment The second port information of manner of breathing matching, the second COM1 corresponding to the second port information is the first port information pair The COM1 of the cascade device for the first COM1 answered;First COM1 is appointing in all COM1s Meaning one;
Transmitting element, for the matching relationship of the first port information and the second port information to be sent into network In controller;
Transparent transmission unit, for receiving that the network controller sends by second corresponding to the second port information When COM1 passes through the instruction of the virtual machine, the second COM1 corresponding to the second port information is passed through into institute State virtual machine.
With reference to the above-mentioned 5th aspect, in the first possible implementation, described device also includes:
First judging unit, whether there is in the port information for judging all COM1s and the first end The second port information of mouth information match;And exist and the first port in the port information of all COM1s During the second port information of information match, the determining unit is triggered;Or believe in the port of all COM1s When the second port information with the first port information match being not present in breath, preset time is waited, is triggered again The acquiring unit.
With reference to the above-mentioned 5th aspect, in second of possible implementation, described device also includes:
Monitoring unit, for monitoring each COM1 of the network equipment;
Second judging unit, for judging whether to listen to the insertion event of first COM1;And listening to During the insertion event of first COM1, the acquiring unit is triggered;Or first COM1 is not being heard During insertion event, continue to trigger the monitoring unit.
Second with reference to the above-mentioned 5th aspect, the first possible implementation of the 5th aspect or the 5th aspect may Implementation, in the third possible implementation, the determining unit is specifically used for:In all COM1s The port numbers of prefix part identical the 3rd with the first end slogan are determined in port numbers;And in the 3rd port numbers It is determined that the second port number containing suffix portion.
Second with reference to the above-mentioned 5th aspect, the first possible implementation of the 5th aspect or the 5th aspect may Implementation, in the 4th kind of possible implementation, the determining unit is specifically used for:
The 4th of the Bus number with the first port information is determined in the port information of all COM1s Port information;Determined in the 4th port information and the prefix part identical of the port numbers of the first port information the Five port informations;And the second port letter containing suffix portion is determined in the port numbers of the fifth port information Breath.
Sixth aspect present invention provides the transparent transmission device of another COM1, described applied on network controller Device includes:
Receiving unit, the matching relationship of first port information and second port information for receiving network equipment transmission, Second COM1 corresponding to the second port information is the cascade of the first COM1 corresponding to the first port information The COM1 of equipment;
Memory cell, for storing the matching relationship of the first port information and the second port information;
Transmitting element, for the second COM1 corresponding to the second port information to be passed through into virtual machine receiving Instruction when, by it is described instruction be sent to the network equipment.
Seventh aspect present invention provides the transparent transmission device of another COM1, including:Processor and memory, its In, memory internal memory contains the operational order that processor is able to carry out, and the operational order that processor is read in memory is used for:It is real The method and its each implementation of existing first aspect of the present invention;Or realize the method for second aspect of the present invention and its each Implementation;Or realize the method for the third aspect of the present invention and its each implementation.
Compared with prior art, the technical scheme that the present embodiment provides has advantages below and feature:
In scheme provided by the invention, if user expands the second COM1 on the first COM1, then Second COM1 is the cascade device of the first COM1, and the second port information of the second COM1 and the first communication ends Mouthful first port information match, so when the first COM1 of host is passed through into virtual machine, it is necessary to extract the The port information of each COM1 in the first port information and host of one COM1, then in all COM1s The second port information with first port information match is determined in port information, in order in the port of each COM1 The second port information with the second COM1 of the first COM1 cascade is found in information, then second port information is corresponding The second COM1 pass through virtual machine.Therefore, scheme provided by the invention can be in the first COM1 by transparent transmission In the case of to virtual machine, the second COM1 on the cascade device of first COM1 is automatically passed through virtually Machine.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, it will use below required in embodiment Accompanying drawing is briefly described.
Fig. 1 is a kind of flow chart of the transmitting method of COM1 provided in an embodiment of the present invention;
Fig. 2 is the block schematic illustration of host provided in an embodiment of the present invention;
Shown in Fig. 3 for network controller 2 provided in an embodiment of the present invention and the block schematic illustration of the network equipment 3;
Fig. 4 is the flow chart of the transmitting method of another COM1 provided in an embodiment of the present invention;
Fig. 5 is the flow chart of the transmitting method of another COM1 provided in an embodiment of the present invention;
Fig. 6 is the flow chart of the transmitting method of another COM1 provided in an embodiment of the present invention;
Fig. 7 is the flow chart of the transmitting method of another COM1 provided in an embodiment of the present invention;
Fig. 8 is the flow chart of the transmitting method of another COM1 provided in an embodiment of the present invention;
Fig. 9 is the flow chart of the transmitting method of another COM1 provided in an embodiment of the present invention;
Shown in Figure 10 for network controller 4 provided in an embodiment of the present invention and the block schematic illustration of the network equipment 5;
Figure 11 is a kind of schematic diagram of the transparent transmission device of COM1 provided in an embodiment of the present invention;
Figure 12 is the schematic diagram of the transparent transmission device of another COM1 provided in an embodiment of the present invention;
Figure 13 is the schematic diagram of the transparent transmission device of another COM1 provided in an embodiment of the present invention;
Figure 14 is the schematic diagram of the transparent transmission device of another COM1 provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is described.
Fig. 1 is a kind of flow chart of the transmitting method of COM1 provided in an embodiment of the present invention.Communication ends shown in Fig. 1 The transmitting method of mouth can be in the case where the first COM1 be passed through virtual machine, by the level of first COM1 The second COM1 in connection equipment automatically passes through virtual machine.This method comprises the following steps.
Step S11, when the first COM1 of host is passed through into virtual machine, the first of the first COM1 of extraction Port information.
Wherein, method provided by the invention can apply to be provided with the host of virtual machine, and host can be electricity The equipment such as brain, interchanger or router.At least there is a COM1 on host, COM1 can be USB port, when So, or other kinds of port.
The port information of COM1 can be different information according to different situations.If for example, on host The Bus number of all COM1s is identical, then the port information of COM1 can be port numbers.And for example, if on host That the Bus number of a COM1 differs with the Bus number of another port be present, then the port letter of COM1 Breath can include Bus number and port numbers.
In the case of the Bus number identical of all COM1s on host, by the first COM1 of host When passing through virtual machine, the first port information of extraction is port numbers.For example, it is assumed that there are 3 COM1s on host, point Not Wei port x1, port x2 and port x3, wherein, port x1 port numbers are p1, and port x2 port numbers are p2, port x3's Port numbers are p3, and virtual machine A is provided with host.When the port x1 of host is passed through virtual machine A by user, host Need extraction port x1 port numbers p1.
In the case of being differed on host in the presence of the Bus number of a COM1 with the Bus number of another port, So when the first COM1 of host is passed through into virtual machine, it is necessary to extract the first end message of the first COM1 Breath, now, first port information includes Bus number and port numbers.For example, it is assumed that there are 3 COM1s, respectively on host For port x1, port x2 and port x3, wherein, port x1 port numbers are p1, and port x1 Bus number is b1, port x2 end Slogan is p2, and port x2 Bus number is b2, and port x3 port numbers are p3, and port x3 Bus number is b3, is set on host It is equipped with virtual machine A.When the port x1 of host is passed through virtual machine A by user, then host needs to extract port x1's Bus number is b1 and port numbers p1.
First COM1 is the COM1 on host, and the first COM1 refers to passing through on host virtually The COM1 of machine, the quantity of the first COM1 are at least one.For example, it is assumed that there are 3 COM1s on host, point Not Wei port x1, port x2 and port x3, virtual machine A is provided with host, if port x1 is passed through virtual machine by user A, then the first COM1 is port x1;If port x1, port x2 and port x3 are passed through virtual machine A by user, then First COM1 is port x1, port x2 and port x3.
Method provided by the invention can apply in different technology scenes.For example, method provided by the invention can be with In the scene interacted applied to user with host.And for example, method provided by the invention can also be applied to network controller with In the interaction scenarios of the network equipment, wherein, the network equipment is host.
In the scene that user interacts with host, if user needs the first COM1 of host passing through void Plan machine, then user can utilize input equipment to input the instruction that the first COM1 is passed through to virtual machine to host.In place Main frame receive user using input equipment to host input when the first COM1 is passed through into the instruction of virtual machine, place First COM1 can be passed through virtual machine by main frame according to the instruction, so that virtual machine can monopolize the first COM1.
In the interaction scenarios of network controller and the network equipment, network manager can control net by network controller Network equipment.If network manager needs the first COM1 of the network equipment passing through virtual machine, then network manager Network controller can be utilized to send the instruction that the first COM1 is passed through to virtual machine to the network equipment.Received in the network equipment To network manager using network controller to the network equipment send when the first COM1 is passed through into the instruction of virtual machine, First COM1 can be passed through virtual machine by the network equipment according to the instruction, so that virtual machine can monopolize the first communication ends Mouthful.
Step S12, the port information of each COM1 in host is obtained.
Wherein, after the first port information that host extracts the first COM1, host also needs to obtain host The port information of each COM1 in machine.Each COM1 refers to all COM1s on host in host.
For example, it is assumed that when port information is port numbers, there is 3 COM1s, respectively port x1, end on host Mouthful x2 and port x3, wherein, port x1 port numbers are p1, and port x2 port numbers are p2, and port x3 port numbers are p3, place Virtual machine A is provided with main frame.When the port x1 of host is passed through virtual machine A by user, then host needs to extract Port x1 port numbers p1.Then, host also needs to obtain port numbers p1, p2 and p3 of each COM1 in host.
Step S13, determined in the port information of all COM1s of host and first port information match Second port information, the second COM1 corresponding to second port information are the communication ends of the cascade device of the first COM1 Mouthful.
Wherein, after the port information of each COM1 during host obtains host, host is needed all The second port information with first port information match is determined in the port information of COM1.Second port information refers to It is the port information with first port information match, the quantity of the second COM1 is at least one.
If the second COM1 is cascaded on the first COM1, then the port of all COM1s on host The second port information of the second COM1 can be included in information, and second port information can have one with first port information Fixed similitude.For example, when port information is port numbers, then first port information is first end slogan, and second port is believed Cease for second port number, it is assumed that first end slogan is p1, and second port number is p1.3, it is identical in that first end slogan and second The prefix part of port numbers is p1, and distinctive points are that second port number has suffix portion .3, and first end slogan is without after Sew part.
Therefore, method provided in an embodiment of the present invention can inquire and first in the port information of all COM1s The prefix part of port information it is identical and with suffix portion second port information, now, can with learn second port believe Second COM1 corresponding to breath is the COM1 of the cascade device of the first COM1.
Due to determining the second port information with first port information match in the port information of all COM1s A variety of concrete implementation modes be present, two ways is briefly described below.Certainly, it is not limited to following two modes.
First way, when the port information of COM1 is port numbers, in the port information of all COM1s It is determined that it may comprise steps of with the second port information of first port information match:First, in all COM1s The port numbers of prefix part identical the 3rd with first end slogan are determined in port numbers.Then, determine to contain in the 3rd port numbers There is the second port number of suffix portion.
Below by the implementation procedure of for example bright first way.For example, it is assumed that port information is port numbers, host There are 3 COM1s on machine, respectively port x1, port x2 and port x3, wherein, port x1 port numbers are p1, port X2 port numbers are p2, and port x3 port numbers are p3, and virtual machine A is provided with host.Assuming that user connects on the x1 of port Meet a cascade device USB hub, and there is 2 ports, respectively port x4 and port x5 on the USB hub USB hub, Port x4 port numbers are p1.1, and port x5 port numbers are p1.2.The port x1 of host is passed through into virtual machine A in user When, host needs to extract port x1 port numbers p1.Then, host also needs to obtain each COM1 in host Port numbers p1, p2, p3, p1.1 and p1.2.Now, host determines in all port numbers p1, p2, p3, p1.1 and p1.2 With port numbers p1 prefix part p1 identical port numbers p1, p1.1 and p1.2.Then, in port numbers p1, p1.1 and p1.2 It is determined that second port p1.1 and p1.2 containing suffix portion.
The second way, when the port information of COM1 includes port numbers and Bus number, in all COM1s Determine to may comprise steps of with the second port information of first port information match in port information:First, all The 4th port information of the Bus number with first port information is determined in the port information of COM1.Then, at the 4th end The prefix part identical fifth port information with the port numbers of first port information is determined in message breath.Finally, at the 5th end The second port information containing suffix portion is determined in the port numbers of message breath.
Below by the implementation procedure of for example bright second way.For example, it is assumed that port information include Bus number and Port numbers, there is 3 COM1s, respectively port x1 and port x2 on host, wherein, port x1 port information includes Port numbers p1 and Bus number b1, i.e. b1-p1;Port x2 port information includes port numbers p1 and Bus number b2, i.e. b2-p1, place Virtual machine A is provided with main frame.Assuming that user is connected to a cascade device USB extended line, and cascade device on the x1 of port There is 1 port on USB extended lines, be port x3, port x3 port information includes port numbers p1.1 and Bus number b1, i.e., b1-p1.1.When the port x1 of host is passed through virtual machine A by user, host needs to extract port x1 port information b1-p1.Then, host also needs to obtain port information b1-p1, b2-p1 and b1- of each COM1 in host p1.1.Now, host is determined in all port information b1-p1, b2-p1 and b1-p1.1 with port information b1-p1 Bus number b1 port information b1-p1 and b1-p1.1.Secondly, host is determined in port information b1-p1 and b1-p1.1 and Port information b1-p1 port numbers p1 prefix part p1 identical port informations b1-p1 and b1-p1.1.Finally, host exists The port information b1-p1.1 containing suffix portion .1 is determined in port information b1-p1 and b1-p1.1 port numbers p1 and p1.1.
Step S14, the second COM1 corresponding to second port information is passed through into virtual machine.
Wherein, host determines and the second end of first port information match in the port information of all COM1s After message breath, host can be to pass through virtual machine, to realize by the second COM1 corresponding to second port information In the case that first COM1 is passed through virtual machine, by the second communication on the cascade device of first COM1 Port automatically passes through virtual machine.
In the embodiment shown in fig. 1, if user expands the second COM1 on the first COM1, then the Two COM1s are the cascade device of the first COM1, and the second port information of the second COM1 and the first COM1 First port information match, so when the first COM1 of host is passed through into virtual machine, it is necessary to extract first The port information of each COM1 in the first port information and host of COM1, then at the end of all COM1s The second port information with first port information match is determined in message breath, in order to believe in the port of each COM1 The second port information with the second COM1 of the first COM1 cascade is found in breath, then by corresponding to second port information Second COM1 passes through virtual machine.Therefore, scheme provided by the invention can have been passed through in the first COM1 In the case of virtual machine, the second COM1 on the cascade device of first COM1 is automatically passed through into virtual machine.
For the embodiment shown in more clear explanation figure 1, introduced below by specific usage scenario shown in Fig. 1 Embodiment.
It is shown in Figure 2, the block schematic illustration for host provided in an embodiment of the present invention shown in Fig. 2.
In the embodiment shown in Figure 2, it is assumed that virtual machine 11 and simulation program 12, host are installed in advance on host 1 There are 2 COM1s, respectively USB port 13 and USB port 14 on the mainboard 16 of machine 1, wherein, the port of USB port 13 Number it is p1, the port numbers of USB port 14 are p2.Simulation program can be Quick EMUlator (QEMU), etc. program.Wherein, QEMU is used to realize hardware virtualization to be a kind of.
First, when user inputs to host 1 USB port 13 passing through the instruction of virtual machine 11, host 1 will USB port 13 is passed through by virtual machine 11 according to the instruction, now, host 1 can extract the port numbers p1 of USB port 13.
Then, simulation program 12 needs the port numbers of each COM1 in timing acquisition host 1.When initial, due to The equipment that host 1 not yet connects any ECP Extended Capabilities Port, so simulation program 12 can get USB port 13 in host 1 Port numbers p1 and USB port 14 port numbers p2.
Secondly, it is assumed that user wants to be extended USB port 13, so being connected to cascade device on USB port 13 USB hub15, USB hub15 have two COM1s, respectively USB port 151 and USB port 152, it is assumed that USB port 151 port numbers are p1.1, and the port numbers of USB port 152 are p1.2.Now, due to USB hub15 access, so simulation The port numbers that program 12 can get each COM1 in host 1 are respectively p1, p2, p1.1 and p1.2.
Again, simulation program 12 can be determined in port numbers p1, p2, p1.1 and p1.2 of all COM1s with Port numbers p1.1 and p1.2 that the port numbers p1 of virtual machine 11 matches are passed through, i.e., first in the port numbers of each COM1 Prefix part identical port numbers p1, p1.1 and p1.2 with port numbers p1 are determined in p1, p2, p1.1 and p1.2, is then being held Port numbers p1.1 and p1.2 containing suffix portion are determined in slogan p1, p1.1 and p1.2.
Finally, simulation program 12 can be by USB ends corresponding to USB port 151 corresponding to port numbers p1.1 and port numbers p1.2 Mouth 152 passes through virtual machine 11, so as to realize in the case where USB port 13 is passed through virtual machine 11, by USB port USB port 151 and USB port 152 on 13 cascade device USB hub15 automatically pass through virtual machine 11.
It is shown in Figure 3, shown in Fig. 3 for network controller 2 provided in an embodiment of the present invention and the frame of the network equipment 3 Frame schematic diagram.
In the embodiment shown in fig. 3, it is assumed that be provided with advance on network controller 2 cloud computing management platform (for example, OpenStack control node 21), virtual machine 31 and the calculating section of cloud computing management platform are installed in advance on the network equipment 3 Point 32.There are 2 COM1s, respectively USB port 33 and USB port 34 on the mainboard 36 of the network equipment 3, wherein, USB ends The port numbers of mouth 33 are p1, and the port numbers of USB port 34 are p2.
First, sent in the control node 21 for receiving network controller 2 to the network equipment 3 and pass through USB port 33 After the instruction of virtual machine 31, USB port 33 will be passed through virtual machine 31 by the network equipment 3 according to the instruction, and now, network is set Standby 3 can extract the port numbers p1 of USB port 33.
Then, calculate node 32 needs the port numbers of each COM1 in the timing acquisition network equipment 3.When initial, by In the equipment that the network equipment 3 not yet connects any ECP Extended Capabilities Port, so calculate node 32 can get USB in the network equipment 3 The port numbers p1 of the port 33 and port numbers p2 of USB port 34.
Secondly, it is assumed that user wants to be extended USB port 33, so being connected to cascade device on USB port 33 USB hub35, USB hub35 have two COM1s, respectively USB port 351 and USB port 352, it is assumed that USB port 351 port numbers are p1.1, and the port numbers of USB port 352 are p1.2.Now, due to USB hub35 access, so calculating The port numbers that node 32 can get each COM1 in the network equipment 3 are respectively p1, p2, p1.1 and p1.2.
Again, calculate node 32 can be determined in port numbers p1, p2, p1.1 and p1.2 of each COM1 with Pass through port numbers p1.1 and p1.2 that the port numbers p1 of virtual machine 31 matches.Wherein, the process specifically matched is described above Cross, i.e., the first prefix part identical determined in port numbers p1, p2, p1.1 and p1.2 of each COM1 with port numbers p1 Port numbers p1, p1.1 and p1.2, then in port numbers p1, p1.1 and p1.2 determine the port numbers p1.1 containing suffix portion and p1.2。
Finally, calculate node 32 can be by USB ends corresponding to USB port 351 corresponding to port numbers p1.1 and port numbers p1.2 Mouth 352 passes through virtual machine 31, so as to realize in the case where USB port 33 passes through virtual machine 31, by the level of USB port 33 USB port 351 and USB port 352 on connection equipment USB hub35 automatically pass through virtual machine 31.
Shown in Figure 4, Fig. 4 is the flow of the transmitting method of another COM1 provided in an embodiment of the present invention Figure.Embodiment shown in Fig. 4 is based on the improved embodiments of Fig. 1, so can be found in the reality shown in Fig. 1 with Fig. 1 identical contents Apply example.Relative to the embodiment shown in Fig. 1, the embodiment shown in Fig. 4 after step s 12, can also comprise the following steps:
Step S15, judge to whether there is the with first port information match in the port information of all COM1s Two-port netwerk information.The second port information with first port information match in the port information of all COM1s be present When, then perform step S13;The second end with first port information match is not present in the port information of all COM1s When message ceases, then step S16 is performed.
Wherein, after the port information of each COM1 during host obtains host, host needs to judge institute Have with the presence or absence of the second port information with first port information match in the port information of COM1, if it does, saying Level is associated with the second COM1 on bright first COM1, then just performs step S13;If it does not, explanation is current Moment non-level on the first COM1 is associated with the second COM1, then host waits for preset time, then holds again Row step S12, so that host reacquires the port information of each COM1 in host.
Step S16, preset time is waited, performs step S12 again.
Wherein, preset time is the time pre-set, can set preset time according to actual scene.For example, Preset time can be arranged to 1 millisecond, preset time can also be arranged to 1 second.
In the embodiment shown in fig. 4, the embodiment of the present invention can ensure that host can be monitored by the of transparent transmission in real time Whether level is associated with the second communication interface to one COM1, if the first COM1 level is associated with the second communication interface, then host Second communication interface is just passed through virtual machine by machine;If the first COM1 level is associated with the second communication interface, then host Just listening state is kept.
Shown in Figure 5, Fig. 5 is the flow of the transmitting method of another COM1 provided in an embodiment of the present invention Figure.Embodiment shown in Fig. 5 is based on the improved embodiments of Fig. 1, so can be found in the reality shown in Fig. 1 with Fig. 1 identical contents Apply example.Relative to the embodiment shown in Fig. 1, the embodiment shown in Fig. 5 after step s 11, can also comprise the following steps:
Step S17, the first COM1 is monitored.
Wherein, after the first port information that host extracts the first COM1, host needs monitoring first logical Believe the insertion event of port.Under normal circumstances, when the first COM1 is connected to external equipment, host can just listen to The insertion event of one COM1.Certainly, when the first COM1 is disconnected the connection with external equipment, host can be monitored To the extraction event of the first COM1.Insertion event refers to, in event caused by COM1 insertion communication equipment, pulling out Outgoing event is that event caused by the communication equipment is extracted on the COM1 for be already inserted into communication equipment.Communication equipment can be with For the equipment such as USB extended lines or USB hub.
Step S18, judge whether to listen to the insertion event of the first COM1.Listening to inserting for the first COM1 During incoming event, step S12 is performed;When not hearing the insertion event of the first COM1, step S19 is performed.
Step S19, continue to monitor the first COM1.
Wherein, after the insertion event that host monitors the first COM1, host needs to judge whether to listen to The insertion event of first COM1, if listening to the insertion event of the first COM1, the first COM1 is illustrated It is connected to external equipment, then step S12 is just performed, to obtain the port information of each COM1 in host;If not yet There is the insertion event for listening to the first COM1, illustrate that current time is not connected with having external equipment on the first COM1, It will so continue to monitor the first COM1, so that host continues to monitor the insertion event of the first COM1.
In the embodiment shown in fig. 5, the embodiment of the present invention can ensure that host can monitor the first communication ends in real time The insertion event of mouth, when host listens to the insertion event of the first COM1, can just perform subsequent step;In host When not hearing the insertion event of the first COM1, then host will continue to monitor the insertion thing of the first COM1 Part, so as to ensure the insertion event of the first COM1 monitoring by the moment.
Fig. 6 is the flow chart of the transmitting method of another COM1 provided in an embodiment of the present invention.Communication shown in Fig. 6 The transmitting method of port can be applied in the network device.The transmitting method of COM1 shown in Fig. 6 can be in the first communication When the second COM1 is cascaded on port, by the first port information of the first COM1 and the second port of the second COM1 The matching relationship of information is sent to network controller, and level is associated in the first COM1 by the instruction sent according to network controller The second COM1 pass through virtual machine.This method comprises the following steps.
Step S21, the port information of each COM1 in the network equipment is obtained.
Wherein, method provided by the invention can apply to be provided with the network equipment of virtual machine, and the network equipment can be with For equipment such as computer, interchanger or routers.At least there is a COM1, COM1 can be USB on the network equipment Port, it is of course also possible to be other kinds of port.Method provided in an embodiment of the present invention can apply to network controller with In the interaction scenarios of the network equipment.
The port information of COM1 may be referred to the various embodiments described above.
The network equipment can timing the port information for obtaining each COM1 in the network equipment.For example, the network equipment Can be every the port information of each COM1 in the time acquisition primary network equipment of 1 second.
When the network equipment can also detect insertion event on some COM1, obtain and each communicated in the network equipment The port information of port.For example, when detecting insertion event on the first COM1, the network equipment obtains every in the network equipment The port information of individual COM1.
Each COM1 refers to all COM1s on the network equipment in the network equipment.For example, it is assumed that in port When information is port numbers, there are 3 COM1s on the network equipment, respectively port x1, port x2 and port x3, wherein, end Mouth x1 port numbers are p1, and port x2 port numbers are p2, and port x3 port numbers are p3, and virtual machine is provided with the network equipment A.The network equipment can get port numbers p1, p2 and p3 of each COM1 in the network equipment.
Step S22, the second port with first port information match is determined in the port information of all COM1s Information, the second COM1 corresponding to second port information are the cascade device of the first COM1 corresponding to first port information COM1, the first COM1 be all COM1s in any one.
Wherein, after the port information of each COM1 during the network equipment obtains the network equipment, the network equipment needs The second port information with first port information match is determined in the port information of all COM1s.First communication ends Mouth is the COM1 on the network equipment, is connected with cascade device on the first COM1, and second is provided with cascade device COM1, the quantity of the second COM1 are at least one.
For example, it is assumed that having 3 COM1s on the network equipment, respectively port x1, port x2 and port x3, network are set It is standby to be above provided with virtual machine A, it is assumed that cascade device y is connected with the x1 of port, and there is port y1 and port on cascade device y Y2, then the first COM1 is port x1, and the second COM1 is y1 and y2.
If the second COM1 is cascaded on the first COM1, then the end of all COM1s on the network equipment The second port information of the second COM1 can be included in message breath, and second port information can exist with first port information Certain similitude.For example, when port information is port numbers, then first port information is first end slogan, second port Information is second port number, it is assumed that first end slogan is p1, and second port number is p1.3, it is identical in that first end slogan and The prefix part of Two-port netwerk number is p1, and distinctive points are that second port number has suffix portion .3, and first end slogan does not have Suffix portion.
Therefore, method provided in an embodiment of the present invention can inquire and first in the port information of all COM1s The prefix part of port information it is identical and with suffix portion second port information, now, can with learn second port believe Second COM1 corresponding to breath is the COM1 of the cascade device of the first COM1.
The reality with the second port information of first port information match is determined in the port information of all COM1s Existing mode may be referred to the description in above-described embodiment.
Step S23, the matching relationship of first port information and second port information is sent to network controller.
Wherein, the network equipment determines second with first port information match in the port information of all COM1s After port information, the matching relationship of first port information and second port information will be sent to network control by the network equipment In device, so that network controller can receive the matching relationship of first port information and second port information.
Step S24, receive network controller transmission by the second COM1 transparent transmission corresponding to second port information During instruction to virtual machine, the second COM1 corresponding to second port information is passed through into virtual machine.
Wherein, the network equipment receive network controller transmission by the second COM1 corresponding to second port information When passing through the instruction of virtual machine, illustrate that the keeper of network controller wishes that the network equipment can be corresponding by second port information The second COM1 pass through virtual machine, so the network equipment second can lead to according to corresponding to the instruction by second port information Letter port passes through virtual machine.
In the embodiment shown in fig. 6, the embodiment of the present invention can obtain the port of each COM1 in the network equipment Information, when cascading the second COM1 on the first COM1 on network devices, the network equipment can be by the first COM1 The matching relationship of second port information of first port information and the second COM1 be sent to network controller, and according to net The second COM1 that level is associated in the first COM1 by the instruction that network controller is sent passes through virtual machine.Therefore, it is of the invention The scheme that embodiment provides can be on network devices the first COM1 level when being associated with the second COM1, by the first communication The matching relationship of the first port information of port and the second port information of the second COM1 is sent to network controller, to protect Card network controller can monitor the situation of the COM1 of the network equipment immediately, and the network equipment can be according to network controller Second COM1 is passed through virtual machine by the instruction of transmission, so as to ensure that network controller can be neatly by the network equipment The second COM1 pass through virtual machine.
Shown in Figure 7, Fig. 7 is the flow of the transmitting method of another COM1 provided in an embodiment of the present invention Figure.Embodiment shown in Fig. 7 is based on the improved embodiments of Fig. 6, so can be found in the reality shown in Fig. 6 with Fig. 6 identical contents Apply example.Relative to the embodiment shown in Fig. 6, the embodiment shown in Fig. 7 after step s 21, can also comprise the following steps:
Step S25, judge to whether there is the with first port information match in the port information of all COM1s Two-port netwerk information.The second port information with first port information match in the port information of all COM1s be present When, then perform step S22;The second end with first port information match is not present in the port information of all COM1s When message ceases, then step S26 is performed.
Wherein, after the port information of each COM1 during the network equipment obtains the network equipment, the network equipment needs Judge with the presence or absence of the second port information with first port information match in the port information of all COM1s, if deposited Illustrating that level is associated with the second COM1 on the first COM1, then just perform step S22;If it does not, explanation Current time non-level on the first COM1 is associated with the second COM1, then the network equipment waits for preset time, so Step S21 is performed again afterwards, so that the network equipment reacquires the port information of each COM1 in the network equipment.
Step S26, preset time is waited, performs step S21 again.
Wherein, preset time is the time pre-set, can set preset time according to actual scene.For example, Preset time can be arranged to 1 millisecond, preset time can also be arranged to 1 second.
In the embodiment shown in fig. 7, the embodiment of the present invention can ensure that the network equipment can monitor the first communication in real time Whether level is associated with the second communication interface for port, if the first COM1 level is associated with the second communication interface, then the network equipment is just The matching relationship of first port information and second port information is sent in network controller;If the first COM1 cascades There is the second communication interface, then the network equipment just keeps listening state.
Shown in Figure 8, Fig. 8 is the flow of the transmitting method of another COM1 provided in an embodiment of the present invention Figure.Embodiment shown in Fig. 8 is based on the improved embodiments of Fig. 6, so can be found in the reality shown in Fig. 6 with Fig. 6 identical contents Apply example.Relative to the embodiment shown in Fig. 6, the embodiment shown in Fig. 8 can also comprise the following steps before step S21:
Step S27, the first COM1 of the network equipment is monitored.
Wherein, the network equipment needs to monitor the insertion event of the first COM1.Under normal circumstances, in the first COM1 When being connected to external equipment, the network equipment can just listen to the insertion event of the first COM1.Certainly, in the first COM1 When being disconnected the connection with external equipment, the network equipment can listen to the extraction event of the first COM1.
Step S28, judge whether to listen to the insertion event of the first COM1, listen to inserting for the first COM1 During incoming event, step S21 is performed;When not hearing the insertion event of the first COM1, step S27 is continued executing with.
Wherein, the network equipment needs to judge whether to listen to the insertion event of the first COM1, if listening to first The insertion event of COM1, illustrate that the first COM1 has been connected to external equipment, then step S21 is just performed, to obtain Take the port information of each COM1 in the network equipment;If the insertion event of the first COM1, explanation are not listened to Current time is not connected with having external equipment on the first COM1, then step S27 will be performed, so that the network equipment continues Monitor the insertion event of the first COM1.
In the embodiment shown in fig. 8, the embodiment of the present invention can ensure that the network equipment can monitor the first communication in real time The insertion event of port, when the network equipment listens to the insertion event of the first COM1, it can just perform subsequent step;In net When network equipment does not hear the insertion event of the first COM1, then the network equipment will continue to monitor the first COM1 Insertion event, so as to ensure the insertion event of the first COM1 monitoring by the moment.
Shown in Figure 9, Fig. 9 is the flow of the transmitting method of another COM1 provided in an embodiment of the present invention Figure.Embodiment shown in Fig. 9 is the embodiment corresponding with Fig. 6, and the method shown in Fig. 6 can apply to the network equipment, Fig. 9 institutes The method shown can apply to network controller, and the network equipment has information exchange with network controller.Method bag shown in Fig. 9 Include following steps.
Step S31, the matching relationship of first port information and second port information that the network equipment is sent, the second end are received Second COM1 corresponding to message breath is the COM1 of the cascade device of the first COM1 corresponding to first port information.
Wherein, determine that the first COM1 higher level is associated with cascade device corresponding to first port information in the network equipment, And when the second COM1 corresponding to second port information is provided with cascade device, the network equipment can be by the first COM1 The matching relationship of first port information and the second port information of the second COM1 is sent to network controller, so that network control Device processed can learn that the first COM1 level on the network equipment is associated with the second COM1, so as to allow network controller to distribute Which virtual machine second COM1 is passed through into.
For example, it is assumed that determine that the first COM1 x1 higher level is associated with level corresponding to first port information p1 in the network equipment Join equipment N, and the second COM1 x2 and second port information corresponding to second port information p1.1 are provided with cascade device N Corresponding to p1.2 during the second COM1 mouth x3, the network equipment can by first port information p1 and second port information p1.1 and P1.2 matching relationship is sent to network controller.The first port information p1 of network equipment transmission is received in network controller During with second port information p1.1 and p1.2 matching relationship, network controller needs to store first port information p1 and the second end Message cease p1.1 and p1.2 matching relationship, in order to using the keeper of network controller can be at any time checking or using.
Step S32, the matching relationship of first port information and second port information is stored.
Wherein, first port information and second port information can be 1 pair 1 of relation, or the relation more than 1 pair. If the quantity that level is associated in the second COM1 on the first COM1 is 1, then first port information is believed with second port Cease the relation for 1 pair 1.If the quantity that level is associated in the second COM1 on the first COM1 is more than 1, then first port Information is the relation more than 1 pair with second port information.
Step S33, receive by the second COM1 passes through the instruction of virtual machine corresponding to second port information when, Send an instruction to the network equipment.
Wherein, after matching relationship of the network controller storage first port information with second port information, keeper Just it can be seen that the matching relationship of first port information and second port information.Now, keeper can be incited somebody to action with random distribution Which virtual machine second COM1 passes through.
For example, it is assumed that receive the first port information p1 and second port information of network equipment transmission in network controller During p1.1 and p1.2 matching relationship, network controller need to store first port information p1 and second port information p1.1 and P1.2 matching relationship.Assuming that being provided with virtual machine A and virtual machine B on the network equipment, keeper is wished second port information The second COM1 passes through virtual machine A corresponding to p1.1, by the second COM1 transparent transmission corresponding to second port information p1.2 Give virtual machine B, then keeper can be inputted second port information p1.1 with utilization input-output equipment to network controller Corresponding second COM1 passes through virtual machine A instruction, and is inputted using input-output equipment to network controller by the Second COM1 corresponding to Two-port netwerk information p1.2 passes through virtual machine B instruction.Received in network controller by second Second COM1 corresponding to port information p1.1 passes through virtual machine A instruction y1 and by corresponding to second port information p1.2 When second COM1 passes through virtual machine B instruction y2, network controller can be sent to network according to instruction y1 and instruction y2 Equipment.The instruction that the second COM1 corresponding to second port information p1.1 is passed through to virtual machine A is received in the network equipment Y1 and when the second COM1 corresponding to second port information p1.2 is passed through into virtual machine B instruction y2, the network equipment will Virtual machine A is passed through come the second COM1 corresponding to by second port information p1.1 according to instruction y1, and according to instruction y2 come Second COM1 corresponding to second port information p1.2 is passed through into virtual machine B, device is network controlled to distribute so as to realize Function.
For the embodiment shown in more clear explanation figure 6 and Fig. 9, figure is introduced below by specific usage scenario Embodiment shown in 1.
It is shown in Figure 10, shown in Figure 10 for network controller 4 provided in an embodiment of the present invention and the network equipment 5 Block schematic illustration.
In the embodiment shown in fig. 10, it is assumed that cloud computing management platform is installed in advance on network controller 4 (OpenStack) control node 41, virtual machine 51 and cloud computing management platform are installed in advance on the network equipment 5 (OpenStack) calculate node 52.There are 2 COM1s, the respectively He of USB port 53 on the mainboard 56 of the network equipment 5 USB port 54, wherein, the port numbers of USB port 53 are p1, and the port numbers of USB port 54 are p2.
First, sent to the network equipment 5 USB port 53 is passed through into virtual machine in the control node 41 of network controller 4 During 51 instruction, USB port 53 will be passed through virtual machine 51 by the network equipment 5 according to the instruction, now, the meeting of the network equipment 5 Extract the port numbers p1 of USB port 53.
Then, calculate node 52 needs the port numbers of each COM1 in the timing acquisition network equipment 5.When initial, by In the equipment that the network equipment 5 not yet connects any ECP Extended Capabilities Port, so calculate node 52 can get USB in the network equipment 5 The port numbers p1 of the port 53 and port numbers p2 of USB port 54.
Secondly, it is assumed that user wants to be extended USB port 53, so being connected to cascade device on USB port 53 USB hub55, USB hub55 have two COM1s, respectively USB port 551 and USB port 552, it is assumed that USB port 551 port numbers are p1.1, and the port numbers of USB port 552 are p1.2.Now, due to USB hub55 access, so calculating The port numbers that node 52 can get each COM1 in the network equipment 5 are respectively p1, p2, p1.1 and p1.2.
Again, calculate node 52 can be determined in port numbers p1, p2, p1.1 and p1.2 of each COM1 with Pass through port numbers p1.1 and p1.2 that the port numbers p1 of virtual machine 51 matches.Wherein, the process specifically matched is described above Cross, i.e., the first prefix part identical determined in port numbers p1, p2, p1.1 and p1.2 of each COM1 with port numbers p1 Port numbers p1, p1.1 and p1.2, then in port numbers p1, p1.1 and p1.2 determine the port numbers p1.1 containing suffix portion and p1.2。
Again, port numbers p1 and port numbers p1.1 and p1.2 matching relationship can be sent to network control by calculate node 52 41 kinds of the control node of device 4.After control node 41 receives matching relationships of the port numbers p1 with port numbers p1.1 and p1.2, control The meeting storage end slogan p1 of node 41 processed and port numbers p1.1 and p1.2 matching relationship.Now, using the management of network controller 4 Member can be to see the port numbers p1 received and port numbers p1.1 and p1.2 matching relationship by input inquiry instruction, it is assumed that Keeper is inputted USB port corresponding to port numbers p1.1 using input-output equipment to the control node 41 of network controller 4 USB port 552 corresponding to 551 and port numbers p1.2 passes through the instruction of virtual machine 51, and control node 41 will send out the instruction Give the network equipment 5.
Finally, the network equipment 5 receive network controller 4 control node 41 send by corresponding to port numbers p1.1 When USB port 552 corresponding to USB port 551 and port numbers p1.2 passes through the instruction of virtual machine 51, the network equipment 5 will root USB port 552 corresponding to USB port 551 corresponding to port numbers p1.1 and port numbers p1.2 is passed through into virtual machine according to the instruction 51, so as to ensure that the COM1 on the network equipment 5 neatly can be passed through virtual machine by network controller 4.
Figure 11 is a kind of schematic diagram of the transparent transmission device of COM1 provided in an embodiment of the present invention.Figure 11 is corresponding for Fig. 1 Device embodiment, the corresponding embodiments of Fig. 1 are referred to Fig. 1 identical contents in Figure 11.Reference picture 11, the device bag Include with lower unit:
Extraction unit 11, for when the first COM1 of host is passed through into virtual machine, extracting the first communication ends The first port information of mouth;
Acquiring unit 12, for obtaining the port information of each COM1 in host;
Determining unit 13, for being determined and first port information phase in the port information of all COM1s of host The second port information of matching, the second COM1 corresponding to second port information are the logical of the cascade device of the first COM1 Believe port;
Transparent transmission unit 14, for the second COM1 corresponding to second port information to be passed through into virtual machine.
Optionally, the device also includes with lower unit:
First judging unit, whether there is in the port information for judging all COM1s and first port information phase The second port information of matching;And trigger and exist and first port information match in the port information of all COM1s During second port information, determining unit is triggered;Or it is not present and first port information in the port information of all COM1s During the second port information to match, preset time is waited, triggers acquiring unit.Optionally, the device also includes with lower unit:
Monitoring unit, for monitoring the first COM1,
Second judging unit, for judging whether to listen to the insertion event of the first COM1;And listening to first During the insertion event of COM1, acquiring unit is triggered;Or when not hearing the insertion event of the first COM1, triggering prison Listen unit.
Optionally, determining unit is specifically used for:
The port numbers of prefix part identical the 3rd with first end slogan are determined in the port numbers of all COM1s;With And the second port number containing suffix portion is determined in the 3rd port numbers.Optionally, determining unit is specifically used for:
The 4th port information of the Bus number with first port information is determined in the port information of all COM1s; The prefix part identical fifth port information with the port numbers of first port information is determined in the 4th port information;And The second port information containing suffix portion is determined in the port numbers of fifth port information.
Figure 12 is the schematic diagram of the transparent transmission device of another COM1 provided in an embodiment of the present invention.Figure 12 is Fig. 6 pairs The device embodiment answered, the corresponding embodiments of Fig. 6 are referred to Fig. 6 identical contents in Figure 12.Reference picture 12, the device Including with lower unit:
Acquiring unit 21, for obtaining the port information of each COM1 in the network equipment;
Determining unit 22, for being determined and first port information in the port information of all COM1s of the network equipment The second port information to match, the second COM1 corresponding to second port information are first logical corresponding to first port information Believe the COM1 of the cascade device of port;First COM1 is any one in all COM1s;
Transmitting element 23, for the matching relationship of first port information and second port information to be sent into network controller In;
Transparent transmission unit 24, for receive network controller transmission by the second communication ends corresponding to second port information When mouth passes through the instruction of virtual machine, the second COM1 corresponding to second port information is passed through into virtual machine.
Optionally, the device also includes with lower unit:
First judging unit, whether there is in the port information for judging all COM1s and first port information phase The second port information of matching;And second with first port information match in the port information of all COM1s be present During port information, determining unit is triggered;Or it is not present and first port information phase in the port information of all COM1s During the second port information matched somebody with somebody, preset time is waited, triggers acquiring unit again.
Optionally, the device also includes with lower unit:
Monitoring unit, for monitoring each COM1 of the network equipment;
Second judging unit, for judging whether to listen to the insertion event of the first COM1;And listening to first During the insertion event of COM1, acquiring unit is triggered;Or when not hearing the insertion event of the first COM1, continue to touch Send out monitoring unit.
Optionally, determining unit is specifically used for:
The port numbers of prefix part identical the 3rd with first end slogan are determined in the port numbers of all COM1s;With And the second port number containing suffix portion is determined in the 3rd port numbers.Optionally, determining unit is specifically used for:
The 4th port information of the Bus number with first port information is determined in the port information of all COM1s; The prefix part identical fifth port information with the port numbers of first port information is determined in the 4th port information;And The second port information containing suffix portion is determined in the port numbers of fifth port information.
Figure 13 is the schematic diagram of the transparent transmission device of another COM1 provided in an embodiment of the present invention.Figure 13 is Fig. 9 pairs The device embodiment answered, the corresponding embodiments of Fig. 9 are referred to Fig. 9 identical contents in Figure 13.Reference picture 13, the device Including with lower unit:
Receiving unit 31, the matching of first port information and second port information for receiving network equipment transmission are closed System, the second COM1 corresponding to second port information is the cascade device of the first COM1 corresponding to first port information COM1;
Memory cell 32, for storing the matching relationship of first port information and second port information;
Transmitting element 33, for the second COM1 corresponding to second port information to be passed through into virtual machine receiving During instruction, the network equipment is sent an instruction to.
Figure 14 is the schematic diagram of the transparent transmission device of another COM1 provided in an embodiment of the present invention.The device can be It is any the same in above-mentioned host, the network equipment or network controller.Reference picture 14, the device include:The He of processor 41 Memory 42, wherein, the internal memory of memory 42 contains the operational order that processor 41 is able to carry out, and processor 41 reads memory 42 Interior operational order is used to realize the method in above-mentioned each method embodiment.
It should be noted that the embodiment shown in Fig. 1 to Figure 14 is the preferred embodiment that the present invention is introduced, this area Technical staff on this basis, can be designed that more embodiments, therefore do not repeat here completely.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional and technical personnel Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the present invention.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the division of unit, Only a kind of division of logic function, can there is an other dividing mode when actually realizing, such as multiple units or component can be with With reference to or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed Mutual coupling or direct-coupling or communication connection can be by some ports, the INDIRECT COUPLING of device or unit or Communication connection, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, be shown as unit Part can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple networks On unit.Some or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.
If function is realized in the form of SFU software functional unit and as independent production marketing or in use, can stored In a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words to existing The part for having part that technology contributes or the technical scheme can be embodied in the form of software product, the computer Software product is stored in a storage medium, including some instructions are make it that a computer equipment (can be personal meter Calculation machine, server, or network equipment etc.) or processor (processor) perform the whole of each embodiment method of the present invention Or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disc or CD etc. are various can be with storage program The medium of code.
More than, it is only embodiment of the invention, but protection scope of the present invention is not limited thereto, and it is any to be familiar with Those skilled in the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be covered Within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (20)

  1. A kind of 1. transmitting method of COM1, it is characterised in that methods described is applied to be provided with the host of virtual machine, Methods described includes:
    When the first COM1 of the host is passed through into the virtual machine, the first of first COM1 is extracted Port information;
    Obtain the port information of each COM1 in the host;
    Second with the first port information match is determined in the port information of all COM1s of the host Port information, the second COM1 corresponding to the second port information are the communication of the cascade device of first COM1 Port;
    Second COM1 corresponding to the second port information is passed through into the virtual machine.
  2. 2. the transmitting method of COM1 according to claim 1, it is characterised in that obtain and each lead in the host After the step of believing the port information of port, methods described also includes:
    Judge in the port information of all COM1s with the presence or absence of the second end with the first port information match Message ceases;
    The second port with the first port information match in the port information of all COM1s be present During information, the second end determined in the port information of all COM1s with the first port information match is performed The step of message ceases;
    Second end with the first port information match is not present in the port information of all COM1s When message ceases, preset time is waited, performs the step of obtaining the port information of each COM1 in the host again.
  3. 3. the transmitting method of COM1 according to claim 1, it is characterised in that extracting first COM1 First port information the step of after, methods described also includes:
    First COM1 is monitored,
    Judge whether to listen to the insertion event of first COM1;
    When listening to the insertion event of first COM1, each COM1 in the acquisition host is performed Port information the step of;
    When not hearing the insertion event of first COM1, continue to monitor first COM1.
  4. 4. according to the transmitting method of the COM1 of any one in claim 1-3, it is characterised in that in the COM1 Port information when being port numbers, determined and the first port in the port information of all COM1s of the host The step of second port information of information match, includes:
    The port of prefix part identical the 3rd with the first end slogan is determined in the port numbers of all COM1s Number;
    The second port number containing suffix portion is determined in the 3rd port numbers.
  5. 5. according to the transmitting method of the COM1 of any one in claim 1-3, it is characterised in that in the COM1 Port information when including port numbers and Bus number, determined in the port information of all COM1s of the host and institute The step of second port information for stating first port information match, includes:
    The 4th port of the Bus number with the first port information is determined in the port information of all COM1s Information;
    The end of prefix part identical the 5th with the port numbers of the first port information is determined in the 4th port information Message ceases;
    The second port information containing suffix portion is determined in the port numbers of the fifth port information.
  6. 6. a kind of transmitting method of COM1, it is characterised in that methods described is applied to the network equipment for being provided with virtual machine On, methods described includes:
    Obtain the port information of each COM1 in the network equipment;
    The second end with first port information match is determined in the port information of all COM1s of the network equipment Message ceases, and the second COM1 corresponding to the second port information is the first COM1 corresponding to the first port information Cascade device COM1;First COM1 is any one in all COM1s;
    The matching relationship of the first port information and the second port information is sent in network controller;
    The second COM1 corresponding to the second port information is passed through into institute receive that the network controller sends When stating the instruction of virtual machine, the second COM1 corresponding to the second port information is passed through into the virtual machine.
  7. 7. the transmitting method of COM1 according to claim 6, it is characterised in that obtain each in the network equipment After the step of port information of COM1, methods described also includes:
    Judge in the port information of all COM1s with the presence or absence of the second end with the first port information match Message ceases;
    The second port with the first port information match in the port information of all COM1s be present During information, the second end determined in the port information of each COM1 with the first port information match is performed The step of message ceases;
    Second end with the first port information match is not present in the port information of all COM1s When message ceases, preset time is waited, performs the step of obtaining the port information of each COM1 in the network equipment again.
  8. 8. the transmitting method of COM1 according to claim 6, it is characterised in that every in the network equipment is obtained Before the step of port information of individual COM1, methods described also includes:
    Monitor each COM1 of the network equipment;
    Judge whether to listen to the insertion event of first COM1;
    When listening to the insertion event of first COM1, each communication ends in the acquisition network equipment are performed The step of port information of mouth;
    When not hearing the insertion event of first COM1, the monitoring each COM1 is continued executing with Step.
  9. 9. according to the transmitting method of the COM1 of any one in claim 6-8, it is characterised in that in the COM1 Port information when being port numbers, determined in the port information of all COM1s and the first port information phase The step of second port information matched somebody with somebody, includes:
    The port of prefix part identical the 3rd with the first end slogan is determined in the port numbers of all COM1s Number;
    The second port number containing suffix portion is determined in the 3rd port numbers.
  10. 10. according to the transmitting method of the COM1 of any one in claim 6-8, it is characterised in that in the communication ends When the port information of mouth includes port numbers and Bus number, determined and described first in the port information of all COM1s The step of second port information that port information matches, includes:
    The 4th port of the Bus number with the first port information is determined in the port information of all COM1s Information;
    The end of prefix part identical the 5th with the port numbers of the first port information is determined in the 4th port information Message ceases;
    The second port information containing suffix portion is determined in the port numbers of the fifth port information.
  11. 11. a kind of transparent transmission device of COM1, it is characterised in that described device is host, and described device includes:
    Extraction unit, for when the first COM1 of the host is passed through into the virtual machine, extracting described first The first port information of COM1;
    Acquiring unit, for obtaining the port information of each COM1 in the host;
    Determining unit, for being determined and the first port information in the port information of all COM1s of the host The second port information to match, the second COM1 corresponding to the second port information are the level of first COM1 Join the COM1 of equipment;
    Transparent transmission unit, for the second COM1 corresponding to the second port information to be passed through into the virtual machine.
  12. 12. device according to claim 11, it is characterised in that described device also includes:
    First judging unit, whether there is in the port information for judging all COM1s and the first end message The second port information of manner of breathing matching;And exist and the first port information in the port information of all COM1s During the second port information to match, the determining unit is triggered;Or in the port information of all COM1s During in the absence of the second port information with the first port information match, preset time is waited, triggers the acquisition Unit.
  13. 13. device according to claim 11, it is characterised in that described device also includes:
    Monitoring unit, for monitoring first COM1,
    Second judging unit, for judging whether to listen to the insertion event of first COM1;It is and described listening to During the insertion event of the first COM1, the acquiring unit is triggered;Or in the insertion for not hearing first COM1 During event, the monitoring unit is triggered.
  14. 14. according to the device of any one in claim 11-13, it is characterised in that the determining unit is specifically used for:
    The port of prefix part identical the 3rd with the first end slogan is determined in the port numbers of all COM1s Number;And the second port number containing suffix portion is determined in the 3rd port numbers.
  15. 15. according to the device of any one in claim 11-13, it is characterised in that the determining unit is specifically used for:
    The 4th port of the Bus number with the first port information is determined in the port information of all COM1s Information;
    The end of prefix part identical the 5th with the port numbers of the first port information is determined in the 4th port information Message ceases;And
    The second port information containing suffix portion is determined in the port numbers of the fifth port information.
  16. 16. a kind of transparent transmission device of COM1, it is characterised in that described device is the network equipment, and described device includes:
    Acquiring unit, for obtaining the port information of each COM1 in the network equipment;
    Determining unit, for being determined and first port information phase in the port information of all COM1s of the network equipment The second port information of matching, the second COM1 corresponding to the second port information are corresponding to the first port information The COM1 of the cascade device of first COM1;First COM1 is any one in all COM1s It is individual;
    Transmitting element, for the matching relationship of the first port information and the second port information to be sent into network control In device;
    Transparent transmission unit, for receiving the network controller transmission corresponding to the second port information second communicates When port passes through the instruction of the virtual machine, the second COM1 corresponding to the second port information is passed through into the void Plan machine.
  17. 17. device according to claim 16, it is characterised in that described device also includes:
    First judging unit, whether there is in the port information for judging all COM1s and the first end message The second port information of manner of breathing matching;And exist and the first port information in the port information of all COM1s During the second port information to match, the determining unit is triggered;Or in the port information of all COM1s During in the absence of the second port information with the first port information match, preset time is waited, triggers the acquisition Unit.
  18. 18. device according to claim 16, it is characterised in that described device also includes:
    Monitoring unit, for monitoring each COM1 of the network equipment;
    Second judging unit, for judging whether to listen to the insertion event of first COM1;It is and described listening to During the insertion event of the first COM1, the acquiring unit is triggered;Or in the insertion for not hearing first COM1 During event, the monitoring unit is triggered.
  19. 19. according to the device of any one in claim 16-18, it is characterised in that the determining unit is specifically used for:
    In the port numbers of all COM1s determine with the first end slogan before;And
    The second port number containing suffix portion is determined in the 3rd port numbers.
  20. 20. according to the device of any one in claim 16-18, it is characterised in that the determining unit is specifically used for:
    The 4th port of the Bus number with the first port information is determined in the port information of all COM1s Information;
    The end of prefix part identical the 5th with the port numbers of the first port information is determined in the 4th port information Message ceases;And
    The second port information containing suffix portion is determined in the port numbers of the fifth port information.
CN201610480633.6A 2016-06-27 2016-06-27 Transparent transmission method and device for communication port Active CN107544930B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610480633.6A CN107544930B (en) 2016-06-27 2016-06-27 Transparent transmission method and device for communication port
PCT/CN2017/086905 WO2018001037A1 (en) 2016-06-27 2017-06-02 Communications port passthrough method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610480633.6A CN107544930B (en) 2016-06-27 2016-06-27 Transparent transmission method and device for communication port

Publications (2)

Publication Number Publication Date
CN107544930A true CN107544930A (en) 2018-01-05
CN107544930B CN107544930B (en) 2020-07-14

Family

ID=60786670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610480633.6A Active CN107544930B (en) 2016-06-27 2016-06-27 Transparent transmission method and device for communication port

Country Status (2)

Country Link
CN (1) CN107544930B (en)
WO (1) WO2018001037A1 (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110302330A1 (en) * 2010-06-07 2011-12-08 Vmware, Inc. Safely sharing usb devices
CN102821038A (en) * 2011-05-14 2012-12-12 国际商业机器公司 Method and system for data traffic handling in a distributed fabric protocol (dfp) switching network architecture
CN103873374A (en) * 2014-03-27 2014-06-18 杭州华三通信技术有限公司 Message processing method and device in virtualized system
CN103942088A (en) * 2014-04-01 2014-07-23 国云科技股份有限公司 Method for acquiring using conditions of USB storage device of virtual machine
CN104092747A (en) * 2014-06-30 2014-10-08 杭州华三通信技术有限公司 USB dynamic linking method and device in virtualization environment
CN104462881A (en) * 2014-12-02 2015-03-25 中国石油集团工程设计有限责任公司 Pooling method of software encryption dog resource under cloud computing environment
CN105159742A (en) * 2015-07-06 2015-12-16 北京星网锐捷网络技术有限公司 Unvarnished transmission method and system for PCI device of virtual machine
CN105183674A (en) * 2015-08-26 2015-12-23 深圳市深信服电子科技有限公司 USB virtualization network mapping method, USB virtualization network mapping device and USB hub
US20160062940A1 (en) * 2014-08-27 2016-03-03 Vmware, Inc. Safely Sharing USB Devices During PCI Passthrough Operation

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808428B (en) * 2010-04-21 2013-04-24 华为终端有限公司 Communication method and device of double-card dual-standby cell phone
US20160054755A1 (en) * 2014-08-21 2016-02-25 Edward Brian Depenbrock Usb pass-through device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110302330A1 (en) * 2010-06-07 2011-12-08 Vmware, Inc. Safely sharing usb devices
CN102821038A (en) * 2011-05-14 2012-12-12 国际商业机器公司 Method and system for data traffic handling in a distributed fabric protocol (dfp) switching network architecture
CN103873374A (en) * 2014-03-27 2014-06-18 杭州华三通信技术有限公司 Message processing method and device in virtualized system
CN103942088A (en) * 2014-04-01 2014-07-23 国云科技股份有限公司 Method for acquiring using conditions of USB storage device of virtual machine
CN104092747A (en) * 2014-06-30 2014-10-08 杭州华三通信技术有限公司 USB dynamic linking method and device in virtualization environment
US20160062940A1 (en) * 2014-08-27 2016-03-03 Vmware, Inc. Safely Sharing USB Devices During PCI Passthrough Operation
CN104462881A (en) * 2014-12-02 2015-03-25 中国石油集团工程设计有限责任公司 Pooling method of software encryption dog resource under cloud computing environment
CN105159742A (en) * 2015-07-06 2015-12-16 北京星网锐捷网络技术有限公司 Unvarnished transmission method and system for PCI device of virtual machine
CN105183674A (en) * 2015-08-26 2015-12-23 深圳市深信服电子科技有限公司 USB virtualization network mapping method, USB virtualization network mapping device and USB hub

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
MARK SCHMIDT等: ""A Virtualized Testbed with Physical Outlets for Hands-on Computer Networking Education"", 《SIGITE" 14:PROCEEDINGS OF THE 15TH ANNUAL CONFERENCE ON INFORMATION TECHNOLOGY EDUCATION》 *
侯建宁等: ""基于虚拟化的***安全增强及显卡透传研究"", 《计算机工程》 *
王伟: ""飞腾平台USB虚拟化的设计与实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
王继刚等: ""虚拟化环境下的USB设备访问方法"", 《计算机应用》 *

Also Published As

Publication number Publication date
WO2018001037A1 (en) 2018-01-04
CN107544930B (en) 2020-07-14

Similar Documents

Publication Publication Date Title
CN110535831A (en) Cluster safety management method, device and storage medium based on Kubernetes and network domains
CN105721318B (en) The method and apparatus of network topology are found in a kind of software defined network SDN
CN106713487A (en) Data synchronization method and device
CN109743358A (en) Asynchronous message interface fusing control method, device, computer equipment and storage medium
CN109828960B (en) Log library capacity expansion method, system, computer device and readable storage medium
CN107005418B (en) Red packet data processing method and terminal
CN110515762A (en) Data reconstruction method, device, terminal device and storage medium
CN108683528A (en) A kind of data transmission method, central server, server and data transmission system
CN105592459B (en) Safety certification device based on wireless communication
CN106941418B (en) SSL VPN configuration information synchronization method and device
CN112019545A (en) Honeypot network deployment method, device, equipment and medium
CN109039959A (en) A kind of the consistency judgment method and relevant apparatus of SDN network rule
CN109343944A (en) Data processing method, device, terminal and the storage medium of eSIM card
CN110162959A (en) Data processing method and device based on device-fingerprint
EP3633931A1 (en) Method, device, and system for implementing mux machine
CN106169982B (en) Method, device and system for processing expansion port
CN106293996B (en) Method of data synchronization, main equipment, alternate device and system
CN107544930A (en) The transmitting method and device of a kind of COM1
CN114389868B (en) Cloud resource allocation method, system, device and storage medium
CN105933352A (en) Data synchronization method and system between servers based on client and client
CN104123261B (en) A kind of electronic equipment and information transferring method
CN105656795A (en) Flow control method of virtual machine and physical machine
CN107783722B (en) Data transmission method and data forwarding device
CN107454021B (en) Communication method and device
CN110266595A (en) Sending method, device, storage medium and the electronic device of message matching information

Legal Events

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