CN106130926A - A kind of processing method and processing device of message - Google Patents
A kind of processing method and processing device of message Download PDFInfo
- Publication number
- CN106130926A CN106130926A CN201610764493.5A CN201610764493A CN106130926A CN 106130926 A CN106130926 A CN 106130926A CN 201610764493 A CN201610764493 A CN 201610764493A CN 106130926 A CN106130926 A CN 106130926A
- Authority
- CN
- China
- Prior art keywords
- lns
- message
- tunnel
- scccn
- gateway
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
- H04L47/125—Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/82—Miscellaneous aspects
- H04L47/825—Involving tunnels, e.g. MPLS
Abstract
The application is the processing method and processing device about message, and described method includes: receives the session negotiation message that described LAC equipment sends, and obtains user identifier from described session negotiation message;From default mapping relations, the LNS gateway device of correspondence is obtained based on described user identifier;Wherein, described default mapping relations include the corresponding relation of user identifier and LNS gateway device;LNS gateway device by described session negotiation message distribution to described correspondence.In this application, LNS load-balancing device can be set up after L2TP Tunnel is connected respectively with LAC equipment and some LNS gateway devices, conversate negotiation respectively with LAC equipment and some LNS gateway devices, during the negotiation that conversates, LNS load-balancing device can obtain user identifier, and this user be assigned on the LNS gateway device specified according to default mapping relations, thus solve the problem that correlation technique cannot realize a certain user or a certain user's group are dialed in the LNS gateway device specified.
Description
Technical field
The application relates to communication technical field, particularly relates to the processing method and processing device of a kind of message.
Background technology
In L2TP (Layer 2Tunneling Protocol, Level 2 Tunnel Protocol) tunnel connects, in order to preferably
Realize some business, as the business etc. of load balancing based on L2TP, a certain user or a certain user's group need to dial in one
On LNS (L2TP Network Server, the L2TP Network Server) gateway device specified.But in the related, LNS
Load-balancing device assigns the user on coupled LNS gateway device at random, it is impossible to realize a certain user or a certain
User's group dials in the LNS gateway device specified.
Summary of the invention
In view of this, the application provides the processing method and processing device of a kind of message, solve correlation technique cannot realize by
The problem that a certain user or a certain user's group dial in the LNS gateway device specified.
Specifically, the application is achieved by the following technical solution:
The application provides the processing method of a kind of message, described method to be applied to Level 2 Tunnel Protocol L2TP network service
Device LNS load-balancing device, described LNS load-balancing device respectively with L2TP Access Concentrator LAC equipment and some LNS nets
Pass equipment is set up L2TP Tunnel and is connected, and described method includes:
Receive the session negotiation message that described LAC equipment sends, and from described session negotiation message, obtain ID
Symbol;
From default mapping relations, the LNS gateway device of correspondence is obtained based on described user identifier;Wherein, described pre-
If mapping relations include the corresponding relation of user identifier and LNS gateway device;
LNS gateway device by described session negotiation message distribution to described correspondence.
Optionally, described method includes:
Receive the transmission of described LAC equipment opens control connection request SCCRQ message;
Described SCCRQ message is forwarded to described some LNS gateway devices;
Receive the startup control connection response SCCRP message that described some LNS gateway devices are replied, and will receive for the first time
SCCRP message send to described LAC equipment;
The startup control connection receiving the transmission of described LAC equipment has connected SCCCN message, and is sent out by described SCCCN message
Deliver to described some LNS gateway devices.
Optionally, described method also includes:
The tunnel mapping table preset is initialized based on the described SCCRQ message received;
The SCCRP message replied based on described some LNS gateway devices updates described tunnel mapping table, and according to described the
Corresponding LNS gateway device is designated tunnel master host by the source IP address of the SCCRP message once received, and by other times
The LNS gateway device of multiple SCCRP message is designated non-tunnel master host;
When tunnel ID and the described LNS load-balancing device of described tunnel master host distribution is for distributing to described LAC
Equipment tunnel ID conversion after tunnel ID identical time, in described tunnel mapping table by described tunnel master host distribute tunnel
ID is converted to another tunnel ID;
Enter according to the SCCRP message that described first time is received by the tunnel ID after described conversion and local attribute information
After row amendment, amended SCCRP message is sent to LAC equipment;Wherein, described attribute information includes IP address;
After receiving the SCCCN message that described LAC equipment sends, according to the tunnel ID after described conversion and tunnel master host
Attribute information described SCCCN message is modified, and by amended SCCCN message send to tunnel master host;
Replicate described SCCCN message, and according to described tunnel mapping table and the attribute of described some non-tunnels master host
After information carries out corresponding amendment to described SCCCN message, amended SCCCN message correspondence is sent to described some non-tunnels
Master host.
Optionally, the call number Calling Number during described user identifier includes authenticated calling information.
The application provides the processing means of a kind of message, described device to be applied to Level 2 Tunnel Protocol L2TP network simultaneously
Server LNS load-balancing device, described LNS load-balancing device respectively with L2TP Access Concentrator LAC equipment and some
LNS gateway device is set up L2TP Tunnel and is connected, and described device includes:
Receive unit, for receiving the session negotiation message that described LAC equipment sends, and from described session negotiation message
Obtain user identifier;
Acquiring unit, sets for obtaining the LNS gateway of correspondence from default mapping relations based on described user identifier
Standby;Wherein, described default mapping relations include the corresponding relation of user identifier and LNS gateway device;
Allocation unit, for the LNS gateway device by described session negotiation message distribution to described correspondence.
Optionally, described reception unit specifically for:
Receive the transmission of described LAC equipment opens control connection request SCCRQ message;
Described device includes:
Retransmission unit, for being forwarded to described some LNS gateway devices by described SCCRQ message;
Described reception unit specifically for:
Receive the startup control connection response SCCRP message that described some LNS gateway devices are replied, and will receive for the first time
SCCRP message send to described LAC equipment;And the startup receiving the transmission of described LAC equipment controls connection and has connected SCCCN
Message, and described SCCCN message is sent to described some LNS gateway devices.
Optionally, described device also includes:
Initialization unit, for initializing the tunnel mapping table preset based on the described SCCRQ message received;
Updating block, updates described tunnel mapping for the SCCRP message replied based on described some LNS gateway devices
Table, and the source IP address of the SCCRP message received according to described first time that corresponding LNS gateway device is designated tunnel is main
Machine, and other LNS gateway devices replying SCCRP message are designated non-tunnel master host;
Converting unit, for the tunnel ID when the distribution of described tunnel master host with described LNS load-balancing device for
Distribution to described LAC equipment tunnel ID conversion after tunnel ID identical time, by described tunnel master in described tunnel mapping table
The tunnel ID of host assignment is converted to another tunnel ID;
Amendment unit, for receiving described first time according to the tunnel ID after described conversion and local attribute information
SCCRP message modify after, by amended SCCRP message send to LAC equipment;Wherein, described attribute information includes
IP address;And, after receiving the SCCCN message that described LAC equipment sends, according to the tunnel ID after described conversion and tunnel master
Described SCCCN message is modified by the attribute information of main frame, and sends amended SCCCN message to tunnel master host;
Copied cells, is used for replicating described SCCCN message, and according to described tunnel mapping table and described some non-tunnels
After the attribute information of master host carries out corresponding amendment to described SCCCN message, amended SCCCN message correspondence is sent to institute
State some non-tunnels master host.
Optionally, the call number Calling Number during described user identifier includes authenticated calling information.
In this application, LNS load-balancing device can receive the session negotiation message that LAC equipment sends, and from this meeting
Obtaining user identifier in words negotiation packet, then, LNS load-balancing device can obtain correspondence from default mapping relations
LNS gateway device, wherein, these mapping relations preset can include the corresponding relation of user identifier and LNS gateway device,
After the LNS gateway device getting correspondence, this session negotiation message can be distributed to this correspondence by LNS load-balancing device
LNS gateway device.In this application, LNS load-balancing device can be built with LAC equipment and some LNS gateway devices respectively
Vertical L2TP Tunnel connects, and on the basis of setting up tunnel connection, carries out with LAC equipment and some LNS gateway devices respectively
Session negotiation, during the negotiation that conversates, LNS load-balancing device can obtain user identifier, and according to presetting
Mapping relations this user is assigned on the LNS gateway device specified, thus solve correlation technique and cannot realize a certain
The problem that user or a certain user's group dial in the LNS gateway device specified.
Accompanying drawing explanation
Fig. 1 is the application scenarios figure that a kind of L2TP Tunnel illustrated connects;
Fig. 2 is the flow chart of the processing method of a kind of message shown in the application one embodiment;
Fig. 3 is the hardware block diagram of the processing means of message in the embodiment of the present application;
Fig. 4 is the application block diagram according to the processing means of a kind of message shown in an exemplary embodiment.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Explained below relates to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they are only with the most appended
The example of the apparatus and method that some aspects that described in detail in claims, the application are consistent.
It is only merely for describing the purpose of specific embodiment at term used in this application, and is not intended to be limiting the application.
" a kind of ", " described " and " being somebody's turn to do " of singulative used in the application and appended claims is also intended to include majority
Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wraps
Any or all containing one or more projects of listing being associated may combination.
Although should be appreciated that in the application possible employing term first, second, third, etc. to describe various information, but this
A little information should not necessarily be limited by these terms.These terms are only used for same type of information is distinguished from each other out.Such as, without departing from
In the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depend on linguistic context, word as used in this " if " can be construed to " ... time " or " when ...
Time " or " in response to determining ".
See Fig. 1, the application scenarios figure that a kind of L2TP Tunnel for illustrating connects.Wherein, LAC (L2TP Access
Concentrator, L2TP Access Concentrator) equipment can set up L2TP Tunnel with LNS gateway device and be connected, user A and user
B can pass through tunnel connected reference LNS gateway device.Wherein, LNS gateway device can be that user A and user B is configured with fixing
IP address.
Each LNS gateway device can be configured with identical private network IP address section, when user sets up meeting with LNS gateway device
When words connect, LNS load-balancing device can be that it distributes a LNS gateway device, such as LNS gateway device 1, and this net
Pass equipment can distribute a private network IP address for it, and then, this user can be according to this private network IP address by LNS gateway device
1 and core router send message to intranet server, at this point it is possible to join by the way of static configuration on core router
Put the route of intranet server backhaul LNS gateway device, so that core router can be by intranet server after searching route
The message returned is forwarded to LNS gateway device 1, and is back to this user again through LNS gateway device 1.But, when this user with
When LNS gateway sets up connection again, LNS load-balancing device may distribute another LNS gateway device, such as LNS for it
Gateway device 2, now LNS gateway device 2 (can assume that this private network IP address is with upper for its one private network IP address of distribution again
The private network IP address stating LNS gateway device 1 distribution is identical IP address), then, this user can be according to this private network IP address
Message is sent to intranet server, when purpose IP address is upper by intranet server by LNS gateway device 2 and core router
State identical private network IP address message send to core router time, due on core router configuration be by this private net address
Being sent to gateway device 1, therefore, core router cannot forward the packet to LNS gateway device 2, and this message also cannot reflux
To this user.
As shown in the above, realizing some business, a certain user or a certain user's group and can dial in preferably
On the LNS gateway device that platform is specified, but in the related, LNS load-balancing device assigns the user to and its phase at random
On LNS gateway device even, it is impossible to realize the LNS gateway device dialing in a certain user or a certain user's group specify.
In view of this, the application provides the processing method and processing device of a kind of message, solve correlation technique cannot realize by
The problem that a certain user or a certain user's group dial in the LNS gateway device specified.In this application, LNS load-balancing device
The session negotiation message that LAC equipment sends can be received, and from this session negotiation message, obtain user identifier, then, LNS
Load-balancing device can obtain the LNS gateway device of correspondence, wherein, these mapping relations preset from default mapping relations
Can include the corresponding relation of user identifier and LNS gateway device, after the LNS gateway device getting correspondence, LNS loads
Balancing equipment can be by the LNS gateway device of this session negotiation message distribution to this correspondence.In this application, LNS load balancing
Equipment can be set up L2TP Tunnel be connected with LAC equipment and some LNS gateway devices respectively, and is setting up the base that tunnel connects
On plinth, conversate negotiation respectively with LAC equipment and some LNS gateway devices, during the negotiation that conversates, and LNS
Load-balancing device can obtain user identifier, and this user is assigned to the LNS net specified according to default mapping relations
On the equipment of pass, thus solve the LNS gateway that correlation technique cannot realize a certain user or a certain user's group dial in specify
The problem of equipment.
Referring to Fig. 2, for the flow chart of the processing method of a kind of message shown in the application one embodiment, this embodiment should
For LNS load-balancing device, comprise the following steps:
Step 201: receive the session negotiation message that described LAC equipment sends, and obtain from described session negotiation message
User identifier.
In this application, above-mentioned LNS load-balancing device can be built with LAC equipment and some LNS gateway devices respectively
Vertical L2TP Tunnel connects.
In one embodiment, above-mentioned LNS load-balancing device is built with LAC equipment and some LNS gateway devices respectively
The process that vertical L2TP Tunnel connects can be:
LAC equipment can send SCCRQ (Start Control Connection to LNS load-balancing device
Request, opens control connection request) message, wherein, can carry the locally-unique ID of LAC equipment distribution in this message.
After LNS load-balancing device receives this SCCRQ message, this message can be sent one by one to above-mentioned some LNS gateway devices.
In the embodiment illustrated, LNS load-balancing device can preset tunnel mapping table, above-mentioned when receiving
During SCCRQ message, LNS load-balancing device can initialize this tunnel mapping table.The part of the tunnel mapping table after initialization
List item can be as shown in table 1:
Table 1
Wherein, the first row in table 1 can represent the locally-unique tunnel ID that LAC equipment distributes;Secondary series in table 1
The tunnel ID after the locally-unique tunnel ID conversion distributed by LNS gateway device can be represented, owing to different LNS gateways sets
The standby locally-unique tunnel ID to the distribution of same LAC equipment may be identical, and therefore, LNS load-balancing device can occur
During for same tunnel ID of same LAC equipment, the tunnel ID that this is identical is changed, so that LNS load-balancing device can
The most corresponding with a certain tunnel according to unique tunnel ID and LNS gateway device, set owing to SCCRQ message not carrying LNS
The tunnel ID that back-up is joined, therefore, the secondary series in table 1 can be default value 0;The 3rd row in table 1 can represent LNS load all
Weighing apparatus equipment sends the IP address of the target LNS gateway device of SCCRQ message;The 4th row in table 1 can represent above-mentioned target LNS
The tunnel ID of gateway device distribution, owing to SCCRQ message not carrying the tunnel ID of LNS equipment distribution, therefore, the in table 1
Four row can take default value 0;The 5th row in table 1 can represent whether corresponding LNS gateway device is tunnel master host, one
In individual example, when the 5th in table 1 is classified as 1, the LNS gateway device that can represent corresponding is tunnel master host;When in table 1
5th when being classified as 0, and the LNS gateway device that can represent corresponding is non-tunnel master host.About the concept of tunnel master host, this Shen
Please describe in detail in the following embodiments.
After above-mentioned some LNS gateway devices receive SCCRQ message, correspondence can be generated based on this SCCRQ message
SCCRP (Start Control Connection Reply starts and controls connection response) message, then, these some LNS gateways
SCCRP message can be sent to LNS load-balancing device by equipment.LNS load-balancing device sets at these some LNS gateways of reception
During for the SCCRP message replied, the SCCRP message that receive for the first time can be sent to LAC equipment.
In the embodiment illustrated, LNS load-balancing device can be replied according to above-mentioned some LNS gateway devices
SCCRP message updates above-mentioned tunnel mapping table, and the source IP address of the SCCRP message received according to above-mentioned first time is by correspondence
LNS gateway device be designated tunnel master host, and other LNS gateway devices are designated non-tunnel master host.At one
In example, the tunnel mapping table after updating according to SCCRP message can be as shown in table 2:
Table 2
As shown in Table 2, IP address be the LNS gateway device of 10.1.0.1 be tunnel master host, IP address is 10.1.0.2
LNS gateway device be non-tunnel master host, the secondary series in table 2 can be the locally-unique tunnel of tunnel master host distribution
ID。
In the embodiment illustrated, LNS load-balancing device is after determining tunnel master host, it can be determined that this tunnel
The tunnel ID of road master host distribution whether with LNS load-balancing device for distributing and changing to the tunnel ID of LAC equipment after
Tunnel ID is identical, and when above-mentioned two tunnel ID is identical, is changed by the tunnel ID of this tunnel master host distribution.Need
Bright, this conversion method is not limited by the application, is converted to and these some LNS by above-mentioned tunnel ID as long as meeting in theory
Gateway device has distributed the tunnel ID the most different for tunnel ID to above-mentioned LAC equipment, and certainly, the tunnel ID after this conversion can
The acquiescence requirement etc. of self-defined requirement or equipment to meet user.
In one example, it can be assumed that LNS load-balancing device is after determining tunnel master host as shown in table 2, really
The tunnel ID20 of this tunnel master host distribution fixed and LNS load-balancing device are for the tunnel distributed to above-mentioned LAC equipment
Tunnel ID20 after ID20 conversion is identical, and now, the tunnel ID of this tunnel master host distribution can be entered by LNS load-balancing device
Row conversion, the tunnel mapping table after conversion can be as shown in table 3:
Table 3
The SCCRP message that LNS load-balancing device is replied according to these the some LNS gateway devices received updates above-mentioned tunnel
After road mapping table, if the tunnel ID of above-mentioned tunnel master host distribution and LNS load-balancing device are for distributing to LAC equipment
Tunnel ID conversion after tunnel ID identical, then LNS load-balancing device can to tunnel master host reply SCCRP message enter
Row amendment, is revised as the tunnel ID after conversion by tunnel master host by the tunnel ID distributed in this message, and then, LNS load is all
This SCCRP can be modified by weighing apparatus equipment according to local attribute information, and wherein, this attribute information can include IP address.Complete
In pairs after the amendment of this SCCRP message, the transmission of this amended SCCRP message can be set by LNS load-balancing device to LAC
Standby.
After LAC equipment receives SCCRP message, SCCCN (Start Control can be replied based on this message
Connection Connected, starts control connection and connects) message, LNS load-balancing device receives this SCCCN message
After, this message can be sent to above-mentioned tunnel master host.In one embodiment, this message is being sent out by LNS load-balancing device
Before delivering to above-mentioned tunnel master host, can judge that what this message carried is distributed by tunnel master host according to above-mentioned tunnel mapping table
Tunnel ID be whether the tunnel ID after conversion, if it is, LNS load-balancing device can according in this tunnel mapping table by tunnel
Actual tunnel ID of road master host distribution updates the tunnel ID after the conversion in this message, and then, LNS load-balancing device is permissible
According to the attribute information of tunnel master host in tunnel mapping table, this SCCCN message is modified, and by amended above-mentioned
SCCCN message sends to tunnel master host.
Being sent to tunnel master host by above-mentioned SCCCN message, LNS load-balancing device can be according to tunnel mapping table
In the attribute information of all non-tunnels master host, such as IP address, and the tunnel ID etc. of distribution above-mentioned SCCCN message is carried out right
Should revise, then amended SCCCN message correspondence can be sent to each non-tunnel master host by LNS load-balancing device.
From above-described embodiment, LNS load-balancing device can respectively with LAC equipment and above-mentioned some LNS gateways
Equipment is set up L2TP Tunnel and is connected.
LNS load-balancing device is set up after L2TP Tunnel is connected with LAC equipment, can receive the meeting that LAC equipment sends
Words negotiation packet, wherein, can carry user identifier, in one embodiment, this ID in this session negotiation message
Symbol can be the call number Calling Number in authenticated calling information.LNS load-balancing device can be assisted from this session
Business's literary composition obtains above-mentioned user identifier.
Step 202: obtain the LNS gateway device of correspondence based on described user identifier from default mapping relations;Its
In, described default mapping relations include the corresponding relation of user identifier and LNS gateway device.
After getting user identifier from the session negotiation message that LAC equipment sends, LNS load-balancing device can be with base
Obtain the LNS gateway device of correspondence from default mapping relations in this user identifier, wherein, these mapping relations preset can
To include the corresponding relation of user identifier and LNS gateway device.
In another embodiment, above-mentioned default mapping relations can be user's group identifier and LNS gateway device
Corresponding relation, when LNS load-balancing device obtains user identifier from session negotiation message, can be based on this ID
User's group identifier that symbol inquiry is corresponding, then obtains from default mapping relations according to the user's group identifier got and
The LNS gateway device that this user's group identifier is corresponding.
Step 203: by the LNS gateway device of described session negotiation message distribution to described correspondence.
After LNS load-balancing device gets the LNS gateway device of correspondence, it is right to be assigned to by this session negotiation message
The LNS gateway device answered.
From above-described embodiment, in this application, LNS load-balancing device can receive the session that LAC equipment sends
Negotiation packet, and from this session negotiation message, obtain user identifier, then, LNS load-balancing device can be from default
Obtaining the LNS gateway device of correspondence in mapping relations, wherein, these mapping relations preset can include user identifier and LNS
The corresponding relation of gateway device, after the LNS gateway device getting correspondence, this session can be assisted by LNS load-balancing device
Business's literary composition distributes the LNS gateway device to this correspondence.In this application, LNS load-balancing device can respectively with LAC equipment with
And some LNS gateway devices sets up L2TP Tunnel and connect, and setting up on the basis of tunnel connects, respectively with LAC equipment and
Some LNS gateway devices conversate negotiation, and during the negotiation that conversates, LNS load-balancing device can obtain use
Family information, and this user is assigned on the LNS gateway device specified according to default mapping relations, thus solve relevant skill
The problem that art cannot realize a certain user or a certain user's group are dialed in the LNS gateway device specified.
Based on the application design same with said method, the embodiment of the present application additionally provides the enforcement of the processing means of message
Example.
The processing means of the application message can apply on LNS load-balancing device.Wherein, the processing means of this message
Can be realized by software, it is also possible to realize by the way of hardware or software and hardware combining.As a example by implemented in software, as one
Device on individual logical meaning, is the processor by its place, is referred to by computer program corresponding in nonvolatile memory
Order reads and runs formation in internal memory.For application, as it is shown on figure 3, be the process of message in the embodiment of the present application
The hardware block diagram of device, in addition to the processor shown in Fig. 3, network interface, internal memory and nonvolatile memory, also may be used
To include other hardware, such as the forwarding chip etc. of responsible process message.
Refer to Fig. 4, for the application according to the block diagram of the processing means of a kind of message shown in an exemplary embodiment.
Described device is applied to Level 2 Tunnel Protocol L2TP Network Server LNS load-balancing device, and described LNS loads
Balancing equipment is set up L2TP Tunnel be connected with L2TP Access Concentrator LAC equipment and some LNS gateway devices respectively, described dress
Put and include:
Receive unit 410, for receiving the session negotiation message that described LAC equipment sends, and from described session negotiation report
Literary composition obtains user identifier;
Acquiring unit 420, for obtaining the LNS gateway of correspondence from default mapping relations based on described user identifier
Equipment;Wherein, described default mapping relations include the corresponding relation of user identifier and LNS gateway device;
Allocation unit 430, for the LNS gateway device by described session negotiation message distribution to described correspondence.
In an optional implementation, described reception unit 410 can be specifically for:
Receive the transmission of described LAC equipment opens control connection request SCCRQ message;
Described device can include (not shown in Fig. 4):
Retransmission unit 440, for being forwarded to described some LNS gateway devices by described SCCRQ message;
Described reception unit 410 can be specifically for:
Receive the startup control connection response SCCRP message that described some LNS gateway devices are replied, and will receive for the first time
SCCRP message send to described LAC equipment;And the startup receiving the transmission of described LAC equipment controls connection and has connected SCCCN
Message, and described SCCCN message is sent to described some LNS gateway devices.
In an optional implementation, described device can also include (not shown in Fig. 4):
Initialize Unit 450, for initializing the tunnel mapping table preset based on the described SCCRQ message received;
Updating block 460, the SCCRP message for replying based on described some LNS gateway devices updates described tunnel and reflects
Firing table, and corresponding LNS gateway device is designated tunnel master by the source IP address of the SCCRP message received according to described first time
Main frame, and other LNS gateway devices replying SCCRP message are designated non-tunnel master host;
Converting unit 470, for when the distribution of described tunnel master host tunnel ID and described LNS load-balancing device for
Distributed to described LAC equipment tunnel ID change after tunnel ID identical time, by described tunnel in described tunnel mapping table
The tunnel ID of master host distribution is converted to another tunnel ID;
Amendment unit 480, for connecing described first time according to the tunnel ID after described conversion and local attribute information
After the SCCRP message received is modified, amended SCCRP message is sent to LAC equipment;Wherein, described attribute information
Including IP address;And, after receiving the SCCCN message that described LAC equipment sends, according to the tunnel ID after described conversion and tunnel
Described SCCCN message is modified by the attribute information of road master host, and sends main to tunnel by amended SCCCN message
Machine;
Copied cells 490, is used for replicating described SCCCN message, and according to described tunnel mapping table and described some non-
After the attribute information of tunnel master host carries out corresponding amendment to described SCCCN message, amended SCCCN message correspondence is sent
To described some non-tunnels master host.
In an optional implementation, described user identifier includes the call number in authenticated calling information
Calling Number。
In said apparatus, the function of unit and the process that realizes of effect specifically refer to corresponding step in said method
Realize process, do not repeat them here.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part sees method in fact
The part executing example illustrates.Device embodiment described above is only schematically, wherein said as separating component
The unit illustrated can be or may not be physically separate, and the parts shown as unit can be or can also
It not physical location, i.e. may be located at a place, or can also be distributed on multiple NE.Can be according to reality
Need to select some or all of module therein to realize the purpose of the application scheme.Those of ordinary skill in the art are not paying
In the case of going out creative work, i.e. it is appreciated that and implements.
In this application, LNS load-balancing device can receive the session negotiation message that LAC equipment sends, and from this meeting
Obtaining user identifier in words negotiation packet, then, LNS load-balancing device can obtain correspondence from default mapping relations
LNS gateway device, wherein, these mapping relations preset can include the corresponding relation of user identifier and LNS gateway device,
After the LNS gateway device getting correspondence, this session negotiation message can be distributed to this correspondence by LNS load-balancing device
LNS gateway device.In this application, LNS load-balancing device can be built with LAC equipment and some LNS gateway devices respectively
Vertical L2TP Tunnel connects, and on the basis of setting up tunnel connection, carries out with LAC equipment and some LNS gateway devices respectively
Session negotiation, during the negotiation that conversates, LNS load-balancing device can obtain user identifier, and according to presetting
Mapping relations this user is assigned on the LNS gateway device specified, thus solve correlation technique and cannot realize a certain
The problem that user or a certain user's group dial in the LNS gateway device specified.
The foregoing is only the preferred embodiment of the application, not in order to limit the application, all essences in the application
Within god and principle, any modification, equivalent substitution and improvement etc. done, should be included within the scope of the application protection.
Claims (8)
1. the processing method of a message, it is characterised in that described method is applied to Level 2 Tunnel Protocol L2TP network service
Device LNS load-balancing device, described LNS load-balancing device respectively with L2TP Access Concentrator LAC equipment and some LNS nets
Pass equipment is set up L2TP Tunnel and is connected, and described method includes:
Receive the session negotiation message that described LAC equipment sends, and from described session negotiation message, obtain user identifier;
From default mapping relations, the LNS gateway device of correspondence is obtained based on described user identifier;Wherein, described default
Mapping relations include the corresponding relation of user identifier and LNS gateway device;
LNS gateway device by described session negotiation message distribution to described correspondence.
Method the most according to claim 1, it is characterised in that described method includes:
Receive the transmission of described LAC equipment opens control connection request SCCRQ message;
Described SCCRQ message is forwarded to described some LNS gateway devices;
Receive the startup control connection response SCCRP message that described some LNS gateway devices are replied, and by reception for the first time
SCCRP message sends to described LAC equipment;
The startup control connection receiving the transmission of described LAC equipment has connected SCCCN message, and is sent extremely by described SCCCN message
Described some LNS gateway devices.
Method the most according to claim 2, it is characterised in that described method also includes:
The tunnel mapping table preset is initialized based on the described SCCRQ message received;
The SCCRP message replied based on described some LNS gateway devices updates described tunnel mapping table, and according to described first time
Corresponding LNS gateway device is designated tunnel master host by the source IP address of the SCCRP message received, and other is replied
The LNS gateway device of SCCRP message is designated non-tunnel master host;
When tunnel ID and the described LNS load-balancing device of described tunnel master host distribution is for distributing to described LAC equipment
Tunnel ID conversion after tunnel ID identical time, in described tunnel mapping table by described tunnel master host distribute tunnel ID turn
It is changed to another tunnel ID;
Repair according to the SCCRP message that described first time is received by the tunnel ID after described conversion and local attribute information
After changing, amended SCCRP message is sent to LAC equipment;Wherein, described attribute information includes IP address;
After receiving the SCCCN message that described LAC equipment sends, according to the tunnel ID after described conversion and the genus of tunnel master host
Property information described SCCCN message is modified, and by amended SCCCN message send to tunnel master host;
Replicate described SCCCN message, and according to described tunnel mapping table and the attribute information of described some non-tunnels master host
After described SCCCN message is carried out corresponding amendment, amended SCCCN message correspondence is sent to described some non-tunnels main
Machine.
Method the most according to claim 1, it is characterised in that described user identifier includes exhaling in authenticated calling information
Call out the numbers a yard Calling Number.
5. the processing means of a message, it is characterised in that described device is applied to Level 2 Tunnel Protocol L2TP network service
Device LNS load-balancing device, described LNS load-balancing device respectively with L2TP Access Concentrator LAC equipment and some LNS nets
Pass equipment is set up L2TP Tunnel and is connected, and described device includes:
Receive unit, for receiving the session negotiation message that described LAC equipment sends, and obtain from described session negotiation message
User identifier;
Acquiring unit, for obtaining the LNS gateway device of correspondence from default mapping relations based on described user identifier;Its
In, described default mapping relations include the corresponding relation of user identifier and LNS gateway device;
Allocation unit, for the LNS gateway device by described session negotiation message distribution to described correspondence.
Device the most according to claim 5, it is characterised in that described reception unit specifically for:
Receive the transmission of described LAC equipment opens control connection request SCCRQ message;
Described device includes:
Retransmission unit, for being forwarded to described some LNS gateway devices by described SCCRQ message;
Described reception unit specifically for:
Receive the startup control connection response SCCRP message that described some LNS gateway devices are replied, and by reception for the first time
SCCRP message sends to described LAC equipment;And the startup receiving the transmission of described LAC equipment controls connection and has connected SCCCN report
Literary composition, and described SCCCN message is sent to described some LNS gateway devices.
Device the most according to claim 6, it is characterised in that described device also includes:
Initialization unit, for initializing the tunnel mapping table preset based on the described SCCRQ message received;
Updating block, the SCCRP message for replying based on described some LNS gateway devices updates described tunnel mapping table, and
Corresponding LNS gateway device is designated tunnel master host by the source IP address of the SCCRP message received according to described first time, with
And other LNS gateway devices replying SCCRP message are designated non-tunnel master host;
Converting unit, for the tunnel ID when the distribution of described tunnel master host with described LNS load-balancing device for distributing
To described LAC equipment tunnel ID conversion after tunnel ID identical time, by described tunnel master host in described tunnel mapping table
The tunnel ID of distribution is converted to another tunnel ID;
Amendment unit, for receive described first time according to the tunnel ID after described conversion and local attribute information
After SCCRP message is modified, amended SCCRP message is sent to LAC equipment;Wherein, described attribute information includes IP
Address;And, after receiving the SCCCN message that described LAC equipment sends, main according to the tunnel ID after described conversion and tunnel
Described SCCCN message is modified by the attribute information of machine, and sends amended SCCCN message to tunnel master host;
Copied cells, is used for replicating described SCCCN message, and main according to described tunnel mapping table and described some non-tunnels
After the attribute information of machine carries out corresponding amendment to described SCCCN message, if amended SCCCN message correspondence is sent to described
Dry non-tunnel master host.
Device the most according to claim 5, it is characterised in that described user identifier includes exhaling in authenticated calling information
Call out the numbers a yard Calling Number.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610764493.5A CN106130926B (en) | 2016-08-30 | 2016-08-30 | A kind of processing method and processing device of message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610764493.5A CN106130926B (en) | 2016-08-30 | 2016-08-30 | A kind of processing method and processing device of message |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106130926A true CN106130926A (en) | 2016-11-16 |
CN106130926B CN106130926B (en) | 2019-07-05 |
Family
ID=57273067
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610764493.5A Active CN106130926B (en) | 2016-08-30 | 2016-08-30 | A kind of processing method and processing device of message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106130926B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108235428A (en) * | 2016-12-21 | 2018-06-29 | 中国移动通信集团河南有限公司 | Realize method, MME equipment and the PGW equipment of UE registrations P-CSCF |
CN109617778A (en) * | 2018-11-22 | 2019-04-12 | 西安佰才邦网络技术有限公司 | Implementation method, the device and system of cross-domain double layer network business |
CN111343071A (en) * | 2020-03-20 | 2020-06-26 | 新华三信息安全技术有限公司 | Tunnel establishment method and device, load balancing equipment and storage medium |
CN114285900A (en) * | 2021-12-09 | 2022-04-05 | 中国联合网络通信集团有限公司 | Scheduling system, authentication method, scheduling method, apparatus, server, and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1863121A (en) * | 2006-01-09 | 2006-11-15 | 华为技术有限公司 | Two layer tunnel protocol network server and method for establishing tunnel thereof |
US7487243B1 (en) * | 2003-08-29 | 2009-02-03 | Juniper Networks, Inc. | Network tunnel termination device selection using weighted load balancing |
CN102420745A (en) * | 2011-11-04 | 2012-04-18 | 迈普通信技术股份有限公司 | 3G (the third Generation) communication method and system |
CN102752221A (en) * | 2012-07-23 | 2012-10-24 | 杭州华三通信技术有限公司 | Method and device for sharing load of data message used for L2TP (layer 2 tunneling protocol) networking |
-
2016
- 2016-08-30 CN CN201610764493.5A patent/CN106130926B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7487243B1 (en) * | 2003-08-29 | 2009-02-03 | Juniper Networks, Inc. | Network tunnel termination device selection using weighted load balancing |
CN1863121A (en) * | 2006-01-09 | 2006-11-15 | 华为技术有限公司 | Two layer tunnel protocol network server and method for establishing tunnel thereof |
CN102420745A (en) * | 2011-11-04 | 2012-04-18 | 迈普通信技术股份有限公司 | 3G (the third Generation) communication method and system |
CN102752221A (en) * | 2012-07-23 | 2012-10-24 | 杭州华三通信技术有限公司 | Method and device for sharing load of data message used for L2TP (layer 2 tunneling protocol) networking |
Non-Patent Citations (1)
Title |
---|
高延德: "基于VPDN 的L2TP技术在甘肃铁通的应用", 《甘肃科技》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108235428A (en) * | 2016-12-21 | 2018-06-29 | 中国移动通信集团河南有限公司 | Realize method, MME equipment and the PGW equipment of UE registrations P-CSCF |
CN108235428B (en) * | 2016-12-21 | 2021-03-05 | 中国移动通信集团河南有限公司 | Method for realizing registration of UE (user equipment) with P-CSCF (proxy Call Session control function), MME (mobility management entity) equipment and PGW (packet gateway) equipment |
CN109617778A (en) * | 2018-11-22 | 2019-04-12 | 西安佰才邦网络技术有限公司 | Implementation method, the device and system of cross-domain double layer network business |
CN109617778B (en) * | 2018-11-22 | 2021-05-18 | 西安佰才邦网络技术有限公司 | Method, device and system for realizing cross-domain two-layer network service |
CN111343071A (en) * | 2020-03-20 | 2020-06-26 | 新华三信息安全技术有限公司 | Tunnel establishment method and device, load balancing equipment and storage medium |
CN111343071B (en) * | 2020-03-20 | 2022-02-22 | 新华三信息安全技术有限公司 | Tunnel establishment method and device, load balancing equipment and storage medium |
CN114285900A (en) * | 2021-12-09 | 2022-04-05 | 中国联合网络通信集团有限公司 | Scheduling system, authentication method, scheduling method, apparatus, server, and medium |
CN114285900B (en) * | 2021-12-09 | 2023-10-03 | 中国联合网络通信集团有限公司 | Scheduling system, authentication method, scheduling method, device, server and medium |
Also Published As
Publication number | Publication date |
---|---|
CN106130926B (en) | 2019-07-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106686085B (en) | Load balancing method, device and system | |
KR101774326B1 (en) | Employing overlays for securing connections across networks | |
CN101141494B (en) | Method for settling resource allocation conflict under load sharing condition | |
CN111030912B (en) | Method for intercommunication between virtual private cloud VPCs | |
CN106130926B (en) | A kind of processing method and processing device of message | |
CN105323229B (en) | A kind of data transmission method based on CPE, network element, platform and system | |
US20170310614A1 (en) | A new Instant Messaging (IM) system | |
JP4190455B2 (en) | Load balancing apparatus and program | |
CN104094243B (en) | Information processor and information processing method | |
CN108737224A (en) | A kind of message processing method and device based on micro services framework | |
CN103259736A (en) | Tunnel building method and network equipment | |
CN103546304A (en) | Business processing method, equipment and system | |
CN107087023B (en) | Data forwarding method and system | |
CN105939240A (en) | Load balancing method and device | |
CN106027356B (en) | A kind of conversion method and device of Tunnel Identifier | |
CN104954155B (en) | The network equipment with multiple business boards and multi-service plate sharing method | |
WO2016175647A1 (en) | A secured instant messaging (im) system structure based on identification | |
CN107517129B (en) | Method and device for configuring uplink interface of equipment based on OpenStack | |
CN109474713A (en) | Message forwarding method and device | |
CN106571992A (en) | Virtual Private Line (VPL) establishing method and device | |
US9712667B2 (en) | Identifying network entities in a peer-to-peer network | |
CN107659930A (en) | A kind of AP connection control methods and device | |
CN110324244A (en) | A kind of method for routing and server based on Linux virtual server | |
CN106027354A (en) | Backflow method and device for VPN (Virtual Private Network) client | |
CN106416209A (en) | Communication system, path selection device, and path selection method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building Applicant after: Hangzhou Dipu Polytron Technologies Inc Address before: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building Applicant before: Hangzhou Dipu Technology Co., Ltd. |
|
COR | Change of bibliographic data | ||
GR01 | Patent grant | ||
GR01 | Patent grant |