CN102638376A - Network resource upgrading method - Google Patents

Network resource upgrading method Download PDF

Info

Publication number
CN102638376A
CN102638376A CN2012101514446A CN201210151444A CN102638376A CN 102638376 A CN102638376 A CN 102638376A CN 2012101514446 A CN2012101514446 A CN 2012101514446A CN 201210151444 A CN201210151444 A CN 201210151444A CN 102638376 A CN102638376 A CN 102638376A
Authority
CN
China
Prior art keywords
interface
resource
major key
professional major
professional
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012101514446A
Other languages
Chinese (zh)
Other versions
CN102638376B (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.)
BEIJING ENOVELL TECHNOLOGY Co Ltd
Original Assignee
BEIJING ENOVELL 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 BEIJING ENOVELL TECHNOLOGY Co Ltd filed Critical BEIJING ENOVELL TECHNOLOGY Co Ltd
Priority to CN201210151444.6A priority Critical patent/CN102638376B/en
Publication of CN102638376A publication Critical patent/CN102638376A/en
Application granted granted Critical
Publication of CN102638376B publication Critical patent/CN102638376B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a network resource upgrading method, which comprises the steps of: establishing a model, wherein the model has the following attributes: id: an identification of a resource object, a strong business main key, a weak business main key, a resource life cycle and an ageing value; definition interfaces: an updating interface, a deletion interface and a newly-added interface; and a selection policy: the selection policy is that the corresponding interface is decided to be selected for operation through comparing conditions of the strong business main key and the weal business main key of the model of the resource. The model is also provided with an ageing interface and a pre-deletion interface. According to the invention, when various kinds of resources change in various scenes incapable of enumerating time change, how to process is simplified into a simple operation of substituting the known quantity into a formula. By only realizing the model, the interfaces and the policy, various conditions can be adapted, wherein once the model and the interfaces are determined to have a little change, and the policy can be regulated according to actual conditions to adapt to continuous changes in future.

Description

