CN101710873B - Method and device for managing configuration data - Google Patents

Method and device for managing configuration data Download PDF

Info

Publication number
CN101710873B
CN101710873B CN2009102422967A CN200910242296A CN101710873B CN 101710873 B CN101710873 B CN 101710873B CN 2009102422967 A CN2009102422967 A CN 2009102422967A CN 200910242296 A CN200910242296 A CN 200910242296A CN 101710873 B CN101710873 B CN 101710873B
Authority
CN
China
Prior art keywords
configuration data
data
mapping relations
binding relationship
hardware attributes
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.)
Expired - Fee Related
Application number
CN2009102422967A
Other languages
Chinese (zh)
Other versions
CN101710873A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2009102422967A priority Critical patent/CN101710873B/en
Publication of CN101710873A publication Critical patent/CN101710873A/en
Application granted granted Critical
Publication of CN101710873B publication Critical patent/CN101710873B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method and device for managing configuration data. The method comprises the following steps: obtaining the configuration data of mapping relationship between the priority fields of the MPLS message and the configuration data of binding relationship between the configuration data bound on the equipment ports in the MPLS network; and alternately updating the configuration data of mapping relationship and the configuration data of binding relationship, after completing updating the configuration data of mapping relationship and the configuration data of binding relationship each time, combining the configuration data of mapping relationship and the configuration data of binding relationship into the format required by a hardware attribute table and writing the configuration data of mapping relationship and the configuration data of binding relationship into the hardware attribute table until the configuration data of mapping relationship and the configuration data of binding relationship are changeless. The scheme of the invention can obviously reduce the storage resource demands of the configuration data.

Description

