CN100493067C - Method of interface loading backup - Google Patents

Method of interface loading backup Download PDF

Info

Publication number
CN100493067C
CN100493067C CN 03159212 CN03159212A CN100493067C CN 100493067 C CN100493067 C CN 100493067C CN 03159212 CN03159212 CN 03159212 CN 03159212 A CN03159212 A CN 03159212A CN 100493067 C CN100493067 C CN 100493067C
Authority
CN
China
Prior art keywords
interface
backup
flow rate
maximum
primary
Prior art date
Application number
CN 03159212
Other languages
Chinese (zh)
Other versions
CN1592294A (en
Inventor
艳 付
凯 刘
向海州
吴小前
唐正斌
宋义震
瑞 张
李明雷
杰 陈
雷弈康
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN 03159212 priority Critical patent/CN100493067C/en
Publication of CN1592294A publication Critical patent/CN1592294A/en
Application granted granted Critical
Publication of CN100493067C publication Critical patent/CN100493067C/en

Links

Abstract

本发明公开了一种接口负载备份的方法,用于根据主接口的负荷流量控制该主接口具有的多个备份接口,该方法为:当主接口的实际流量大于主接口的最大允许流量从未启动的备份接口中启动优先级最高的备份接口;当主接口的实际流量与备份接口实际总流量之和小于主接口的最大允许流量与备份接口最大总承受流量之和,则关闭优先级最低的备份接口。 The present invention discloses a method for backup interface load, traffic load in accordance with the primary interface for controlling the host interface having a plurality of backup interfaces, the method is: the primary interface when the actual flow is greater than the maximum allowable flow rate of the host interface unactuated starting with the highest priority backup interface interface backup; when the actual flow rate of the primary interface and backup interfaces actual total flow less than the sum of the main interfaces of the maximum allowable maximum total receiving flow of traffic to the backup interface and then closing the lowest priority backup interface .

Description

一种接口负载备份的方法 A method for backup interface load

技术领域 FIELD

本发明涉及通信网络的接口技术,尤其涉及一种接口负载备份的方法。 The present invention relates to interfacing a communication network, particularly to a method for the backup interface load. 背景技术 Background technique

为了提高网络的可靠性,通信设备的操作系统使用备份中心来提供完善的接口备份功能,备份中心支持接口备份负载分担功能。 To improve the reliability of the network, operating system, communication device using the backup center to provide a sound interface backup, the backup center to support the interface backup load sharing.

操作系统支持单接口的负载备份,即主接口只有一个备份接口。 Operating system support load backup single interface, that is the main interface has only one backup interface. 当备份链中主接口的流量达到设定的门限上限时,该主接口的备份接口同主接口一起进 When the flow in the main chain of the backup interface reaches the threshold set by the upper limit threshold, into the primary interface with the backup interface with the host interface

行负载分担;当主备接口的总流量小于主接口上设定的门限下限时关闭备份接n 。 Load balancing mode; when the standby interface is smaller than the total flow on the main interface setting threshold limit closing backup connection n. 采用上述的算法,当存在两个或者两个以上的备4分接口时,当流量增大时启动备份接口,然后流量减小,不能及时关闭多余的备《分接口,造成带宽的浪费。 With the above algorithm, starts the backup interface when the flow rate increases when there are two or more points of the interface apparatus 4, then the flow rate is reduced, the apparatus can not immediately close excess "sub-interfaces, resulting in a waste of bandwidth.

如:将主接口的上限设为80%,下限设为20%,主接口的设计带宽为A,有备份接口l和备份接口2两个备份接口,每个备份接口的设计带宽为0.2A,备份接口1的优先级高于备份接口2: Such as: the upper limit is 80% of the primary interface, the lower limit is 20%, the design bandwidth of the primary interface is A, l backup and backup interfaces two interfaces 2 backup interface design bandwidth of each backup interface is 0.2A, priority backup interface backup interface 1 is higher than 2:

(1) 当主接口的流量超过0.8A时,假设为0.9A,备份接口l被启用,主接口的流量被分担,当主接口的流量再次超过0.8A时,备份接口2也被启动; (1) the primary interface when the flow rate exceeds 0.8A, 0.9A assumed, l backup interface is enabled, the flow rate of the primary interface is shared, the primary interface when the flow rate again exceeds 0.8A, backup interface 2 is also activated;

(2) 随后总流量从0.9A减小到0.3A, 0.3A的流量分别从主接口、备份接口l 和备份接口2传送; (2) followed by the total flow is reduced from 0.9A to 0.3A, the interface 2 are transferred from the main flow of 0.3A, l backup interface and backup interface;

(3) 但是0.3A的流量大于下限0.2A,所以即使主接口和备份接口l能够独自承担0.3A的流量,也不能被关闭备份接口2。 (3) However, the flow rate is greater than the lower limit of 0.3A 0.2A, even if the primary and backup interfaces can be solely responsible for the flow rate l of 0.3A, the backup interface 2 can not be closed.

发明内容本发明的目的在于提供一种接口负载备份的方法,以解决现有技术中主接口流量变化后不能及时关闭多余备份接口的问题。 Object of the present invention is to provide a method for backup interface load, in order to solve the prior art can not immediately close the main flow change the interface redundant backup interface problems.

为了解决上述技术问题,本发明提供下述技术方案: To solve the above technical problem, the present invention provides the following technical solutions:

一种负载备份的方法,用于根据主接口的负荷流量控制该主接口具有的多 A method of loading a backup, for controlling the host interface having a plurality of interfaces according to the traffic load of the main

个备份接口,该方法包括步骤: A 、获取主接口的实际流量; A backup interface, the method comprising the steps of: A, to obtain the actual flow rate of the primary interface;

B、 判断所述实际流量是否大于主接口的最大允许流量;如果大于,则从未启动的备份接口中启动优先级最高的备份接口;如果小于则进行步骤C; B, determining whether the actual flow rate is greater than the maximum allowable flow rate primary interface; if yes, start the backup interface never start the highest priority backup interface; if less than the step C;

C、 计算所述主接口的并且被打开的所有备份接口的实际流量之和,得到备份接口实际总流量,以及计算这些备份接口中除优先级最低的备份接口外所有 C, calculating the primary interface and backup interface are all opened and the actual flow rate to obtain the actual total traffic backup interface, and calculating the backup interfaces outer except the lowest priority of all backup interfaces

备份接口的最大承受流量之和,得到备份接口最大总承受流量; To withstand the maximum flow rate and the backup interface, the interface is backed up to bear the maximum total flow rate;

D、 判断所述主接口的实际流量与所述备份接口实际总流量之和是否小于主接口的最大允许流量与备份接口最大承受流量之和,如果是,则关闭所述优先级最低的备份接口。 D, determining the actual flow rate of said primary interface and backup interface of actual total flow is less than the sum of the maximum allowable primary interface to withstand the maximum flow of traffic and the backup interface, if so, to close the lowest priority backup interface .

其中: among them:

如果步骤D中判断结果为否,则维持所有备^^妾口的当前状态。 If the result of the determination in step D is NO, the current state is maintained all the backup ^^ concubine opening. 备份接口的最大承受流量可通过手动配置。 To withstand the maximum flow rate through the backup interface may be configured manually.

备份接口的最大承受流量在该备份接口参与负载备份后,通过定时进行动态记录和刷新该备份接口的最大流量来动态生成。 To withstand the maximum flow rate when the backup interface is the interface involved in the backup load backup and refresh dynamic recording the maximum flow rate of the backup interface dynamically generated by the timing.

本发明在主接口的实际流量超过最大承受流量时打开备份接口,确保了接口的负载备份;在主接口与备份接口的实际流量减小到一定程度时能够及时关闭多余的备份接口,能够节约带宽,同时也不会因为负载备份引起接口动荡。 The present invention open when the primary interface to the actual flow rate exceeds the maximum receiving traffic backup interface, to ensure that the load of the backup interface; timely closing redundant backup interface when the primary interface with the actual traffic backup interface is reduced to a certain extent, be able to save bandwidth but also because the load will not cause the backup interfaces turmoil.

附图说明 BRIEF DESCRIPTION

图1为接口管理系统的结构示意图; 图2为本发明的流程图。 1 is a schematic configuration interface management system; FIG. 2 is a flowchart of the invention.

4具体实施方式 4 DETAILED DESCRIPTION

参阅图1所示,主接口具有备份接口1和备份接口2 (不限于两个,可以有多个)。 Referring to Figure, the main interface has a backup interface and backup interfaces 2 1 (not limited to two, there may be a plurality). 备份中心通过接口管理模块了解接口的状态,在接口管理的协助下实现接口之间的备份。 Backup center to understand the state of the interface by interface management module, the interface between the backup with the assistance of interface management. 主接口和备份接口分别将自己的接口状态变化情况通过接口管理告诉备份中心,备份中心参照原有配置,依据主接口的状态、备份接口的状态、备份接口的优先级和主备接口的流量,确定是否启用备份接口和启用哪一个备份接口,从而实现接口备份。 Primary and backup interfaces respectively own interface status changes through the interface management told backup center, backup center reference to the original configuration, according to the state of the primary interface, the backup interface status, traffic prioritization and standby interface backup interface, determine whether to enable the backup interface and backup interfaces which enable to achieve the interface backup. 当备份接口不被启用时,备份接口被关闭, 当备份接口被启用时,备份接口被打开。 When the backup interface is not enabled, the backup interface is shut down, when the backup interface is enabled, the backup interface is opened.

备份接口被打开后,由于种种原因,可能实际流量会为O,称这类接口为虚打开接口,称所有流量不为O的打开接口为实打开4^口。 After the backup interface is opened, for various reasons, the actual flow rate may be as O, said this type of interface is a virtual open interfaces, said all traffic is not open O interface 4 ^ real open mouth.

在主接口上设定流量上限和下限,如果上下限以百分比的形式出现,则主接口的最大承受(允许)流量为"主接口带宽*上限",主接口的最小承受(允许)流量为"主接口带宽*下限"。 Setting upper and lower limits on the flow rate of the primary interface, if the upper limit appears as a percentage, the primary maximum receiving interface (allowed) flow rate "* main interface bandwidth limit", the minimum receiving primary interface (allowed) flow " * main interface bandwidth limit. "

每个备份接口也有最大允许流量,该最大允许流量可以手工配置,也可以在备份接口参与负载备份后,通过定时、动态记录和刷新该接口的最大流量来动态生成。 Each backup interface also has the maximum allowable flow rate, the maximum allowable flow rate can be configured manually after the backup interface may be involved in loading the backup, by timing and refresh dynamic record maximum flow rate of the interface to dynamically generate. 动态生成是在当没有指定备份接口的最大允许流量时,备份中心从接口管理模块获取这个备份接口的当前流量,并且动态记录通过该备份接口的最大流量,即如果当前流量如果大于曾经记录的最大流量,就把需要纪录的最大流量值更新为当前流量值,否则保持不变。 Dynamically generated is when not specified backup interface when the maximum permissible flow, backup center acquires the current traffic backup interface from the interface management module, and the dynamic records the maximum flow through the backup interface, i.e., if the current flow if more than once recorded the maximum traffic, put the need to record the maximum flow rate value is updated to the current flow rate value, otherwise remains unchanged.

本发明在主接口的实际流量大于主接口的最大承受流量时,在未被打开的备份接口中打开一个优先级最高的备份接口,并且在主接口和备份接口的实际 When the present invention is greater than the actual flow rate of the primary interface to the primary interface to withstand the maximum flow rate, open a backup interface with the highest priority in the backup interface is not opened, and the actual primary and backup interfaces of

流量减小到一定程度时及时关闭多余的备份接口。 Close the redundant backup interface when the flow rate is reduced to a certain extent. 参阅图2所示,其具体处理过程如下: Refer to FIG. 2, the specific process is as follows:

步骤10: 备份中心通过接口管理模块获取主接口的实际流量。 Step 10: Obtaining primary backup center actual flow through the interface management module interface. 步骤20:判断所述实际流量是否大于主接口的最大允许流量;如果大于, 则从未启动的备份接口中启动优先级最高的备份接口;如果小子则进行步骤30; 步骤30:备份中心计算属于主接口并且被打开的所有备份接口的实际流量之和,得到备份接口实际总流量,以及计算这些备份接口中除优先级最低的备 Step 20: determining the actual flow rate is greater than the maximum allowable flow rate primary interface; if yes, start the backup interface never start the highest priority backup interface; if kid proceeds to step 30; step 30: the backup central computer belonging to and the host interface is opened and the actual flow rate of all backup interfaces, backup interface to obtain the actual total flow rate, and calculating the backup interfaces except the lowest priority Preparation

份接口外所有备份接口的最大承受流量之和,得到备份接口最大总承受流量; Outer parts of the interface to withstand the maximum flow rate of the sum of all backup interfaces, backup interface give always bear the maximum flow rate;

步骤40:判断所述主接口的实际流量与所述备份接口实际总流量之和是否小于主接口的最大允许流量与备份接口最大承受流量之和,如果是,则关闭所述优先级最低的备份接口(步骤401);如果不是,则维持当前的备份接口状态(步骤402),以避免因为负载备份引起接口动荡。 Step 40: determining the actual flow rate of the primary interface with the maximum allowed traffic backup and backup interfaces of the interface to withstand the maximum flow and the actual total flow is less than the sum of the primary interface and, if so, to close the lowest priority backup interface (step 401); if not, it maintains the current state of the backup interface (step 402), in order to avoid the load caused by the backup interfaces turbulence. 例如: E.g:

参阅图l,将主接口的上限设为80%,下限设为20%,主接口的设计带宽为A, 备份接口1和备份接口2的带宽(可允许的最大承受流量不会超过带宽)为0.2A, 备份接口1的优先级高于备份接口2 。 Referring to Figure L, the upper limit is 80% of the primary interface, the lower limit is 20%, the design bandwidth of the primary interface is A, the backup interface bandwidth (to withstand the maximum allowable flow rate does not exceed the bandwidth) and a backup interface 2 is priority 0.2A, a backup interface is higher than the backup interface 2.

当主接口的流量超过0.8A时,假设为0.9A,备份接口l被启用,主接口的流量被分担,当主接口的流量再次超过0.8A时,备份接口2也被启动。 The primary interface when the flow rate exceeds 0.8A, 0.9A assumed, l backup interface is enabled, the flow rate of the primary interface is shared, the interface when the main flow again exceeds 0.8A, backup interface 2 is also started.

随后总流量从0.9A减小到0.3A, 0.3A的流量分别从主接口、备份接口l和备份接口2传送。 Then the total flow is reduced from 0.9A to 0.3A, 0.3A flows are transmitted from the primary interface and backup interface backup interface 2 l. 如,此时三个接口的流量为0.1A,则主接口的流量小于其下限流量0.2A,而且总流量0.3A也小于主接口的上限流量0.9A与备份接口l的最大承受流量0.2A之和UA,所以备份接口2被关闭。 The maximum tolerance flow, the flow rate at this time is 0.1A three interfaces, the main flow is less than the lower limit flow interfaces 0.2A, 0.3A and the total flow rate is less than the upper limit of the flow rate of the primary interface and backup interface 0.9A 0.2A to l, and UA, so the backup interface 2 is closed. 而现有技术中在此情况下是不会关闭备份接口的。 Whereas the prior art in this case is not close backup interface.

Claims (4)

1、一种接口负载备份的方法,用于根据主接口的负荷流量控制该主接口具有的多个备份接口,其特征在于该方法包括步骤:A、获取主接口的实际流量;B、判断所述实际流量是否大于主接口的最大允许流量;如果大于,则从未启动的备份接口中启动优先级最高的备份接口;如果小于则进行步骤C;C、计算所述主接口的并且被打开的所有备份接口的实际流量之和,得到备份接口的实际总流量,以及计算这些备份接口中除优先级最低的备份接口外的所有备份接口的最大承受流量之和,得到备份接口最大总承受流量;D、判断所述主接口的实际流量与所述备份接口实际总流量之和是否小于主接口的最大允许流量与备份接口最大总承受流量之和,如果是,则关闭所述优先级最低的备份接口。 1, the backup interface load A method for controlling traffic according to the load of the main interface to the primary interface having a plurality of backup interfaces, characterized in that the method comprises the steps: A, to obtain the actual flow rate of the primary interface; B, determining the whether said actual flow rate is greater than the maximum allowable flow rate primary interface; if yes, start the backup interface never start the highest priority backup interface; if the step is less than C; C, and calculating the primary interface is opened the actual flow of all backup interfaces and to obtain the actual total traffic backup interface, and calculating the backup interface to all backup interfaces except the lowest priority backup interface maximum sustained flow sum to obtain backup interface maximum total receiving flow; D, determining the actual flow rate of said primary interface and backup interface of actual total flow is less than the sum of the primary interface to withstand the maximum allowable maximum total flow rate and the flow rate and the backup interface, if so, the backup off the lowest priority interface.
2、 如权利要求l所述的方法,其特征在于,如果步骤D中判断结果为否, 则维持所有备份接口的当前状态。 2. The method of claim l, wherein, if the result of the determination in step D is NO, to maintain the current status of all backup interfaces.
3、 如权利要求1或2所述的方法,其特征在于,备份接口的最大承受流量通过手动配置。 3. A method as claimed in claim 1 or 2, characterized in that, to withstand the maximum flow rate by manual backup interface configuration.
4、如权利要求1或2所述的方法,其特征在于,备份接口的最大承受流量在该备份接口参与负载备份后,通过定时进行动态记录和刷新该备份接口的最大流量来动态生成。 4. The method of claim 1 or claim 2, characterized in that, to withstand the maximum flow rate when the backup interface is the interface involved in the backup load backup and refresh dynamic recording the maximum flow rate of the backup interface dynamically generated by the timing.
CN 03159212 2003-09-02 2003-09-02 Method of interface loading backup CN100493067C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 03159212 CN100493067C (en) 2003-09-02 2003-09-02 Method of interface loading backup

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 03159212 CN100493067C (en) 2003-09-02 2003-09-02 Method of interface loading backup

Publications (2)

Publication Number Publication Date
CN1592294A CN1592294A (en) 2005-03-09
CN100493067C true CN100493067C (en) 2009-05-27

Family

ID=34598605

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 03159212 CN100493067C (en) 2003-09-02 2003-09-02 Method of interface loading backup

Country Status (1)

Country Link
CN (1) CN100493067C (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100401689C (en) 2005-10-24 2008-07-09 华为技术有限公司 Network resource configuration method
CN101184049B (en) 2007-12-12 2010-06-16 中兴通讯股份有限公司 Dynamic load sharing method and system
CN101179510B (en) 2007-12-13 2011-11-23 中兴通讯股份有限公司 Main/slave link load sharing method and apparatus for virtual switch system
CN104684111A (en) * 2013-12-02 2015-06-03 国家电网公司 The wireless communication terminal apparatus and radio communication
CN104503768B (en) * 2015-01-04 2018-05-04 华为技术有限公司 An application programming interface calls the method and apparatus

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5996019A (en) 1995-07-19 1999-11-30 Fujitsu Network Communications, Inc. Network link access scheduling using a plurality of prioritized lists containing queue identifiers
CN1392709A (en) 2001-06-18 2003-01-22 华为技术有限公司 Radio three layer tunnel spare and burden sharing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5996019A (en) 1995-07-19 1999-11-30 Fujitsu Network Communications, Inc. Network link access scheduling using a plurality of prioritized lists containing queue identifiers
US6115748A (en) 1995-07-19 2000-09-05 Fujitsu Network Communications, Inc. Prioritized access to shared buffers
CN1392709A (en) 2001-06-18 2003-01-22 华为技术有限公司 Radio three layer tunnel spare and burden sharing method

Also Published As

Publication number Publication date
CN1592294A (en) 2005-03-09

Similar Documents

Publication Publication Date Title
JP3768993B2 (en) Dram power management
US6243829B1 (en) Memory controller supporting redundant synchronous memories
CN100538565C (en) Method and apparatus for a redundancy approach in a processor based controller design
US20030212854A1 (en) Computer system
US7149859B2 (en) Method and apparatus for data migration with the efficient use of old assets
JP4404887B2 (en) Dynamic lane management system and method
US8438360B2 (en) Distributed storage through a volume device architecture
JP4422017B2 (en) Method for providing separative power management state and device
CN102843239B (en) Use active / idle handoff Energy Efficient Ethernet
US20060031600A1 (en) Method of processing a context for execution
US7320058B2 (en) Apparatus and method for online data migration with remote copy
US6675253B1 (en) Dynamic routing of data across multiple data paths from a source controller to a destination controller
US20050246563A1 (en) Task-oriented processing as an auxiliary to primary computing environments
US8868948B2 (en) Method and system for coordinating link power management with platform power management
EP1061727A2 (en) Apparatus and method for preventing screen savers from shutting down tol clients
CN1584789B (en) Method, apparatus and system for operating data processing devices
CN102105867B (en) Method and system for maintaining data integrity in data servers across data centers
CN1237455C (en) Data transmission controlling system, electronic apparatus, and data transmission controlling method
US7185229B2 (en) Method and system for performing remote maintenance operations on a battery powered computer
US20080212474A1 (en) Method for synchronous traffic shaping
US7526592B2 (en) Interrupt control system and storage control system using the same
JP2002512458A (en) Power reduction algorithm for Ethernet transceiver
JP2002527840A (en) Fault-tolerant bus for a cluster system
CN101060391A (en) Master and spare server switching method and system and master server and spare server
US20060069870A1 (en) Method and system for improved reliability in storage devices

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model
EXPY Termination of patent right or utility model