CN109639458B - Method and device for realizing QOS strategy - Google Patents

Method and device for realizing QOS strategy Download PDF

Info

Publication number
CN109639458B
CN109639458B CN201811371482.6A CN201811371482A CN109639458B CN 109639458 B CN109639458 B CN 109639458B CN 201811371482 A CN201811371482 A CN 201811371482A CN 109639458 B CN109639458 B CN 109639458B
Authority
CN
China
Prior art keywords
template
matching
l2tp
strategy
policy
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
Application number
CN201811371482.6A
Other languages
Chinese (zh)
Other versions
CN109639458A (en
Inventor
汪佐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201811371482.6A priority Critical patent/CN109639458B/en
Publication of CN109639458A publication Critical patent/CN109639458A/en
Application granted granted Critical
Publication of CN109639458B publication Critical patent/CN109639458B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5003Managing SLA; Interaction between SLA and QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/302Route determination based on requested QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/66Layer 2 routing, e.g. in Ethernet based MAN's
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/825Involving tunnels, e.g. MPLS

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a method and a device for realizing a QOS strategy, which relate to the field of data communication and can realize a refined QOS strategy for different users. The method comprises the following steps: pre-configuring a strategy template, wherein the strategy template comprises strategy classes aiming at different L2TP users, and the strategy classes respectively correspond to different QOS strategies; respectively configuring corresponding matching templates for the strategy classes, wherein the matching templates comprise matching rules; applying the configured policy template to a virtual template interface; and after receiving a message of any L2TP session, traversing the strategy class in the strategy template of the virtual template interface, and applying the QOS strategy in the strategy class corresponding to the matching template where the matched matching rule is located to the L2TP user corresponding to the L2TP session when determining that the matching rule matched with the message of the L2TP session exists in the matching template corresponding to the strategy class.

Description

Method and device for realizing QOS strategy
Technical Field
The invention belongs to the field of data communication, and particularly relates to a method and a device for realizing a QOS strategy.
Background
With the development of data communication technology, a Layer 2Tunneling Protocol (L2TP for short) is commonly used. An application scenario of the existing L2TP technology is that an L2TP user accesses an L2TP Network server (L2TP Network server, LNS for short) through an L2TP Access Concentrator (L2TP Access Concentrator, LAC for short), and usually one or more LACs correspond to one LNS, as shown in fig. 1, an L2TP user 1, an L2TP user 2, and an L2TP user n (n is greater than or equal to 2) Access the LNS through the same LAC1, and in this application scenario, the existing technology cannot implement a Quality of Service (QOS) policy for different L2TP users, and cannot meet different QOS requirements of users.
Disclosure of Invention
The invention provides a method and a device for realizing a QOS strategy, which are used for solving the problems that the prior art can not realize the execution of different QOS strategies aiming at different users and can not meet the differentiation requirements of the users.
In order to achieve the above object, in a first aspect, an embodiment of the present invention provides a method for implementing a QOS policy, where the method is applied in an L2TP network server, and the method includes:
pre-configuring a strategy template, wherein the strategy template comprises strategy classes aiming at different second-layer tunneling protocol L2TP users, and the strategy classes respectively correspond to different QOS strategies;
respectively configuring corresponding matching templates for the strategy classes, wherein the matching templates comprise matching rules;
applying the configured policy template to a virtual template interface;
and after receiving the message of any L2TP session, traversing the strategy class in the strategy template of the virtual template interface, and applying the QOS strategy in the strategy class corresponding to the matching template where the matched matching rule is located to the L2TP user corresponding to any L2TP session when determining that the matching rule matched with the message of any L2TP session exists in the matching template corresponding to the strategy class.
The configuring of the corresponding matching templates for the policy classes respectively specifically includes:
and respectively configuring corresponding matching templates with the same name for the strategy classes according to the names of the strategy classes.
After receiving the message of any L2TP session, before traversing the policy class in the policy template of the virtual template interface, the method further includes:
and generating a corresponding virtual interface for any L2TP session, and establishing a corresponding relation between the virtual interface and the virtual template interface.
Wherein, the applying the QOS policy in the policy class corresponding to the matching template where the matching rule is located to the L2TP user corresponding to any L2TP session specifically includes:
and applying the QOS strategy in the strategy class corresponding to the matching template in which the matched matching rule is positioned to the virtual interface corresponding to any L2TP session according to the established corresponding relation between the virtual interface and the virtual template interface so as to apply the QOS strategy to the L2TP user corresponding to any L2TP session.
Preferably, the matching rule comprises a matching rule comprising a user name.
The method for realizing the QOS strategy provided by the embodiment of the invention can realize a refined QOS strategy aiming at different users, thereby ensuring the requirements of different users on the differentiated QOS strategy. The invention is simple and effective to realize and has high flexibility.
In a second aspect, an embodiment of the present invention provides an apparatus for implementing a quality of service QOS policy, where the apparatus is included in an L2TP network server, and the apparatus includes:
the configuration module is used for configuring a strategy template in advance, the strategy template comprises strategy classes aiming at different second-layer tunneling protocol L2TP users, and the strategy classes respectively correspond to different QOS strategies;
the configuration module is further configured to configure corresponding matching templates for the policy classes, where the matching templates include matching rules;
the application module is used for applying the configured strategy template to a virtual template interface;
the matching module is used for traversing the strategy class in the strategy template of the virtual template interface after receiving the message of any L2TP conversation, and informing the application module when determining that the matching rule matched with the message of any L2TP conversation exists in the matching template corresponding to the strategy class;
the application module is further configured to apply the QOS policy in the policy class corresponding to the matching template in which the matching rule is located to the L2TP user corresponding to the any L2TP session.
The configuration module is specifically configured to configure corresponding matching templates with the same name for the policy class according to the name of the policy class.
Preferably, the apparatus further includes a creating module, configured to generate a corresponding virtual interface for the any L2TP session, and establish a corresponding relationship between the virtual interface and the virtual template interface.
The application module is specifically configured to apply, according to the established correspondence between the virtual interface and the virtual template interface, a QOS policy in a policy class corresponding to the matching template in which the matching rule is located, to the virtual interface corresponding to the any L2TP session, so as to apply the QOS policy to the L2TP user corresponding to the any L2TP session.
Preferably, the matching rule comprises a matching rule comprising a user name.
The method and the device for realizing the QOS strategy provided by the embodiment of the invention can realize a refined QOS strategy aiming at different users, thereby ensuring the differentiated QOS requirements of different users. By configuring a policy template in advance, and after receiving a message of an L2TP session corresponding to an L2TP user, when determining that a matching rule matched with the message of the L2TP session exists in a matching template corresponding to a policy class, applying a QOS policy in the policy class corresponding to the matching template where the matched matching rule exists to the L2TP user corresponding to the L2TP session. The QOS strategy of the L2TP user can be simply and efficiently configured and issued, the technology is simple to realize, and when the QOS strategy of the L2TP user needs to be modified, only adaptive modification needs to be carried out in the strategy template, and the technology has high flexibility in realization.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic diagram of an application scenario of L2TP in the prior art;
fig. 2 is a flow chart of a method for implementing QOS policies according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a framework of an apparatus for implementing QOS policy according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a framework of an apparatus for implementing QOS policy according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The system architecture and the service scenario described in the embodiment of the present invention are for more clearly illustrating the technical solution of the embodiment of the present invention, and do not form a limitation on the technical solution provided in the embodiment of the present invention, and it can be known by those skilled in the art that the technical solution provided in the embodiment of the present invention is also applicable to similar technical problems along with the evolution of the system architecture and the appearance of a new service scenario.
The above method is described in detail with reference to specific examples.
In an application scenario of the L2TP technology shown in fig. 1, multiple L2TP users access the LNS through the same LAC, a local connection or a Point-to-Point Protocol (PPP) link is used between the users and the LAC, an L2TP tunnel is established between the LAC and the LNS, and the LNS configures a corresponding virtual template interface for the L2TP tunnel. In the process of establishing the L2TP tunnel, the LNS searches the corresponding virtual template interface according to the opposite terminal name carried by the LAC. In the L2TP negotiation process, the LNS creates a corresponding L2TP session for each L2TP user, and simultaneously generates a corresponding virtual interface, and establishes a corresponding relationship between the virtual interface and the virtual template interface, so that the virtual interface can perform corresponding work by using the configuration issued by the virtual template interface. When the virtual interfaces corresponding to multiple L2TP sessions all correspond to the same virtual template interface, that is, multiple different L2TP users all access the LNS through the same L2TP tunnel, all configurations of the virtual interfaces are issued from the virtual template interfaces, and therefore, all virtual interfaces corresponding to one virtual template interface can only apply the same QOS policy. The LNS is unable to implement different QOS policies for different L2TP users and to meet the L2TP user's differentiated QOS requirements. In order to solve the problem, the scheme of the embodiment of the invention is provided.
As a preferred embodiment of the present invention, an embodiment of the present invention provides a method for implementing a QOS policy, which can be applied in an LNS, as shown in fig. 2, and the method includes the following steps:
step 201, pre-configuring a policy template, wherein the policy template comprises policy classes for different users, and each policy class corresponds to a different QOS policy; and configuring corresponding matching templates for each policy class, wherein the matching templates comprise matching rules, the matching rules are used for matching one item or a combination of multiple items of key fields contained in protocols such as user names, priorities, source IP addresses, destination IP addresses, Differentiated Services Code Points (DSCP), and the like, and the L2TP users are distinguished by matching the key field information.
In the embodiment of the present invention, one or more policy classes may be configured in a policy template according to actual needs, each policy class corresponds to a different QOS policy, each policy class corresponds to one or more L2TP users, that is, one or more L2TP users may adopt QOS policies in the same policy class, each policy class respectively configures one matching template corresponding to each policy class, the matching template includes a name of the matching template and a matching rule, the name of the matching template may be configured by a user, the matching template may include one or more different matching rules, and the matching rule may include different key field information. As long as the information carried in the message of the L2TP session is matched with any one of the matching rules in the matching template, the QOS policy in the policy class corresponding to the matching template where the matched matching rule is located can be applied to the L2TP user corresponding to the L2TP session.
In this step, a corresponding matching template is configured for each policy class, which specifically includes:
and respectively configuring corresponding matching templates with the same name for each strategy class according to the names of the strategy classes.
In the embodiment of the invention, the name of the strategy class and the name of the matching template are set as the same name to establish the corresponding relation between the strategy class and the matching template, which is beneficial to quickly find out the QOS strategy corresponding to the L2TP user in the subsequent traversal process.
As a preferred mode of the embodiment of the present invention, the name of the matching template may be configured as a user name, and the name of the policy class corresponding to the matching template is also a user name, and when QOS policy configuration needs to be performed on a large number of L2TP users, such a configuration mode is easy for configuration personnel to identify and perform later maintenance.
In the embodiment of the present invention, by configuring a policy template, QOS policies, such as whether shaping is required or not, whether absolute priority scheduling is required or not, can be finely customized according to requirements of different L2TP users, and the configured policy template is applied to a virtual template interface, when a certain L2TP user dials into an LNS through LAC, the LNS creates a corresponding L2TP session for the L2TP user, and simultaneously generates a corresponding virtual interface, and after establishing a corresponding relationship between the virtual interface and the virtual template interface, a QOS policy corresponding to the L2TP user can be found in the policy template of the virtual template interface and applied to a virtual interface corresponding to the L2TP user, so as to implement delivery of QOS policies of the L2TP user, and by the above method, QOS requirements of different users can be finely controlled. The QOS policy referred to in the embodiments of the present invention includes, but is not limited to, Class-Based Weighted Fair Queuing (CBWFQ), Priority Queuing (PQ), General Traffic Shaping (GTS), and the like.
And 202, applying the configured strategy template to a virtual template interface.
Step 203, after receiving the message of any L2TP session, traversing the policy class in the policy template of the virtual template interface, and when determining that the matching template corresponding to the policy class has the matching rule matching with the message of any L2TP session, applying the QOS policy in the policy class corresponding to the matching template where the matching rule is matched to the L2TP user corresponding to any L2TP session.
Specifically, after receiving a message of any L2TP session, the LNS traverses the policy classes in the policy templates of the virtual template interface, searches for a matching template with the same name according to the name of the policy class when traversing to a certain policy class, performs message matching according to the matching rule in the matching template, and applies the QOS policy in the policy class corresponding to the matching template where the matching rule is located to the L2TP user corresponding to the L2TP session if the key information field in the message of the L2TP session is matched with any matching rule in the matching template. If the key information field in the message of any L2TP session is not matched with all matching rules in the matching template, skipping the policy class and continuously traversing the next policy class. Until all the strategy classes are traversed, in the traversing process, if a matching rule matched with the message of any L2TP conversation exists in a matching template corresponding to the strategy class, a QOS strategy in the strategy class corresponding to the matching template where the matched matching rule is located is applied to the L2TP user corresponding to any L2TP conversation. And if all the strategy classes are traversed and the matching rule matched with the message of any L2TP session is not found, the QOS strategy is not executed for the L2TP user corresponding to any L2TP session.
Specifically, in the embodiment of the present invention, after receiving a message of any L2TP session, before traversing a policy class in a policy template of a virtual template interface, a corresponding virtual interface needs to be generated for the any L2TP session, and a corresponding relationship between the virtual interface and the virtual template interface is established. After the L2TP user establishes any L2TP session with the LNS, the LNS generates a corresponding virtual interface for any L2TP session of the L2TP user, and establishes a corresponding relationship between the virtual interface and the virtual template interface. Therefore, in this step, applying the QOS policy in the policy class corresponding to the matching template where the matching rule that matches is located to the L2TP user corresponding to any one of the L2TP sessions specifically includes:
and applying the QOS strategy in the strategy class corresponding to the matching template in which the matched matching rule is positioned to the virtual interface corresponding to any L2TP session according to the established corresponding relation between the virtual interface and the virtual template interface so as to apply the QOS strategy to the L2TP user corresponding to any L2TP session.
In the embodiment of the present invention, after an L2TP user establishes any L2TP session with an LNS, and the LNS generates a corresponding virtual interface for any L2TP session of the L2TP user, a virtual template interface corresponding to the virtual interface is searched to establish a corresponding relationship between the virtual interface and the virtual template interface, and when the LNS issues a QOS configuration for the L2TP user, all policy classes configured in a policy template of the virtual template interface are traversed. And searching a corresponding matching template according to the name of the strategy class, matching according to a matching rule in the searched matching template, matching the key information field in the message of the L2TP session with any matching rule in the matching template, and applying the QOS strategy in the strategy class corresponding to the matching template where the matched matching rule is located to a virtual interface corresponding to the L2TP session according to the established corresponding relation between the virtual interface and the virtual template interface so as to realize the issuing of the QOS strategy aiming at the L2TP user, wherein by the method, different QOS strategies can be executed aiming at different L2TP users. Different QOS requirements of different L2TP users are met, and the LNS can execute differentiated QOS service aiming at different L2TP users.
It should be particularly noted that, in the embodiment of the present application, the matching rule may be set as a matching rule including a user name, so as to be simpler in implementation.
The specific implementation process of the embodiment of the present invention is now described with specific examples:
assuming that there are L2TP user a and L2TP user B, L2TP user a is a key customer, and needs absolute priority scheduling, ensuring bandwidth 600M, setting DSCP value to 10, and L2TP user B is a common customer, and the requirement is simple, and only needs ensuring bandwidth 400M without absolute priority. Therefore, for the different QOS requirements of the two L2TP users, the method for implementing the QOS policy provided by the embodiment of the present invention specifically includes: configuring a policy template in advance, wherein different policy classes are configured in the policy template based on different L2TP users, the number of the configured policy classes is related to the type of the L2TP user, only two policy classes related to the two types of users, namely an L2TP user A and an L2TP user B, are described here, and specifically, the policy template comprises a policy class 1 which is named as USERA; the QOS policy in policy class 1 is: the bandwidth is 600M, and the DSCP value is 10; the strategy template comprises a strategy class 2 with the name of USERB; the QOS policies in policy class 2 are: a bandwidth of 400M; and configuring a corresponding matching template 1 for the strategy class 1, wherein the name of the matching template is as follows: USERA, matching rule 11 is: a user name USERA; matching rule 12: a DSCP value of 10; configuring a corresponding matching template 2 for the strategy class 2, wherein the name of the matching template is as follows: USERB, matching rule 21 is: a user name USERB;
based on the above requirements and QOS policy configuration, the virtual interface generated by the LNS for the L2TP session corresponding to L2TP user a is VA1, the virtual template interface corresponding to VA1 is VT1, and when the LNS issues QOS configuration for L2TP user a, all policy classes configured under the policy template of the virtual template interface VT1 are traversed. When traversing to the policy class 1, according to the name USERA of the policy class 1, finding out a matching template 1 with the name USERA, where a matching rule 11 of the matching template 1 is a matching user name USERA, the USERA contained in the message of the L2TP session is matched with the user name USERA in the matching rule 11, and the QOS policy in the policy class 1 corresponding to the matching template 1 where the matching rule 11 is located is: the bandwidth is 600M, the DSCP value is 10, and the application is carried out on the virtual interface VA1, so that the QOS policy in the policy class 1 is applied to the L2TP user A; similarly, based on the above steps, the virtual interface generated by the LNS for the L2TP session corresponding to the L2TP user B is VA2, the virtual template interface corresponding to VA2 is VT1, the LNS issues QOS configuration for the L2TP user B, and all policy classes configured under the policy template of the virtual template interface VT1 are traversed. When traversing to the strategy class 1, according to the name USERA of the strategy class 1, searching a matching template 1 with the name USERA, wherein the matching rule 11 of the matching template 1 is the matching user name USERA, the USERB contained in the message of this L2TP session does not match the username USERA in the matching rule 11, continues to execute the matching rule 12, the matching rule 12 is a DSCP value of 10, since the L2TP user B does not require a DSCP value, therefore, the DSCP value contained in the message of the L2TP session is not matched with the matching rule 12, and the next policy class is traversed, and when the policy class 2 is traversed, according to the name USERB of the strategy class 2, a matching template 2 with the name USERB is searched, the matching rule 21 of the matching template 2 is the matching user name USERB, the USERB contained in the message of the L2TP session is matched with the user name USERB in the matching rule 21, and the QOS policy in the policy class 2 corresponding to the matching template 2 in which the matching rule 21 is located is: the bandwidth 400M is applied to the virtual interface VA2, thereby implementing the QOS policy in policy class 2 to be applied to L2TP user B.
The method for realizing the QOS strategy provided by the embodiment of the invention can realize a refined QOS strategy aiming at different users, thereby ensuring the differentiated QOS requirements of different users. The method of the embodiment of the invention, through configuring the strategy template in advance, and after receiving the message of the L2TP conversation corresponding to the L2TP user, when determining that the matching rule matched with the message of the L2TP conversation exists in the matching template corresponding to the strategy class, applies the QOS strategy in the strategy class corresponding to the matching template where the matched matching rule is located to the L2TP user corresponding to the L2TP conversation. The QOS strategy of the L2TP user can be simply and efficiently configured and issued, the technology is simple to realize, and when the QOS strategy of the L2TP user needs to be modified, only adaptive modification needs to be carried out in the strategy template, and the technology has high flexibility in realization.
As a preferred embodiment of the present invention, an apparatus for implementing quality of service QOS policy is provided in an embodiment of the present invention, where the apparatus is included in an L2TP network server, as shown in fig. 3, and the apparatus includes:
a configuration module 301, configured to pre-configure a policy template, where the policy template includes policy classes for different second layer tunneling protocol L2TP users, and the policy classes respectively correspond to different QOS policies.
The configuration module 301 is further configured to configure corresponding matching templates for the policy classes, where the matching templates include matching rules; the matching rule is used for matching key fields included in protocols such as user names, priorities, source IP addresses, destination IP addresses, Differentiated Services Code Point (DSCP) and the like, and L2TP users are distinguished by matching the key field information.
In the embodiment of the present invention, one policy class may correspond to one or more L2TP users, that is, one or more L2TP users adopt QOS policies of the same policy class, and the matching template may include one or more different matching rules, which may include different key field information. As long as the information carried in the message of the L2TP session satisfies any one matching rule in the matching template, it is considered that the matching template of the L2TP user corresponding to the L2TP session is found.
An application module 302, configured to apply the configured policy template to a virtual template interface.
The matching module 303 is configured to, after receiving a message of any L2TP session, traverse a policy class in a policy template of the virtual template interface, and notify the application module 302 when determining that a matching rule matching the message of any L2TP session exists in a matching template corresponding to the policy class;
the application module 302 is further configured to apply the QOS policy in the policy class corresponding to the matching template where the matching rule is located to the L2TP user corresponding to any one of the L2TP sessions.
The configuration module 301 is specifically configured to configure corresponding matching templates with the same name for the policy class according to the name of the policy class.
In the embodiment of the present invention, one or more policy classes may be configured in a policy template according to actual needs, each policy class corresponds to a different QOS policy, each policy class corresponds to one or more L2TP users, that is, one or more L2TP users may adopt QOS policies in the same policy class, each policy class respectively configures one matching template corresponding to each policy class, the matching template includes a name of the matching template and a matching rule, the name of the matching template may be configured by a user, the matching template may include one or more different matching rules, and the matching rule may include different key field information. As long as the information carried in the message of the L2TP session is matched with any one of the matching rules in the matching template, the QOS policy in the policy class corresponding to the matching template where the matched matching rule is located can be applied to the L2TP user corresponding to the L2TP session.
As a preferred mode of the embodiment of the present invention, the name of the matching template may be configured as a user name, and the name of the policy class corresponding to the matching template is also a user name, and when QOS policy configuration needs to be performed on a large number of L2TP users, such a configuration mode is easy for configuration personnel to identify and perform later maintenance.
As shown in fig. 4, the apparatus 30 further includes a creating module 304, configured to generate a corresponding virtual interface for the any L2TP session, and establish a corresponding relationship between the virtual interface and the virtual template interface.
The application module 302 is specifically configured to apply, according to the established correspondence between the virtual interface and the virtual template interface, a QOS policy in a policy class corresponding to the matching template in which the matching rule is located, to the virtual interface corresponding to the any L2TP session, so as to apply the QOS policy to the L2TP user corresponding to the any L2TP session.
The device for realizing the QOS strategy provided by the embodiment of the invention can realize a refined QOS strategy aiming at different users, thereby ensuring the differentiated QOS requirements of different users. The device for realizing the QOS strategy of the embodiment of the invention, through pre-configuring the strategy template, and after receiving the message of the L2TP conversation corresponding to the L2TP user, determines that the matching rule matched with the message of the L2TP conversation exists in the matching template corresponding to the strategy class, and applies the QOS strategy in the strategy class corresponding to the matching template where the matched matching rule is located to the L2TP user corresponding to the L2TP conversation. The QOS strategy of the L2TP user can be simply and efficiently configured and issued, the technology is simple to realize, and when the QOS strategy of the L2TP user needs to be modified, only adaptive modification needs to be carried out in the strategy template, and the technology has high flexibility in realization.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (8)

1. A method for realizing quality of service (QOS) strategy is applied to an L2TP network server, and the method comprises the following steps:
pre-configuring a strategy template, wherein the strategy template comprises strategy classes aiming at different second-layer tunneling protocol L2TP users, and the strategy classes respectively correspond to different QOS strategies; respectively configuring corresponding matching templates for the strategy classes, wherein the matching templates comprise matching rules;
applying the configured policy template to a virtual template interface;
after receiving a message of any L2TP session, traversing the policy class in the policy template of the virtual template interface, and applying a QOS policy in the policy class corresponding to the matching template where the matching rule is located to the L2TP user corresponding to any L2TP session when determining that the matching rule matched with the message of any L2TP session exists in the matching template corresponding to the policy class;
after receiving the message of any L2TP session, before traversing the policy class in the policy template of the virtual template interface, the method further includes:
and generating a corresponding virtual interface for any L2TP session, and establishing a corresponding relation between the virtual interface and the virtual template interface.
2. The method according to claim 1, wherein the configuring the corresponding matching templates for the policy classes respectively specifically includes:
and respectively configuring corresponding matching templates with the same name for the strategy classes according to the names of the strategy classes.
3. The method of claim 1, wherein the applying the QOS policy in the policy class corresponding to the matching template in which the matching rule is located to the L2TP user corresponding to any one of the L2TP sessions specifically comprises:
and applying the QOS strategy in the strategy class corresponding to the matching template in which the matched matching rule is positioned to the virtual interface corresponding to any L2TP session according to the established corresponding relation between the virtual interface and the virtual template interface so as to apply the QOS strategy to the L2TP user corresponding to any L2TP session.
4. A method according to any of claims 1-3, wherein the matching rules comprise matching rules comprising user names.
5. Apparatus for implementing quality of service, QOS, policies, the apparatus being embodied in an L2TP web server, the apparatus comprising:
the configuration module is used for configuring a strategy template in advance, the strategy template comprises strategy classes aiming at different second-layer tunneling protocol L2TP users, and the strategy classes respectively correspond to different QOS strategies;
the configuration module is further configured to configure corresponding matching templates for the policy classes, where the matching templates include matching rules;
the application module is used for applying the configured strategy template to a virtual template interface;
the matching module is used for traversing the strategy class in the strategy template of the virtual template interface after receiving the message of any L2TP conversation, and informing the application module when determining that the matching rule matched with the message of any L2TP conversation exists in the matching template corresponding to the strategy class;
the application module is further configured to apply a QOS policy in a policy class corresponding to the matching template where the matching rule is located to the L2TP user corresponding to the any L2TP session;
the device further comprises a creating module, configured to generate a corresponding virtual interface for any L2TP session, and establish a correspondence between the virtual interface and the virtual template interface.
6. The apparatus according to claim 5, wherein the configuration module is specifically configured to configure corresponding matching templates with the same name for the policy classes according to the names of the policy classes.
7. The apparatus of claim 5, wherein the application module is specifically configured to apply a QOS policy in a policy class corresponding to a matching template where the matching rule is located to the virtual interface corresponding to the any L2TP session according to the established correspondence between the virtual interface and the virtual template interface, so as to apply the QOS policy to the L2TP user corresponding to the any L2TP session.
8. The apparatus of any of claims 5-7, wherein the matching rule comprises a matching rule comprising a username.
CN201811371482.6A 2018-11-19 2018-11-19 Method and device for realizing QOS strategy Active CN109639458B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811371482.6A CN109639458B (en) 2018-11-19 2018-11-19 Method and device for realizing QOS strategy

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811371482.6A CN109639458B (en) 2018-11-19 2018-11-19 Method and device for realizing QOS strategy

Publications (2)

Publication Number Publication Date
CN109639458A CN109639458A (en) 2019-04-16
CN109639458B true CN109639458B (en) 2022-02-22

Family

ID=66068405

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811371482.6A Active CN109639458B (en) 2018-11-19 2018-11-19 Method and device for realizing QOS strategy

Country Status (1)

Country Link
CN (1) CN109639458B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113542395B (en) * 2021-07-13 2022-07-12 武汉绿色网络信息服务有限责任公司 Message processing method and message processing system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101697523A (en) * 2009-10-26 2010-04-21 中兴通讯股份有限公司 PDSN and method for realizing QoS for L2TP users
CN102917408A (en) * 2012-10-26 2013-02-06 迈普通信技术股份有限公司 Downlink flow control method and system of LNS (L2TP network server) device in 3G (third-generation) network
CN103490972A (en) * 2013-09-27 2014-01-01 迈普通信技术股份有限公司 Multilink tunnel message transmitting method and system
CN106911586A (en) * 2017-03-24 2017-06-30 京信通信技术(广州)有限公司 A kind of Qos optimization method and device
EP3210349B1 (en) * 2014-10-20 2019-08-14 Telefonaktiebolaget LM Ericsson (publ) Qos on a virtual interface over multi-path transport

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101697523A (en) * 2009-10-26 2010-04-21 中兴通讯股份有限公司 PDSN and method for realizing QoS for L2TP users
CN102917408A (en) * 2012-10-26 2013-02-06 迈普通信技术股份有限公司 Downlink flow control method and system of LNS (L2TP network server) device in 3G (third-generation) network
CN103490972A (en) * 2013-09-27 2014-01-01 迈普通信技术股份有限公司 Multilink tunnel message transmitting method and system
EP3210349B1 (en) * 2014-10-20 2019-08-14 Telefonaktiebolaget LM Ericsson (publ) Qos on a virtual interface over multi-path transport
CN106911586A (en) * 2017-03-24 2017-06-30 京信通信技术(广州)有限公司 A kind of Qos optimization method and device

Also Published As

Publication number Publication date
CN109639458A (en) 2019-04-16

Similar Documents

Publication Publication Date Title
US10999189B2 (en) Route optimization using real time traffic feedback
CN107872392B (en) Method and device for distributing service function chain data and service function instance data
CN107409089B (en) Method implemented in network engine and virtual network function controller
CN105376087B (en) Transaction integrity for network service configuration
US6661780B2 (en) Mechanisms for policy based UMTS QoS and IP QoS management in mobile IP networks
CN106533883B (en) A kind of method for building up, the apparatus and system of network special line
CN105765921B (en) For carrying out method, system and the equipment of DIAMETER routing using software defined network function
EP2961100A1 (en) Graph database for services planning and configuration in network services domain
US7324551B1 (en) System and method for managing bandwidth in a network environment
EP3981129B1 (en) Systems and methods for generating contextual labels
CN105592047B (en) A kind of transmission method and device of service message
US20080117821A1 (en) Adaptive quality of service in an easy virtual private network environment
CN112202930B (en) Method, POP and system for accessing mobile equipment to SD-WAN (secure digital-to-WAN) network
CN108777633A (en) Support the intention type industry SDN north interface systems and exchange method of data dispatch
Davoli et al. Implementation of service function chaining control plane through OpenFlow
US8102767B2 (en) Systems and methods for dynamically allocating network bandwidth
EP1868329A1 (en) Method of transferring data between a sending station in a first network and a receiving station in a second network, and apparatus for controlling the communication between the sending station in the first network and the receiving station in the second network
CN103957159A (en) Method for determining label switched path and path computation elements
CN106992906B (en) A kind of method of adjustment and system of access rate
CN109639458B (en) Method and device for realizing QOS strategy
Wang et al. Low-latency service chaining with predefined NSH-based multipath across multiple datacenters
US10511494B2 (en) Network control method and apparatus
US8553553B1 (en) Quality-of-service marking network configurations
JP6275180B2 (en) SETTING INFORMATION GENERATION DEVICE, NETWORK CONTROL DEVICE, METHOD, AND PROGRAM
CN111865805B (en) Multicast GRE message processing method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: 610041 nine Xing Xing Road 16, hi tech Zone, Sichuan, Chengdu

Patentee after: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 610041 15-24 floor, 1 1 Tianfu street, Chengdu high tech Zone, Sichuan

Patentee before: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder