CN106130926B - 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
- CN106130926B CN106130926B CN201610764493.5A CN201610764493A CN106130926B CN 106130926 B CN106130926 B CN 106130926B CN 201610764493 A CN201610764493 A CN 201610764493A CN 106130926 B CN106130926 B CN 106130926B
- Authority
- CN
- China
- Prior art keywords
- lns
- tunnel
- message
- gateway
- sent
- 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.)
- Active
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, which comprises receives the session negotiation message that the LAC equipment is sent, and obtains user identifier from the session negotiation message;Corresponding LNS gateway is obtained from preset mapping relations based on the user identifier;Wherein, the preset mapping relations include the corresponding relationship of user identifier Yu LNS gateway;The session negotiation message is distributed to the corresponding LNS gateway.In this application, LNS load-balancing device can be established with LAC equipment and several LNS gateways respectively after L2TP Tunnel connect, conversate with LAC equipment and several LNS gateways negotiation respectively, during conversating negotiation, the available user identifier of LNS load-balancing device, and the user is assigned in specified LNS gateway according to preset mapping relations, so that solving the problems, such as that the relevant technologies cannot achieve dials in a certain user or a certain user group specified LNS gateway.
Description
Technical field
This application involves field of communication technology more particularly to a kind of processing method and processing devices of message.
Background technique
In the connection of (Layer 2Tunneling Protocol, the Level 2 Tunnel Protocol) tunnel L2TP, in order to preferable
Realize that some business, such as the business of the load balancing based on L2TP, a certain user or a certain user group need to dial in one
In specified LNS (L2TP Network Server, L2TP Network Server) gateway.However in the related art, LNS
Load-balancing device is assigned the user at random in coupled LNS gateway, cannot achieve a certain user or a certain
User group dials in specified LNS gateway.
Summary of the invention
In view of this, the application provides a kind of processing method and processing device of message, come solve the relevant technologies cannot achieve by
A certain user or a certain user group dial in the problem of specified LNS gateway.
Specifically, the application is achieved by the following technical solution:
The application provides a kind of processing method of message, and the method is applied to Level 2 Tunnel Protocol L2TP network service
Device LNS load-balancing device, the LNS load-balancing device respectively with L2TP Access Concentrator LAC equipment and several LNS nets
It closes equipment and establishes L2TP Tunnel connection, which comprises
The session negotiation message that the LAC equipment is sent is received, and obtains user identifier from the session negotiation message
Symbol;
Corresponding LNS gateway is obtained from preset mapping relations based on the user identifier;Wherein, described pre-
If mapping relations include user identifier Yu LNS gateway corresponding relationship;
The session negotiation message is distributed to the corresponding LNS gateway.
Optionally, which comprises
Receive the opening control connection request SCCRQ message that the LAC equipment is sent;
The SCCRQ message is forwarded to several LNS gateways;
The starting control connection response SCCRP message that several LNS gateways are replied is received, and first time is received
SCCRP message be sent to the LAC equipment;
It receives the starting control connection that the LAC equipment is sent and has connected SCCCN message, and the SCCCN message is sent out
It send to several LNS gateways.
Optionally, the method also includes:
Preset tunnel mapping table is initialized based on the SCCRQ message received;
The tunnel mapping table is updated based on the SCCRP message that several LNS gateways are replied, and according to described the
Corresponding LNS gateway is identified as tunnel master host by the source IP address of primary received SCCRP message, and by other times
The LNS gateway of multiple SCCRP message is identified as non-tunnel master host;
It has distributed when the tunnel ID of tunnel master host distribution and the LNS load-balancing device are directed to the LAC
When tunnel ID after the tunnel ID conversion of equipment is identical, by the tunnel of tunnel master host distribution in the tunnel mapping table
ID is converted to another tunnel ID;
According to after the conversion tunnel ID and local attribute information SCCRP message that the first time is received into
After row modification, modified SCCRP message is sent to LAC equipment;Wherein, the attribute information includes IP address;
After receiving the SCCCN message that the LAC equipment is sent, according to the tunnel ID and tunnel master host after the conversion
Attribute information modify to the SCCCN message, and modified SCCCN message is sent to tunnel master host;
The SCCCN message is replicated, and according to the tunnel mapping table and the attribute of several non-tunnel master hosts
After information carries out corresponding modification to the SCCCN message, modified SCCCN message correspondence is sent to several non-tunnels
Master host.
Optionally, the user identifier includes the call number Calling Number in authenticated calling information.
The application provides a kind of processing unit of message simultaneously, and described device is applied to Level 2 Tunnel Protocol L2TP network
Server LNS load-balancing device, the LNS load-balancing device respectively with L2TP Access Concentrator LAC equipment and several
LNS gateway establishes L2TP Tunnel connection, and described device includes:
Receiving unit, the session negotiation message sent for receiving the LAC equipment, and from the session negotiation message
Obtain user identifier;
Acquiring unit is set for obtaining corresponding LNS gateway from preset mapping relations based on the user identifier
It is standby;Wherein, the preset mapping relations include the corresponding relationship of user identifier Yu LNS gateway;
Allocation unit, for distributing the session negotiation message to the corresponding LNS gateway.
Optionally, the receiving unit is specifically used for:
Receive the opening control connection request SCCRQ message that the LAC equipment is sent;
Described device includes:
Retransmission unit, for the SCCRQ message to be forwarded to several LNS gateways;
The receiving unit is specifically used for:
The starting control connection response SCCRP message that several LNS gateways are replied is received, and first time is received
SCCRP message be sent to the LAC equipment;And it receives the starting control connection that the LAC equipment is sent and has connected SCCCN
Message, and the SCCCN message is sent to several LNS gateways.
Optionally, described device further include:
Initialization unit, for initializing preset tunnel mapping table based on the SCCRQ message received;
Updating unit, the SCCRP message for being replied based on several LNS gateways update the tunnel mapping
Table, and it is main according to the source IP address of the first time received SCCRP message corresponding LNS gateway to be identified as tunnel
Machine, and other LNS gateways for replying SCCRP message are identified as non-tunnel master host;
Converting unit, for being directed to as the tunnel ID of tunnel master host distribution and the LNS load-balancing device
When distributing identical to the tunnel ID after the tunnel ID conversion of the LAC equipment, by the tunnel master in the tunnel mapping table
The tunnel ID of host assignment is converted to another tunnel ID;
Modify unit, for according to after the conversion tunnel ID and local attribute information the first time is received
SCCRP message modify after, modified SCCRP message is sent to LAC equipment;Wherein, the attribute information includes
IP address;And after receiving the SCCCN message that the LAC equipment is sent, according to the tunnel ID and tunnel master after the conversion
The attribute information of host modifies to the SCCCN message, and modified SCCCN message is sent to tunnel master host;
Copied cells, for replicating the SCCCN message, and according to the tunnel mapping table and several non-tunnels
After the attribute information of master host carries out corresponding modification to the SCCCN message, modified SCCCN message correspondence is sent to institute
State several non-tunnel master hosts.
Optionally, the user identifier includes the call number Calling Number in authenticated calling information.
In this application, LNS load-balancing device can receive the session negotiation message of LAC equipment transmission, and from the meeting
User identifier is obtained in words negotiation packet, then, LNS load-balancing device can obtain correspondence from preset mapping relations
LNS gateway, wherein the preset mapping relations may include the corresponding relationship of user identifier Yu LNS gateway,
After getting corresponding LNS gateway, LNS load-balancing device can distribute the session negotiation message corresponding to this
LNS gateway.In this application, LNS load-balancing device can be built with LAC equipment and several LNS gateways respectively
Vertical L2TP Tunnel connection, and on the basis of establishing tunnel connection, it is carried out respectively with LAC equipment and several LNS gateways
Session negotiation, during conversating negotiation, the available user identifier of LNS load-balancing device, and according to default
Mapping relations the user is assigned in specified LNS gateway, so that solving that the relevant technologies cannot achieve will be a certain
User or a certain user group dial in the problem of specified LNS gateway.
Detailed description of the invention
Fig. 1 is a kind of application scenario diagram of L2TP Tunnel connection shown;
Fig. 2 is the flow chart for the processing method that the application one implements a kind of message exemplified;
Fig. 3 is the hardware block diagram of the processing unit of message in the embodiment of the present application;
Fig. 4 is a kind of the application block diagram of the processing unit of message shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application.
It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority
Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps
It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from
In the case where the application range, 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.Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination ".
Referring to Fig. 1, for a kind of application scenario diagram of L2TP Tunnel connection shown.Wherein, LAC (L2TP Access
Concentrator, L2TP Access Concentrator) equipment can establish L2TP Tunnel with LNS gateway and connect, user A and user
B can pass through tunnel connected reference LNS gateway.Wherein, LNS gateway can be user A and user B configured with fixation
IP address.
Each LNS gateway can be configured with identical private network IP address section, when user and LNS gateway establish meeting
When words connection, LNS load-balancing device can distribute a LNS gateway, such as LNS gateway 1, and the net for it
A private network IP address can be distributed for it by closing equipment, and then, which can pass through LNS gateway according to the private network IP address
1 and core router to intranet server send message, at this point it is possible to be matched by way of static configuration on core router
The routing of intranet server backhaul LNS gateway is set, so that core router can be after searching routing by intranet server
The message of return is forwarded to LNS gateway 1, and is back to the user again through LNS gateway 1.However, when the user with
When LNS gateway establishes connection again, LNS load-balancing device may distribute another LNS gateway, such as LNS for it
Gateway 2, at this time LNS gateway 2 can again for its distribute private network IP address (assume that the private network IP address with it is upper
The private network IP address for stating the distribution of LNS gateway 1 is identical IP address), then, which can be according to the private network IP address
Message is sent to intranet server by LNS gateway 2 and core router, when purpose IP address is upper by intranet server
When stating the message of identical private network IP address and being sent to core router, since what is configured on core router is by the private net address
It is sent to gateway 1, therefore, core router can not be forwarded the packet to LNS gateway 2, which can not also flow back
To the user.
It as shown in the above, is preferably to realize that some business, a certain user or a certain user group can dial in one
In the specified LNS gateway of platform, however in the related art, LNS load-balancing device assigns the user to and its phase at random
In LNS gateway even, it cannot achieve and a certain user or a certain user group are dialed in to specified LNS gateway.
In view of this, the application provides a kind of processing method and processing device of message, come solve the relevant technologies cannot achieve by
A certain user or a certain user group dial in the problem of specified LNS gateway.In this application, LNS load-balancing device
It can receive the session negotiation message of LAC equipment transmission, and obtain user identifier, then, LNS from the session negotiation message
Load-balancing device can obtain corresponding LNS gateway from preset mapping relations, wherein the preset mapping relations
It may include the corresponding relationship of user identifier Yu LNS gateway, after getting corresponding LNS gateway, LNS load
Equalizing equipment can distribute the session negotiation message to the corresponding LNS gateway.In this application, LNS load balancing
Equipment can establish L2TP Tunnel and connect with LAC equipment and several LNS gateways respectively, and in the base for establishing tunnel connection
On plinth, conversate with LAC equipment and several LNS gateways negotiation, during conversating negotiation, LNS respectively
The available user identifier of load-balancing device, and the user is assigned to specified LNS net according to preset mapping relations
It closes in equipment, a certain user or a certain user group is dialed in to specified LNS gateway to solve the relevant technologies and cannot achieve
The problem of equipment.
Fig. 2 is referred to, is the flow chart for the processing method that the application one implements a kind of message exemplified, which answers
For LNS load-balancing device, comprising the following steps:
Step 201: receiving the session negotiation message that the LAC equipment is sent, and obtained from the session negotiation message
User identifier.
In this application, above-mentioned LNS load-balancing device can be built with LAC equipment and several LNS gateways respectively
Vertical L2TP Tunnel connection.
In one embodiment, above-mentioned LNS load-balancing device is built with LAC equipment and several LNS gateways respectively
The process of vertical L2TP Tunnel connection can be with are as follows:
LAC equipment can send SCCRQ (Start Control Connection to LNS load-balancing device
Request opens control connection request) message, wherein the locally-unique ID of LAC equipment distribution can be carried in the message.
After LNS load-balancing device receives the SCCRQ message, which can be sent to above-mentioned several LNS gateways one by one.
In the one embodiment shown, LNS load-balancing device can preset tunnel mapping table, above-mentioned when receiving
When SCCRQ message, LNS load-balancing device can initialize the tunnel mapping table.The part of tunnel mapping table after initialization
List item can be as shown in table 1:
Table 1
Wherein, the first row in table 1 can indicate the locally-unique tunnel ID of LAC equipment distribution;Secondary series in table 1
Tunnel ID after can indicating the locally-unique tunnel ID conversion for distributing LNS gateway, since different LNS gateways is set
The standby locally-unique tunnel ID to the distribution of same LAC equipment may be identical, and therefore, LNS load-balancing device can occur
For same LAC equipment same tunnel ID when, which is converted, so that LNS load-balancing device can
With uniquely corresponding according to unique tunnel ID and a certain tunnel of LNS gateway, set due to not carrying LNS in SCCRQ message
The tunnel ID that back-up is matched, therefore, the secondary series in table 1 can be default value 0;Third column in table 1 can indicate that LNS load is equal
The equipment that weighs sends the IP address of the target LNS gateway of SCCRQ message;The 4th column in table 1 can indicate above-mentioned target LNS
The tunnel ID of gateway distribution, since the tunnel ID of LNS equipment distribution is not carried in SCCRQ message, the in table 1
Four column can take default value 0;The 5th column in table 1 can indicate whether corresponding LNS gateway is tunnel master host, one
In a example, when the 5th in table 1 is classified as 1, it can indicate that corresponding LNS gateway is tunnel master host;When in table 1
5th when being classified as 0, can indicate that corresponding LNS gateway is non-tunnel master host.About the concept of tunnel master host, this Shen
It can please be described in detail in the following embodiments.
After above-mentioned several LNS gateways receive SCCRQ message, it can be generated based on the SCCRQ message corresponding
SCCRP (Start Control Connection Reply, starting control connection response) message, then, several LNS gateways
SCCRP message can be sent to LNS load-balancing device by equipment.LNS load-balancing device is set in reception several LNS gateways
When the standby SCCRP message replied, the SCCRP message received for the first time can be sent to LAC equipment.
In the one embodiment shown, what LNS load-balancing device can be replied according to above-mentioned several LNS gateways
SCCRP message will correspond to update above-mentioned tunnel mapping table according to the source IP address of received SCCRP message of above-mentioned first time
LNS gateway be identified as tunnel master host, and other LNS gateways are identified as non-tunnel master host.At one
It, can be as shown in table 2 according to the updated tunnel mapping table of SCCRP message in example:
Table 2
As shown in Table 2, the LNS gateway that IP address is 10.1.0.1 is tunnel master host, IP address 10.1.0.2
LNS gateway 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 one embodiment shown, LNS load-balancing device is after determining tunnel master host, it can be determined that the tunnel
Whether the tunnel ID of road master host distribution is directed to LNS load-balancing device has been distributed to the tunnel ID conversion of LAC equipment
Tunnel ID is identical, and when above-mentioned two tunnel ID is identical, and the tunnel ID which distributes is converted.It needs
Bright, the application is not limited the conversion method, is converted to above-mentioned tunnel ID and several LNS as long as theoretically meeting
Gateway has distributed the tunnel ID all different to the tunnel ID of above-mentioned LAC equipment, and certainly, the tunnel ID after the conversion can
To meet the customized requirement of user or the default requirement of equipment etc..
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 and LNS load-balancing device of fixed tunnel master host distribution are directed to and have distributed to the tunnel of above-mentioned LAC equipment
ID20 conversion after tunnel ID20 it is identical, at this point, LNS load-balancing device can by the tunnel master host distribute tunnel ID into
Row conversion, the tunnel mapping table after conversion can be as shown in table 3:
Table 3
LNS load-balancing device updates above-mentioned tunnel according to the SCCRP message that several LNS gateways received are replied
After road mapping table, distribute if the tunnel ID and LNS load-balancing device of the distribution of above-mentioned tunnel master host are directed to LAC equipment
Tunnel ID conversion after tunnel ID it is identical, then LNS load-balancing device can to tunnel master host reply SCCRP message into
The tunnel ID distributed in the message by tunnel master host is revised as the tunnel ID after conversion by row modification, and then, LNS load is equal
Weighing apparatus equipment can modify to the SCCRP according to local attribute information, wherein the attribute information may include IP address.It is complete
After the modification of the pairs of SCCRP message, which can be sent to LAC and set by LNS load-balancing device
It is standby.
After LAC equipment receives SCCRP message, SCCCN (Start Control can be replied based on the message
Connection Connected, starting control connection have connected) message, LNS load-balancing device receives the SCCCN message
Afterwards, which can be sent to above-mentioned tunnel master host.In one embodiment, LNS load-balancing device is sent out by the message
It send to before above-mentioned tunnel master host, being distributed by tunnel master host for message carrying can be judged according to above-mentioned tunnel mapping table
Tunnel ID whether be conversion after tunnel ID, if so, LNS load-balancing device can according in the tunnel mapping table by tunnel
The actual tunnel ID of road master host distribution updates the tunnel ID after the conversion in the message, and then, LNS load-balancing device can be with
It is modified according to the attribute information of tunnel master host in tunnel mapping table to the SCCCN message, and will be modified above-mentioned
SCCCN message is sent to tunnel master host.
After above-mentioned SCCCN message is sent to tunnel master host, LNS load-balancing device can be according to tunnel mapping table
In all non-tunnel master hosts attribute information, such as IP address, and the tunnel ID etc. of distribution carries out pair above-mentioned SCCCN message
It should modify, then modified SCCCN message correspondence can be sent to each non-tunnel master host by LNS load-balancing device.
As can be seen from the above embodiments, LNS load-balancing device can respectively with LAC equipment and above-mentioned several LNS gateways
Equipment establishes L2TP Tunnel connection.
LNS load-balancing device and LAC equipment are established after L2TP Tunnel connect, and can receive the meeting of LAC equipment transmission
Talk about negotiation packet, wherein user identifier can be carried in the session negotiation message, in one embodiment, the user identifier
Symbol can be the call number Calling Number in authenticated calling information.LNS load-balancing device can be assisted from the session
Above-mentioned user identifier is obtained in Business's text.
Step 202: obtaining corresponding LNS gateway from preset mapping relations based on the user identifier;Its
In, the preset mapping relations include the corresponding relationship of user identifier Yu LNS gateway.
After getting user identifier in the session negotiation message that LAC equipment is sent, LNS load-balancing device can be with base
Corresponding LNS gateway is obtained from preset mapping relations in the user identifier, wherein the preset mapping relations can
To include the corresponding relationship of user identifier Yu LNS gateway.
In another embodiment, above-mentioned preset mapping relations can be user group identifier and LNS gateway
Corresponding relationship can be based on the user identifier when LNS load-balancing device obtains user identifier from session negotiation message
Symbol inquires corresponding user's group identifier, is then obtained from preset mapping relations according to the user's group identifier got and
The corresponding LNS gateway of user's group identifier.
Step 203: the session negotiation message is distributed to the corresponding LNS gateway.
After LNS load-balancing device gets corresponding LNS gateway, which can be assigned to pair
The LNS gateway answered.
As can be seen from the above embodiments, in this application, LNS load-balancing device can receive the session of LAC equipment transmission
Negotiation packet, and obtain user identifier from the session negotiation message, then, LNS load-balancing device can be from preset
Corresponding LNS gateway is obtained in mapping relations, wherein the preset mapping relations may include user identifier and LNS
The corresponding relationship of gateway, after getting corresponding LNS gateway, LNS load-balancing device can be assisted the session
Business's text is distributed to the corresponding LNS gateway.In this application, LNS load-balancing device can respectively with LAC equipment with
And several LNS gateways establish L2TP Tunnel connection, and establish tunnel connect on the basis of, respectively with LAC equipment and
Several LNS gateways conversate negotiation, during conversating negotiation, the available use of LNS load-balancing device
Family information, and the user is assigned in specified LNS gateway according to preset mapping relations, to solve related skill
Art cannot achieve the problem of a certain user or a certain user group are dialed in specified LNS gateway.
Based on conceiving with the same application of the above method, the embodiment of the present application also provides the implementations of the processing unit of message
Example.
The processing unit of the application message can be applied on LNS load-balancing device.Wherein, the processing unit of the message
It can also be realized by way of hardware or software and hardware combining by software realization.Taking software implementation as an example, as one
Device on a logical meaning is to be referred to computer program corresponding in nonvolatile memory by the processor where it
It enables and is read into memory what operation was formed.For application, as shown in figure 3, being the processing of message in the embodiment of the present application
The hardware block diagram of device may be used also other than processor shown in Fig. 3, network interface, memory and nonvolatile memory
To include other hardware, such as it is responsible for the forwarding chip of processing message.
Referring to FIG. 4, being a kind of the application block diagram of the processing unit of message shown according to an exemplary embodiment.
Described device is applied to Level 2 Tunnel Protocol L2TP Network Server LNS load-balancing device, the LNS load
Equalizing equipment is established L2TP Tunnel and is connect with L2TP Access Concentrator LAC equipment and several LNS gateways respectively, the dress
It sets and includes:
Receiving unit 410, the session negotiation message sent for receiving the LAC equipment, and from the session negotiation report
User identifier is obtained in text;
Acquiring unit 420, for obtaining corresponding LNS gateway from preset mapping relations based on the user identifier
Equipment;Wherein, the preset mapping relations include the corresponding relationship of user identifier Yu LNS gateway;
Allocation unit 430, for distributing the session negotiation message to the corresponding LNS gateway.
In an optional implementation, the receiving unit 410 can be specifically used for:
Receive the opening control connection request SCCRQ message that the LAC equipment is sent;
The apparatus may include (being not shown in Fig. 4):
Retransmission unit 440, for the SCCRQ message to be forwarded to several LNS gateways;
The receiving unit 410 can be specifically used for:
The starting control connection response SCCRP message that several LNS gateways are replied is received, and first time is received
SCCRP message be sent to the LAC equipment;And it receives the starting control connection that the LAC equipment is sent and has connected SCCCN
Message, and the SCCCN message is sent to several LNS gateways.
In an optional implementation, described device can also include (being not shown in Fig. 4):
Unit 450 are initialized, for initializing preset tunnel mapping table based on the SCCRQ message received;
Updating unit 460, the SCCRP message for being replied based on several LNS gateways are updated the tunnel and reflected
Firing table, and corresponding LNS gateway is identified as by tunnel master according to the source IP address of the first time received SCCRP message
Host, and other LNS gateways for replying SCCRP message are identified as non-tunnel master host;
Converting unit 470, for being directed to as the tunnel ID of tunnel master host distribution with the LNS load-balancing device
When having distributed identical to the tunnel ID after the tunnel ID conversion of the LAC equipment, by the tunnel in the tunnel mapping table
The tunnel ID of master host distribution is converted to another tunnel ID;
Modify unit 480, for according to after the conversion tunnel ID and local attribute information the first time is connect
After the SCCRP message received is modified, modified SCCRP message is sent to LAC equipment;Wherein, the attribute information
Including IP address;And after receiving the SCCCN message that the LAC equipment is sent, according to the tunnel ID and tunnel after the conversion
The attribute information of road master host modifies to the SCCCN message, and it is main that modified SCCCN message is sent to tunnel
Machine;
Copied cells 490, for replicating the SCCCN message, and according to the tunnel mapping table and described several non-
After the attribute information of tunnel master host carries out corresponding modification to the SCCCN message, by the corresponding transmission of modified SCCCN message
To several non-tunnel master hosts.
In an optional implementation, the user identifier includes the call number in authenticated calling information
Calling Number。
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus
Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
The purpose for needing to select some or all of the modules therein to realize application scheme.Those of ordinary skill in the art are not paying
Out in the case where creative work, it can understand and implement.
In this application, LNS load-balancing device can receive the session negotiation message of LAC equipment transmission, and from the meeting
User identifier is obtained in words negotiation packet, then, LNS load-balancing device can obtain correspondence from preset mapping relations
LNS gateway, wherein the preset mapping relations may include the corresponding relationship of user identifier Yu LNS gateway,
After getting corresponding LNS gateway, LNS load-balancing device can distribute the session negotiation message corresponding to this
LNS gateway.In this application, LNS load-balancing device can be built with LAC equipment and several LNS gateways respectively
Vertical L2TP Tunnel connection, and on the basis of establishing tunnel connection, it is carried out respectively with LAC equipment and several LNS gateways
Session negotiation, during conversating negotiation, the available user identifier of LNS load-balancing device, and according to default
Mapping relations the user is assigned in specified LNS gateway, so that solving that the relevant technologies cannot achieve will be a certain
User or a certain user group dial in the problem of specified LNS gateway.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.
Claims (8)
1. a kind of processing method of message, which is characterized in that the method is applied to Level 2 Tunnel Protocol L2TP network service
Device LNS load-balancing device, the LNS load-balancing device respectively with L2TP Access Concentrator LAC equipment and several LNS nets
It closes equipment and establishes L2TP Tunnel connection, which comprises
The session negotiation message that the LAC equipment is sent is received, and obtains user identifier from the session negotiation message;
Corresponding LNS gateway is obtained from preset mapping relations based on the user identifier;Wherein, described preset
Mapping relations include the corresponding relationship of user identifier Yu LNS gateway;
The session negotiation message is distributed to the corresponding LNS gateway;
Wherein, the LNS load-balancing device is uniquely corresponding according to unique tunnel ID and a certain tunnel of LNS gateway.
2. the method according to claim 1, wherein the described method includes:
Receive the opening control connection request SCCRQ message that the LAC equipment is sent;
The SCCRQ message is forwarded to several LNS gateways;
The starting control connection response SCCRP message that several LNS gateways are replied is received, and will be received for the first time
SCCRP message is sent to the LAC equipment;
It receives the starting control connection that the LAC equipment is sent and has connected SCCCN message, and the SCCCN message is sent to
Several LNS gateways.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
Preset tunnel mapping table is initialized based on the SCCRQ message received;
The SCCRP message replied based on several LNS gateways updates the tunnel mapping table, and according to the first time
Corresponding LNS gateway is identified as tunnel master host by the source IP address of received SCCRP message, and other are replied
The LNS gateway of SCCRP message is identified as non-tunnel master host;
It has distributed when the tunnel ID of tunnel master host distribution and the LNS load-balancing device are directed to the LAC equipment
Tunnel ID conversion after tunnel ID it is identical when, in the tunnel mapping table by the tunnel master host distribution tunnel ID turn
It is changed to another tunnel ID;
According to after the conversion tunnel ID and local attribute information the SCCRP message that the first time receives is repaired
After changing, modified SCCRP message is sent to LAC equipment;Wherein, the attribute information includes IP address;
After receiving the SCCCN message that the LAC equipment is sent, according to the category of tunnel ID and tunnel master host after the conversion
Property information modifies to the SCCCN message, and modified SCCCN message is sent to tunnel master host;
The SCCCN message is replicated, and according to the tunnel mapping table and the attribute information of several non-tunnel master hosts
After carrying out corresponding modification to the SCCCN message, it is main that modified SCCCN message correspondence is sent to several non-tunnels
Machine.
4. the method according to claim 1, wherein the user identifier includes exhaling in authenticated calling information
Call out the numbers a yard Calling Number.
5. a kind of processing unit of message, which is characterized in that described device is applied to Level 2 Tunnel Protocol L2TP network service
Device LNS load-balancing device, the LNS load-balancing device respectively with L2TP Access Concentrator LAC equipment and several LNS nets
It closes equipment and establishes L2TP Tunnel connection, described device includes:
Receiving unit, the session negotiation message sent for receiving the LAC equipment, and obtained from the session negotiation message
User identifier;
Acquiring unit, for obtaining corresponding LNS gateway from preset mapping relations based on the user identifier;Its
In, the preset mapping relations include the corresponding relationship of user identifier Yu LNS gateway;
Allocation unit, for distributing the session negotiation message to the corresponding LNS gateway;
Wherein, the LNS load-balancing device is uniquely corresponding according to unique tunnel ID and a certain tunnel of LNS gateway.
6. device according to claim 5, which is characterized in that the receiving unit is specifically used for:
Receive the opening control connection request SCCRQ message that the LAC equipment is sent;
Described device includes:
Retransmission unit, for the SCCRQ message to be forwarded to several LNS gateways;
The receiving unit is specifically used for:
The starting control connection response SCCRP message that several LNS gateways are replied is received, and will be received for the first time
SCCRP message is sent to the LAC equipment;And it receives the starting control connection that the LAC equipment is sent and has connected SCCCN report
Text, and the SCCCN message is sent to several LNS gateways.
7. device according to claim 6, which is characterized in that described device further include:
Initialization unit, for initializing preset tunnel mapping table based on the SCCRQ message received;
Updating unit, the SCCRP message for being replied based on several LNS gateways update the tunnel mapping table, and
Corresponding LNS gateway is identified as tunnel master host according to the source IP address of the first time received SCCRP message, with
And other LNS gateways for replying SCCRP message are identified as non-tunnel master host;
Converting unit, for having been distributed when the tunnel ID of tunnel master host distribution is directed to the LNS load-balancing device
When tunnel ID after to the tunnel ID conversion of the LAC equipment is identical, by the tunnel master host in the tunnel mapping table
The tunnel ID of distribution is converted to another tunnel ID;
Modify unit, for according to after the conversion tunnel ID and local attribute information the first time is received
After SCCRP message is modified, modified SCCRP message is sent to LAC equipment;Wherein, the attribute information includes IP
Address;And after receiving the SCCCN message that the LAC equipment is sent, according to after the conversion tunnel ID and tunnel it is main
The attribute information of machine modifies to the SCCCN message, and modified SCCCN message is sent to tunnel master host;
Copied cells, for replicating the SCCCN message, and it is main according to the tunnel mapping table and several non-tunnels
After the attribute information of machine carries out corresponding modification to the SCCCN message, if modified SCCCN message correspondence is sent to described
Do non-tunnel master host.
8. device according to claim 5, which is characterized in that the 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 CN106130926A (en) | 2016-11-16 |
CN106130926B true 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) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN109617778B (en) * | 2018-11-22 | 2021-05-18 | 西安佰才邦网络技术有限公司 | Method, device and system for realizing cross-domain two-layer network service |
CN111343071B (en) * | 2020-03-20 | 2022-02-22 | 新华三信息安全技术有限公司 | Tunnel establishment method and device, load balancing equipment and storage medium |
CN114285900B (en) * | 2021-12-09 | 2023-10-03 | 中国联合网络通信集团有限公司 | Scheduling system, authentication method, scheduling method, device, 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技术在甘肃铁通的应用;高延德;《甘肃科技》;20160630;第32卷(第12期);全文 |
Also Published As
Publication number | Publication date |
---|---|
CN106130926A (en) | 2016-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106130926B (en) | A kind of processing method and processing device of message | |
CN105637805B (en) | Enhance mobile alternate channel to solve the node failure in wired networks | |
JP6718966B2 (en) | Methods for establishing a roaming connection | |
CN111030912B (en) | Method for intercommunication between virtual private cloud VPCs | |
CN105323229B (en) | A kind of data transmission method based on CPE, network element, platform and system | |
JP2013511207A5 (en) | ||
US20170310614A1 (en) | A new Instant Messaging (IM) system | |
CN108737224A (en) | A kind of message processing method and device based on micro services framework | |
CN104094243B (en) | Information processor and information processing method | |
CN106464743B (en) | More leases in software definition networking | |
CN107547665B (en) | Method, equipment and system for allocating DHCP (dynamic host configuration protocol) address | |
EP3113539A1 (en) | Load balancing user plane traffic in a telecommunication network | |
JP2005322107A (en) | Load distribution device and program | |
CN104394602B (en) | A kind of cross-system call-establishing method, terminal and core network element | |
CN106027356B (en) | A kind of conversion method and device of Tunnel Identifier | |
CN105939240A (en) | Load balancing method and device | |
CN109074288A (en) | Conflict solving in network virtualization scene | |
CN107087023A (en) | Data forwarding method and system | |
CN104954155B (en) | The network equipment with multiple business boards and multi-service plate sharing method | |
CN107547346A (en) | A kind of message transmitting method and device | |
CN109474713A (en) | Message forwarding method and device | |
CN107517129B (en) | Method and device for configuring uplink interface of equipment based on OpenStack | |
CN110324244A (en) | A kind of method for routing and server based on Linux virtual server | |
CN106027354B (en) | The reflow method and device of VPN client | |
CN104506405B (en) | The method and device of cross-domain access |
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 |