A kind of Internet resources update method
Technical field
The present invention relates to a kind of management of Internet resources.Particularly relate to a kind of Internet resources update method.
Background technology
For the webmaster product, resource updates is the problem of a headache all the time, and the problem of most critical is how to judge the resource (equipment, integrated circuit board etc.) that newly the collects relation with existing resource, especially under the situation that both occur conflicting.Under different application scenes, often demonstrate different suitable conclusions.For example:
A) newly added equipment is used for replacing faulty equipment and newly added equipment and is used for the differentiation of dilatation network;
B) integrated circuit board replacement, integrated circuit board upgrading, the differentiation that integrated circuit board reuses etc.;
C) also have rehabilitative measures behind the resource updates in addition, for example after the equipment replacement, hope the performance data before and after the contrast replacement, perhaps check the historical flow information of the equipment of being deleted etc.
Traditional solution will be full of various condition judgment etc. according to different scenes, and these often bring the confusion of code, coupling; Redundant; And the variation of scene is to be difficult to prevision fully, causes the frequent modification relevant portion code of needs, and modification has all brought risk at every turn.
Summary of the invention
Technical problem to be solved by this invention is, as long as a kind of resource model that defines is provided, and interface and strategy, a kind of Internet resources update method that just can realize.
The technical scheme that the present invention adopted is: a kind of Internet resources update method comprises the steps:
1) set up model, described model has following attribute:
Id: the sign of resource object;
Strong professional major key: the set of one or several attribute that the physics of ability recognition resource exists;
A little less than professional major key: the set of one or several attribute that business that can recognition resource exists;
The resource life cycle: with date of birth and date of death two fields expression, date of death is empty, is the resource of current existence;
Aging value: aging value takes the form of counter, in interface, is modified, and thinks that resource loses after less than 0;
2) defining interface comprises like lower interface:
(1) updating interface is upgraded other non-professional major key information, revises aging value;
(2) replacement interface;
(3) delete interface: former resource finishes life cycle, cascade recursive call according to circumstances;
(4) newly-increased interface: the sign of the resource object that the new resources use is new begins the life cycle of oneself, initialization aging value;
3) selection strategy, described strategy are the situation through the strong and weak professional major key of the model of contrast resource, and the corresponding interface of decision selection is grasped and done.
Resource is a kind of continuity state, and former resource finishes life cycle, revises aging value, and new resources use the sign of identical resource object, begins the life cycle of oneself.
Also be provided with optional interface, comprise:
Aging interface: when the modification complex algorithm of resource aging value, select to embody separately with the form of interface, default algorithm is: newly-increased settings is 5; Upgrading or replacing settings is 8, and the discovery value of each failure reduces 2, can distinguish newly-increased like this; Stable, possibly lose, lose various situation.
Preparatory delete interface: the special shape that is aging interface.
The described selection strategy of step 3 comprises the steps:
(1) scanning resource, if do not have to find that the resource that need upgrade is arranged, selection is aging, the deletion resource, if discovery has the resource that needs renewal then gets into next step:
(2) the strong professional major key of the resource model that scans and weak professional major key are compared with the professional major key of existing resource respectively, select corresponding interface to grasp according to the situation of contrast and do:
When strong professional major key all has the professional major key identical with existing resource with weak professional major key, select first kind interface;
When strong professional major key has the professional major key identical with existing resource, and during the identical professional major key of weak professional major key, select second class interface with existing resource;
When the strong professional major key professional major key identical with existing resource not, and weak professional major key is selected the 3rd class interface when the professional major key identical with existing resource arranged;
When strong professional major key and weak professional major key during, select the 4th class interface all less than the professional major key identical with existing resource;
The type of described first kind interface, second class interface, the 3rd class interface and the 4th class interface is selected from updating interface, replacement interface, delete interface and newly-increased interface respectively.
When the strong professional major key of the resource model that scans and weak professional major key and existing resource are compared, be more weak professional major key earlier, more intense more professional major key.
A kind of Internet resources update method of the present invention can't be enumerated various resources when in the scene that constantly changes change taking place various, should how to handle to be reduced to and bring known quantity into formula equally simple behaviour and do.Only need implementation model, interface, and strategy just can adapt to various situation, and wherein in a single day model establishes seldom change with interface, and strategy can be adjusted according to actual conditions, to adapt to following continuous variation.
Description of drawings
Fig. 1 is the sketch map of policy selection template among the present invention;
Fig. 2 is the sketch map of policy selection template embodiment among the present invention.
Embodiment
Below in conjunction with embodiment and accompanying drawing a kind of Internet resources update method of the present invention is made detailed description.
Resource updates at first will define resource and how judge uniqueness.
Very important notion during our first definition will be invented: strong/weak professional major key.
We are called professional major key to the property set that is used for judging the resource uniqueness (containing one or more attributes).
The uniqueness of resource is divided into two kinds again, and a kind of is that the real physical that is directed against resource exists, and another kind is the business existence to resource.For example equipment or integrated circuit board damage the back and change, and physics exists and changes, but actual or original function can think that professional the existence changes.
The set of one or several attribute that there am physics that can recognition resource in we is called strong professional major key; The set of one or several attribute that the business of ability recognition resource exists, professional major key a little less than being called.
A kind of Internet resources update method of the present invention comprises the steps:
1) set up model, described model has following attribute:
Id: the sign of resource object;
Strong professional major key: the set of one or several attribute that the physics of ability recognition resource exists;
A little less than professional major key: the set of one or several attribute that business that can recognition resource exists;
The resource life cycle: can use two the fields expression of date of birth and date of death, date of death is empty, is the resource of current existence;
Aging value: aging value takes the form of counter, in interface, is modified, and thinks that resource loses after less than 0;
2) defining interface defines following several kinds of operation retaining mouths, and all operations all is summed up as these several kinds at last.Product should all be realized this several kinds of interface operable to different resource.Said interface comprises like lower interface:
(1) updating interface is upgraded other non-professional major key information, and aging value is revised in for example device name change etc.;
(2) replacement interface, in the replacement interface, resource is a kind of continuity state; Resource in the past finishes life cycle, revises aging value (containing child resource), and new resources use the sign of identical resource object; Begin the life cycle of oneself; Replacement is newly-increased more very similar with deletion earlier, but also has any different, and whether uses the sign of original resource object when maximum difference is newly-increased.
(3) delete interface: former resource finishes life cycle, the recursive call of possibility cascade according to circumstances;
(4) newly-increased interface: the sign of the resource object that the new resources use is new begins the life cycle of oneself, initialization aging value; Also be provided with optional interface, comprise:
Aging interface: if when the modification complex algorithm of resource aging value, also can select to embody separately with the form of interface, default algorithm is: newly-increased settings is 5; Upgrading or replacing settings is 8; The discovery value of each failure reduces 2, can distinguish newly-increased, stable like this; Possibly lose, lose various situation.
Preparatory delete interface: be the special shape of aging interface, aging value is changed to critical value (as: 0), according to circumstances maybe the cascade recursive call.
3) selection strategy, described strategy are the situation through the strong and weak professional major key of the model of contrast resource, and the corresponding interface of decision selection is grasped and done.
Described selection strategy is as shown in Figure 1 to be comprised the steps:
(1) scanning resource, if do not have to find that the resource that need upgrade is arranged, selection is aging, the deletion resource, if discovery has the resource that needs renewal then gets into next step:
(2) the strong professional major key of the resource model that scans and weak professional major key are compared with the professional major key of existing resource respectively, more weak professional major key earlier, more intense more professional major key, select corresponding interface to grasp according to the situation of contrast and do:
When strong professional major key all has the professional major key identical with existing resource with weak professional major key, select first kind interface;
When strong professional major key has the professional major key identical with existing resource, and during the identical professional major key of weak professional major key, select second class interface with existing resource;
When the strong professional major key professional major key identical with existing resource not, and weak professional major key is selected the 3rd class interface when the professional major key identical with existing resource arranged;
When strong professional major key and weak professional major key during, select the 4th class interface all less than the professional major key identical with existing resource;
The type of described first kind interface, second class interface, the 3rd class interface and the 4th class interface is selected from updating interface, replacement interface, delete interface and newly-increased interface respectively.
Do below in conjunction with example and to give explanation:
Certain network environment, by the router of different vendor, switch, numerical digit user line access multiplexing equipment (DSLAM), passive optical-fiber network equipment such as (PON) is formed.Each equipment all contains child resources such as integrated circuit board, port.
The first step: professional major key such as table one in the definition model:
Table one
When selecting professional major key, priority can be arranged, like table one, i.e. expression: if equipment has sequence number, then sequence number is as strong professional major key, otherwise the managing I P of the equipment of use and two attributes of model are as strong professional major key.Correspond to database behaviour do be exactly an ifnull (A, ifnull (B ...)) function.
Second step: the interface that definition is used.
Here selection: upgrade, replacement, deletion, newly-increased, wear out and wait five interfaces.
The 3rd step, selection strategy, as shown in Figure 2.
This time, scan resource at every turn after, can select different interfaces to grasp and do through bringing model into strategy.
For example, the user has gone up a new router, 7609 of Cisco.Sequence number XXXXXX123 is used for newly-increased external reference outlet A, and is provided with new managing I P.
At this time, this resource and existing resource are done contrast, and strong professional major key is all different with weak professional major key, and it is newly-increased that the interface behaviour shown in the corresponding diagram 2 does.
The user has revised the attributes such as title of equipment for the ease of management.
At this moment, this resource and existing resource are done contrast, and strong professional major key is all identical with weak professional major key, and it is to upgrade that the interface behaviour shown in the corresponding diagram 2 does.
Afterwards, the user thought that this equipment was little in the effect of this exit performance, did not make full use of, and had just changed to an outlet B that load is bigger to this equipment, had revised relevant routing configuration, and had changed management address.
At this moment, this resource and the contrast of existing resource, weak professional major key does not have identical; Strong professional major key has identical; It is that deletion & is newly-increased that interface behaviour shown in the corresponding diagram 2 does, and 7609 resources that promptly original being used to exports A finish life cycle, and produce 7609 resources that new being used to exports B.
At this moment spent several years, customer service has developed, and existing equipment can't satisfy the demands, and has gone up a new router, 12406 of Cisco.Sequence number XXXXXX456,7609 before being used to replace.At this time in 7609 the configuration replication to 12406, and continue to use identical management address.
At this moment, this resource and the contrast of existing resource, strong professional major key does not have identical, but weak professional major key is identical, and it is replacement that the interface behaviour shown in the at this time corresponding corresponding diagram 2 does.
Spent several years, the user adjusts network, and 7609 former routers are thoroughly rolled off the production line, and does not re-use.
At this moment, each scan period, this is 7609 all undiscovered; Corresponding aging interface, after several scan periods, aging value is less than 0; At this moment the corresponding delete interface of resource, simultaneously except deleting 7609 these router resources, its integrated circuit board; Resources such as port also can be called in the process of delete interface at cascade, by deletion in the lump.
No matter what scene only need be brought into this binary information of the professional major key of power in the strategy, the interface that just can obtain doing is grasped and is done, and need not judge that various scenes judge that the behaviour that will do.
When using a kind of Internet resources update method of the present invention, can also model according to circumstances be simplified:
1, when sweep equipment, can not write down date of death, but direct deleted data just can not be seen historical resource like this.
2, can there be resource id; And a little less than using professional major key (resource id is not necessarily major key, because resource id is after the equipment replacement takes place, the id of new and old resource is identical; If new used equipment is put in the table simultaneously; Then can not be as major key), then id is different for professional major key difference a little less than just forcing like this, and artificial correction can't be provided.
3, can not have strong professional major key, just make strong professional major key=weak professional major key, correspond to like this and just have only two interfaces that upgrade and increase newly on this diagonal to add an independent aging deletion among the figure.

