CN108632323A - Virtual machine and terminal allocation of communications method, automatic connection method and system - Google Patents

Virtual machine and terminal allocation of communications method, automatic connection method and system Download PDF

Info

Publication number
CN108632323A
CN108632323A CN201710182862.4A CN201710182862A CN108632323A CN 108632323 A CN108632323 A CN 108632323A CN 201710182862 A CN201710182862 A CN 201710182862A CN 108632323 A CN108632323 A CN 108632323A
Authority
CN
China
Prior art keywords
opposite end
virtual machine
address information
matches
terminal
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.)
Pending
Application number
CN201710182862.4A
Other languages
Chinese (zh)
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.)
GCI Science and Technology Co Ltd
Original Assignee
GCI Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by GCI Science and Technology Co Ltd filed Critical GCI Science and Technology Co Ltd
Priority to CN201710182862.4A priority Critical patent/CN108632323A/en
Publication of CN108632323A publication Critical patent/CN108632323A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The present invention relates to a kind of virtual machines and terminal allocation of communications method, automatic connection method and system, virtual machine is idle state by receiving the first pairing request with opposite end transmission and recording corresponding first with opposite end with terminal allocation of communications method, when receiving the pairing request that second sends with opposite end, search idle state first matches opposite end as with second with opposite end with opposite end matches first, wherein first matches opposite end for virtual machine/terminal, and second matches opposite end for terminal/virtual machine;Obtain the corresponding first network address information for matching opposite end with opposite end and corresponding second respectively according to pairing request, then the second network address information with opposite end is sent to first to match and matches opposite end, first network address information with opposite end is sent to second and matches opposite end, so that first communicates to connect with opposite end according to the network address information of reception with opposite end with second.So virtual machine and terminal are flexibly matched, scalability and flexibility are strong.

Description