The method and apparatus of configuration data management
Technical field
The present invention relates to a kind of MPLS (Multi-Protocol Label Switching, Multiprotocol Label Switching Protocol) message administrative skill, be meant especially a kind of when in the MPLS network, carrying out the message priority field mappings, the method and apparatus of configuration data management.
Background technology
VPN (Virtual Private Network, Virtual Private Network) is the private dedicated network that utilizes common network to make up.It has won application more and more widely with its advantage that shows unique characteristics.For the user, use VPN can reduce expense, convenient management.Can utilize existing infrastructure to provide value added service for operator, can enlarge the operation traffic carrying capacity simultaneously, also create new commercial opportunity.
MPLS is that a kind of grouping that will have identical forwarding processing mode is classified as the classification transmission technology of a type (being ForwardingEquivalent Class, forwarding equivalence class).
MPLS is used for improving the forwarding speed of router and an agreement proposing, but because MPLS makes MPLS become the major criterion of expansion IP network scale day by day in these two of traffic engineering and the VPN superior performance in the very crucial technology in IP network at present.The key of mpls protocol is to have introduced label (Label) switching concept, and in the MPLS network, the content of MPLS edge router analyzing IP bag also was that these IP bags are selected suitable label when IP wrapped in first MPLS equipment of entering.Later on be exactly according to this label as transmitting according in the MPLS transmission through network, label is separated by edge router when leaving the MPLS network when IP wraps.In the MPLS network, the network equipment is divided into edge network equipment and core network device, edge network equipment provides traffic classification and label mapping, the function that label removes.Core network device provides label exchange and label distribution function.
As shown in Figure 1, MPLS VPN network, MPLS be as a kind of technology platform of IP backbone efficiently, provides flexibly a kind of and had the technical foundation of extensibility for realizing VPN.MPLS VPN network is made up of three kinds of network equipments:
(1) edge device that directly links to each other in CE (Custom Edge) user network with the service provider;
(2) edge device in PE (Provider Edge) backbone network, it directly links to each other with user's CE;
(3) equipment that does not directly link to each other with CE in P router (Provider Router) backbone network.
In MPLS VPN network connection model, network is made up of the backbone network of operator and each website (Site) of user, and VPN is exactly the division to the Site set, the just corresponding set of being made up of some Site of VPN.MPLS VPN net structure is accomplished by the service provider, in this net structure, to the user VPN service is provided by the service provider, and the existence of the imperceptible public network of user just looks like to have that independently Internet resources are the same.The structure of all VPN connects and management work is all carried out on PE.From the angle of PE, the IP system of user's a connection is regarded as a Site, and each Site links to each other with PE through CE, and Site has just constituted the elementary cell of VPN.A VPN is made up of a plurality of Site, and a Site also can belong to different VPN simultaneously.There is not the VPN of common Site can use overlapping address space for any two; Promptly in user's private network, use own independent address space; And whether need not consider the address space conflicts with other VPN or public network; This just need depend on VRF (VPN Routing & Forwarding Instance, "VPN routing and forwarding (VRF) instance).VRF only is present on the PE, on PE, all creates a corresponding with it VRF to each Site, and each VRF comprises a routing table, transmits one group of set of interfaces and one group of relevant with it strategy that uses this VRF for one.VRF can be counted as a virtual router.The detailed description of relevant MPLSVPN is seen RFC 2547.
Support distinguishing service quality (DifferService) in order to go up at MPLS VPN (Layer 2 or Layer 3); Need to get into the message of PE equipment; Cos field or dscp field or MPLS EXP field according to message; According to the mapping relations of appointment, the respective field of mark message forwards then again.Through the mark again of this precedence field, and combine message to transmit dispatching algorithm, can be within SLA (SLA) with the network service control of user's various application.These mapping relations are stored in the mapping table, and are overall in device range.For PE equipment, not only physical port also has VLAN and aggregation port can bind such mapping table according to actual needs at its Inbound.Actual binding quantity is a lot.If the binding of each port (or VLAN) with mapping table all stored, be written to then in the attribute list of equipment, a large amount of resource of inevitable requirement is used to store this configuration data like this, and the configuration data write time will be very long.Owing to can not stop in the ablation process binding relationship to change or mapping relations change, therefore will inevitably cause the mapping that writes and bind configuration data and go up inconsistent at all of the port (or VLAN).Writing continuously of mass data must cause CPU in a long period section, to have high load capacity in addition, will have a strong impact on processing and the forwarding speed of PE equipment to message.
Summary of the invention
The technical problem that the present invention will solve provides a kind of method and apparatus of configuration data management of the storage resource demands that can reduce configuration data.
For solving the problems of the technologies described above, embodiments of the invention provide a kind of method of configuration data management, comprising:
Obtain the binding relationship configuration data that mapping relations configuration data and said mapping relations configuration data between the Multiprotocol Label Switching Protocol MPLS priority of messages field are bound on the device port in said MPLS network;
Said mapping relations configuration data and said binding relationship configuration data are replaced renewal; Said mapping relations configuration data each upgrade finish the back or said binding relationship configuration data each upgrade finish after; Said mapping relations configuration data and said binding relationship configuration data are combined into the form of hardware attributes table requirement; Write said hardware attributes table, up to said mapping relations configuration data and said binding relationship configuration data all less than till changing.
Wherein, said mapping relations configuration data each upgrade finish after, said mapping relations configuration data and said binding relationship configuration data are combined into the form of hardware attributes table requirement, the step that writes said hardware attributes table is specially:
The said binding relationship configuration data of data item that changes in the said mapping relations configuration data after upgrading and not renewal is combined into the form that the hardware attributes table requires, writes said hardware attributes table;
Said binding relationship configuration data each upgrade finish after, said mapping relations configuration data and said binding relationship configuration data are combined into the form of hardware attributes table requirement, the step that writes said hardware attributes table is specially:
The said mapping relations configuration data of data item that changes in the said binding relationship configuration data after upgrading and not renewal is combined into the form that the hardware attributes table requires, writes said hardware attributes table.
Wherein, said mapping relations configuration data and said binding relationship configuration data are combined into the form of hardware attributes table requirement, the step that writes said hardware attributes table comprises:
The data total amount that said mapping relations configuration data and said binding relationship configuration data is combined into behind the form of hardware attributes table requirement is divided into two parts data volume at least;
After each partial data amount writes said hardware attributes table completion, wait for that a Preset Time at interval, begins to write the next part data volume again;
Data total amount behind the form that said mapping relations configuration data and said binding relationship configuration data is combined into the requirement of hardware attributes table all writes said hardware attributes table.
Wherein, said each partial data amount is the data volume of adjustable size joint; Said Preset Time is spaced apart adjustable time interval.
Wherein, the renewal to said mapping relations configuration data comprises: each data item of said mapping relations configuration data is provided with interpolation, deletion or the modification of state;
Renewal to said binding relationship configuration data comprises: to the setting of the binding state of each data item of said binding relationship configuration data or the setting of separating binding state.
The present invention also provides a kind of device of configuration data management, comprising:
Acquisition module is used for obtaining the binding relationship configuration data that mapping relations configuration data and said mapping relations configuration data between the Multiprotocol Label Switching Protocol MPLS priority of messages field are bound on said MPLS network device port;
Processing module; Be used for said mapping relations configuration data and said binding relationship configuration data are replaced renewal; Said mapping relations configuration data each upgrade finish the back or said binding relationship configuration data each upgrade finish after; Said mapping relations configuration data and said binding relationship configuration data are combined into the form of hardware attributes table requirement, write said hardware attributes table, up to said mapping relations configuration data and said binding relationship configuration data all less than till changing.
Wherein, said processing module comprises:
Update module is used for said mapping relations configuration data and said binding relationship configuration data are replaced renewal, up to said mapping relations configuration data and said binding relationship configuration data all less than till changing;
First processing sub; Be used for after the each renewal of said mapping relations configuration data finishes; The said binding relationship configuration data of data item that changes in the said mapping relations configuration data after upgrading and not renewal is combined into the form that the hardware attributes table requires, writes said hardware attributes table;
Second processing sub; Be used for after the each renewal of said binding relationship configuration data finishes; The said mapping relations configuration data of data item that changes in the said binding relationship configuration data after upgrading and not renewal is combined into the form that the hardware attributes table requires, writes said hardware attributes table.
Wherein, said processing module specifically is used for: the data total amount that said mapping relations configuration data and said binding relationship configuration data is combined into behind the form of hardware attributes table requirement is divided into two parts data volume at least; After each partial data amount writes said hardware attributes table completion, wait for that a Preset Time at interval, begins to write the next part data volume again; Data total amount behind the form that said mapping relations configuration data and said binding relationship configuration data is combined into the requirement of hardware attributes table all writes said hardware attributes table.
Wherein, said apparatus also comprises: time block is used for adjustable said Preset Time interval that is provided with.
Wherein, said each partial data amount is the data volume of adjustable size joint.
The beneficial effect of technique scheme of the present invention is following:
In the such scheme; Through mapping relations configuration data and said binding relationship configuration data are replaced renewal; And said mapping relations configuration data each upgrade finish the back or said binding relationship configuration data each upgrade finish after; Said mapping relations configuration data and said binding relationship configuration data are combined into the form of hardware attributes table requirement, write in the said hardware attributes table; Like this; Only need upgrade to finish perhaps to upgrade and to write when finishing at the mapping relations configuration data at the binding relationship configuration data; Avoid a large amount of mapping relations configuration data of one-time write and binding relationship configuration data, reduced the storage resource demands of configuration data.
Description of drawings
Fig. 1 is the Organization Chart of MPLS VPN network;
Fig. 2 is the method flow diagram of embodiments of the invention configuration data management;
Fig. 3 is in the method shown in Figure 2, the storage condition sketch map of mapping relations configuration data and binding relationship configuration data;
Fig. 4 is a concrete realization flow figure of method shown in Figure 2;
Fig. 5 is the structure drawing of device of embodiments of the invention configuration data management.
Embodiment
For technical problem, technical scheme and advantage that the present invention will be solved is clearer, will combine accompanying drawing and specific embodiment to be described in detail below.
The present invention is directed in the prior art; When a large amount of configuration datas are written in the attribute list of equipment; The problem that the storage resource demands of the fashionable requirement of write once is excessive provides a kind of method and apparatus of configuration data management of the storage resource demands that can reduce configuration data.
As shown in Figure 2, the method for embodiments of the invention configuration data management comprises:
Step 21 is obtained the binding relationship configuration data that mapping relations configuration data and said mapping relations configuration data between the Multiprotocol Label Switching Protocol MPLS priority of messages field are bound on the device port in said MPLS network;
Step 22; Said mapping relations configuration data and said binding relationship configuration data are replaced renewal; Said mapping relations configuration data each upgrade finish the back or said binding relationship configuration data each upgrade finish after; Said mapping relations configuration data and said binding relationship configuration data are combined into the form of hardware attributes table requirement, write said hardware attributes table, up to said mapping relations configuration data and said binding relationship configuration data all less than till changing.
The above embodiment of the present invention is through replacing renewal to mapping relations configuration data and said binding relationship configuration data; And said mapping relations configuration data each upgrade finish the back or said binding relationship configuration data each upgrade finish after, said mapping relations configuration data and said binding relationship configuration data are write in the hardware attributes table together; Like this; Only need upgrade to finish perhaps to upgrade and to write when finishing at the mapping relations configuration data at the binding relationship configuration data; Avoid a large amount of mapping relations configuration data of one-time write and binding relationship configuration data, reduced the storage resource demands of configuration data.
Wherein, in the above-mentioned steps 22, after the each renewal of said mapping relations configuration data finishes,
Said mapping relations configuration data and said binding relationship configuration data are combined into the form of hardware attributes table requirement, and the step that writes said hardware attributes table is specially:
The said binding relationship configuration data of data item that changes in the said mapping relations configuration data after upgrading and not renewal is combined into the form that the hardware attributes table requires, writes said hardware attributes table; Can improve like this and write efficient, the mitigation system load.
In the above-mentioned steps 22, after the each renewal of said binding relationship configuration data finishes,
Said mapping relations configuration data and said binding relationship configuration data are combined into the form of hardware attributes table requirement, and the step that writes said hardware attributes table is specially:
The said mapping relations configuration data of data item that changes in the said binding relationship configuration data after upgrading and not renewal is combined into the form that the hardware attributes table requires, writes said hardware attributes table; Can improve equally and write efficient, the mitigation system load.
Preferably, in above-mentioned steps 22, said mapping relations configuration data and said binding relationship configuration data are combined into the form of hardware attributes table requirement, the step that writes said hardware attributes table comprises:
The data total amount that said mapping relations configuration data and said binding relationship configuration data is combined into behind the form of hardware attributes table requirement is divided into two parts data volume at least;
After each partial data amount writes said hardware attributes table completion, wait for that a Preset Time at interval, begins to write the next part data volume again;
Data total amount behind the form that said mapping relations configuration data and said binding relationship configuration data is combined into the requirement of hardware attributes table all writes said hardware attributes table.
Like mapping relations configuration data and binding relationship configuration data 1000 data are arranged, if with these 1000 data one-time write hardware attributes tables, the time that then possibly write is longer; Then this moment, can consider these 1000 data are write several times, as writing 300 for the first time; After waiting for that a Preset Time at interval; Write 300 again, wait for that a Preset Time at interval after, write 300 again; So effective mitigation system load does not need disposable these 1000 data to be write the hardware attributes table continuously, like this, can alleviate the load of system greatly;
Wherein, said each partial data amount is the data volume of adjustable size joint; Said Preset Time is spaced apart adjustable time interval;
Specifically, the data volume that at every turn writes the hardware attributes table is to regulate according to the current load condition of system, as when system loading is light; Can once write some data volumes, the time interval of wait is short, when system loading is heavier more; Can once write some data volumes less, latency period is longer, like this; The load of mitigation system generally improves the treatment effeciency of system.
Certainly; If write the data of hardware attributes table be: when data item that changes in the said mapping relations configuration data after the renewal and the said binding relationship configuration data that does not upgrade were combined into the data behind the form that the hardware attributes table requires, then this step was:
The data total amount that the data item that changes in the said mapping relations configuration data after upgrading and the said binding relationship configuration data that do not upgrade are combined into behind the form that the hardware attributes table requires is divided into two parts data volume at least; After each partial data amount writes said hardware attributes table completion, wait for that a Preset Time at interval, begins to write the next part data volume again; The data total amount that data item that in the said mapping relations configuration data after the said renewal, changes and the said binding relationship configuration data that does not upgrade are combined into behind the form that the hardware attributes table requires all writes said hardware attributes table.
If write the data of hardware attributes table be: when data item that changes in the said binding relationship configuration data after the renewal and the said mapping relations configuration data that does not upgrade were combined into the data behind the form that the hardware attributes table requires, then this step was:
The data total amount that the data item that changes in the said binding relationship configuration data after upgrading and the said mapping relations configuration data that do not upgrade are combined into behind the form that the hardware attributes table requires is divided into two parts data volume at least; After each partial data amount writes said hardware attributes table completion, wait for that a Preset Time at interval, begins to write the next part data volume again; The data total amount that data item that in the said binding relationship configuration data after the said renewal, changes and the said mapping relations configuration data that does not upgrade are combined into behind the form that the hardware attributes table requires all writes said hardware attributes table.
In addition, in the foregoing description, the renewal of said mapping relations configuration data is comprised: each data item of said mapping relations configuration data is provided with interpolation, deletion or the modification of state;
Renewal to said binding relationship configuration data comprises: to the setting of the binding state of each data item of said binding relationship configuration data or the setting of separating binding state.
Concrete implementation procedure below in conjunction with concrete accompanying drawing 3 explanation said methods:
As shown in Figure 3; For the PE equipment in the MPLS network; Between the label field MPLS of message Label (a corresponding priority) and priority of messages field (like MPLS EXP, 802.1P CoS or IPDSCP), shine upon, and can be tied on a large amount of port or VLAN.This causes equipment will manage a large amount of mapping relations configuration datas and binding relationship configuration data.These configuration datas will be written to the hardware attributes table so that through hardware message is carried out corresponding mark action and realized message forwarding etc. according to the configuration data in this hardware attributes table.
Among this embodiment, at first provide as giving a definition:
(1) allocation list: allocation list is exactly that the difference Storage Mapping concerns the table of configuration data and the table of storage binding relationship configuration data.
(2) cache table: its content comprises the data in the allocation list, also comprises simultaneously being used for some signs cache table is upgraded.
In the said method, the renewal in the step 22 is exactly to mapping relations configuration data and binding relationship configuration data, alternately upgrades cache table; Periodically write the hardware attributes table to the configuration data in the cache table, in cache table, no longer include variation.
The method of upgrading cache table is alternately to upgrade mapping relations configuration data and binding relationship configuration data, that is to say upgrading the mapping relations configuration data, does not upgrade the binding relationship data this moment; After the mapping relations configuration data upgrades and to finish, write the hardware attributes table after mapping relations configuration data and binding relationship configuration data being combined into the form of hardware attributes table requirement;
After completion writes, begin to upgrade the binding relationship configuration data, do not upgrade the mapping relations configuration data this moment, and after the binding relationship configuration data upgraded and finishes, same and mapping relations configuration data write the hardware attributes table after being combined into the form of hardware attributes table requirement;
Then continue to upgrade the mapping relations configuration data.
So go round and begin again, till mapping configuration data and binding relationship data do not change in cache table.
When the mapping relations configuration data upgraded, wherein data item update comprised: add, revise and deletion, and constant; Only write the hardware attributes table to a data item that changes, can improve like this and write efficient.
In order effectively to reduce processor load; Preset a Preset Time at interval through the mode that adopts timer; The total amount of data that will write the hardware attributes table according to this Preset Time at interval writes several times, promptly periodically writes data to the hardware attributes table, like this can the mitigation system load.
Through adjustment period length, can processor load be reduced to reasonable level.
The method of adjustment has two: the one, adjust the size of the data volume that at every turn writes the hardware attributes table; The 2nd, the fixed time interval of adjustment timer.
Under the situation that does not change fixed time interval, increase the quantity that once writes data, can increase processor load; Do not changing under the situation that once writes data volume, reducing timer and can increase processor load at interval.Can adjust this two factors according to the actual performance of equipment, to reach the purpose that reduces processor load.
Specifically, as shown in Figure 4, the concrete realization flow of said method is following:
1) is used for the cache table initialization that Storage Mapping concerns configuration data and binding relationship configuration data;
2) with mapping relations configuration data in the allocation list and binding relationship configuration data, be mapped to cache table, the state of all data item is all removed;
3) data type to be updated next time being set is: the binding relationship configuration data;
Is 4) the judgment data updating type the binding relationship configuration data? If, then upgrade the binding relationship configuration data, specifically: each data item is provided with state and is set to: bind or separate binding; Otherwise, carry out step 5);
Is 5) the judgment data updating type the mapping relations configuration datas? If, then upgrade the mapping relations configuration data, specifically: each data item is provided with the interpolation, modification, deletion of state or constant etc.; Otherwise fault processing also withdraws from this handling process;
6) judge that if there is the binding relationship configuration data to upgrade, the mapping relations configuration data that the data item that then this binding relationship configuration data is changed does not have to upgrade when upgrading with this binding relationship configuration data writes the hardware attributes table;
7) judge that if there is the mapping relations configuration data to upgrade, the binding relationship configuration data that the data item that then this mapping relations configuration data is changed does not have to upgrade when upgrading with this mapping relations configuration data writes the hardware attributes table;
8) above-mentioned steps 6) or 7) in, write the data volume of hardware attributes table, write several times; Judge whether once write data volume reaches the upper limit that once writes, if then judge whether to have accomplished the writing of data of current data updating type; If do not have, then write down the current data item position of handling and the interrupting information of data type, start timer simultaneously; Withdraw from this ablation process, when waiting timer is overtime, carry out writing next time data procedures according to the interrupting information that writes down;
9) if the data of the current type that Updates Information have all write, then switch data type to be updated, forward above-mentioned steps 4 again to) proceed.
Wherein, above-mentioned steps 8) in, illustrates the ablation process of the data volume that writes the hardware attributes table: write the hardware attributes table if any 1000 data; For the first time write 300, write owing to data are one one, therefore; This is 300 for for the first time writing the upper limit of data volume, if write the 300th, at this moment; The data of the current type that Updates Information have not all write (promptly 1000 data have not all write), at this moment, can interrupt write operation; After waiting for a period of time, write, doing like this is for the mitigation system load next time again; Interrupting information when write down this write data this moment has been write the 300th like record this moment, writes next time and should write since the 301st; After 300 data have been write for the first time, start timer, when the Preset Time of timer setting arrives at interval, according to the interrupting information of record, the ablation process of following secondary data.
Data item 1 and data item 2 and data item 3 when the mapping relations configuration data; After the allocation list renewal; Variation has taken place in discovery, and after having stamped correct updating mark, the remainder data item does not change; Then possibly be tied to this mapping relations configuration data table on 500 VLAN in the binding relationship configuration data table this moment, promptly have 500 items relevant in the binding relationship configuration data table with above-mentioned three mapping relations configuration data items.Each VLAN should refresh oneself this three mapping (enum) data items configuration in the hardware attributes table so.According to the requirement of hardware attributes table, just must be combined into the required form of hardware attributes table to these three mapping (enum) data items with 500 binding relationship configuration data items respectively, be written in the hardware attributes table.Total like this amount of writing is 1500 (being 3x500) bar data.
And in the prior art, after the user has disposed mapping relations configuration data and binding relationship configuration data,, data item in data item in the mapping relations tables of data and the binding relationship tables of data is directly made up the back storage according to the data format of hardware attributes table.Such as, the user has disposed 3 mapping (enum) data items, and the mapping relations configuration data table is tied to 500 VLAN, so just need in internal memory, distribute enough resources of storage 1500 (being 3x500) bar data.If the user increases a mapping (enum) data item again, just need the memory space of 500 data of extra increase.This storage mode will consume significant storage resources.
The present invention adopts a kind of processing mode of optimization to be, user configured mapping relations data and binding relationship data are not storage after directly combining, but separate, stored separately.In aforesaid example, only need to distribute the memory space of a mapping relations configuration data table like this, and the memory space of 500 binding relationship configuration datas, far fewer than 1500 memory spaces that data are required.When mapping relations configuration data or binding relationship configuration data change; When the hardware attributes table is carried out renewal, write the hardware attributes table to each groups of data items merging of the data item of mark variation in the mapping relations data and binding relationship configuration data successively again.Only making up the memory space that needs a data item this moment is used for the data splitting that interim preservation is about to write the hardware attributes table and gets final product.This method is to exchange for the more write time to reduce required memory space.
No matter be without the direct method of optimizing or the method for optimal Storage of the present invention, all facing to the problem that will carry out a large amount of write activities.If one whole writes all data to be written, as above 1500 data in the example may cause one section long period inner treater load very high, can influence other business of using this processor resource like this.Mass data is divided into several small amount of data, a time interval is arranged between every batch data writes, the write time of every batch data is shorter, so just can significantly reduce processor load, reduces processor resource and takies.Like 1500 data in the previous example,, then data can have been write five times if it is a collection of to be divided into 300 data.The time ratio that once writes 1500 data once writes the time of 300 data and will grow.If the time interval between last consignment of data and the next group data is 100 milliseconds, then total write time writes all data than one whole and has Duoed 400 milliseconds.Though the write time has prolonged, in the whole ablation process, the load of processor is in reasonable level always, can not cause processor load to be in a high position for a long time suddenly and to influence other to processor and the higher business of time requirement.But also can adjust the size and the time interval of every batch data amount.If the disposal ability of equipment is lower, can adapt to through the size and the method in the increase time interval that reduces every batch data amount; If the disposal ability of equipment is stronger, then can adapt to through increasing the big or small of every batch data amount and reducing the method in the time interval.
Above-mentioned realization flow combines concrete network, and is as shown in Figure 1, in this MPLS network; Hardware components is made up of five routers, and wherein 2 as private network client CE, and two as edge router PE; One only provides an instance here as the P router, sets up a MPLS network the most basic; On PE equipment, adopt the mode of static configuration to use technology of the present invention to carry out the distribution of VPN routing tag, two ends CE sends out the VPN data message mutually then, and flow can intercommunication.
The first step: configuration MPLS Label is to the mapping of EXP on PE equipment.Because MPLS Label value span huge (can from 1 to 2 20 powers), so the size of the table of mapping relations configuration data is relevant with the resource size and the functional localization of equipment.Such as 1000 label mapping items can be set.The size of the table of the mapping relations configuration data that can dispose does not here receive the restriction of this method, shows that this method possesses good autgmentability.Except the Label mapping table, can also set up the mapping table of MPLS Exp to mutual mapping between 802.1p CoS or the IP DSCP value.No longer enumerate in this example.
Second step: the port arrangement pattern that gets into PE equipment.Adopt auto configuration mode, to bind the table of Label mapping relations configuration data on a plurality of ports of certain speed.Through observing the value of priority of messages field, it is very of short duration on the time interval to find that mapping is configured to configuration take-effective, shows that this method possesses suitable availability.
The 3rd step: through the configuration mode of automation,, existing mapping table is upgraded again with a kind of distribution at random; Such as the data item in some mapping relations configuration data table of deletion; Increase some data item, increase the binding of some ports, delete the binding on some ports.After accomplishing configuration,, find with final mapping allocation list and binding relationship configuration identical through observing the priority of messages field of output.Show that this method can guarantee the consistency and the stability of configuration.
In sum, said method embodiment of the present invention through mapping relations configuration data and binding relationship configuration data are alternately upgraded, can significantly reduce taking of storage resources and processor resource.Not only make the less PE equipment of resource the QoS based on Differ Service (different service) is provided, and be with good expansibility for the MPLS network.Then can easily expand the quantity of mapping configuration capacity and bundling port for resourceful PE equipment.
As shown in Figure 5, embodiments of the invention also provide a kind of device 50 of configuration data management, comprising:
Acquisition module 51 is used for obtaining the binding relationship configuration data that mapping relations configuration data and said mapping relations configuration data between the Multiprotocol Label Switching Protocol MPLS priority of messages field are bound on said MPLS network device port;
Processing module 52; Be used for said mapping relations configuration data and said binding relationship configuration data are replaced renewal; Said mapping relations configuration data each upgrade finish the back or said binding relationship configuration data each upgrade finish after; Said mapping relations configuration data and said binding relationship configuration data are combined into the form of hardware attributes table requirement; Write said hardware attributes table, up to said mapping relations configuration data and said binding relationship configuration data all less than till changing.
Wherein, said processing module 52 specifically is used for: the data total amount that said mapping relations configuration data and said binding relationship configuration data is combined into behind the form of hardware attributes table requirement is divided into two parts data volume at least; After each partial data amount writes said hardware attributes table completion, wait for that a Preset Time at interval, begins to write the next part data volume again; Data total amount behind the form that said mapping relations configuration data and said binding relationship configuration data is combined into the requirement of hardware attributes table all writes said hardware attributes table.Can load by mitigation system like this, improve treatment effeciency.
Wherein, said processing module 52 comprises:
Update module 521 is used for said mapping relations configuration data and said binding relationship configuration data are replaced renewal, up to said mapping relations configuration data and said binding relationship configuration data all less than till changing;
First processing sub 522; Be used for after the each renewal of said mapping relations configuration data finishes; The said binding relationship configuration data of data item that changes in the said mapping relations configuration data after upgrading and not renewal is combined into the form that the hardware attributes table requires, writes said hardware attributes table;
Second processing sub 523; Be used for after the each renewal of said binding relationship configuration data finishes; The said mapping relations configuration data of data item that changes in the said binding relationship configuration data after upgrading and not renewal is combined into the form that the hardware attributes table requires, writes said hardware attributes table.
Certainly; If write the data of hardware attributes table be: when data item that changes in the said mapping relations configuration data after the renewal and the said binding relationship configuration data that does not upgrade are combined into the data behind the form that the hardware attributes table requires, this first processing sub then:
With the data item that changes in the said mapping relations configuration data after upgrading and the said binding relationship configuration data that do not upgrade be combined into behind the form that the hardware attributes table requires the data total amount be divided into two parts data volume at least; After each partial data amount writes said hardware attributes table completion, wait for that a Preset Time at interval, begins to write the next part data volume again; The data total amount that data item that in the said mapping relations configuration data after the said renewal, changes and the said binding relationship configuration data that does not upgrade are combined into behind the form that the hardware attributes table requires all writes said hardware attributes table.
If write the data of hardware attributes table be: when data item that changes in the said binding relationship configuration data after the renewal and the said mapping relations configuration data that does not upgrade are combined into the data behind the form that the hardware attributes table requires, this second processing sub then:
The data total amount that the data item that changes in the said binding relationship configuration data after upgrading and the said mapping relations configuration data that do not upgrade are combined into behind the form that the hardware attributes table requires is divided into two parts data volume at least; After each partial data amount writes said hardware attributes table completion, wait for that a Preset Time at interval, begins to write the next part data volume again; The data total amount that data item that in the said binding relationship configuration data after the said renewal, changes and the said mapping relations configuration data that does not upgrade are combined into behind the form that the hardware attributes table requires all writes said hardware attributes table.
Wherein, said each partial data amount is the data volume of adjustable size joint; Said Preset Time is spaced apart adjustable time interval;
Specifically, the data volume that at every turn writes the hardware attributes table is to regulate according to the current load condition of system, as when system loading is light; Can once write some data volumes, the time interval of wait is short, when system loading is heavier more; Can once write some data volumes less, latency period is longer, like this; The load of mitigation system generally improves the treatment effeciency of system.
This Preset Time can realize that at interval this time block is used for adjustable said Preset Time interval that is provided with through a timing module, and this time block is as being a timer.
In sum, same among the said apparatus embodiment of the present invention through mapping relations configuration data and binding relationship configuration data are alternately upgraded, can significantly reduce taking of storage resources and processor resource.Not only make the less PE equipment of resource the QoS based on Differ Service (different service) is provided, and be with good expansibility for the MPLS network.Then can easily expand the quantity of mapping configuration capacity and bundling port for resourceful PE equipment.
The above is a preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from principle according to the invention; Can also make some improvement and retouching, these improvement and retouching also should be regarded as protection scope of the present invention.