Claims (5)

1. an Internet resources update method is characterized in that, comprises the steps:
1) set up model, described model has following attribute:
Id: the sign of resource object;
Strong professional major key: the set of one or several attribute that the physics of ability recognition resource exists;
A little less than professional major key: the set of one or several attribute that business that can recognition resource exists;
The resource life cycle: with date of birth and date of death two fields expression, date of death is empty, is the resource of current existence;
Aging value: aging value takes the form of counter, in interface, is modified, and thinks that resource loses after less than 0;
2) defining interface comprises like lower interface:
(1) updating interface is upgraded other non-professional major key information, revises aging value;
(2) replacement interface;
(3) delete interface: former resource finishes life cycle, cascade recursive call according to circumstances;
(4) newly-increased interface: the sign of the resource object that the new resources use is new begins the life cycle of oneself, initialization aging value;
3) selection strategy, described strategy are the situation through the strong and weak professional major key of the model of contrast resource, and the corresponding interface of decision selection is grasped and done.
2. a kind of Internet resources update method according to claim 1 is characterized in that, in the replacement interface; Resource is a kind of continuity state, and former resource finishes life cycle, revises aging value; New resources use the sign of identical resource object, begin the life cycle of oneself.
3. a kind of Internet resources update method according to claim 1 is characterized in that, also is provided with optional interface, comprising:
Aging interface: when the modification complex algorithm of resource aging value, select to embody separately with the form of interface, default algorithm is: newly-increased settings is 5; Upgrading or replacing settings is 8, and the discovery value of each failure reduces 2, can distinguish newly-increased like this; Stable, possibly lose, lose various situation.
Preparatory delete interface: the special shape that is aging interface.
4. a kind of Internet resources update method according to claim 1 is characterized in that the described selection strategy of step 3 comprises the steps:
(1) scanning resource, if do not have to find that the resource that need upgrade is arranged, selection is aging, the deletion resource, if discovery has the resource that needs renewal then gets into next step:
(2) the strong professional major key of the resource model that scans and weak professional major key are compared with the professional major key of existing resource respectively, select corresponding interface to grasp according to the situation of contrast and do:
When strong professional major key all has the professional major key identical with existing resource with weak professional major key, select first kind interface;
When strong professional major key has the professional major key identical with existing resource, and during the identical professional major key of weak professional major key, select second class interface with existing resource;
When the strong professional major key professional major key identical with existing resource not, and weak professional major key is selected the 3rd class interface when the professional major key identical with existing resource arranged;
When strong professional major key and weak professional major key during, select the 4th class interface all less than the professional major key identical with existing resource;
The type of described first kind interface, second class interface, the 3rd class interface and the 4th class interface is selected from updating interface, replacement interface, delete interface and newly-increased interface respectively.
5. a kind of Internet resources update method according to claim 4 is characterized in that, when the strong professional major key of the resource model that scans and weak professional major key and existing resource are compared, is more weak professional major key earlier, more intense more professional major key.
CN201210151444.6A 2012-05-15 2012-05-15 Network resource upgrading method Active CN102638376B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210151444.6A CN102638376B (en) 2012-05-15 2012-05-15 Network resource upgrading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210151444.6A CN102638376B (en) 2012-05-15 2012-05-15 Network resource upgrading method