Virtual machine and terminal allocation of communications method, automatic connection method and system
Technical field
The present invention relates to field of computer technology, more particularly to a kind of virtual machine and terminal allocation of communications method, automatic Connection method and system.
Background technology
Virtual machine in cloud operating system is disposed, is needed terminal is corresponding with more virtual machines being pre-created logical Letter connection.
Traditional deploying virtual machine usually manually carries out parameter setting by the way of to virtual machine and terminal, according to The pairing relationship of setting goes management terminal and virtual machine, therefore needs to take a significant amount of time to change when installation and deployment to set It sets, needs to change by the relationship of agreement when needing to increase equipment, autgmentability is poor.
Invention content
Based on this, it is necessary to be directed to the problem that the autgmentability that virtual machine is connect with terminal is poor, flexibility is low, provide a kind of void Quasi- machine and terminal allocation of communications method, automatic connection method and system.
A kind of virtual machine and terminal allocation of communications method, including:
The first pairing request sent with opposite end is received, and it is idle state to record corresponding first with opposite end, described the One matches opposite end for virtual machine/terminal;
When receiving the pairing request that second sends with opposite end, search the first of idle state with opposite end as with it is described Second matches opposite end with opposite end matches first, and described second matches opposite end for terminal/virtual machine;
The corresponding first network address information for matching opposite end is obtained according to the described first pairing request with opposite end;
The corresponding second network address information for matching opposite end is obtained according to the described second pairing request with opposite end;
Described second network address information with opposite end is sent to first to match and matches opposite end, first will to match Network address information with opposite end is sent to described second and matches opposite end, so that described first matches opposite end root with opposite end and described second It is communicated to connect according to the network address information of reception.
A kind of virtual machine and terminal Message Distribution System, including:
State recording module for receiving the first pairing request sent with opposite end, and records corresponding first and matches opposite end Match opposite end for idle state, described first for virtual machine/terminal;
Matched and searched module, for when receiving the pairing request that second sends with opposite end, searching the of idle state One matches opposite end as with described second with opposite end with opposite end matches first, and described second matches opposite end for terminal/virtual machine;
First information acquisition module matches opposite end for obtaining corresponding first according to the described first pairing request with opposite end Network address information;
Second data obtaining module matches opposite end for obtaining corresponding second according to the described second pairing request with opposite end Network address information;
Information sending module, for the described second network address information with opposite end to be sent to the match first pairing Match first network address information with opposite end is sent to described second and matches opposite end, so that described first matches opposite end by end It is communicated to connect according to the network address information of reception with opposite end with described second.
Above-mentioned virtual machine and terminal allocation of communications method and system, by receiving the first pairing request sent with opposite end, And it is idle state to record corresponding first with opposite end, when receiving the pairing request that second sends with opposite end, is searched idle The first of state matches opposite end as with second with opposite end with opposite end matches first, obtains corresponding the according to pairing request respectively One network address information and the corresponding second network address information with opposite end with opposite end, then by the second network with opposite end Location information is sent to first to match and matches opposite end, and the match first network address information with opposite end, which is sent to second, matches Opposite end, so that first communicates to connect with opposite end according to the network address information of reception with opposite end with second.In this way, can be by virtual Machine and terminal send pairing request respectively with opposite end and second as first with opposite end, are flexibly matched to virtual machine and terminal Right, without setting the fixation pairing relationship of virtual machine and terminal, scalability and flexibility are strong, and virtual machine mounting portion can be improved The efficiency of administration.
A kind of virtual machine and terminal automatic connection method, including:
Pairing request is sent to control centre, so that idle state is searched according to the pairing request by the control centre Matching side, the matching side are virtual machine or terminal;
Receive the network address information for the matching side that control centre returns;
It is established and is connected with corresponding matching side according to the network address information.
A kind of virtual machine and terminal automatic connecting system, including:
Request sending module, for sending pairing request to control centre, so that the control centre is according to the pairing The matching side of idle state is searched in request, and the matching side is virtual machine or terminal;
Information receiving module, the network address information of the matching side for receiving control centre's return;
Communication connection module is connected for being established with corresponding matching side according to the network address information.
Above-mentioned virtual machine and terminal automatic connection method and system, can be applied to virtual machine or terminal;It is matched by sending It asks to control centre so that control centre searches the matching side of idle state according to pairing request, then receives control centre The network address information of the matching side of return is established with corresponding matching side according to network address information and is connected.In this way, virtual machine Or can flexibly be matched between terminal, without setting the fixation pairing relationship of virtual machine and terminal, scalability and flexibility By force, and the efficiency of virtual machine installation and deployment can be improved.
Description of the drawings
Fig. 1 is the flow chart of virtual machine and terminal allocation of communications method in an embodiment;
Fig. 2 is the flow chart of virtual machine and terminal allocation of communications method in another embodiment;
Fig. 3 is the structure chart of virtual machine and terminal Message Distribution System in an embodiment;
Fig. 4 is the flow chart of virtual machine and terminal automatic connection method in an embodiment;
Fig. 5 is the flow chart of virtual machine and terminal automatic connection method in another embodiment;
Fig. 6 is the structure chart of virtual machine and terminal automatic connecting system in an embodiment.
Specific implementation mode
With reference to figure 1, the virtual machine in an embodiment and terminal allocation of communications method can be applied to control centre, be used for Allocation of communications is carried out to virtual machine and terminal;Virtual machine includes the following steps with terminal allocation of communications method.
S110:The first pairing request sent with opposite end is received, and it is idle state to record corresponding first with opposite end.
Wherein, first is virtual machine/terminal with opposite end.Virtual machine is not sending pairing request to control with terminal with clock synchronization Center, terminal are not sending pairing request to control centre with virtual machine with clock synchronization.Idle state refers to the shape not matched also State.It is idle state that corresponding first, which is recorded, with opposite end, will as send the first of pairing request and is recorded as idle shape with opposite end State, convenient for searching.
S130:Receive second with opposite end send pairing request when, search idle state first match opposite end conduct Match opposite end with opposite end matches first with second.
Wherein, second is terminal/virtual machine with opposite end.Second matches opposite end both ends to be paired each other with opposite end and first. Optionally, if first matches opposite end for virtual machine, corresponding second matches opposite end for terminal;If first is terminal with opposite end, second is corresponded to It is virtual machine with opposite end.
The second pairing request sent with opposite end is received, indicates that second matches opposite end for idle state, is matched, At this point, by searching for record, using the first of the idle state found with opposite end as with second match with opposite end first With opposite end, so that it is determined that matching relationship.
S150:The corresponding first network address information for matching opposite end is obtained according to the first pairing request with opposite end.
Specifically, network address information includes (the Media Access Control media access controls) addresses MAC and IP Address (Internet Protocol Address Internet protocol addresses).Pairing request can carry network address information, parsing First can obtain the first network address information for matching opposite end with the pairing request that opposite end is sent.
S170:The corresponding second network address information for matching opposite end is obtained according to the second pairing request with opposite end.
Specifically, parsing second can obtain the second network address information for matching opposite end with the pairing request that opposite end is sent.
S190:Second network address information with opposite end is sent to first to match and matches opposite end, the will to match One network address information with opposite end is sent to second and matches opposite end, so that first matches net of the opposite end according to reception with opposite end and second Network address information communicates to connect.
By being sent respectively to other side with opposite end and the second network address information with opposite end by match first so that First can communicate with opposite end and second with opposite end according to the network address information of the other side to match, realize that pairing connects It connects.
Optionally, step S150 can be executed after step S110, before step S130, can also be located at step It executes after S130, before step S170, or is executed after step S170, before step S190.
Above-mentioned virtual machine and terminal allocation of communications method, can be applied to control centre, for being carried out to virtual machine and terminal The pairing of communication connection;By receiving the first pairing request sent with opposite end, and it is the free time to record corresponding first with opposite end State, when receiving the pairing request that second sends with opposite end, that searches idle state first matches with opposite end as with second What opposite end matched first matches opposite end, obtains the corresponding first network address information and correspondence for matching opposite end according to pairing request respectively Second matches the network address information of opposite end, then the second network address information with opposite end is sent to the first pairing to match Match first network address information with opposite end is sent to second and matches opposite end, so that first matches with opposite end with second by end Opposite end is communicated to connect according to the network address information of reception.In this way, first can be used as by virtual machine and terminal with opposite end and the Two send pairing request respectively with opposite end, are flexibly matched to virtual machine and terminal, without setting consolidating for virtual machine and terminal Determine pairing relationship, scalability and flexibility are strong, and the efficiency of virtual machine installation and deployment can be improved.
In one embodiment, further include step S101 to step S103 before step S110 with reference to figure 2.
S101:The first IP distribution requests sent respectively with opposite end with opposite end and second are received, and according to IP distribution requests Obtain the MAC Address that the corresponding first MAC Address with opposite end matches opposite end with corresponding second.
First with opposite end and second with the transmittable IP distribution requests in opposite end, for example, virtual machine and terminal pass through it is respective Temporary IP sends IP distribution requests to control centre, and the IP address of control centre is set as the fixed IP of tail number of the network segment, Such as:* .*.*. tail numbers.Specifically, by parsing IP distribution requests, send IP distribution requests first can be obtained with opposite end/the second With the corresponding MAC Address in opposite end.
S102:It is obtained respectively according to the first MAC Address with opposite end and the second MAC Address with opposite end corresponding solid Determine IP.
MAC Address can be used to identify different equipment as unique identifier;The MAC Address for matching opposite end according to first The fixation IP of opposite end is matched in distribution first, different according to second MAC Address distribution the second fixation IP with opposite end with opposite end The fixation IP that MAC Address distributes is different.Specifically, first with opposite end and the second fixation with the assigned different segment in opposite end IP。
S103:First IP address with opposite end and the second IP address with opposite end are changed to corresponding fixation respectively IP, so that first sends pairing request according to corresponding fixed IP respectively with opposite end and second with opposite end.
First IP address with opposite end is changed to first and matches the corresponding fixed IP in opposite end, the IP address for matching opposite end by second It is changed to second and matches the corresponding fixed IP in opposite end.It specifically, can be by changing DHCP (Dynamic Host Configuration Protocol, dynamic host configuration protocol) it services and formulates the fixation IP that opposite end is matched in distribution first with opposite end and second.For example, control The fixation IP of different segment is distributed to void in center processed respectively according to the pairing request of virtual machine and terminal by changing DHCP service Quasi- machine and terminal.
By before receiving pairing request, being fixed to the first distribution end and the second distribution end setting according to IP distribution requests IP, to be obtained automatically as the first network configuration with opposite end, second terminal and virtual machine with opposite end, Internet resources Distribution is flexible, avoids installation and deployment personnel and the case where spending more time is arranged one by one, and the technology to disposing personnel requires drop It is low, while improving deployment efficiency.
Specifically, further include step S104 to step before step S110 with continued reference to FIG. 2, after step S103 S106。
S104:Record first is with opposite end, second with the correspondence between opposite end and corresponding fixed IP.
Record first specifically records first with opposite end and the with the correspondence of opposite end, second with opposite end and fixed IP One with the corresponding fixed IP in opposite end, second with opposite end with second with the correspondence between the corresponding fixed IP in opposite end.Specifically, The form that table may be used is stored.
S105:Receive the first IP verification requests sent respectively with opposite end with opposite end and second.
First sends IP verification requests with opposite end and second with opposite end, is verified to IP address for asking.
S106:According to the correspondence of record, verify first respectively is with opposite end and the second current IP address with opposite end It is no consistent with corresponding fixed IP.If so, thening follow the steps S110;If it is not, then return to step S103.
Specifically, after receiving the IP verification requests that first sends with opposite end, according to the correspondence of record, verification first is matched Whether the first fixation IP with opposite end is consistent in the current IP address and correspondence of opposite end;Receive the second IP sent with opposite end After verification request, according to the correspondence of record, the second pairing in current IP address and correspondence of the verification second with opposite end Whether the fixation IP at end is consistent.If consistent, then it represents that first is successfully set as corresponding with IP address of opposite end/the second with opposite end Fixation IP;Otherwise, it indicates to fail and fixed IP is set, return to step S103 is reset.
By after setting up fixed IP, before receiving pairing request, verifying request according to IP and matching opposite end and second to first Current IP address with opposite end is verified, it can be ensured that first is set as fixed IP with opposite end and second with opposite end, improves setting Accuracy.
Specifically, further include notifying process after step S106:Check results are sent to corresponding first with opposite end and the Two match opposite end.Corresponding first is returned to opposite end and second with opposite end, to notify the first pairing by sending check results End and second sends pairing request with opposite end.
First quantity for matching opposite end with opposite end and second can be multiple.In one embodiment, after step S110, step Further include recording step before S130:Record receives the time of reception for the pairing request that first sends with opposite end.The present embodiment In, the first of step S130 lookup idle states matches opposite end, including step as with second with opposite end with opposite end matches first Suddenly (a1).
Step (a1):Match in opposite end from the first of multiple idle states, chooses the first pairing of the corresponding time of reception earliest It holds and matches opposite end with opposite end matches first as with second.
The corresponding time of reception it is earliest first match opposite end, first to send pairing request at first matches opposite end.By more The first of a idle state is matched in opposite end, and send pairing request earliest first is chosen according to time order and function with opposite end and current hair It send the second of pairing request to match with opposite end, avoids the occurrence of pairing confusion and the first situation with the opposite end long-time free time, Improve the efficiency of allocation of communications.
With reference to figure 3, the virtual machine in an embodiment and terminal Message Distribution System, including state recording module 110, matching Searching module 130, first information acquisition module 150, the second data obtaining module 170 and information sending module 190.
State recording module 110 is used to receive the first pairing request sent with opposite end, and records corresponding first pairing End is idle state.Wherein, first is virtual machine/terminal with opposite end.
Matched and searched module 130 is used to, when receiving the pairing request that second sends with opposite end, search idle state First matches opposite end as with second with opposite end with opposite end matches first.Wherein, second is terminal/virtual machine with opposite end.If First matches opposite end for virtual machine, then second is terminal with opposite end;If first is terminal with opposite end, second with opposite end is virtual Machine.
First information acquisition module 150 is used to obtain the corresponding first net for matching opposite end according to the first pairing request with opposite end Network address information.
Second data obtaining module 170 is used to obtain the corresponding second net for matching opposite end according to the second pairing request with opposite end Network address information.
Information sending module 190 is used to for the second network address information with opposite end to be sent to the first pairing to match Match first network address information with opposite end is sent to second and matches opposite end, so that first matches with opposite end with second by end Opposite end is communicated to connect according to the network address information of reception.
Above-mentioned virtual machine and terminal Message Distribution System, can be applied to control centre, are communicated to virtual machine and terminal The pairing of connection;The first pairing request sent with opposite end is received by state recording module 110, and records corresponding first and matches Opposite end is idle state, and matched and searched module 130 searches idle state when receiving the pairing request that second sends with opposite end First match opposite end with opposite end matches first as with second with opposite end, first information acquisition module 150 asks according to pairing It asks and obtains the corresponding first network address information for matching opposite end, the second data obtaining module 170 obtains corresponding the according to pairing request Two match the network address information of opposite end, and then the second network address information with opposite end is sent to phase by information sending module 190 Matched first matches opposite end, and the match first network address information with opposite end, which is sent to second, matches opposite end, so that first It is communicated to connect according to the network address information of reception with opposite end with second with opposite end.In this way, can be used as by virtual machine and terminal First sends pairing request respectively with opposite end and second with opposite end, is flexibly matched to virtual machine and terminal, empty without setting The fixation pairing relationship of quasi- machine and terminal, scalability and flexibility are strong, and the efficiency of virtual machine installation and deployment can be improved.
In one embodiment, above-mentioned virtual machine and terminal Message Distribution System further include IP distribution module (not shown), are used Match the IP distribution requests that opposite end is sent respectively with opposite end and second in receiving first, and corresponding first is obtained according to IP distribution requests MAC Address and corresponding second with opposite end match the MAC Address of opposite end;Match opposite end according to the first MAC Address and second with opposite end MAC Address obtain corresponding fixed IP respectively;By the first IP address with opposite end and the second IP address with opposite end point It is not changed to corresponding fixed IP, so that first matches according to corresponding fixed IP transmissions with opposite end and second with opposite end respectively To request.
By IP distribution modules according to IP distribution requests to the first distribution end and the second fixed IP of distribution end setting, to make It can be obtained automatically for the first network configuration with opposite end, second terminal and virtual machine with opposite end, Internet resources distribution is flexible, It avoids installation and deployment personnel and the case where spending more time is set one by one, the technology to disposing personnel requires to reduce, and carries simultaneously High deployment efficiency.
Specifically, IP distribution modules are additionally operable to record first with opposite end, second between opposite end and corresponding fixed IP Correspondence;Receive the first IP verification requests sent respectively with opposite end with opposite end and second;According to the correspondence of record, divide Not Jiao Yan first with opposite end and second with opposite end current IP address it is whether consistent with corresponding fixed IP.If so, shape State logging modle 110 executes corresponding function;If it is not, with then repeating IP address and the second IP with opposite end by first with opposite end Location is changed to corresponding fixed IP respectively.
It is verified with opposite end and the second current IP address with opposite end to first by verifying request according to IP, it can be ensured that First is set as fixed IP with opposite end and second with opposite end, improves the accuracy of setting.
In one embodiment, above-mentioned virtual machine and terminal Message Distribution System further include time recording module (not shown), For recording the time of reception for receiving the pairing request that first sends with opposite end.Matched and searched module 130 is specifically used for:It is receiving When matching the pairing request that opposite end is sent to second, match in opposite end from the first of multiple idle states, chooses the corresponding time of reception most Early first matches opposite end as with second with opposite end with opposite end matches first.
By sending the of pairing request earliest in opposite end, being chosen according to time order and function the first of multiple idle states One matches with the second of currently transmitted pairing request with opposite end with opposite end, avoids the occurrence of that pairing is chaotic and first is long with opposite end The situation of free time time, improves the efficiency of allocation of communications.
With reference to figure 4, the virtual machine in an embodiment and terminal automatic connection method can be applied to virtual machine or terminal, Virtual machine includes the following steps with terminal automatic connection method.
S210:Pairing request is sent to control centre, so that matching for idle state is searched according to pairing request by control centre Other side.
Pairing request is sent to control centre, the currently empty not busy state of control centre is may be notified that, to which control centre can look into Look for the matching side of idle state.Wherein, matching side is virtual machine or terminal.Specifically, if virtual machine and the automatic connection side of terminal Method is applied to virtual machine, then matching side is terminal, if virtual machine is applied to terminal with terminal automatic connection method, matching side is Virtual machine.
S230:Receive the network address information for the matching side that control centre returns.
S250:It is established and is connected with corresponding matching side according to network address information.
After control centre finds matched matching side, the network address information of matching side is returned.By receiving matching side Network address information, can be established and be connected according to network address information and matching side.For example, when applied to virtual machine, virtual machine The network address information for the terminal to match that control centre returns is received, and according to network address information and the terminal to match Establish connection;When applied to terminal, terminal receives the network address information for the virtual machine to match that control centre returns, and root It establishes and connects according to network address information and the virtual machine to match.
Above-mentioned virtual machine and terminal automatic connection method, can be applied to virtual machine or terminal;By sending pairing request extremely Control centre so that control centre searches the matching side of idle state according to pairing request, then receives what control centre returned The network address information of matching side is established with corresponding matching side according to network address information and is connected.In this way, virtual machine or terminal Between can flexibly be matched, without setting the fixation pairing relationship of virtual machine and terminal, scalability and flexibility are strong, and can Improve the efficiency of virtual machine installation and deployment.
In one embodiment, further include step S201 and step S202 before step S210 with reference to figure 5.
S201:Obtain temporary IP.
Specifically, temporary IP can be obtained from DHCP service automatically upon actuation.
S202:IP distribution requests are sent to control centre according to temporary IP, are obtained according to IP distribution requests for control centre It takes corresponding fixed IP and temporary IP is changed to fixed IP.
By sending IP distribution requests to control centre, keep control centre solid to the first distribution end and the second distribution end setting Determine IP, so as to obtain network configuration automatically, Internet resources distribution is flexible, avoids installation and deployment personnel and cost is arranged one by one The case where more time, the technology to disposing personnel requires to reduce, while improving deployment efficiency.
Specifically, further include step S203 and step before step S210 after step S202 with continued reference to Fig. 5 S204。
S203:IP verifications request is sent to control centre, verifying request verification temporary IP according to IP for control centre is It is no to be changed to corresponding fixed IP.
S204:Receive the check results that control centre returns, check results be by when, execute step S210.
Check results are to pass through, and expression has been changed to corresponding fixed IP, can perform step S210 at this time.If check results Not pass through, expression is changed to corresponding fixed IP not successfully, does not execute step S210 at this time, can be specifically return to step S202, can also be continue waiting for until control centre's back-checking by as a result, executing step S210 again.
By sending IP verification requests, control centre is set to verify IP address, it can be ensured that temporary IP is changed to fix IP improves the accuracy of setting.
Specifically, step S201 to step S204 can be executed after each starting up.
In one embodiment, step S250 includes step (b1) or step (b2).
Step (b1):It sends connection request to the corresponding matching side of network address information to be verified, when verification passes through It establishes and connects with matching side.
Step (b2):The connection request that matching side is sent is received, corresponding network address information is obtained according to connection request, And whether the network address information for verifying the corresponding network address information of connection request and reception is consistent, if so, and matching side Establish connection.
Connection request carries network address information, and parsing connection request can obtain corresponding network address information.It receives Network address information refers to the network address information of control centre's return.By verify the corresponding network address information of connection request with Whether the network address information of reception is consistent, can determine that the matching side pairing whether in order to control center is distributed for sending connection request Side, to avoid the equipment except the matching side distributed with control centre from being attached, improves safety and the accuracy of connection.
Specifically, when virtual machine is applied to terminal with terminal automatic connection method, step S250 includes step (b1), at this time Matching side is virtual machine, and sending connection request to virtual machine by terminal is verified.Virtual machine is answered with terminal automatic connection method When for virtual machine, step S250 includes step (b2), and matching side is terminal at this time, and the connection that terminal is sent is received by virtual machine Request is verified.
With reference to figure 6, the virtual machine in an embodiment and terminal automatic connecting system, including request sending module 210, information Receiving module 230 and communication connection module 250.
Request sending module 210 is for sending pairing request to control centre, so that control centre looks into according to pairing request Look for the matching side of idle state.Wherein, matching side is virtual machine or terminal.
Information receiving module 230 is used to receive the network address information of the matching side of control centre's return.
Communication connection module 250 is used to be established with corresponding matching side according to network address information and connect.
Above-mentioned virtual machine and terminal automatic connecting system, can be applied to virtual machine or terminal;Pass through request sending module 210 Pairing request is sent to control centre so that control centre searches the matching side of idle state according to pairing request, then information Receiving module 230 receives the network address information for the matching side that control centre returns, and communication connection module 250 is according to network address Information is established with corresponding matching side and is connected.In this way, can flexibly be matched between virtual machine or terminal, without setting virtual machine With the fixation pairing relationship of terminal, scalability and flexibility are strong, and the efficiency of virtual machine installation and deployment can be improved.
In one embodiment, above-mentioned virtual machine and terminal automatic connecting system, further include distribution request module, for obtaining Temporary IP sends IP distribution requests to control centre according to temporary IP, is corresponded to so that control centre obtains according to IP distribution requests Fixation IP and temporary IP is changed to fixed IP.
By sending IP distribution requests to control centre, keep control centre solid to the first distribution end and the second distribution end setting Determine IP, so as to obtain network configuration automatically, Internet resources distribution is flexible, avoids installation and deployment personnel and cost is arranged one by one The case where more time, the technology to disposing personnel requires to reduce, while improving deployment efficiency.
Specifically, distribution request module is additionally operable to send IP verification requests to control centre, so that control centre is according to IP Whether verification request verification temporary IP is changed to corresponding fixed IP;The check results that control centre returns are received, are tied in verification Fruit be by when, control data sending module 210 executes corresponding function.
By sending IP verification requests, control centre is set to verify IP address, it can be ensured that temporary IP is changed to fix IP improves the accuracy of setting.
In one embodiment, communication connection module 250 is for sending connection request to the corresponding pairing of network address information Fang Jinhang is verified, and is established and is connected with matching side when verification passes through;Or the connection request for receiving matching side transmission, according to Connection request obtains corresponding network address information, and with verifying the network of the corresponding network address information of connection request and reception Whether location information is consistent, is connected if so, being established with matching side.
By being verified before a connection is established, safety and the accuracy of connection can be improved.Specifically, virtual machine with When terminal automatic connecting system is applied to terminal, communication connection module 250 is for sending connection request to virtual machine.Virtual machine with When terminal automatic connection method is applied to virtual machine, the connection request that communication connection module 250 is used to receive terminal transmission carries out Verification.
Each technical characteristic of embodiment described above can be combined arbitrarily, to keep description succinct, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, it is all considered to be the range of this specification record.
Several embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention Range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. a kind of virtual machine and terminal allocation of communications method, which is characterized in that including:
The first pairing request sent with opposite end is received, and it is idle state to record corresponding first with opposite end, described first matches Opposite end is virtual machine/terminal;
When receiving the pairing request that second sends with opposite end, the first of idle state is searched with opposite end as with described second Match opposite end with opposite end matches first, described second matches opposite end for terminal/virtual machine;
The corresponding first network address information for matching opposite end is obtained according to the described first pairing request with opposite end;
The corresponding second network address information for matching opposite end is obtained according to the described second pairing request with opposite end;
Described second network address information with opposite end is sent to first to match and matches opposite end, by the match first pairing The network address information at end is sent to described second and matches opposite end, so that described first matches opposite end according to connecing with opposite end and described second The network address information of receipts communicates to connect.
2. virtual machine according to claim 1 and terminal allocation of communications method, which is characterized in that described to receive the first pairing The pairing request sent is held, and records corresponding first and matches opposite end before idle state, to further include:
The described first IP distribution requests sent respectively with opposite end with opposite end and described second are received, and are asked according to IP distribution It asks and obtains the MAC Address that the corresponding first MAC Address with opposite end matches opposite end with corresponding second;
It is obtained respectively according to the described first MAC Address with opposite end and the described second MAC Address with opposite end corresponding solid Determine IP;
Described first IP address with opposite end and the described second IP address with opposite end are changed to corresponding fixation respectively IP, so that described first sends the pairing request according to corresponding fixed IP respectively with opposite end and described second with opposite end.
3. virtual machine according to claim 2 and terminal allocation of communications method, which is characterized in that described to match described first The IP address of opposite end and described second is changed to the IP address of opposite end after corresponding fixed IP respectively, described to receive the One pairing request sent with opposite end, and record corresponding first and match opposite end before idle state, to further include:
Described first is recorded with opposite end, described second with the correspondence between opposite end and corresponding fixed IP;
Receive the described first IP verification requests sent respectively with opposite end with opposite end and described second;
According to the correspondence of record, verify respectively described first with opposite end and described second with opposite end current IP address whether It is consistent with corresponding fixed IP;
If so, the pairing request that the reception first is sent with opposite end is executed, and it is idle to record corresponding first with opposite end The step of state;
It is changed to respectively with the IP address of opposite end if it is not, then returning to the IP address by described first with opposite end and described second The step of corresponding fixed IP.
4. according to claim 1-3 any one of them virtual machine and terminal allocation of communications method, which is characterized in that the reception First pairing request sent with opposite end, and record corresponding first be idle state with opposite end after, it is described to receive the Two sent with opposite end pairing request when, search the first of idle state with opposite end as matching with opposite end with described second First with before opposite end, further includes:
Record receives the time of reception for the pairing request that described first sends with opposite end;
The first of the lookup idle state matches opposite end as with described second with opposite end with opposite end matches first, including:
From the first of multiple idle states in opposite end, choose the corresponding time of reception it is earliest first with opposite end as with described the Two match opposite end with opposite end matches first.
5. a kind of virtual machine and terminal automatic connection method, which is characterized in that including:
Pairing request is sent to control centre, so that the control centre searches the pairing of idle state according to the pairing request Side, the matching side are virtual machine or terminal;
Receive the network address information for the matching side that control centre returns;
It is established and is connected with corresponding matching side according to the network address information.
6. virtual machine according to claim 5 and terminal automatic connection method, which is characterized in that the transmission pairing request To before control centre, further include:
Obtain temporary IP;
IP distribution requests are sent to the control centre according to the temporary IP, are distributed according to the IP for the control centre The temporary IP is simultaneously changed to the fixed IP by the corresponding fixed IP of acquisition request.
7. virtual machine according to claim 6 and terminal automatic connection method, which is characterized in that described according to described interim After IP sends IP distribution requests to the control centre, before the transmission pairing request to control centre, further include:
IP verifications request is sent to the control centre, is verified according to the IP for the control centre and is faced described in request verification When IP whether be changed to corresponding fixed IP;
Receive the check results that the control centre returns, the check results be by when, execute transmissions and match and asks The step of asking to control centre.
8. according to claim 5-7 any one of them virtual machine and terminal automatic connection method, which is characterized in that the basis The network address information is established with corresponding matching side and is connected, including:
Send connection request to the corresponding matching side of the network address information verified, when verification passes through with the pairing Fang Jianli connections.
Or
The connection request that the matching side is sent is received, corresponding network address information, and school are obtained according to the connection request Whether the network address information for testing the corresponding network address information of the connection request and reception is consistent, if so, matching with described Other side establishes connection.
9. a kind of virtual machine and terminal Message Distribution System, which is characterized in that including:
State recording module, for receiving the first pairing request sent with opposite end, and it is sky to record corresponding first with opposite end Not busy state, described first matches opposite end for virtual machine/terminal;
Matched and searched module, first for when receiving the pairing request that second sends with opposite end, searching idle state matches Opposite end is matched in opposite end as with described second with opposite end matches first, and described second matches opposite end for terminal/virtual machine;
First information acquisition module, for obtaining the corresponding first network for matching opposite end according to the described first pairing request with opposite end Address information;
Second data obtaining module, for obtaining the corresponding second network for matching opposite end according to the described second pairing request with opposite end Address information;
Information sending module matches opposite end for the described second network address information with opposite end to be sent to match first, Match first network address information with opposite end is sent to described second and matches opposite end, so that described first matches opposite end and institute Second is stated to be communicated to connect according to the network address information of reception with opposite end.
10. a kind of virtual machine and terminal automatic connecting system, which is characterized in that including:
Request sending module, for sending pairing request to control centre, so that the control centre is according to the pairing request The matching side of idle state is searched, the matching side is virtual machine or terminal;
Information receiving module, the network address information of the matching side for receiving control centre's return;
Communication connection module is connected for being established with corresponding matching side according to the network address information.
CN201710182862.4A 2017-03-24 2017-03-24 Virtual machine and terminal allocation of communications method, automatic connection method and system Pending CN108632323A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710182862.4A CN108632323A (en) 2017-03-24 2017-03-24 Virtual machine and terminal allocation of communications method, automatic connection method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710182862.4A CN108632323A (en) 2017-03-24 2017-03-24 Virtual machine and terminal allocation of communications method, automatic connection method and system