Claims (8)

1. the method for a configuration data management is characterized in that, comprising:
Obtain the binding relationship configuration data that mapping relations configuration data and said mapping relations configuration data between the Multiprotocol Label Switching Protocol MPLS priority of messages field are bound on the device port in said MPLS network;
Said mapping relations configuration data and said binding relationship configuration data are replaced renewal; Said mapping relations configuration data each upgrade finish the back or said binding relationship configuration data each upgrade finish after; Said mapping relations configuration data and said binding relationship configuration data are combined into the form of hardware attributes table requirement; Write said hardware attributes table, up to said mapping relations configuration data and said binding relationship configuration data all less than till changing;
Wherein, said mapping relations configuration data each upgrade finish after, said mapping relations configuration data and said binding relationship configuration data are combined into the form of hardware attributes table requirement, the step that writes said hardware attributes table is specially:
The said binding relationship configuration data of data item that changes in the said mapping relations configuration data after upgrading and not renewal is combined into the form that the hardware attributes table requires, writes said hardware attributes table;
Said binding relationship configuration data each upgrade finish after, said mapping relations configuration data and said binding relationship configuration data are combined into the form of hardware attributes table requirement, the step that writes said hardware attributes table is specially:
The said mapping relations configuration data of data item that changes in the said binding relationship configuration data after upgrading and not renewal is combined into the form that the hardware attributes table requires, writes said hardware attributes table.
2. method according to claim 1 is characterized in that, said mapping relations configuration data and said binding relationship configuration data are combined into the form of hardware attributes table requirement, and the step that writes said hardware attributes table comprises:
The data total amount that said mapping relations configuration data and said binding relationship configuration data is combined into behind the form of hardware attributes table requirement is divided into two parts data volume at least;
After each partial data amount writes said hardware attributes table completion, wait for that a Preset Time at interval, begins to write the next part data volume again;
Data total amount behind the form that said mapping relations configuration data and said binding relationship configuration data is combined into the requirement of hardware attributes table all writes said hardware attributes table.
3. method according to claim 2 is characterized in that, said each partial data amount is the data volume of adjustable size joint; Said Preset Time is spaced apart adjustable time interval.
4. according to each described method of claim 1-3, it is characterized in that, the renewal of said mapping relations configuration data is comprised: each data item of said mapping relations configuration data is provided with interpolation, deletion or the modification of state;
Renewal to said binding relationship configuration data comprises: to the setting of the binding state of each data item of said binding relationship configuration data or the setting of separating binding state.
5. the device of a configuration data management is characterized in that, comprising:
Acquisition module is used for obtaining the binding relationship configuration data that mapping relations configuration data and said mapping relations configuration data between the Multiprotocol Label Switching Protocol MPLS priority of messages field are bound on said MPLS network device port;
Processing module; Be used for said mapping relations configuration data and said binding relationship configuration data are replaced renewal; Said mapping relations configuration data each upgrade finish the back or said binding relationship configuration data each upgrade finish after; Said mapping relations configuration data and said binding relationship configuration data are combined into the form of hardware attributes table requirement, write said hardware attributes table, up to said mapping relations configuration data and said binding relationship configuration data all less than till changing;
Wherein, said processing module comprises:
Update module is used for said mapping relations configuration data and said binding relationship configuration data are replaced renewal, up to said mapping relations configuration data and said binding relationship configuration data all less than till changing;
First processing sub; Be used for after the each renewal of said mapping relations configuration data finishes; The said binding relationship configuration data of data item that changes in the said mapping relations configuration data after upgrading and not renewal is combined into the form that the hardware attributes table requires, writes said hardware attributes table;
Second processing sub; Be used for after the each renewal of said binding relationship configuration data finishes; The said mapping relations configuration data of data item that changes in the said binding relationship configuration data after upgrading and not renewal is combined into the form that the hardware attributes table requires, writes said hardware attributes table.
6. device according to claim 5; It is characterized in that said processing module specifically is used for: the data total amount that said mapping relations configuration data and said binding relationship configuration data is combined into behind the form of hardware attributes table requirement is divided into two parts data volume at least; After each partial data amount writes said hardware attributes table completion, wait for that a Preset Time at interval, begins to write the next part data volume again; Data total amount behind the form that said mapping relations configuration data and said binding relationship configuration data is combined into the requirement of hardware attributes table all writes said hardware attributes table.
7. device according to claim 6 is characterized in that, also comprises:
Time block is used for adjustable said Preset Time interval that is provided with.
8. device according to claim 6 is characterized in that, said each partial data amount is the data volume of adjustable size joint.
CN2009102422967A 2009-12-08 2009-12-08 Method and device for managing configuration data Expired - Fee Related CN101710873B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102422967A CN101710873B (en) 2009-12-08 2009-12-08 Method and device for managing configuration data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102422967A CN101710873B (en) 2009-12-08 2009-12-08 Method and device for managing configuration data

