CN107797862B - Method for realizing QoS strategy templating - Google Patents

Method for realizing QoS strategy templating Download PDF

Info

Publication number
CN107797862B
CN107797862B CN201710895138.6A CN201710895138A CN107797862B CN 107797862 B CN107797862 B CN 107797862B CN 201710895138 A CN201710895138 A CN 201710895138A CN 107797862 B CN107797862 B CN 107797862B
Authority
CN
China
Prior art keywords
template
policy
configuration
behavior
interface
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
CN201710895138.6A
Other languages
Chinese (zh)
Other versions
CN107797862A (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201710895138.6A priority Critical patent/CN107797862B/en
Publication of CN107797862A publication Critical patent/CN107797862A/en
Application granted granted Critical
Publication of CN107797862B publication Critical patent/CN107797862B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources
    • 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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/091Measuring contribution of individual network components to actual service level

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Storage Device Security (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method for realizing QoS strategy templating, which comprises the following steps: storing a Policy template which is not applied by the interface in a memory, and storing the relationship among the Policy template, the classic template and the Behavior template; when the Policy template is applied to the interface for the first time, writing the configuration of the Policy template into a bottom layer drive, and applying for and occupying hardware resources; after the write drive is successful, returning an index value to correspond to the hardware resource, and storing a Classify template, a matching rule and a corresponding relation table between bottom hardware resources, or a Behavior template, action configuration and the corresponding relation table between the bottom hardware resources; and when the Classify template, the Behavior template and the Policy template are added, deleted and updated, the related configuration in the memory is added, deleted and updated, and the corresponding bottom hardware resources are added, deleted and updated according to the corresponding relation table. The invention reduces the working difficulty of configuration personnel, reduces the error probability in the configuration process, and has obvious effect on configuring mass services.

Description

Method for realizing QoS strategy templating
Technical Field
The invention relates to a QoS technology, in particular to a method for realizing QoS strategy templating.
Background
As shown in fig. 1, currently, in a PTN device, a QoS Policy (Policy template) includes one or more pairs of template groups consisting of Classify and Behavior, and the Policy template is applied to an interface to implement functions of traffic classification, supervision, statistics, and the like, where,
classify is a flow classification template which consists of one or more access control list rules, and the matching type of each rule comprises port-based, Ethernet-based and IP-based and is used for determining the type of communication flow at an interface;
the Behavior is a flow Behavior template, and the flow Behavior template is composed of a plurality of flow operations, including flow supervision, redirection, policy routing, and the like.
Generally, only on the premise of canceling the application relation between the interface and the Policy template, the operations of adding, deleting, updating and the like can be performed on the Policy template; meanwhile, after the Policy template is deleted, operations such as addition, deletion, updating and the like can be carried out on the Classification flow classification template and the Behavior flow Behavior template bound in the original Policy template; when the Policy template is applied by a plurality of interfaces, hardware resources are occupied for a plurality of times.
In summary, the existing QoS Policy template has the problem of excessive hardware resource waste, and the anti-refresh function cannot be implemented under the condition of being applied by an interface, so that the difficulty of configuration work is increased, the work efficiency is low, the error rate is high, and the defect is particularly obvious when a large amount of services are configured.
Disclosure of Invention
The technical problems to be solved by the invention are that the existing QoS Policy template has too much hardware resource waste, and the anti-brushing function can not be realized under the condition of being applied by an interface, so that the difficulty of configuration work is increased, and the problems of low work efficiency and high error rate are caused.
In order to solve the above technical problem, the technical solution adopted by the present invention is to provide a method for implementing QoS policy templating, specifically comprising:
storing a Policy template which is not applied by the interface in a memory, and storing the relationship among the Policy template, the classic template and the Behavior template; when the Policy template is applied to the interface for the first time, writing the Policy template configuration into the bottom layer drive, and applying for and occupying hardware resources;
after the write drive is successful, the bottom drive returns an index value id to correspond to the hardware resource; and storing a corresponding relation table among the Classify template id, the matching rule id and the bottom hardware resource id, or a corresponding relation table among the Behavior template id, the action configuration id and the bottom hardware resource id;
when the Classify template, the Behavior template and the Policy template are added, deleted and updated, the application relation between the interface and the Policy template is not canceled, only the relevant configuration contents in the memory are added, deleted and updated, and then the bottom hardware resources corresponding to the bottom hardware resources are found according to the corresponding relation table and are added, deleted and updated.
In the above method, the match type of all rules in the Classify flow classification template of each module must be the same.
In the method, in the Policy template, each classic stream classification template is associated with each matching rule through a relationship table between the classic stream classification template index and each matching rule index, and when the classic stream classification template or the matching rule is changed, the relationship table is correspondingly updated.
In the above method, the Policy template is divided into two attribute modes of sharing and non-sharing, wherein,
policy template for shared attributes: the method is applied to different interfaces, but the displayed data is summarized statistical data, and the individual data of each interface cannot be distinguished;
policy template for non-shared attributes: policy statistics on interfaces can be differentiated according to different interfaces of an application.
In the method, the relationship between the Policy template and the classic and Behavir templates is established through the relationship table between the Policy template index and the classic and Behavir template index, and when the Policy template or the classic and Behavir templates are changed, the corresponding relationship table is correspondingly updated.
In the method, the hardware resources applied by the Policy template are released only when the application relation between the Policy template and all interfaces is cancelled.
In the method, when the Policy template is not applied by the interface for the first time, the hardware resource is not applied or occupied again, and when the same Policy template is applied to different interfaces, the hardware resource is not repeatedly applied and occupied for many times.
In the method, the interface applying Policy template comprises the following steps:
step S11, the Policy template configuration is sent to the single-disk TNE channel through the network management or the master control;
step S12, forwarding Policy template configuration to each single disk by a single-disk TNE channel;
step S13, the single disk stores the received Policy template configuration in the memory, and simultaneously stores the relationship among the Policy template, the classic template and the Behavior template;
step S14, judging whether the Policy strategy template is applied to the interface, if not, returning to step S15; otherwise, go to step S13;
step S15, judging whether the Policy strategy template is applied to the interface, if so, executing step S16, otherwise, executing step S13;
and step S16, writing the Policy template configuration into the bottom layer driver, and after the write driver succeeds, storing a corresponding relation table among the Classify template id, the matching rule id and the bottom layer driver resource id, and a corresponding relation table among the Behavior template, the action configuration and the bottom layer driver resource.
When the Policy template is applied to the interface, the Policy template provided by the invention allows the operations of adding, deleting and updating the configuration therein, including the operations of adding, deleting and updating the matching rule in the Classify template and the operation of updating the configuration action in the Behavior template, thereby reducing the working difficulty of configuration personnel, reducing the error probability in the configuration process and having particularly obvious effect on configuring large-scale services; meanwhile, when the Policy template is applied by a plurality of interfaces, hardware resources do not need to be occupied for many times, and only the hardware resources are occupied during the first application, so that the hardware resources are greatly saved.
Drawings
FIG. 1 is a block diagram of a current QoS Policy template architecture on a PTN device;
FIG. 2 is a flowchart illustrating the interface application Policy template according to the present invention.
Detailed Description
The QoS Policy templating realized by the invention allows the addition, deletion and updating of the matching rules in the Classify template, even allows the deletion of all the matching rules in the Classify template in a network management interface or a command line on the premise of not canceling the application relation between the interface and the Policy template; allowing the action configuration in the Behavior template to be updated; the method comprises the steps of allowing addition, deletion and updating of Classify and Behavior template groups in Policy templates, even allowing deletion of all Classify and Behavior template groups in Policy templates, allowing multiple interfaces to apply the same Policy template, distinguishing Policy statistical data on the interfaces according to different interfaces of Policy application when the template has unshared attributes, allowing direct addition, deletion and updating of matching rules in the Classify template and direct updating of configuration actions in the Behavior template when the Policy template is applied by the interfaces, and enabling all the interfaces applying the template to take effect after the Policy template is updated, thereby simplifying the working complexity of configuration personnel and effectively improving the working efficiency particularly in a large-batch service configuration environment.
The invention is described in detail below with reference to the figures and specific examples.
The invention provides a method for realizing QoS strategy templating, which comprises the following steps:
the Policy template which is not applied by the interface is stored in the memory, and the relationship among the Policy template, the classic template and the Behavior template is stored, so that the application and the occupation of hardware resources are avoided, and the limited drive hardware resources are saved and protected; when the Policy template is applied to the interface for the first time, writing the Policy template configuration into the bottom layer drive, and applying for and occupying hardware resources; when the same Policy template is applied to different interfaces, the same Policy template is not repeatedly applied and occupies hardware resources;
after the write drive is successful, the hardware resource is occupied, and the bottom drive returns an index value id to correspond to the hardware resource; at this time, a corresponding relation table among a Classify template id, a matching rule id and a bottom hardware resource id is stored; meanwhile, a corresponding relation table among the Behavior template, the action configuration and the bottom hardware resources is required to be saved; when the operation of updating the action configuration in the Behavior template is executed, the bottom layer resource is directly found according to the corresponding relation table and is operated.
Therefore, the Classify template, the Behavior template and the Policy strategy template can be added, deleted and updated on the premise of not canceling the application relation between the interface and the Policy strategy template: firstly, adding, deleting and updating relevant configuration contents in a memory space, then finding out bottom hardware resources corresponding to the relevant configuration contents according to the corresponding relation table, and performing adding, deleting and updating operations on the bottom hardware resources.
In the invention, the matching types of all rules in the Classification flow classification template of each module are required to be the same, in the Policy strategy template, the Classification flow classification templates are associated with the matching rules through the relation tables between the Classification flow classification template indexes and the matching rule indexes, and when the Classification flow classification template or the matching rules are changed, the relation tables are correspondingly updated.
In the present invention, Policy templates are divided into two attribute modes, shared and non-shared, wherein,
policy template for shared attributes: the method is applied to different interfaces, but the displayed data is summarized statistical data, and the individual data of each interface cannot be distinguished. (ii) a
Policy template for non-shared attributes: policy statistics on interfaces can be differentiated according to different interfaces of an application.
The relationship between the Policy template and the Classify + Behavior template set is established through a relationship table between the Policy template index and the Classify + Behavior template set index, and when the Policy template and the Classify + Behavior template set are changed or updated, the relationship table is updated.
In the invention, only after the application relation between the Policy template and all interfaces is cancelled, the hardware resource applied by the Policy template is released; and after the Policy template is applied by the interface for the first time and the configuration is written into the bottom layer driver and occupies the hardware resources, the subsequent other interfaces do not apply for or occupy the hardware resources again when the Policy template is applied again.
FIG. 2 is a specific process of applying Policy template by an interface, which includes the following steps:
step S11, the Policy template configuration is sent to the single-disk TNE channel through the network management or the master control;
step S12, forwarding Policy template configuration to each single disk by a single-disk TNE channel;
step S13, the single disk stores the received Policy template configuration in the memory, and simultaneously stores the relationship among the Policy template, the classic template and the Behavior template;
step S14, judging whether the Policy strategy template is applied to the interface, if not, returning to step S15; otherwise, step S13 is executed, and only the configuration is saved in the memory and not written into the bottom driver, and the hardware resource is applied and occupied, and only when the Policy template is first applied by the interface, the driver resource is applied;
step S15, judging whether the Policy strategy template is applied to the interface, if so, executing step S16, otherwise, executing step S13, only storing the configuration in a memory, not writing the configuration into a bottom drive, applying for and occupying hardware resources;
and step S16, writing the Policy template configuration into the bottom layer driver, and after the write driver succeeds, storing a corresponding relation table among the Classify template id, the matching rule id and the bottom layer driver resource id and a corresponding relation table among the Behavior template, the action configuration and the bottom layer driver resource, so that the anti-refresh operation of adding, deleting and updating the Policy template configuration can be realized according to the corresponding relation table.
On the interface input side of the PE node, after classifying the service traffic through the Classify flow classification template, a flow Behavior can be deployed on each type of service flow in the Behavior template.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (7)

1. A method for realizing QoS strategy templating is characterized by comprising the following steps:
storing a Policy template which is not applied by the interface in a memory, and storing the relationship among the Policy template, the classic template and the Behavior template; when the Policy template is applied to the interface for the first time, writing the Policy template configuration into the bottom layer drive, and applying for and occupying hardware resources;
after the write drive is successful, the bottom drive returns an index value id to correspond to the hardware resource; and storing a corresponding relation table among the Classify template id, the matching rule id and the bottom hardware resource id, and a corresponding relation table among the Behavior template id, the action configuration id and the bottom hardware resource id;
when the Classify template, the Behavior template and the Policy template are added, deleted and updated, only the relevant configuration contents in the memory are added, deleted and updated without canceling the application relation of the interface and the Policy template, and then the bottom hardware resources corresponding to the bottom hardware resources are found according to the corresponding relation table and are added, deleted and updated;
the match type must be the same for all rules in the Classify flow classification template for each module.
2. The method as claimed in claim 1, wherein in Policy templates, each classic stream classification template is associated with each matching rule through a relationship table between the classic stream classification template index and each matching rule index, and when a classic stream classification template or a matching rule is changed, the relationship table is updated accordingly.
3. The method of claim 1, wherein the Policy templates are divided into two attribute modes, shared and non-shared, wherein,
policy template for shared attributes: the method is applied to different interfaces, but the displayed data is summarized statistical data, and the individual data of each interface cannot be distinguished;
policy template for non-shared attributes: policy statistics on interfaces can be differentiated according to different interfaces of an application.
4. The method of claim 3, wherein the relationship between the Policy template and the sets of Classify and Behavior templates is established through a relationship table between the Policy template index and the indices of the Classify and Behavior templates, and when the Policy template or the sets of Classify and Behavior templates are changed, the relationship table is updated accordingly.
5. The method of claim 1, wherein the hardware resources applied by the Policy template are released only if the application relationship between the Policy template and all interfaces is cancelled.
6. The method of claim 5, wherein the hardware resources are not applied or occupied again when the Policy template is not applied for the first time by the interface, and the application and occupation of the hardware resources are not repeated for a plurality of times when the same Policy template is applied to different interfaces.
7. The method of claim 1, wherein the interface applying Policy templates comprises the steps of:
step S11, the Policy template configuration is sent to the single-disk TNE channel through the network management or the master control;
step S12, forwarding Policy template configuration to each single disk by a single-disk TNE channel;
step S13, the single disk stores the received Policy template configuration in the memory, and simultaneously stores the relationship among the Policy template, the classic template and the Behavior template;
step S14, judging whether the Policy strategy template is applied to the interface, if not, returning to step S15; otherwise, go to step S13;
step S15, judging whether the Policy strategy template is applied to the interface, if so, executing step S16, otherwise, executing step S13;
and step S16, writing the Policy template configuration into the bottom layer driver, and after the write driver succeeds, storing a corresponding relation table among the Classify template id, the matching rule id and the bottom layer driver resource id, and a corresponding relation table among the Behavior template, the action configuration and the bottom layer driver resource.
CN201710895138.6A 2017-09-28 2017-09-28 Method for realizing QoS strategy templating Active CN107797862B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710895138.6A CN107797862B (en) 2017-09-28 2017-09-28 Method for realizing QoS strategy templating

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710895138.6A CN107797862B (en) 2017-09-28 2017-09-28 Method for realizing QoS strategy templating

Publications (2)

Publication Number Publication Date
CN107797862A CN107797862A (en) 2018-03-13
CN107797862B true CN107797862B (en) 2020-05-12

Family

ID=61532723

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710895138.6A Active CN107797862B (en) 2017-09-28 2017-09-28 Method for realizing QoS strategy templating

Country Status (1)

Country Link
CN (1) CN107797862B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111522615B (en) * 2020-04-23 2023-08-15 深圳赛安特技术服务有限公司 Method, device, equipment and storage medium for updating command line interface

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267355A (en) * 2008-05-08 2008-09-17 杭州华三通信技术有限公司 A method and device for discovering device configuration information
CN101876994A (en) * 2009-12-22 2010-11-03 中国科学院软件研究所 Establishing method for multi-layer optimized strategy evaluation engine and implementing method thereof
CN105959135A (en) * 2016-04-28 2016-09-21 烽火通信科技股份有限公司 PTN equipment single-disk configuration system and method based on common business model

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267355A (en) * 2008-05-08 2008-09-17 杭州华三通信技术有限公司 A method and device for discovering device configuration information
CN101876994A (en) * 2009-12-22 2010-11-03 中国科学院软件研究所 Establishing method for multi-layer optimized strategy evaluation engine and implementing method thereof
CN105959135A (en) * 2016-04-28 2016-09-21 烽火通信科技股份有限公司 PTN equipment single-disk configuration system and method based on common business model

Also Published As

Publication number Publication date
CN107797862A (en) 2018-03-13

Similar Documents

Publication Publication Date Title
US9444702B1 (en) System and method for visualization of NoC performance based on simulation output
DE102013208431B4 (en) Large, fabric-based distributed switch using virtual switches and virtual control units
CN108512890B (en) Container cloud platform resource scheduling method and system based on rack sensing
CN104521198A (en) System and method for virtual ethernet interface binding
CN104468401A (en) Message processing method and device
US20170364266A1 (en) Method and device for managing input/output (i/o) of storage device
CN105791175A (en) Method and equipment for controlling transmission resources in software defined network SDN
CN108512782A (en) Accesses control list is grouped method of adjustment, the network equipment and system
CN107800627A (en) The wiring method and device of three-state content addressing memory TCAM tables
DE112017003324T5 (en) Adaptive routing technologies using aggregated congestion information
CN106856438A (en) A kind of method of Network instantiation, device and NFV systems
CN105282057B (en) Flow table updating method, controller and flow table analysis device
CN107797862B (en) Method for realizing QoS strategy templating
CN100442709C (en) Apparatus operation method in network management system
CN104811403A (en) Openflow-based group table processing method and device and group table configuration unit
CN110061885A (en) Gateway discharging method, device, gateway and medium
US11153214B2 (en) In service flow capability update in guaranteed bandwidth multicast network
CN106294191A (en) The method processing table, the method and apparatus accessing table
CN105099942A (en) Data packet processing method and device
CN113992580B (en) Method and equipment for modifying policy routing
CN112019361A (en) Migration method and device of access control list, storage medium and electronic equipment
CN113918504A (en) Method and device for realizing isolation group
CN107483371A (en) A kind of MAC Address management method and business board
US10958526B2 (en) Methods for managing bandwidth allocation in a cloud-based system and related bandwidth managers and computer program products
WO2021012588A1 (en) Method and system for establishing flexible ethernet management channel

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