Publications (1)

Publication Number Publication Date
CN108632323A true CN108632323A (en) 2018-10-09

Family

ID=63706750

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710182862.4A Pending CN108632323A (en) 2017-03-24 2017-03-24 Virtual machine and terminal allocation of communications method, automatic connection method and system

Country Status (1)

Country Link
CN (1) CN108632323A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102204210A (en) * 2011-05-18 2011-09-28 华为技术有限公司 Method, server, and system for starting application
CN102726025A (en) * 2011-11-29 2012-10-10 华为技术有限公司 Installation method and relative devices of business packet
CN102882968A (en) * 2012-09-27 2013-01-16 广东电子工业研究院有限公司 Method for dynamically distributing cloud desktops
CN103970590A (en) * 2014-05-15 2014-08-06 南京云思维软件科技有限公司 Dynamic virtual machine delivery method and system based on virtualization platform
CN106033369A (en) * 2015-03-10 2016-10-19 杭州华三通信技术有限公司 A memory device using method and device
US20170039083A1 (en) * 2015-08-03 2017-02-09 Fujitsu Limited Proxy response program, proxy response device and proxy response method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102204210A (en) * 2011-05-18 2011-09-28 华为技术有限公司 Method, server, and system for starting application
CN102726025A (en) * 2011-11-29 2012-10-10 华为技术有限公司 Installation method and relative devices of business packet
CN102882968A (en) * 2012-09-27 2013-01-16 广东电子工业研究院有限公司 Method for dynamically distributing cloud desktops
CN103970590A (en) * 2014-05-15 2014-08-06 南京云思维软件科技有限公司 Dynamic virtual machine delivery method and system based on virtualization platform
CN106033369A (en) * 2015-03-10 2016-10-19 杭州华三通信技术有限公司 A memory device using method and device
US20170039083A1 (en) * 2015-08-03 2017-02-09 Fujitsu Limited Proxy response program, proxy response device and proxy response method

