The method that the multilink user is inserted at access server side
Technical field
The present invention relates to internet access method, relate in particular to a kind of method that the multilink user is inserted at access server side.
Background technology
At present, for the user who has only a link circuit resource, speed of surfing the Internet is subjected to the restriction of line speed, for example the user who dials up on the telephone by telephone wire.But,, will inevitably improve the speed of online if a plurality of multilink bundlings can be used together for the user that a plurality of link circuit resources are arranged.For example the user can use several telephone wire online simultaneously, or by ISDN (integrated services digital network) digital line that is equivalent to two telephone wire transmission rates online can be provided, can increase bandwidth undoubtedly, improves speed of surfing the Internet.For the user who has a plurality of link circuit resources, when netting thereon, user side will be uploaded the data distribution through a plurality of links, down-transmitting data also will be distributed to this several links at access server side.When unnecessary one of Internet user, because the link that belongs to a plurality of users is simultaneously all in the transmission of carrying out data, how to distinguish that with regard to having produced which link is the problem that belongs to a user like this, promptly how will belong to the problem that a plurality of links of a user bundle.Existing terminal system generally supports to select the multilink dialing mode, as in the Windows98 of personal computer operating system, just the online dial mode being arranged to the multilink dialing mode, when the user surfs the Net, the trunk line that data message will pass through PSTN (public switch telephone network) stored-program control exchange enters access server, carries out access operation by access server again.Because access server is made up of a plurality of access units, and the corresponding different trunk line of different access units, different trunk lines may have different IP (Internet protocol) address.If two links enter same access unit like this, then can use PPP (point-to-point) agreement to realize binding at link layer, but because the trunk line selection policing issue of PSTN stored-program control exchange, the a plurality of links that cause belonging to same user may enter different trunk lines, thereby be positioned at different access units at access server side, and the IP address difference of different access unit correspondences just can't realize a plurality of links that belong to a user are bundled.
Summary of the invention
At the problems of the prior art, the purpose of this invention is to provide a kind of method that the multilink user is inserted at access server side, a plurality of links that belong to same user are bundled, to increase user's online bandwidth, improve speed of surfing the Internet.
For achieving the above object, the technical solution used in the present invention is: MP (Multi-Link Point-to-Point Protocol) server that multilink user's information is registered is set, and the MP server intercoms mutually with the access unit of access server;
When subscriber dialing is surfed the Net, the information in each the bar link that arrives access unit is carried out following operation:
(1) reads user profile;
(2) whether the attribute of judging this link is the multilink user, if enter step (3); If not, handle distributing IP address, the successfully back end of surfing the Net by domestic consumer by access unit;
(3) access server is set up with the MP server and is communicated by letter inquiry and registration information in the MP server;
(4) judge whether to belong to this user's log-on message, if there is not execution in step (5); If have, enter step (6);
(5) user profile is registered on the MP server, identifying this link is main stem, the distributing IP address, and step (8) is changeed in the back;
(6) identifying this link is auxilliary road, the distributing IP address, and return the IP address of this user to access server by the main stem place access unit of step (5) sign by the MP server;
(7) judge main stem place access unit ' whether the address identical with the IP address of place, auxilliary road access unit, if then main stem and auxilliary road are bundled; If not, then between main stem and auxilliary road, set up the tunnel, and bundle;
(8) surf the Net and wait for that this user's follow-up link arrives access unit;
When the user was off line, access unit was deleted the log-on message of this user's link from the MP server.
Wherein the MP server is undertaken by IP network with the intercommunication mutually of the access unit of access server.The binding in main stem and auxilliary road is carried out at link layer by PPP (point-to-point) agreement.Setting up the tunnel between main stem and auxilliary road is to be initiated to be connected to main stem place access unit by tunnel protocol by auxilliary place, road access unit, and is the tunnel distributing tunnel Taoist monastic name of being set up by main stem place access unit.
Because the present invention is provided with the MP server and has adopted tunnel protocol, the MP server intercoms mutually with the access unit of access server and has guaranteed which access unit no matter a plurality of links that belong to same user enter, all registrations and do to identify for each link on same MP server according to the result of inquiry and registration table, enter different access units even belong to a plurality of links of same user, access unit also can use tunnel protocol to set up the tunnel according to sign, by the tunnel data are encapsulated again by ppp protocol realization binding, a plurality of link circuit resources that this cut-in method can will belong to a user bundle use, and the online bandwidth is multiplied.
Description of drawings
The invention will be further described below in conjunction with drawings and Examples.
Fig. 1 is the principle schematic of the method for the invention;
Fig. 2 is the operational flowchart of the method for the invention.
Embodiment
In Fig. 1, after user terminal a dials up on the telephone in the multilink mode by two telephone wires or ISDN digital line B1, B2, arrive PSTN stored-program control exchange b, PSTN stored-program control exchange b is connected with access unit among the access server c by trunk line, and the MP server d of setting of the present invention intercoms mutually with the access unit among the access server c.Represented the situation that two passes enters the different access units among the access server c through the trunk line of PSTN stored-program control exchange b respectively with two links 11,12 among Fig. 1, in the case, between two access units, set up tunnel e, re-use ppp protocol link 11,12 bindings.
With reference to Fig. 2, dial up on the telephone by two telephone wires with the user and to be example, its two telephone wire B1, B2 successively arrive access server c through the relaying of PSTN stored-program control exchange b, establish B1 formerly, access server c execution in step 1, continue step 2 after reading user profile, judge whether its attribute is the multilink user, if not, handle by domestic consumer by access unit, the distributing IP address, the successfully back end of surfing the Net; Because B1 is one that adopts in some links that the multilink mode dials up on the telephone, so execution in step 3, access server c communicates by letter inquiry and registration information in MP server d with MP server d by IP network foundation; After step 4 judges whether to belong to this user's log-on message, because B1 formerly, then Query Result is for denying, in MP server d, register, B1 place link is designated main stem, be main stem distributing IP address, step 7 is changeed in the back, and the main stem online also waits for that this user's follow-up link arrives access unit.And after B2 after trade mark enquiries, be judged as and be, then execution in step 5, B2 place link is identified as auxilliary road, the distributing IP address, and return the IP address of its main stem place access unit to access server c by MP server d, so far B2 not only has been determined the identity in auxilliary road, and determine to implement the target of binding, i.e. main stem in can the numerous links in each access unit.Judge by step 6 whether the IP address of main stem place access unit is identical with the IP address of place, auxilliary road access unit again, if, use ppp protocol that main stem and binding back, auxilliary road are changeed step 7, if not, by setting up the tunnel binding, initiate to connect to B1 place access unit by tunnel protocol by B2 place access unit, set up the tunnel, and be the tunnel distributing tunnel Taoist monastic name of being set up by B1 place access unit, data in the link use ppp protocol to bundle after by tunnel encapsulation again, step 7 is changeed in the back, can reach the speed of surfing the Internet that doubles the link basic rate like this.Can tunnel protocol arbitrarily in the above-mentioned tunnel protocol reality, when if the user dials up on the telephone with uplink with two, follow-up link is carried out above-mentioned steps according to the order that arrives access server c, also be designated auxilliary road respectively and bundle mutually with same main stem, it is long-pending that the speed that the binding back is reached is that the basic rate of every link multiply by chain travel permit number.