The content of the invention
The invention provides a kind of method and system of 3G communications, 3G bandwidth can be increased.
The embodiments of the invention provide a kind of method of 3G communications, comprise the following steps:
A, the first 3G interfaces of the first gateway and the 2nd 3G interfaces get the IP address of public network by dialing respectively, and first
Gateway configures the first virtual point-to-point interface and the second virtual point-to-point interface amounts to two virtual point-to-point interfaces;
B, two virtual point-to-point interfaces are tied in same multilink group by the first gateway, and first virtual point-to-point connects
Mouth and the first 3G interface conjunctionns, the second virtual point-to-point interface and the 2nd 3G interface conjunctionns;
C, the first of the first gateway the virtual point-to-point interface and the second virtual point-to-point interface are initiated to the second gateway respectively
Level 2 Tunnel Protocol L2TP Tunnel is established, and each establishes session;
D, the first gateway configuration strategy is route, it is determined that the message to be sent is to belong to which virtual point-to-point interface, and
Specify the message for belonging to the first virtual point-to-point interface to be sent from the first 3G interfaces, belong to the message of the second virtual point-to-point interface
Sent from the 2nd 3G interfaces.
It is preferred that first gateway determines that the message to be sent is that the foundation for belonging to which virtual point-to-point interface is
Load-balancing algorithm.
It is preferred that first gateway determines that the message to be sent is before belonging to which virtual point-to-point interface, enter
One step includes:
First gateway judges whether the message length to be sent is more than threshold value set in advance, if so, then the first gateway
Multilink interface to the big data message carry out burst, on multilink send burst after message.
It is preferred that first gateway, as L2TP clients, second gateway is as L2TP Network Server.
It is preferred that step C further comprises:Multilink group gets the IP address of the second gateway distribution.
It is preferred that step B further comprises:The IP address of multilink group is configured on multilink interface.
It is preferred that the first gateway configuration strategy route includes described in step D:
Arranging access control list ACL on first gateway, matching User Data Protocol UDP port numbers;
First gateway configures the first via and mapped by mapping and secondary route, and specified circuit matches the ACL by mapping, sets the
The message transmission interface of one route mapping is the first 3G ports, and the message transmission interface for setting secondary route to map is the 2nd 3G ends
Mouthful, using the first via by mapping on the first virtual point-to-point interface, mapped on the second virtual point-to-point interface using secondary route;
First gateway configures static routing, the message of the equipment of the corresponding second gateway connection of purpose IP address is passed through described
Multilink group is sent.
The embodiment of the present invention also proposes a kind of 3G communication systems, and the system includes the first gateway and the second gateway,
First gateway includes the first 3G interfaces and the 2nd 3G interfaces, the first 3G interfaces and the 2nd 3G the interfaces difference
The IP address of public network is got by dialing, the first gateway configures the first virtual point-to-point interface and the second virtual point-to-point interface
Two virtual point-to-point interfaces altogether;Two virtual point-to-point interfaces are tied in same multilink group by the first gateway, the
One virtual point-to-point interface and the first 3G interface conjunctionns, the second virtual point-to-point interface and the 2nd 3G interface conjunctionns;
The the first virtual point-to-point interface and the second virtual point-to-point interface of first gateway initiate to build to the second gateway respectively
Vertical Level 2 Tunnel Protocol L2TP Tunnel, and each establish session;
First gateway configuration strategy is route, it is determined that the message to be sent is which virtual point-to-point interface belonged to, is belonged to
The message of first virtual point-to-point interface is sent from the first 3G interfaces, belongs to the message of the second virtual point-to-point interface from the 2nd 3G
Interface is sent.
As can be seen from the above technical solutions, virtual point-to-point interface is respectively associated in two 3G interfaces, and the two are virtual
Point-to-point interface is tied in same multilink group, is established L2TP Tunnel by the two virtual point-to-point interfaces and is established meeting
Words, so as to realize 3G technology and the point-to-point combination of multilink, reach the effect of increase upload bandwidth, especially use in video file
Its advantage can be more embodied in transmission and ip voice business.
Embodiment
The invention provides a kind of communication means that can effectively increase 3G network bandwidth, its basic thought is communicated in 3G
It is middle to introduce point-to-point multilink (PPP Multilink) technology.3G technology is used in combination with multilink point-to-point protocol, can realize increase
The effect of upload bandwidth, its advantage can more be embodied in video file transfer and ip voice business by especially using.
Point-to-point multilink (PPP Multilink) agreement is point-to-point protocol (PPP) extension, and it has binding two
Or a plurality of ability simultaneously and concurrently connected, the bandwidth that caused virtual link possesses are equal to the bandwidth of each bar independent connection
Summation, that is, multiple ppp links are tied up, form the ppp link of a bigger bandwidth, i.e. PPP Multilink.With
The continuous increase of networking bandwidth, favor of the user to multilink point-to-point protocol is unlike in the past, and multilink point-to-point protocol is used in synchronous number more at present
It is used to optical-fiber network in font system (SDH, Synchronous Digital Hierarchy) site access, and domestic consumer is seldom
Using the application environment of multilink point-to-point protocol.The benefit of multilink point-to-point protocol is not only only that increase network bandwidth, also reaches and controls on demand
Bandwidth processed, transmission delay is reduced, realize the effect of link redundancy.
The present invention program requires that the network equipment supports at least two 3G cards, and network environment supports Level 2 Tunnel Protocol
(the Tunneling Protocol of L2TP, Layer 2) tunnel connects.The network environment of the present invention program typical case such as Fig. 1 institutes
Show.Gateway A 101 has two 3G interfaces, and gateway A 101 accesses IP kernel heart net 103 by base station 102, and gateway B105 passes through base
Stand 104 access IP kernel heart nets 103.L2TP Tunnel is established between gateway A and gateway B.Gateway A can connect multiple network equipment,
Including but not limited to IP telephone machine, video capture device, video reception terminal, PC etc.;Gateway B can connect a variety of nets
Network equipment, including 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 the company of building of base station 102 and getting public network after dialing
IP address, while two 3G cards serve as the L2TP clients (LAC, L2TP Access Concentrator) in L2TP Tunnel
Role.Ensure that L2TP Network Server (LNS, L2TP Network Server) equipment (i.e. gateway B in Fig. 1) has held public affairs
Net IP address.
After two LAC clients hold public network address, LAC clients connect the L2TP Tunnel for starting to initiate between LNS
Connect.That is telecommunications 3G interfaces 1 and telecommunications 3G interfaces 2 set up l2tp session with gateway B respectively in Fig. 1.
After the completion of two sessions are established respectively, gateway A and gateway B proceed by ppp negotiation, wherein link (such as:
Link where telecommunications 3G interfaces 1) consult after the completion of, after being added to multilink (multilink) group, another link starts to assist
Business, it is also added to after consulting successfully in multilink groups.This completes the company of the tunnel between 2 LAC clients and LNS
Connect.Multilink interfaces corresponding to the multilink groups of multilink are mainly responsible for burst and the restructuring of data message.
After the completion of above step, client and the client or server of the connections of webmaster B 104 that gateway A 101 connects can
To complete the multiple business such as video, voice, IP phone, data communication.The client can be that IP telephone machine, video acquisition are set
Standby, video reception terminal, PC etc..The server can be ftp server or other service servers.
It is preferred that gateway A 101 by the message length to be sent compared with threshold value set in advance, if it is greater, then
It is big data message to judge the message to be sent, and multilink interfaces can carry out burst to big data message, then more
Sent on link, can so improve link utilization and transmitting efficiency.The burst is the work(using PPP multilink
Can, function implementation related PPP multilink can be in accordance with existing standard.For video data then to message sequence and
It is higher to receive time requirement, uses the received in-order function of multilink, it is ensured that the integrality and mobility of video pictures.
The Link Fragmentation of multilink can be used to interlock (LFI Link Fragmentation Interleave) function, make non-low prolong
(LLQ, Low Latency Queuing) big byte message is lined up late to be fragmented before sending, is sent one by one.And now if
The voice message that length is smaller and requirement of real-time is high reaches, then can be sent with comparatively faster, so as to ensure that voice
Time delay and shake Deng real time business.
Due to the unstability of 3G network, if using wall scroll 3G circuits, once because network signal is deteriorated or network is gathered around suddenly
Plug causes link to disconnect, and data communicate and can be severely impacted surely on 3G circuits, will at least double bar 3G circuits using multilink point-to-point protocol
Binding, after wherein a circuit goes wrong, remaining 3G circuit can continue to complete the communication of data as redundancy backup.
The present invention program is described in detail below by way of system architecture described in Fig. 2.
In Fig. 2, gateway A must support PPP client+LAC patterns, and gateway A can automatically initiate L2TP Tunnel foundation.Net
B is closed as LNS ends.The deployment process that communicates is as shown in figure 3, comprise the following steps:
Step 301:The 3G interfaces C1 and 3G interfaces C2 of gateway A get the IP address of public network by dialing respectively, and
Can be with gateway B public network interface communication.Wherein, 3G interfaces C1 public network IP address is 110.1.1.1, C2 public network IP address
For 110.1.2.1.
Step 302:Gateway A configures two virtual PPP interfaces (virtual-ppp1 and virtual-ppp2), for simulating
PPP interfaces dial.
Step 303:Two virtual PPP interfaces are tied in same multilink (multilink) group by gateway A, and
First virtual PPP interfaces virtual-ppp1 associates with 3G interfaces C1, the second virtual PPP interfaces virtual-ppp2 and 3G interfaces
C2 is associated.
Step 304:The first virtual virtual PPP interfaces virtual- of PPP interfaces virtual-ppp1 and second of gateway A
Ppp2 interfaces are initiated PPP dialing and built to equipment (i.e. gateway B) the initiation L2TP Tunnel that destination address is 120.1.1.1 respectively
It is vertical, and each establish session.
The step further comprises:Multilink groups get the IP address 172.1.1.100 of LNS distribution,
Multilink group memberships are virtual-ppp1 and virtual-ppp2.It is multilink interfaces point by PPP address negotiations
With IP address.In other embodiments, can also directly match somebody with somebody when step 303 establishes multilink group on multilink interfaces
The IP address (172.1.1.100) of multilink group is put, without being distributed by LNS.
By above flow, gateway A with gateway B can just communicate by L2TP Tunnel, and specific communication mode is such as
Under:
Gateway A configuration strategy is route, and determines that the message to be sent is which belongs to is virtual according to load-balancing algorithm
Point-to-point interface, and specify the data of virtual-ppp1 interfaces to be sent from C1 interfaces, virtual-ppp2 data connect from C2
Mouth is sent.Otherwise, same 3G interfaces may be routed to from the virtual-ppp1 and virtual-ppp2 messages sent
Send, do not reach the effect that load balancing is sent on 3G interfaces.
Fig. 4 gives policybased routing and configures a kind of specific example, comprises the following steps:
Step 401:Arranging access control list (ACL, Access Control List) in gateway A, match user data
The port numbers of agreement (UDP, User Datagram Protocol) are 1701.(note:L2TP message port numbers in the embodiment
For 1701).ACL configurations can specify the content matched, and ACL is configured to match the mode of port numbers here.
Step 402:Gateway A configuration route mapping (route-map) vp1 and vp2, specified circuit match the ACL by mapping.
The message transmission interface for setting vp1 is C1, and the message transmission interface for setting vp2 is C2.Reflected on Virtual-ppp1 using route
Vp1 is penetrated, route mapping vp2 is applied on virtual-ppp2.Route mapping can carry out of message using ACL matching feature
Match somebody with somebody and identify, herein refer to be associated route mapping with the ACL configured in step 401 by configuring.
Step 403:Gateway A configures static routing, allows purpose IP address to be 192.168.0.0/16 address fields (i.e. the second net
Correlate the IP address of equipment connect) message pass through the transmission of multilink groups.Multilink groups can be equal according to load when sending
Weighing apparatus pattern, message is shared on its member interface (two virtual PPP interfaces), and virtual PPP interfaces bound it is respective
3G interfaces, so service message is finally shared to being transmitted on two 3G interfaces.
Flow is only for example shown in Fig. 4, and is not used for the limitation present invention.Other tools can also be used in other embodiments
Body implementation carrys out configuration strategy route.
Message sending process and the head encapsulation process difference of message are as shown in Figure 5 and Figure 6.
It is assumed that gateway A Intranet user is that 192.168.1.10 sends message P1 to purpose IP address.Gateway A receives message
P1, it is routed to multilink interfaces and is transmitted, multilink interfaces encapsulate PPP and multilink link headers to it
Portion's information, obtain message P2.Message is assigned to one of member interface and entered by Multilink groups according to load-balancing algorithm
Row is sent.It is assumed that P2 messages are assigned to the transmission of virtual-ppp1 interfaces here.Virtual-ppp1 interfaces seal to P2 messages
Transmission is route again behind dress L2TP heads and IP heads.Obtain message P3.
The data that virtual-ppp1 interfaces are specified due to policybased routing are sent from C1 interfaces, thus P3 finally from
C1 interfaces are transmitted, and C1 interfaces carry out ppp link head encapsulation to P3 messages, and message is sent from C1 interfaces.Final hair
The message seen off is P4.
Technical solution of the present invention can reach following beneficial effect:
First, uplink bandwidth can be increased, a plurality of ppp link binding is got up, and increases the band of original ppp link
Width, combine with dynamic dialing, add a link again on the basis of original wall scroll 3G links, without changing original net
Network environment, multilink point-to-point protocol can reach the purpose of increase uplink bandwidth.
Second, burst can be utilized to reduce delay, when message is transmitting on multilink point-to-point protocol, big byte message is divided
After piece, usual multiple fragment messages can on multilink simultaneous transmission.Big byte message can thus be reduced
Propagation delay time.
3rd, multilink point-to-point protocol agreement can realize the redundancy of multilink, that is to say, that a physical link occurs abnormal
Cause linkdown, a link can undertake more work in addition, the communication without influenceing data.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
God any modification, equivalent substitution and improvements done etc., should be included within the scope of protection of the invention with principle.