CN106101171B - Server connection method and device - Google Patents

Server connection method and device Download PDF

Info

Publication number
CN106101171B
CN106101171B CN201610350478.6A CN201610350478A CN106101171B CN 106101171 B CN106101171 B CN 106101171B CN 201610350478 A CN201610350478 A CN 201610350478A CN 106101171 B CN106101171 B CN 106101171B
Authority
CN
China
Prior art keywords
server
address
docker
external server
master
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610350478.6A
Other languages
Chinese (zh)
Other versions
CN106101171A (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201610350478.6A priority Critical patent/CN106101171B/en
Publication of CN106101171A publication Critical patent/CN106101171A/en
Application granted granted Critical
Publication of CN106101171B publication Critical patent/CN106101171B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/08Protocols specially adapted for terminal emulation, e.g. Telnet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the present invention provides a kind of server connection method and device.This method comprises: main external server receives the connection request message that user terminal is sent by gateway, main external server is the Docker server that resources occupation rate is lower than first threshold in multiple Docker servers of gateway connection;Main external server replys connection reply message to user terminal by gateway, and connection reply message includes the corresponding virtual mac address of Microsoft Loopback Adapter of main external server;Main external server receives the data message that user terminal is sent by gateway.User of the embodiment of the present invention need to only know that virtual ip address and the corresponding virtual mac address of Microsoft Loopback Adapter can establish connection with the external server of master, and main external server can be any one Docker server in multiple Docker servers, this improves the success rates that user connects Docker server.

Description

Server connection method and device
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of server connection method and devices.
Background technique
Docker is that the application container engine of an open source can be Docker's after installing Docker on physical host On the basis of carry multiple containers, mutually isolated between multiple containers, multiple containers share the operating system of physical host, each container It can place and execute different application programs.
The physical host for being equipped with Docker is known as Docker server, in the prior art, multiple Docker servers It is connected with gateway, user logs in Docker server, access and the resource for calling Docker server by network remote.It should Gateway is corresponding with network segment address, and the IP address for each Docker server connecting with the gateway belongs to the network segment address, user An IP address is randomly selected from network segment address, and the IP address is remotely logged into as purpose IP address using the IP address and is corresponded to Docker server.When the corresponding Docker server resource of IP address that user randomly selects is not enough or breaks down When, user randomly selects an IP address again from the remaining IP address of the network segment address, and again using the IP address as mesh The corresponding Docker server of the IP address Telnet IP address.
When there is the problems such as not enough resource or failure in the corresponding Docker server of the IP address that user randomly selects, User can only randomly select IP address again, and log on the corresponding Docker server of the IP address again and therefore reduce The success rate of user's connection Docker server.
Summary of the invention
The embodiment of the present invention provides a kind of server connection method and device, connects Docker server to improve user Success rate.
The one aspect of the embodiment of the present invention is to provide a kind of server connection method, comprising:
Main external server receives the connection request message that user terminal is sent by gateway, the connection request message packet The virtual ip address of the external server of the master is included, the external server of master is multiple Docker service of the gateway connection Resources occupation rate is lower than the Docker server of first threshold in device;
The external server of master replys connection reply message to the user terminal by the gateway, and the connection is answered Answer the corresponding virtual mac address of Microsoft Loopback Adapter that message includes the external server of the master;
The external server of master receives the data message that the user terminal is sent by the gateway, the datagram The target MAC (Media Access Control) address of text is the virtual mac address, and the purpose IP address of the data message is the virtual ip address.
The other side of the embodiment of the present invention is to provide a kind of server attachment device, comprising:
Receiving module, the connection request message sent for receiving user terminal by gateway, the connection request message Virtual ip address including the external server of the master, the external server of master are multiple Docker clothes of the gateway connection Resources occupation rate in device of being engaged in is lower than the Docker server of first threshold;
Sending module, for replying connection reply message, the connection reply to the user terminal by the gateway Message includes the corresponding virtual mac address of Microsoft Loopback Adapter of the external server of the master;
The receiving module is also used to receive the data message that the user terminal is sent by the gateway, the data The target MAC (Media Access Control) address of message is the virtual mac address, and the purpose IP address of the data message is the virtual ip address.
Server connection method provided in an embodiment of the present invention and device are serviced by the multiple Docker connected from gateway Resources occupation rate is chosen in device is used as main external server lower than the Docker server of first threshold, each Docker server The corresponding virtual mac address of Microsoft Loopback Adapter is identical, and the virtual ip address of each Docker server is identical, and user need to only know virtually IP address and the corresponding virtual mac address of Microsoft Loopback Adapter can establish connection with the external server of master, and lead external server It can be the Docker server that any one resources occupation rate in multiple Docker servers is lower than first threshold, the master couple The resources occupation rate of outer server is lower, can meet the needs of user terminal as far as possible, and this improves users to connect Docker The success rate of server.
Detailed description of the invention
Fig. 1 is server connection method flow chart provided in an embodiment of the present invention;
Fig. 2 is the network architecture diagram that server connection method provided in an embodiment of the present invention is applicable in;
Fig. 3 be another embodiment of the present invention provides server connection method flow chart;
Fig. 4 is the structure chart of server attachment device provided in an embodiment of the present invention;
Fig. 5 be another embodiment of the present invention provides server attachment device structure chart.
Specific embodiment
Fig. 1 is server connection method flow chart provided in an embodiment of the present invention;Fig. 2 is clothes provided in an embodiment of the present invention The applicable network architecture diagram of business device connection method.The embodiment of the present invention is directed to the corresponding Docker of IP address that user randomly selects When the problems such as not enough resource or failure occurs in server, user can only randomly select IP address again, and log on this again Therefore the corresponding Docker server of IP address reduces the success rate that user connects Docker server, provides server Connection method, specific step is as follows for this method:
Step S101, main external server receives the connection request message that user terminal is sent by gateway, the connection Request message includes the virtual ip address of the external server of the master, and the external server of master is the multiple of the gateway connection The smallest Docker server of resources occupation rate in Docker server;
The corresponding MAC Address of Microsoft Loopback Adapter of multiple Docker servers of gateway connection is the Virtual MAC Location.The virtual ip address of multiple Docker servers of the gateway connection is identical.The Microsoft Loopback Adapter of the external server of master It is in starting state with virtual ip address, the Microsoft Loopback Adapter of each Docker server of residue in addition to the external server of the master Disabled status is in virtual ip address.
As shown in Fig. 2, multiple Docker server 21-25 are connect with gateway 10 respectively, gateway 10 connects internet 30, uses Family terminal 40 connects gateway 10 by internet 30, and accesses and call Docker server by gateway 10.Of the invention real It applies in example, gateway 10 is corresponding with a network segment address, and the respective IP address of Docker server 21-25 connecting with gateway 10 is Mutual unduplicated IP address in the network segment address, it is assumed that the IP address of gateway 10 is 192.168.0.1, the corresponding net of gateway 10 Sector address is 192.168.0.100-192.168.0.255, wherein the IP address that Docker server 21-25 is corresponding in turn to is 192.168.0.101-192.168.0.105。
In embodiments of the present invention, Docker server 21-25 is respectively arranged with two and throws the net card, a physical network card, and one Microsoft Loopback Adapter, each physical network card is different, and the corresponding virtual mac address of each Microsoft Loopback Adapter is identical, which is used for Data interaction is carried out with user terminal, the physical network card is for the information exchange between each Docker server.In addition, Docker Server 21-25 is also each configured with virtual ip address, and the corresponding virtual ip address of each Docker server is identical, for example, It is a free address of gateway 10, the virtual ip address for 192.168.0.254, virtual ip address 192.168.0.254 It is not occupied by the Docker server of any one entity, user predicts the virtual ip address, which can be by Any one Docker server is sent to user terminal, can also be sent to user terminal by gateway 10, can also be by main pair Outer server is sent to user terminal.
Specifically, after Docker server 21-25 electrifying startup, the resources occupation rate of itself is detected respectively, works as detection To itself resources occupation rate be less than first threshold when, to other Docker server broadcast equipment identification informations, broadcast is set The standby earliest Docker server of identification information such as Docker server 21 is as main external server, the external server of the master Start local Microsoft Loopback Adapter and virtual ip address, other Docker servers disable local Microsoft Loopback Adapter and virtual IP address Address.
User terminal 40 sends connection request message to gateway 10 by internet 30, and the connection request message is specially Location analysis protocol (Address Resolution Protocol, abbreviation ARP) request message, the ARP request message include virtual The ARP request message is sent to Docker server 21-25 by IP address 192.168.0.254, gateway 10, since Docker takes Be engaged in device 21-25 only main external server, that is, enabling virtual ip address 192.168.0.254 of Docker server 21, then and main pair Outer server Docker server 21 receives the ARP request message.
Step S102, the described external server of master replys connection reply message to the user terminal by the gateway, The connection reply message includes the corresponding virtual mac address of Microsoft Loopback Adapter of the external server of the master.
Main external server, that is, Docker server 21 is by the corresponding virtual mac address addition of Microsoft Loopback Adapter in connection reply In message, which is specially arp reply message, and main external server, that is, Docker server 21 passes through gateway 10 The arp reply message is sent to user terminal 40.
In addition, in embodiments of the present invention, if failure, gateway 10 has occurred in main external server, that is, Docker server 21 The arp reply message that main external server is replied is not received within a preset time, then gateway 10 continues the ARP request message It is sent to Docker server 21-25, if the number that gateway 10 retransmits ARP request message has been more than threshold number, such as 3 Secondary, gateway 10 receives the arp reply message that main external server is replied not yet, then gateway 10 is to Docker server 21-25 The information of main external server is chosen in broadcast again, then in Docker server 21-25 in addition to Docker server 21 Docker server detects local resources occupation rate again, and sends broadcast message, sends according to broadcast message successive suitable Sequence selects the external server of new master.
Step S103, the described external server of master receives the data message that the user terminal is sent by the gateway, The target MAC (Media Access Control) address of the data message is the virtual mac address, and the purpose IP address of the data message is described virtual IP address.
User terminal 40 passes through arp reply Receive message to the corresponding Virtual MAC of Microsoft Loopback Adapter for leading external server Location, since user predicts the virtual ip address, then user terminal 40 is using virtual mac address as purpose MAC Address, with virtual IP address Location is that purpose IP address sends datagram to the external server of master, which can specifically include Docker server pipe Manage instruction, task-performance instructions etc..
In present example, since the corresponding virtual mac address of Microsoft Loopback Adapter of each Docker server is identical, and it is each The virtual ip address of Docker server is identical, and user need to only know the virtual ip address and the corresponding Virtual MAC of Microsoft Loopback Adapter Address can be interacted with the external server communication of master, and main external server is multiple Docker service of the gateway connection Resources occupation rate is lower than the Docker server of first threshold in device, that is, leading external server can be multiple Docker servers In any one Docker server.
The embodiment of the present invention is lower than first by choosing resources occupation rate from multiple Docker servers that gateway connects The Docker server of threshold value is as main external server, the corresponding virtual mac address of Microsoft Loopback Adapter of each Docker server Identical, the virtual ip address of each Docker server is identical, and user need to only know virtual ip address and the corresponding void of Microsoft Loopback Adapter Quasi- MAC Address can establish connection with the external server of master, and main external server can be in multiple Docker servers Any one resources occupation rate be lower than the Docker server of first threshold, the resources occupation rate of the external server of the master compared with It is low, can meet the needs of user terminal as far as possible, this improves the success rates that user connects Docker server.
Fig. 3 be another embodiment of the present invention provides server connection method flow chart;In the base of the corresponding embodiment of Fig. 1 On plinth, specific step is as follows for server connection method provided in an embodiment of the present invention:
Step S301, main external server receives the connection request message that user terminal is sent by gateway, the connection Request message includes the virtual ip address of the external server of the master, and the external server of master is the multiple of the gateway connection The smallest Docker server of resources occupation rate in Docker server;
Step S302, the described external server of master replys connection reply message to the user terminal by the gateway, The connection reply message includes the corresponding virtual mac address of Microsoft Loopback Adapter of the external server of the master;
Step S303, the described external server of master receives the data message that the user terminal is sent by the gateway, The target MAC (Media Access Control) address of the data message is the virtual mac address, and the purpose IP address of the data message is described virtual IP address;
Step S301-S303 is consistent with step S101-S103 respectively, and details are not described herein again for specific method.
Step S304, the described external server of master calculates its resources occupation rate, and determines whether the resources occupation rate is big In second threshold;
In embodiments of the present invention, main external server is replaceable Docker server, specifically, current master couple Outer server periodically calculates local resources occupation rate, and judges whether the resources occupation rate is greater than second threshold.
If the resources occupation rate of step S305, the described external server of master is greater than second threshold, the master is externally serviced The resources occupation rate of each Docker server of residue that device is connected according to the gateway, in addition to the external server of the master, Determine a target Docker server as the new external server of master.
If the resources occupation rate of the external server of current master is greater than second threshold, indicate at the external server of current master In busy condition, then the Docker server 21 in the external server of current master such as Fig. 2 sends broadcast message to others Docker server 22-25 is serviced so that respectively current resources occupation rate is sent to Docker by Docker server 22-25 Device 21, Docker server 21 is compared the corresponding resources occupation rate of Docker server 22-25, by resource occupation The minimum Docker server of rate is minimum as the new external server of master, such as the resources occupation rate of Docker server 23, Then Docker server 23 will be as the new external server of master.Docker server 21 sends to Docker server 23 and appoints Message, Docker server 23 enable local Microsoft Loopback Adapter and virtual ip address, Docker service after receiving appointment message The corresponding physical MAC address of for example local physical network card of its identification information is broadcast to other each Docker servers by device 23, Expression Docker server 23 is the new external server of master, and Docker server 21 receives the broadcast of Docker server 23 Local Microsoft Loopback Adapter and virtual ip address are disabled after message.
Since the data message of user terminal transmission is using virtual mac address as purpose MAC Address, using virtual ip address as mesh IP address, even if main external server update is Docker server 23, user terminal passes through the virtual mac address and virtual IP address still may be coupled to Docker server, and the Docker server being connected to is that resources occupation rate is minimum Docker server.
It should be noted that step S304 and step S301, step S302, step S303 are not carried out sequence, i.e. step S304 can be executed before or after any one step in step S301, step S302, step S303;Similarly, step S305 and step S301, step S302, step S303 are not carried out sequence.
The embodiment of the present invention regularly updates main external server, the master couple by the resources occupation rate of each Docker server Outer server is the minimum Docker server of resources occupation rate, and the Docker server resource that ensure that user terminal logs in accounts for It is minimum with rate, further improve the success rate that user connects Docker server.
Fig. 4 is the structure chart of server attachment device provided in an embodiment of the present invention.Service provided in an embodiment of the present invention The process flow that device attachment device can be provided with execute server connection method embodiment, as shown in figure 4, server attachment device 40 include receiving module 41 and sending module 42, wherein receiving module 41 is for receiving the company that user terminal is sent by gateway Request message is connect, the connection request message includes the virtual ip address of the external server of the master, the external server of master It is the Docker server that resources occupation rate is lower than first threshold in multiple Docker servers of the gateway connection;Send mould Block 42 is used to reply connection reply message to the user terminal by the gateway, and the connection reply message includes the master The corresponding virtual mac address of Microsoft Loopback Adapter of external server;It is logical that the receiving module 41 is also used to receive the user terminal The data message that the gateway is sent is crossed, the target MAC (Media Access Control) address of the data message is the virtual mac address, the data The purpose IP address of message is the virtual ip address.
Server attachment device provided in an embodiment of the present invention can be specifically used for executing the reality of method provided by above-mentioned Fig. 1 Example is applied, details are not described herein again for concrete function.
The embodiment of the present invention is lower than first by choosing resources occupation rate from multiple Docker servers that gateway connects The Docker server of threshold value is as main external server, the corresponding virtual mac address of Microsoft Loopback Adapter of each Docker server Identical, the virtual ip address of each Docker server is identical, and user need to only know virtual ip address and the corresponding void of Microsoft Loopback Adapter Quasi- MAC Address can establish connection with the external server of master, and main external server can be in multiple Docker servers Any one resources occupation rate be lower than the Docker server of first threshold, the resources occupation rate of the external server of the master compared with It is low, can meet the needs of user terminal as far as possible, this improves the success rates that user connects Docker server.
Fig. 5 be another embodiment of the present invention provides server attachment device structure chart.On the basis of above-described embodiment On, the corresponding MAC Address of Microsoft Loopback Adapter of multiple Docker servers of the gateway connection is the virtual mac address.
The virtual ip address of multiple Docker servers of the gateway connection is identical.
Server attachment device 40 further includes computing module 43 and determining module 44, wherein computing module 43 is for calculating Its resources occupation rate;Determining module 44 is for determining whether the resources occupation rate is greater than second threshold;If the master externally takes The resources occupation rate of business device is greater than second threshold, then according to gateway connection, surplus in addition to the external server of the master The resources occupation rate of remaining each Docker server determines a target Docker server as the new external server of master.
The Microsoft Loopback Adapter and virtual ip address of the external server of master are in starting state, remove the external server of the master Except each Docker server of residue Microsoft Loopback Adapter and virtual ip address be in disabled status.
Server attachment device provided in an embodiment of the present invention can be specifically used for executing the reality of method provided by above-mentioned Fig. 3 Example is applied, details are not described herein again for concrete function.
The embodiment of the present invention regularly updates main external server, the master couple by the resources occupation rate of each Docker server Outer server is the minimum Docker server of resources occupation rate, and the Docker server resource that ensure that user terminal logs in accounts for It is minimum with rate, further improve the success rate that user connects Docker server.
In conclusion the embodiment of the present invention is by choosing resources occupation rate from multiple Docker servers that gateway connects Lower than the Docker server of first threshold as main external server, the Microsoft Loopback Adapter of each Docker server is corresponding virtual MAC Address is identical, and the virtual ip address of each Docker server is identical, and user need to only know virtual ip address and Microsoft Loopback Adapter pair The virtual mac address answered can establish connection with the external server of master, and main external server can be multiple Docker clothes Any one resources occupation rate being engaged in device is lower than the Docker server of first threshold, the resource occupation of the external server of the master Rate is lower, can meet the needs of user terminal as far as possible, and this improves the success rates that user connects Docker server;It is logical The resources occupation rate for crossing each Docker server regularly updates main external server, the external server of the master be resources occupation rate most Low Docker server, the Docker server resource occupancy that ensure that user terminal logs in is minimum, further improves The success rate of user's connection Docker server.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or unit Letter connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read- Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various It can store the medium of program code.
Those skilled in the art can be understood that, for convenience and simplicity of description, only with above-mentioned each functional module Division progress for example, in practical application, can according to need and above-mentioned function distribution is complete by different functional modules At the internal structure of device being divided into different functional modules, to complete all or part of the functions described above.On The specific work process for stating the device of description, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (4)

1. a kind of server connection method characterized by comprising
Main external server receives the connection request message that user terminal is sent by gateway, and the connection request message includes institute The virtual ip address of main external server is stated, the external server of master is in multiple Docker servers of the gateway connection Resources occupation rate is lower than the Docker server of first threshold;
The external server of master replys connection reply message, the connection reply report to the user terminal by the gateway Text includes the corresponding virtual mac address of Microsoft Loopback Adapter of the external server of the master;
The external server of master receives the data message that the user terminal is sent by the gateway, the data message Target MAC (Media Access Control) address is the virtual mac address, and the purpose IP address of the data message is the virtual ip address, the net The corresponding MAC Address of Microsoft Loopback Adapter for correlating the multiple Docker servers connect is the virtual mac address, the gateway connection Multiple Docker servers virtual ip address it is identical;
Further include:
The external server of master calculates its resources occupation rate, and determines whether the resources occupation rate is greater than second threshold;
If the resources occupation rate of the external server of master is greater than second threshold, the external server of master is according to the gateway The resources occupation rate of each Docker server of residue connect, in addition to the external server of the master, determines a target Docker server is as the new external server of master.
2. the method according to claim 1, wherein the Microsoft Loopback Adapter and virtual IP address of the external server of the master Location is in starting state, the Microsoft Loopback Adapter and virtual IP address of each Docker server of residue in addition to the external server of the master Location is in disabled status.
3. a kind of server attachment device characterized by comprising
Receiving module, the connection request message sent for receiving user terminal by gateway, the connection request message include The virtual ip address of main external server, the external server of master be the gateway connection multiple Docker servers in provide Source occupancy is lower than the Docker server of first threshold;
Sending module, for replying connection reply message, the connection reply message to the user terminal by the gateway The corresponding virtual mac address of Microsoft Loopback Adapter including the external server of the master;
The receiving module is also used to receive the data message that the user terminal is sent by the gateway, the data message Target MAC (Media Access Control) address be the virtual mac address, the purpose IP address of the data message is the virtual ip address, described The corresponding MAC Address of Microsoft Loopback Adapter of multiple Docker servers of gateway connection is the virtual mac address, and the gateway connects The virtual ip address of the multiple Docker servers connect is identical;
Further include:
Computing module, for calculating its resources occupation rate;
Determining module, for determining whether the resources occupation rate is greater than second threshold;If the resource of the external server of master Occupancy is greater than second threshold, then each Docker of residue connected according to the gateway, in addition to the external server of the master The resources occupation rate of server determines a target Docker server as the new external server of master.
4. server attachment device according to claim 3, which is characterized in that the Microsoft Loopback Adapter of the external server of master It is in starting state with virtual ip address, the Microsoft Loopback Adapter of each Docker server of residue in addition to the external server of the master Disabled status is in virtual ip address.
CN201610350478.6A 2016-05-24 2016-05-24 Server connection method and device Active CN106101171B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610350478.6A CN106101171B (en) 2016-05-24 2016-05-24 Server connection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610350478.6A CN106101171B (en) 2016-05-24 2016-05-24 Server connection method and device

Publications (2)

Publication Number Publication Date
CN106101171A CN106101171A (en) 2016-11-09
CN106101171B true CN106101171B (en) 2019-12-03

Family

ID=57229868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610350478.6A Active CN106101171B (en) 2016-05-24 2016-05-24 Server connection method and device

Country Status (1)

Country Link
CN (1) CN106101171B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200036777A1 (en) * 2016-12-13 2020-01-30 Abb Schweiz Ag A multi-client/multi-server managing method and system
CN110178352A (en) * 2016-12-13 2019-08-27 Abb瑞士股份有限公司 Client is had connected using refusal with the multi-client of the routine of balance system/multiserver administration method and system
CN106878484A (en) * 2017-02-27 2017-06-20 郑州云海信息技术有限公司 A kind of method of configuration Docker cluster external containers IP
CN108156240B (en) * 2017-12-25 2021-07-30 深圳市智物联网络有限公司 Method and system for accessing industrial adapter to server
CN110300071A (en) * 2019-06-03 2019-10-01 广东美的厨房电器制造有限公司 The server resource acquisition methods and relevant device of internet of things equipment
CN110311981A (en) * 2019-07-05 2019-10-08 吉旗(成都)科技有限公司 Branch gateway communication method and device, terminal, communication device based on Transmission Control Protocol

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255906A (en) * 2011-07-08 2011-11-23 中国联合网络通信集团有限公司 Data transmission and receiving methods, equipment and systems
CN104023095A (en) * 2014-06-23 2014-09-03 杭州华三通信技术有限公司 Virtual gateway medium access control address response method and device
CN104079497A (en) * 2014-07-21 2014-10-01 北京信诺瑞得软件***有限公司 High-availability loading balancing equipment and method under transparent network bridge mode
CN105430110A (en) * 2015-10-30 2016-03-23 浪潮(北京)电子信息产业有限公司 Container configuration method and network transmission device of virtual network system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9843533B2 (en) * 2014-03-06 2017-12-12 Trilio Data Inc. Elastic compute cloud based on underutilized server resources using a distributed container system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255906A (en) * 2011-07-08 2011-11-23 中国联合网络通信集团有限公司 Data transmission and receiving methods, equipment and systems
CN104023095A (en) * 2014-06-23 2014-09-03 杭州华三通信技术有限公司 Virtual gateway medium access control address response method and device
CN104079497A (en) * 2014-07-21 2014-10-01 北京信诺瑞得软件***有限公司 High-availability loading balancing equipment and method under transparent network bridge mode
CN105430110A (en) * 2015-10-30 2016-03-23 浪潮(北京)电子信息产业有限公司 Container configuration method and network transmission device of virtual network system

Also Published As

Publication number Publication date
CN106101171A (en) 2016-11-09

Similar Documents

Publication Publication Date Title
CN106101171B (en) Server connection method and device
CN100389392C (en) Method for realizing load uniform in clustering system, system and storage controller
CN105847108B (en) Communication means and device between container
CN108712485B (en) Resource subscription method and device for Internet of things equipment
CN106130990B (en) The control method and device of container access
CN108777640B (en) Server detection method, device, system and storage medium
CN107800743B (en) Cloud desktop system, cloud management system and related equipment
CN105553993A (en) Remote service dispatching method and device and server
CN104679528B (en) The newer method and apparatus of application program remote
CN105391622A (en) Method and system for sharing resources in instant messaging or social networking application
CN108632844B (en) Information processing method, device and electronic equipment
CN102960006A (en) Processing method, device and management control system of internet of things
CN109819023B (en) Distributed transaction processing method and related product
CN110061992A (en) A kind of method and Network Security Device of dynamic configuration FPGA
CN106101297B (en) A kind of message answer method and device
WO2017185992A1 (en) Method and apparatus for transmitting request message
CN103563314A (en) System and method for passive communication services
CN108650336A (en) IP address dynamic allocation method, device and storage medium, wireless relay apparatus
CN109819064B (en) Method for communication between modules, operating system module and conference panel
CN108777664A (en) A kind of data package processing method and its equipment, system, storage medium
CN106210162B (en) Communication control method and device
CN106231003B (en) A kind of address distribution method and device
CN109246024A (en) Load sharing method, device, terminal device and storage medium in a kind of networking
CN109688011B (en) Agent selection method and device based on OpenStack
CN109257435B (en) Communication system of multi-instance multi-subsystem application based on message middleware

Legal Events

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