Publications (2)

Publication Number Publication Date
CN102638376A true CN102638376A (en) 2012-08-15
CN102638376B CN102638376B (en) 2014-08-13

Family

ID=46622629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210151444.6A Active CN102638376B (en) 2012-05-15 2012-05-15 Network resource upgrading method

Country Status (1)

Country Link
CN (1) CN102638376B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657249A (en) * 2016-10-25 2017-05-10 杭州迪普科技股份有限公司 Method and device for updating cache resources
CN111147316A (en) * 2020-01-07 2020-05-12 山东比特智能科技股份有限公司 Guest control system supporting free network and free network method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1835448A (en) * 2005-03-18 2006-09-20 华为技术有限公司 Global management method of template data in network management system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1835448A (en) * 2005-03-18 2006-09-20 华为技术有限公司 Global management method of template data in network management system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
潘家飞等: ""一种适用于关键性业务系统的信息采集和处理模型"", 《计算机应用研究》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657249A (en) * 2016-10-25 2017-05-10 杭州迪普科技股份有限公司 Method and device for updating cache resources
CN106657249B (en) * 2016-10-25 2019-07-09 杭州迪普科技股份有限公司 Update the method and device of cache resources
CN111147316A (en) * 2020-01-07 2020-05-12 山东比特智能科技股份有限公司 Guest control system supporting free network and free network method
CN111147316B (en) * 2020-01-07 2023-10-24 山东比特智能科技股份有限公司 Customer control system supporting free networking and free networking method