Similar Documents

Publication Publication Date Title
CN110447208B (en) Network slice management method, unit and system
CN110896355B (en) Network slice selection method and device
CN104144098B (en) Information push method, system and push server equipment
US20140359137A1 (en) Method, apparatus, name server and system for establishing fcoe communication connection
CN110391921B (en) Method and device for processing configuration information of OLT (optical line terminal) port and storage medium
CN102726025B (en) Installation method and relative devices of business packet
CN102394948B (en) DHCP (dynamic host configuration protocol) address distribution method and DHCP server
US11463376B2 (en) Resource distribution method and apparatus in Internet of Things, device, and storage medium
CN108667952A (en) Communication equipment and intelligent terminal
CN102025574B (en) Cable modem termination system and method
CN111327668A (en) Network management method, device, equipment and storage medium
CN110138753B (en) Distributed message service system, method, apparatus, and computer-readable storage medium
CN101159676B (en) Data transmission method and system
CN107968725B (en) Method and device for returning and configuring configuration information of home gateway unit type terminal device
CN106534204A (en) Connection method of client and server, system and server
CN115967872A (en) Method, device and equipment for equipment management in optical network
CN108632323A (en) Virtual machine and terminal allocation of communications method, automatic connection method and system
CN101873330A (en) Access control method and server for supporting IPv6/IPv4 dual stack access
EP1641201B1 (en) Electronic mail charging system and method
CN107493181B (en) Indication method and device of virtual expansion port
CN110809033B (en) Message forwarding method and device and switching server
CN100373879C (en) Wideband access net with three layer access point and its IP address distributing method
CN114866371B (en) Method and device for establishing IPSec tunnel, storage medium and electronic equipment
CN110602245B (en) Method and storage medium for improving application software throughput
CN113015155B (en) eSIM server discovery method and device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181009