Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Embodiments provide a kind of method set up network game and connect, as shown in Figure 1, the method comprises:
101, control server obtains the IP(Internet Protocol) IP address of game server.
In the Internet, want to set up an effective network and connect, the IP address of institute's access object will be known, the transmission of data can be carried out with the object that will access by IP address.Therefore, set up network game to connect, first the IP address of game server will be obtained, and the mode of the IP address of existing acquisition game server, general be all that game terminal passes through to download and the mode of installing game client reaches, the IP address of game server is loaded in its client, and game user just can according to IP address from being dynamically connected game server after the game of this networking of startup.In embodiments of the present invention, the IP address obtaining game server has been come by control server, this control server is the webserver provided by third party's network game connection side, can be obtained the IP address of a large amount of network game game server by this control server.
102, control server generates the routing table recording IP address.
In a computer network, routing table or claim route to select domain information storehouse (RIB) to be and to be stored in electrical form (file) in router or Net-connected computer or class database.Routing table stores the path pointing to particular network address, and its main target set up is to realize Routing Protocol and static routing selection.Routing table can be fixedly installed by system manager, also can be on-the-fly modified by system, automatically can be adjusted by router, also can by host computer control.Setting fixing routing table in advance by system manager and be referred to as static state (static) routing table, is generally that the configuring condition when system is installed just according to network presets, and it can not change with the change of future network structure.And according to the ruuning situation of network system and self-adjusting routing table is referred to as dynamically (Dynamic) routing table, according to the function that routing protocol (Routing Protocol) provides, automatic learning and memory network ruuning situation, when needed can automatically calculated data transmission optimal path.
Wherein, the routing information comprised in routing table is mainly made up of the network address (IP address), so control server, behind the IP address getting a large amount of network game game server, also can generate the routing table that records these IP addresses.
103, routing table is handed down to game terminal by control server.
Control server can be handed down to game terminal by this table after generation routing table, because the quantity of network game game server can increase along with the increase of game user, and the therefore routing table IP address that will upgrade wherein according to the change of game server.So control server can issue routing table to game terminal, to ensure that the user of game terminal can be connected to up-to-date game server according to the timing of the update status of routing table or not timing.
104, game terminal creates Microsoft Loopback Adapter, and the IP address in routing table is redirected to the IP address of Microsoft Loopback Adapter.
Microsoft Loopback Adapter (also known as Objunctive network adaptor), namely uses software simulation network environment, and the local area network (LAN) between remote computer set up by analog network adapter.Wherein, VPN (virtual private network) VPN is exactly the chained technology based on Microsoft Loopback Adapter.Therefore, in embodiments of the present invention, because VPN used by needs, so just need to create Microsoft Loopback Adapter at game terminal, because Microsoft Loopback Adapter is windows system carry this software, therefore in the operating system of windows series, directly can add Microsoft Loopback Adapter easily, wherein, illustratively concrete operating procedure is carried out for Windows 7 system:
1. click " beginning ", then in " computer " upper right click, click " management ".
2. there is " computer management " interface, click " equipment manager ", right click the first row there will be " Scanning Detction hardware modifications (A) " and " adding out-of-date hardware (L) " two options, " adding out-of-date hardware (L) " option please be select here.
3. occur " welcome to use and add hardware wizard ", click next step, select " I being installed manually from hardware (senior) (M) that list is selected ".
4. be pulled down to appearance " network adapter ", after selecting, click " next step ".
5. " Microsoft " selects in manufacturer, and network adapter selects " Microsoft Loopback Adapter ", then clicks " next step ".
6. click " next step " in following step just to complete always.
The IP address of Microsoft Loopback Adapter, after having created Microsoft Loopback Adapter, can be redirected in IP address in the routing table sent by control server by game terminal.Wherein, network request is reassigned direction by redirected referring to, forward on other position, such as, being redirected of webpage, being redirected of domain name are all transferred to its address on a new address, and user old address when accessing is that address can jump on new address and conducts interviews by server automatically.In the invention process, be redirected the change of refering in particular to Route Selection, that is, game terminal is when accessing the IP address in routing table, if be not redirected, game terminal will be conducted interviews by the IP address of the physical network card of himself, and by behind the IP address of being redirected to Microsoft Loopback Adapter, the game terminal Microsoft Loopback Adapter that just can physical network card had to transfer to the access path of the IP address in routing table, so just can carry out game by the IP address of Microsoft Loopback Adapter and be connected to.
105, game terminal initiates game connection request by Microsoft Loopback Adapter, and game connection request is sent on proxy server by VPN (virtual private network) VPN.
Wherein, VPN (virtual private network) VPN mentioned in 104, its English full name is " VirtualPrivateNetwork ", be translated into " VPN (virtual private network) ", VPN belongs to remote access technology, can be regarded as virtual enterprises special line out, it can by the communications protocol of special encryption connect on internet between different local two or more intranets, set up a proprietary communication line, why it is called virtual net, mainly because the end to end physical link of connection not needed for traditional private network between any two nodes of whole VPN, but the network platform that framework provides at public network operators, be exactly briefly utilize common link to set up private network.Therefore, game terminal is when carrying out network game by VPN, and its connection speed, data transmission capabilities all will be increased dramatically, and reduces game user because the factors such as network busy feel the experience postponed of playing.
Thus, game terminal is when initiating game connection request by Microsoft Loopback Adapter, can game connection request be sent on proxy server by VPN, wherein, proxy server is the same with control server, also be the webserver provided by third party's network game connection side, the difference of itself and control server is, proxy server is exclusively used in the server that network game connects.
106, game connection request is forwarded to game server by proxy server, sets up be connected with the game between game terminal to make game server.
By proxy server, game connection request is forwarded to game server, thus the game set up between game server with game terminal is connected, because this proxy server does not belong to the server in public networking, therefore this game connection can further for game terminal brings more stable network services.
Therefore, the method that network game that what the embodiment of the present invention provided set up connects, the IP address of a large amount of game server is obtained by control server, and generate the routing table that records these IP addresses, this routing table is had one's hair wash to game terminal, again by game terminal according to this routing table, the game connection request of user is sent on proxy server by the Microsoft Loopback Adapter himself installed and VPN, be forwarded on game server via proxy server again, the game completed between game terminal with game server is connected.This kind of connected mode compares the existing mode connected by public carrier network, the transfer of data of the transfer of data of online game and other network applications can be distinguished, quality and the speed of transfer of data is increased by the mode of this designated lane, reduce the generation of transfer of data jam situation, reduce the time of delay of transfer of data, thus improve the game experiencing quality of game terminal user when carrying out online game.
Based on the method setting up network game connection described in Fig. 1, in order to the operation of further instruction the method in specific implementation, the embodiment of the present invention also provides a kind of method set up network game and connect, and as shown in Figure 2, its concrete steps are:
201, control server obtains the IP(Internet Protocol) IP address of game server.
Control server, when obtaining the IP address of game server, can obtain the IP address of game server by game terminal, also can be obtained the IP address of game server by the IP address list that control server is preset.
Wherein, the IP address of game server is obtained by game terminal, be obtain on game terminal existing game server IP address, game terminal startup game after, control server can automatically by game terminal select connection game server IP address acquisition and preserve.Game server IP address obtained in this way, receive the restriction of game terminal resource, its quantity obtained is relatively less, be unfavorable for extensive use, but the game server IP address that this mode obtains is relative to more fixing user, and its specific aim is more suitable for as special user provides proprietary service.And for being obtained the mode of the IP address list preset by control server, be through the IP address list that keeper presets game server in control server, in this fashion, can the IP address of all game servers known to keeper be recorded in this list, therefore, the game server IP address that can obtain in this way at most, also the most complete, be also more suitable for being widely used.
202, control server generates the routing table recording IP address.
Mentioned in 104 and set fixing routing table in advance by system manager and be referred to as static state (static) routing table, in embodiments of the present invention, the routing table of what control server generated record IP address just belongs to static routing table.
203, routing table is handed down to game terminal by control server.
Wherein, control server issues except routing table except timing upgrades, and can also accepting sending request of game terminal, sending up-to-date routing table at any time according to sending request to game terminal, to meet upgrading demand of game terminal.
204, game terminal creates Microsoft Loopback Adapter, and the IP address in routing table is redirected to the IP address of Microsoft Loopback Adapter.
Wherein, game terminal is after being redirected to the IP address of Microsoft Loopback Adapter by the game server IP address in routing table, conveniently game server is distinguished game terminal, the IP address of the IP address in game terminal routing table and Microsoft Loopback Adapter can be bound.
Further, in order to prevent IP address conflict or stolen, the MAC Address of the IP address in game terminal routing table and Microsoft Loopback Adapter can also be bound.If desired, the proxy server port that access also can also be bound together, thus further protection is done to the fail safe of IP address.
205, game terminal initiates game connection request by Microsoft Loopback Adapter, and game connection request is sent on proxy server by VPN (virtual private network) VPN.
Wherein, due to VPN use common link on the Internet, in order to ensure in VPN transmit the safety of data, VPN can be encrypted the data transmitted in its networking, can be understood as VPN and utilizes encryption technology on public network, encapsulate out a data Communication tunnel.Tunneling technique is the technology utilizing the another kind of agreement of a kind of protocol transmission, and the key that VPN is different from general networking interconnection is exactly the foundation in tunnel, and packet, after encryption, is undertaken encapsulating, transmitting to ensure fail safe by tunnel protocol.Generally, the agreement realizing data encapsulation in data link layer hands over Level 2 Tunnel Protocol, and conventional has PPTP, L2TP etc.; The agreement of data encapsulation is realized layer 3 Tunnel protocol, as IPSec in network layer.
1) PPP (peer-peer protocol) frame can be packaged into IP packet by PPTP (PPTP), can transmit on IP-based the Internet.The establishment that PPTP uses TCP (transmission control protocol) to connect, safeguards, with termination tunnel, and uses GRE (generic route encapsulation) that PPP frame is packaged into tunneling data.The payload of the PPP frame after packed can encrypted or compression or simultaneously encrypted with compression.
2) L2TP agreement: L2TP is that the one of PPTP and L2F (Level 2 Forwarding) is comprehensive.Be a kind of industrial standard Internet tunnel protocol, it can provide encapsulation for media sending point end-to-end protocol (EEP) (PPP) framework crossing over packet-oriented.PPTP and L2TP uses ppp protocol to encapsulate data, then adds additional packet header for the transmission of data on internet.PPTP can only set up single tunnel between two-end-point.L2TP is supported between two-end-point and uses Multiple tunnel, and user can create different tunnels for different service quality.L2TP can provide tunnel authentication, and PPTP does not then support tunnel authentication.But when L2TP or PPTP and IPSEC uses jointly, tunnel authentication can be provided by IPSEC, not need in l2 protocol, verify that tunnel uses L2TP.PPTP requires that internet is IP network.L2TP only requires that tunnel media provides the point-to-point connection of packet-oriented, and L2TP can IP (using UDP), and frame relay permanent virtual circuit (PVCs), X.25 virtual circuit (VCs) or ATM VCs network uses.
3) ipsec protocol: be encapsulate again outside tunnel, ensure that the safety in transmitting procedure.The principal character of IPSec is that it can be encrypted the communication of all IP levels.When using IPSec with tunnel mode, it provides encapsulation for IP communication.Use ipsec tunnel pattern mainly in order to other mutual operation not supporting between the router of L2TP or the PPTP vpn tunneling technology on IPSec, gateway or terminal system.
Further, the present embodiment, in concrete practical operation, can also adopt OpenVPN to build VPN service, and OpenVPN allows the single-point participating in setting up VPN to use the private key preset, third party's certificate, or usemame/password carries out authentication.It employs OpenSSL encryption library in a large number, and SSLv3/TLSv1 agreement.OpenVPN can run on Linux, xBSD, Mac OS X and Windows 2000/XP.Meanwhile, OpenVPN provides multiple authentication mode, in order to confirm the identity participating in connecting both sides, comprising: enjoy private key in advance, third party's certificate and username/password combination.The all communication of OpenVPN is all based on a single IP port, and acquiescence and the communication of recommendation udp protocol, TCP is also supported simultaneously.OpenVPN connects by most proxy server, and can work well in the environment of NAT.Service end has the function to client " propelling movement " some network configuration information, and these information comprise: IP address, route are arranged.OpenVPN provides two kinds of virtual network interfaces: general Tun/Tap drives, and by them, can set up three layers of IP tunnel, or virtual two layers of Ethernet, and the latter can transmit two layers of Ethernet data of any type.The ideal that OpenVPN uses the feature of general purpose network protocol (TCP and UDP) to make it become the agreements such as IPsec substitutes, especially when ISP (Internet service provider) filters some specific VPN agreement.
206, game connection request is forwarded to game server by proxy server, sets up be connected with the game between game terminal to make game server.
Wherein, in the situations such as, distance friendship more in game server quantity is far away, game connection request directly cannot be forwarded to game server by proxy server, at this moment the Relay Server of multiple stage is adopted to forward game connection request to game server with regard to needing, by coordinating of Relay Server and proxy server, game server is set up and is connected with the game between game terminal.
As to above-mentioned realization of setting up network game method of attachment, embodiments provide a kind of control server, as shown in Figure 3, this control server comprises:
Acquiring unit 31, for obtaining the IP(Internet Protocol) IP address of game server.
Generation unit 32, for generating the routing table recording the described IP address that described acquiring unit 31 obtains.
Transmitting element 33, is handed down to game terminal for the described routing table generated by described generation unit 32, to make described game terminal create Microsoft Loopback Adapter, and the described IP address in described routing table is redirected to the IP address of described Microsoft Loopback Adapter.
Further, as shown in Figure 4, the acquiring unit 31 of described control server, comprising:
First acquisition module 311, for obtaining the IP address of selected game server to described game terminal.
Further, as shown in Figure 4, the acquiring unit 31 of described control server, comprising:
Second acquisition module 312, for obtaining default IP address list, records the IP address of whole game server in described IP address list.
Corresponding above-mentioned control server, the embodiment of the present invention additionally provides a kind of game terminal, and as shown in Figure 5, this game terminal comprises:
Receiving element 51, for receiving the routing table that control server issues, records the IP(Internet Protocol) IP address of game server in described routing table.
Creating unit 52, after receiving described routing table at described receiving element 51, creates Microsoft Loopback Adapter.
Processing unit 53, for the described IP address in the described routing table that received by described receiving element 51, is redirected to the IP address of the described Microsoft Loopback Adapter that described creating unit 52 creates.
Transmitting element 54, described Microsoft Loopback Adapter for being created by described creating unit 52 initiates game connection request, described game connection request is sent on proxy server by VPN (virtual private network) VPN, to make described proxy server that described game connection request is forwarded to described game server, thus the foundation of described game server is connected with the game between described game terminal.
Further, the processing unit 53 of described game terminal, for binding the IP address of the IP address in described routing table and described Microsoft Loopback Adapter.
Further, the agreement that the VPN that described game terminal adopts uses comprises: PPTP, L2TP, IPSec.
Based on the embodiment of the said equipment, the embodiment of the present invention additionally provides a kind of system set up network game and connect, and as shown in Figure 6, this system comprises:
Game server 61, game terminal 62, control server 63, proxy server 64; Wherein,
Described control server 63, for obtaining the IP(Internet Protocol) IP address of described game server 61, generating the routing table recording described IP address, and described routing table is handed down to described game terminal 62;
Described game terminal 62, for creating Microsoft Loopback Adapter, described IP address in described routing table is redirected to the IP address of described Microsoft Loopback Adapter, initiate game connection request by described Microsoft Loopback Adapter, described game connection request is sent on described proxy server 64 by VPN (virtual private network) VPN;
Described proxy server 64, for being forwarded to described game server 61 by described game connection request;
Described game server 61, for the described game connection request forwarded according to described proxy server 64, sets up and is connected with the game between described game terminal 62.
Further, as shown in Figure 7, described system also comprises:
Relay Server 65, for receiving the described game connection request that described proxy server 64 sends, and is forwarded to described game server 61 by the described game connection request received.
In sum, method, equipment and system that network game that what the embodiment of the present invention provided set up connects, the IP address of a large amount of game server is obtained by control server, and generate the routing table that records these IP addresses, this routing table is had one's hair wash to game terminal, again by game terminal according to this routing table, the game connection request of user is sent on proxy server by the Microsoft Loopback Adapter himself installed and VPN, be forwarded on game server via proxy server again, the game completed between game terminal with game server is connected.This kind of connected mode compares the existing mode connected by public carrier network, the transfer of data of the transfer of data of online game and other network applications can be distinguished, quality and the speed of transfer of data is increased by the mode of this virtual private passage, reduce the generation of transfer of data jam situation, reduce the time of delay of transfer of data, thus improve the game experiencing quality of game terminal user when carrying out online game.
Embodiments of the invention disclose:
A1, a kind of method set up network game and connect, described method comprises:
Control server obtains the IP(Internet Protocol) IP address of game server;
Described control server generates the routing table recording described IP address;
Described routing table is handed down to game terminal by described control server;
Described game terminal creates Microsoft Loopback Adapter, and the described IP address in described routing table is redirected to the IP address of described Microsoft Loopback Adapter;
Described game terminal initiates game connection request by described Microsoft Loopback Adapter, and described game connection request is sent on proxy server by VPN (virtual private network) VPN;
Described game connection request is forwarded to described game server by described proxy server, sets up be connected with the game between described game terminal to make described game server.
A2, method according to A1, described control server obtains the IP(Internet Protocol) IP address of game server, comprising:
Described control server obtains the IP address of selected game server to described game terminal.
A3, method according to A1, described control server obtains the IP(Internet Protocol) IP address of game server, comprising:
Described control server obtains the IP address list preset, and records the IP address of whole game server in described IP address list.
A4, method according to A1, the IP address of described Microsoft Loopback Adapter is redirected in the described IP address in described routing table by described game terminal, comprising:
The IP address of described game terminal to the IP address in described routing table and described Microsoft Loopback Adapter is bound.
A5, method according to A1, described game connection request is forwarded to described game server by described proxy server, comprising:
Described game connection request is sent to Relay Server by described proxy server, to make described Relay Server, described game connection request is forwarded to described game server.
A6, method according to any one of A1 to A5, the agreement that described VPN uses comprises: PPTP, L2TP, IPSec.
B7, a kind of control server, described control server comprises:
Acquiring unit, for obtaining the IP(Internet Protocol) IP address of game server;
Generation unit, for generating the routing table recording the described IP address that described acquiring unit obtains;
Transmitting element, is handed down to game terminal for the described routing table generated by described generation unit, to make described game terminal create Microsoft Loopback Adapter, and the described IP address in described routing table is redirected to the IP address of described Microsoft Loopback Adapter.
B8, control server according to B7, described acquiring unit, comprising:
First acquisition module, for obtaining the IP address of selected game server to described game terminal.
B9, control server according to B7, described acquiring unit, comprising:
Second acquisition module, for obtaining default IP address list, records the IP address of whole game server in described IP address list.
C10, a kind of game terminal, described game terminal comprises:
Receiving element, for receiving the routing table that control server issues, records the IP(Internet Protocol) IP address of game server in described routing table;
Creating unit, after receiving described routing table at described receiving element, creates Microsoft Loopback Adapter;
Processing unit, for the described IP address in the described routing table that received by described receiving element, is redirected to the IP address of the described Microsoft Loopback Adapter that described creating unit creates;
Transmitting element, described Microsoft Loopback Adapter for being created by described creating unit initiates game connection request, described game connection request is sent on proxy server by VPN (virtual private network) VPN, to make described proxy server that described game connection request is forwarded to described game server, thus the foundation of described game server is connected with the game between described game terminal.
C11, game terminal according to C10, described processing unit, for binding the IP address of the IP address in described routing table and described Microsoft Loopback Adapter.
C12, game terminal according to C10 or C11, the agreement that described VPN uses comprises: PPTP, L2TP, IPSec.
D13, a kind of system set up network game and connect, described system comprises: game server, game terminal, control server, proxy server; Wherein,
Described control server, for obtaining the IP(Internet Protocol) IP address of described game server, generating the routing table recording described IP address, and described routing table is handed down to described game terminal;
Described game terminal, for creating Microsoft Loopback Adapter, described IP address in described routing table is redirected to the IP address of described Microsoft Loopback Adapter, initiate game connection request by described Microsoft Loopback Adapter, described game connection request is sent on described proxy server by VPN (virtual private network) VPN;
Described proxy server, for being forwarded to described game server by described game connection request;
Described game server, for the described game connection request forwarded according to described proxy server, sets up and is connected with the game between described game terminal.
D14, system according to D13, described system also comprises:
Relay Server, for receiving the described game connection request that described proxy server sends, and is forwarded to described game server by the described game connection request received.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
Be understandable that, the correlated characteristic in said method and device can reference mutually.In addition, " first ", " second " in above-described embodiment etc. are for distinguishing each embodiment, and do not represent the quality of each embodiment.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In specification provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary compound mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions of the some or all parts in the denomination of invention (as determined the device of website internal chaining grade) that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.