Also Published As

Publication number Publication date
CN102638376B (en) 2014-08-13

Similar Documents

Publication Publication Date Title
CN105260203B (en) A kind of Hadoop deployment and collocation method based on model
CN104734915B (en) A kind of concurrent dynamic emulation method of Multi net voting of compound multi-process multithreading
CN101730099B (en) Terminal management method based on authority control and device
CN101325597B (en) Method, apparatus and system for processing data
CN108021618A (en) A kind of data query method and system
US20070220451A1 (en) Method for modeling and documenting a network
CN103176892B (en) A kind of page monitoring method and system
CN1980144A (en) Method for quickly configurating large data-quantity network management data
CN104317963B (en) A kind of data processing method and device
CN101442591A (en) Method and system for self-checking and updating performance business model discrepancy
CN102025548B (en) Multi-version smooth upgrading method and device for user-defined performance indexes
CN109614190A (en) Resources configuration management method and platform
CN105573774A (en) Application parameter managing and configuring method
CN102761443A (en) Collocation method and device of command lines
CN109101590A (en) Configuration item CI topological relation method for visualizing based on CMDB
CN102638376B (en) Network resource upgrading method
CN104901998A (en) Integrated cloud service monitoring method
CN102651696B (en) The method and system that a kind of network management system interface coexisted to multi version is managed
CN106130799B (en) Family gateway equipment and its switching method with multi-operator handoff functionality
CN103258255A (en) Knowledge discovery method applicable to power grid management system
CN108536834A (en) Update the method, apparatus and terminal of list
CN110011971B (en) Manual configuration method of network security policy
CN104199741A (en) Virtual data management method for cloud computing environment
US20130103724A1 (en) Network and method for managing models
CN104426695A (en) Method and system for heterogeneous equipment account management

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