Publications (2)

Publication Number Publication Date
CN101710873A CN101710873A (en) 2010-05-19
CN101710873B true CN101710873B (en) 2012-05-23

Family

ID=42403634

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102422967A Expired - Fee Related CN101710873B (en) 2009-12-08 2009-12-08 Method and device for managing configuration data

Country Status (1)

Country Link
CN (1) CN101710873B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101945046B (en) * 2010-09-15 2016-05-25 中兴通讯股份有限公司 A kind of VPLS network service quality mapping configuration method and system
CN106161245A (en) * 2015-04-17 2016-11-23 中兴通讯股份有限公司 The method and apparatus transmitting message in the Virtual Private Network of agreement label switched
CN110046210B (en) * 2019-03-29 2022-04-05 北京三快在线科技有限公司 Map information updating method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1465014A (en) * 2001-07-20 2003-12-31 诺基亚有限公司 Selective routing of data flows using a tcam

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1465014A (en) * 2001-07-20 2003-12-31 诺基亚有限公司 Selective routing of data flows using a tcam

Also Published As

Publication number Publication date
CN101710873A (en) 2010-05-19

Similar Documents

Publication Publication Date Title
CN104521198B (en) For the system and method for Virtual Ethernet binding
CN100596107C (en) Packet forwarding method and border router of autonomous system
CN101572669A (en) Transmitting method of VPN message as well as allocating and deleting method of the router marks thereof
CN203135921U (en) System for forwarding data package
CN100550841C (en) Autonomous System Boundary Router, AS Boundary Router route issuing method and Autonomous System Boundary Router, AS Boundary Router
CN103416010B (en) The network automatic conversion between agreement
CN100417142C (en) Method for average distributing interface flow at multi network processor engines
CN108989202A (en) The forwarding based on structural path context for dummy node
CN103812930B (en) A kind of method and device of scheduling of resource
CN101820395B (en) Routing information configuration and private network label addition method and device based on MPLS (Multiple Protocol Label Switching)
CN101753362B (en) Configuring method and device of stacking virtual local area network of distributed network device
CN102594660B (en) A kind of virtual interface exchange method, Apparatus and system
CN101692669A (en) Method and device for virtual private network label distribution
CN109905251A (en) Network management, device, electronic equipment and storage medium
CN101552734B (en) Non-automatic multi-outlet routing method
CN108092803A (en) The method that network element level parallelization service function is realized in network function virtualized environment
CN101789949B (en) Method and router equipment for realizing load sharing
CN101237376A (en) A label acquisition method of virtual private network and independent system boundary routing device
CN103001891B (en) Method for promoting integral service quality of local area network
CN108965134B (en) Message forwarding method and device
CN101710873B (en) Method and device for managing configuration data
CN104506459B (en) Data pack transmission method, device and system in wisdom contract network
CN109672621A (en) A kind of method and apparatus selecting transmission path for vpn service
CN107809495A (en) Address management method and device
CN100561978C (en) A kind of strategy route device and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120523

Termination date: 20171208

CF01 Termination of patent right due to non-payment of annual fee