Summary of the invention
The invention provides the method and system that a kind of 3G communicates, 3G bandwidth can be increased.
Embodiments provide a kind of method that 3G communicates, comprise the steps:
One 3G interface of A, the first gateway and the 2nd 3G interface get the IP address of public network respectively by dialing, and the virtual point-to-point interface of the first gateway configuration first and the second virtual point-to-point interface amount to two virtual point-to-point interfaces;
Two virtual point-to-point interfaces are tied in same multilink group by B, the first gateway, the first virtual point-to-point interface and a 3G interface conjunctionn, the second virtual point-to-point interface and the 2nd 3G interface conjunctionn;
First virtual point-to-point interface of C, the first gateway and the second virtual point-to-point interface initiate to set up Level 2 Tunnel Protocol L2TP Tunnel respectively to the second gateway, and set up session separately;
D, the first gateway configuration policybased routing, determine the message that will send belongs to which virtual point-to-point interface, and specify the message belonging to the first virtual point-to-point interface to send from a 3G interface, the message belonging to the second virtual point-to-point interface sends from the 2nd 3G interface.
Preferably, described first gateway determine the message that will send be belong to which virtual point-to-point interface according to being load-balancing algorithm.
Preferably, described first gateway determine the message that will send be belong to which virtual point-to-point interface before, comprise further:
First gateway judges whether the message length that will send is greater than the threshold value preset, and if so, then the multilink interface of the first gateway carries out burst to described large data message, and multilink sends the message after burst.
Preferably, described first gateway is as L2TP client, and described second gateway is as L2TP Network Server.
Preferably, step C comprises further: multilink group gets the IP address that the second gateway distributes.
Preferably, step B comprises further: the IP address configuring multilink group on multilink interface.
Preferably, described in step D, the first gateway configuration policybased routing comprises:
Arranging access control list ACL on first gateway, the port numbers of match user data protocol UDP;
The first gateway configuration first via maps with secondary route by mapping, specified circuit is by mapping the described ACL of coupling, arranging the first via by the message transmission interface mapped is a 3G port, the message transmission interface arranging secondary route mapping is the 2nd 3G port, first virtual point-to-point interface being applied the first via by mapping, the second virtual point-to-point interface being applied secondary route and mapping;
First gateway configuration static routing, the message of the equipment connected by corresponding for object IP address the second gateway is sent by described multilink group.
The embodiment of the present invention also proposes a kind of 3G communication system, and this system comprises the first gateway and the second gateway,
Described first gateway comprises a 3G interface and the 2nd 3G interface, a described 3G interface and the 2nd 3G interface get the IP address of public network respectively by dialing, and the virtual point-to-point interface of the first gateway configuration first and the second virtual point-to-point interface amount to two virtual point-to-point interfaces; Two virtual point-to-point interfaces are tied in same multilink group by the first gateway, the first virtual point-to-point interface and a 3G interface conjunctionn, the second virtual point-to-point interface and the 2nd 3G interface conjunctionn;
First virtual point-to-point interface of the first gateway and the second virtual point-to-point interface initiate to set up Level 2 Tunnel Protocol L2TP Tunnel respectively to the second gateway, and set up session separately;
First gateway configuration policybased routing, determine the message that will send belongs to which virtual point-to-point interface, the message belonging to the first virtual point-to-point interface sends from a 3G interface, and the message belonging to the second virtual point-to-point interface sends from the 2nd 3G interface.
As can be seen from the above technical solutions, two 3G interfaces associated virtual point-to-point interface respectively, these two virtual point-to-point interfaces are tied in same multilink group, set up L2TP Tunnel by these two virtual point-to-point interfaces and set up session, thus realize 3G technology and the point-to-point combination of multilink, reach the effect increasing upload bandwidth, be especially used in video file transfer and ip voice business and more can embody its advantage.
Embodiment
The invention provides a kind of communication means that effectively can increase 3G network bandwidth, its basic thought introduces point-to-point multilink (PPP Multilink) technology in 3G communication.3G technology is combined with MultiLink PPP, can realize the effect increasing upload bandwidth, especially be used in video file transfer and ip voice business and more can embody its advantage.
Point-to-point multilink (PPP Multilink) agreement is the expansion of point-to-point protocol (PPP), it have binding two or many run simultaneously connect ability, the bandwidth that the virtual link produced has equals the summation of the bandwidth of each bar separate connection, namely multiple ppp link is tied up, form the ppp link of a more large bandwidth, i.e. PPP Multilink.Along with the continuous increase of networking bandwidth, user to the favor of MultiLink PPP unlike in the past, current MultiLink PPP is multiplex at SDH (Synchronous Digital Hierarchy) (SDH, Synchronous Digital Hierarchy) in site for optical-fiber network access, and domestic consumer seldom adopts the applied environment of MultiLink PPP.The benefit of MultiLink PPP is not only to increase the network bandwidth, reaches control on demand bandwidth in addition, reduces transmission delay, realizes the effect of link redundancy.
The present invention program requires network equipment support at least two 3G cards, and network environment supports that Level 2 Tunnel Protocol (L2TP, Layer 2 Tunneling Protocol) tunnel connects.The network environment of the present invention program's typical apply as shown in Figure 1.Gateway A 101 has two 3G interfaces, and gateway A 101 accesses IP kernel heart net 103, gateway B105 by base station 102 and accesses IP kernel heart net 103 by base station 104.L2TP Tunnel is set up between gateway A and gateway B.Gateway A can connect multiple network equipment, includes but not limited to IP telephone machine, video capture device, video reception terminal, PC etc.; Gateway B can connect multiple network equipment, includes but not limited to IP telephone machine, video capture device, video reception terminal, ftp server etc.
In the embodiment of the present invention, gateway A 101 uses two 3G cards, with base station 102 company of building get public network IP address after dialing, while two 3G cards serve as the role of the L2TP client (LAC, L2TP Access Concentrator) in L2TP Tunnel.Ensure that L2TP Network Server (LNS, L2TP Network Server) equipment (the gateway B namely in Fig. 1) holds public network IP address.
After two LAC clients hold public network address, LAC client is initiated to be connected with the L2TP Tunnel between LNS by starting.Namely in Fig. 1, telecommunications 3G interface 1 and telecommunications 3G interface 2 set up l2tp session with gateway B respectively.
After two sessions have been set up respectively, gateway A and gateway B start to carry out ppp negotiation, after wherein a link (such as: the link at telecommunications 3G interface 1 place) has been consulted, after joining multilink (multilink) group, another link starts to consult, and consults also to join in multilink group successfully.This completes 2 LAC clients to be connected with the tunnel between LNS.The burst of the multilink interface primary responsibility data message of the multilink group correspondence of multilink and restructuring.
After above step completes, the client that the client that gateway A 101 connects is connected with webmaster B 104 or server can complete the multiple business communications such as video, voice, IP phone, data.Described client can be IP telephone machine, video capture device, video reception terminal, PC etc.Described server can be ftp server or other service servers.
Preferably, the message length that will send compares with the threshold value preset by gateway A 101, if be greater than, then judge that the message that will send is as large data message, multilink interface can carry out burst to large data message, then send on multilink, link utilization and transmitting efficiency can be improved like this.Described burst is the function utilizing PPP multilink, and the functional realiey mode that PPP multilink is relevant can in accordance with existing standard.Then require higher to message sequence and time of reception for video data, use the received in-order function of multilink, integrality and the mobility of video pictures can be ensured.Also staggered (the LFI Link Fragmentation Interleave) function of the Link Fragmentation of multilink can be adopted, make non-low latency queueing (LLQ, Low Latency Queuing) large byte message is fragmented before sending, sends one by one.And if now have length less and the voice message that requirement of real-time is high arrive, then comparatively fasterly can be sent, thus be ensure that time delay and the shake of the real time business such as voice.
Due to the unsteadiness of 3G network, if use wall scroll 3G circuit, once be deteriorated suddenly because of network signal or network congestion causes link to disconnect, on 3G circuit, data communication can be had a strong impact on surely, use MultiLink PPP by least two bar 3G line bonding, after wherein a circuit goes wrong, all the other 3G circuits can continue the communication of data as redundancy backup.
Below by way of system architecture described in Fig. 2, the present invention program is described in detail.
In Fig. 2, gateway A must support PPP client+LAC pattern, and gateway A automatically can be initiated L2TP Tunnel and set up.Gateway B holds as LNS.Communication deployment as shown in Figure 3, comprises the steps:
Step 301: the IP address that the 3G interface C1 of gateway A and 3G interface C2 gets public network respectively by dialling, and can with the public network interface communication of gateway B.Wherein, the public network IP address of 3G interface C1 is the public network IP address of 110.1.1.1, C2 is 110.1.2.1.
Step 302: gateway A configures two virtual PPP interfaces (virtual-ppp1 and virtual-ppp2), for simulating the dialing of PPP interface.
Step 303: two virtual PPP interfaces are tied in same multilink (multilink) group by gateway A, and the first virtual PPP interface virtual-ppp1 associates with 3G interface C1, the second virtual PPP interface virtual-ppp2 associates with 3G interface C2.
Step 304: the first virtual PPP interface virtual-ppp1 of gateway A and the second virtual PPP interface virtual-ppp2 interface initiate PPP dialing and initiate L2TP Tunnel to the equipment (i.e. gateway B) that destination address is 120.1.1.1 to set up respectively, and set up session separately.
This step comprises further: multilink group gets the IP address 172.1.1.100 that LNS distributes, and multilink group membership is virtual-ppp1 and virtual-ppp2.Be multilink interface assignment IP address by PPP address negotiation.In other embodiments, also when step 303 sets up multilink group, directly can configure the IP address (172.1.1.100) of multilink group on multilink interface, and do not distributed by LNS.
By above flow process, gateway A just can carry out having communicated with gateway B by L2TP Tunnel, and concrete communication mode is as follows:
According to load-balancing algorithm, gateway A collocation strategy route, determines the message that will send belongs to which virtual point-to-point interface, and specify the data of virtual-ppp1 interface to send from C1 interface, and the data of virtual-ppp2 send from C2 interface.Otherwise the message sent from virtual-ppp1 and virtual-ppp2 may be routed to the transmission of same 3G interface, does not reach the effect that on 3G interface, load balancing sends.
Fig. 4 gives policybased routing configuration a kind of concrete example, comprises the steps:
Step 401: arranging access control list (ACL, Access Control List) in gateway A, the port numbers of match user data protocol (UDP, User Datagram Protocol) is 1701.(note: the L2TP message port numbers in this embodiment is 1701).ACL configuration can specify the content of carrying out mating, and ACL is configured to the mode of mating end slogan here.
Step 402: gateway A configuration route maps (route-map) vp1 and vp2, specified circuit is by mapping the described ACL of coupling.The message transmission interface arranging vp1 is C1, and the message transmission interface arranging vp2 is C2.Virtual-ppp1 upper application route maps vp1, virtual-ppp2 upper application route and maps vp2.Route maps and the matching feature of ACL can be utilized to carry out coupling and the identification of message, refers to here route mapping be associated with the ACL configured in step 401 by configuration.
Step 403: gateway A configuring static route, allows object IP address be that the message of 192.168.0.0/16 address field (i.e. the second gateway connect the IP address of equipment) is sent by multilink group.Can according to load-sharing mode when Multilink group sends, message is shared on its member interface (two virtual PPP interfaces), and virtual PPP interface has bound respective 3G interface, sent to two 3G interfaces so service message finally shares.
Shown in Fig. 4, flow process is only citing, not for limiting the present invention.Also other specific implementations can be adopted in other embodiments to carry out collocation strategy route.
The head encapsulation process of message transmission flow and message respectively as shown in Figure 5 and Figure 6.
Assuming that gateway A Intranet user is 192.168.1.10 to object IP address send message P1.Gateway A receives message P1, is routed to multilink interface and sends, and multilink interface, to its encapsulation PPP and multilink link header information, obtains message P2.Message, according to load-balancing algorithm, is assigned to one of them member interface and sends by Multilink group.Assuming that P2 message is assigned to the transmission of virtual-ppp1 interface here.Virtual-ppp1 interface sends carrying out again route after P2 message encapsulation L2TP head and IP head.Obtain message P3.
The data specifying virtual-ppp1 interface due to policybased routing send from C1 interface, so P3 finally sends from C1 interface, C1 interface carries out the encapsulation of ppp link head to P3 message, and message sends from C1 interface.The message finally sent is P4.
Technical solution of the present invention can reach following beneficial effect:
First, uplink bandwidth can be increased, many ppp link binding is got up, increase the bandwidth of original ppp link, combine with dynamic dialing, a link is added on the basis of original wall scroll 3G link again, and does not change original network environment, MultiLink PPP can reach the object increasing uplink bandwidth.
The second, burst can be utilized to reduce and postpone, when message transmits on MultiLink PPP, after being fragmented large byte message, usual multiple fragment message can transmit on multilink simultaneously.So just can reduce the propagation delay time of large byte message.
3rd, MultiLink PPP agreement can realize the redundancy of multilink, and that is a physical link occurs extremely causing linkdown, and an other link can bear more work, and can not affect the communication of data.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.