WO2016090768A1 - Port attribute inheritance method and device - Google Patents

Port attribute inheritance method and device Download PDF

Info

Publication number
WO2016090768A1
WO2016090768A1 PCT/CN2015/075300 CN2015075300W WO2016090768A1 WO 2016090768 A1 WO2016090768 A1 WO 2016090768A1 CN 2015075300 W CN2015075300 W CN 2015075300W WO 2016090768 A1 WO2016090768 A1 WO 2016090768A1
Authority
WO
WIPO (PCT)
Prior art keywords
board
port
type
attribute
port attribute
Prior art date
Application number
PCT/CN2015/075300
Other languages
French (fr)
Chinese (zh)
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 中兴通讯股份有限公司
Publication of WO2016090768A1 publication Critical patent/WO2016090768A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks

Abstract

Provided are a port attribute inheritance method and device, the method comprising: when a first single board is changed to a second single board within a communication apparatus, detecting that a type of the second single board is different from that of the first single board; determining whether the second single board port type is the same as the first single board port type; and when a determination result indicates a similarity, a port attribute of the second single board is configured as that of the first single board. The present invention addresses the problem in the related art that an original configuration cannot be inherited when switching the single board, thus the original configuration being inherited after the single board is switched.

Description

端口属性继承方法及装置Port attribute inheriting method and device 技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种端口属性继承方法及装置。The present invention relates to the field of communications, and in particular to a port attribute inheritance method and apparatus.
背景技术Background technique
在目前的数据通信设备中,一般情况下配置数据存盘时,端口属性是保存的,然后再次加载的时候把结果重新读出来,如果是配置存盘文件有修改或者系统硬件有变化,那么资源检查的结果有可能是不对的,需要重新计算,直接使用以前的资源检查结果将可能影响现有版本的正常运行,后续的接口上报和配置命令流程会遇到资源检查错误。In the current data communication device, when the configuration data is saved in the normal state, the port attribute is saved, and then the result is read out again when the data is loaded again. If the configuration file is modified or the system hardware changes, then the resource check is performed. The result may be incorrect. It needs to be recalculated. If the previous resource check result is used, the current version may be affected. The subsequent interface report and configuration command process will encounter resource check errors.
目前的数据通信设备还存在如下问题:The current data communication equipment also has the following problems:
(1)、如果在系统运行过程中切换单板,如插拔接口卡或者插拔线卡等,通常会进行资源删除,从而导致新的板子插上后,原有接口配置丢失;(1) If the board is switched during system operation, such as plugging or unplugging an interface card or plugging or unplugging a line card, resources are usually deleted. As a result, the original interface configuration is lost after the new board is plugged in.
(2)、如果系统运行过程中,拔出子卡,重新插入一块新的不同类型的子卡,由于插拔前后子卡类型不同,原有配置无法继承,新子卡接口只能恢复默认配置;(2) If the subcard is pulled out and a new type of subcard is reinserted during the system operation, the original configuration cannot be inherited due to the different subcard types before and after the plugging, and the new subcard interface can only restore the default configuration. ;
(3)、若系统发生复位,再置换单板或子卡,系统重启后,因资源没有存盘,接口配置丢失,需要重新配置。(3) If the system is reset, replace the board or daughter card. After the system is restarted, the interface configuration is lost because the resource is not saved. You need to reconfigure it.
针对相关技术中存在的上述问题,还未提出有效的解决方案。For the above problems existing in the related art, an effective solution has not been proposed.
发明内容Summary of the invention
本发明实施例提供了一种端口属性继承方法及装置,以至少解决相关技术中的上述至少之一的问题。The embodiment of the invention provides a method and device for inheriting port attributes, so as to solve at least one of the above problems in the related art.
根据本发明的一个实施例,提供了一种端口属性继承方法,包括:在通信设备内第一单板更换为第二单板时,检测到所述第二单板的类型与所述第一单板的类型不同;判断所述第二单板的端口的类型与所述第一单板的端口的类型是否相同;在判断结果指示相同的情况下,将所述第二单板的端口属性配置为所述第一单板的端口属性。 According to an embodiment of the present invention, a port attribute inheritance method is provided, including: detecting a type of the second board and the first when the first board is replaced with a second board in the communication device The type of the board is different. The type of the port of the second board is the same as the type of the port of the first board. If the result of the determination is the same, the port attribute of the second board is determined. Configured as the port attribute of the first board.
在本实施例中,将所述第二单板的端口属性配置为所述第一单板的端口属性包括:在所述第二单板的端口数量与所述第一单板的端口数量不相等的情况下,按照所述第二单板的端口顺序依次继承所述第一单板的端口属性。In this embodiment, configuring the port attribute of the second board as the port attribute of the first board includes: the number of ports on the second board and the number of ports on the first board are not If the ports of the second board are equal, the port attributes of the first board are sequentially inherited according to the port order of the second board.
在本实施例中,在所述第二单板的端口数量大于所述第一单板的端口数量的情况下,对所述第二单板的指定端口的端口属性使用默认配置,其中,所述指定端口为所述第二单板中未配置所述第一单板的端口属性的端口。In this embodiment, in a case where the number of ports of the second board is greater than the number of ports of the first board, a default configuration is used for the port attribute of the designated port of the second board, where The designated port is a port in the second board where the port attribute of the first board is not configured.
在本实施例中,检测到所述第一单板更换为所述第二单板之前包括:在所述第一单板与所述通信设备的连接断开时,对所述第一单板的端口属性设置标志位,并保存。In the embodiment, before the first board is replaced with the second board, the first board is connected to the communication device when the first board is disconnected from the communication device. The port property sets the flag bit and saves.
在本实施例中,将所述第二单板的端口属性配置为所述第一单板的端口属性之后,还包括:清除所述第一单板的端口属性所对应的标志位。In this embodiment, after the port attribute of the second board is configured as the port attribute of the first board, the method further includes: clearing a flag bit corresponding to the port attribute of the first board.
在本实施例中,所述方法还包括:判断所述第二单板的端口的类型与所述第一单板的端口的类型不相同的情况下,将所述第二单板端口进行默认配置。In this embodiment, the method further includes: when the type of the port of the second board is different from the type of the port of the first board, the second board port is defaulted. Configuration.
在本实施例中,所述方法还包括:判断所述第二单板的类型与所述第一单板的类型相同的情况下,将所述第二单板的端口属性配置为所述第一单板的端口属性,并将所述标志位清除。In this embodiment, the method further includes: if the type of the second board is the same as the type of the first board, configuring a port attribute of the second board as the first The port attribute of a board and clear the flag.
根据本发明的另一个实施例,还提供了一种端口属性继承装置,所述装置包括:检测模块,设置为在通信设备内第一单板更换为第二单板时,检测到所述第二单板的类型与所述第一单板的类型不同;判断模块,设置为判断所述第二单板的端口的类型与所述第一单板的端口的类型是否相同;配置模块,设置为在判断结果指示相同的情况下,将所述第二单板的端口属性配置为所述第一单板的端口属性。According to another embodiment of the present invention, there is also provided a port attribute inheriting device, the device comprising: a detecting module, configured to detect the first board when the first board is replaced with a second board in the communication device The type of the two boards is different from the type of the first board; the determining module is configured to determine whether the type of the port of the second board is the same as the type of the port of the first board; The port attribute of the second board is configured as a port attribute of the first board, in the case that the determination result is the same.
在本实施例中,所述配置模块还设置为在所述第二单板的端口数量与所述第一单板的端口数量不相等的情况下,按照所述第二单板的端口顺序依次继承所述第一单板的端口属性。In this embodiment, the configuration module is further configured to sequentially follow the port order of the second board in the case that the number of ports of the second board is not equal to the number of ports of the first board. Inherit the port attribute of the first board.
在本实施例中,所述配置模块还设置为在所述第二单板的端口数量大于所述第一单板的端口数量的情况下,对所述第二单板的指定端口的端口属性使用默认配置,其中,所述指定端口为所述第二单板中未配置所述第一单板的端口属性的端口。In this embodiment, the configuration module is further configured to: when the number of ports of the second board is greater than the number of ports of the first board, the port attribute of the designated port of the second board The default configuration is used, wherein the designated port is a port in the second board where the port attribute of the first board is not configured.
通过本发明实施例,采用在通信设备内第一单板更换为第二单板时,检测到第二单板的类型与第一单板的类型不同;判断第二单板的端口的类型与第一单板的端口的类型是否相同;在判断结果指示相同的情况下,将第二单板的端口属性配置为第一单 板的端口属性。解决了相关技术中在切换单板的过程中,原有配置无法继承的问题,进而实现了在单板切换之后,能够继承原有配置的效果。In the embodiment of the present invention, when the first board is replaced with the second board in the communication device, the type of the second board is different from the type of the first board; and the type of the port of the second board is determined. Whether the port type of the first board is the same. If the judgment result is the same, configure the port attribute of the second board as the first one. The port properties of the board. The problem that the original configuration cannot be inherited during the process of switching the board in the related art is solved, and the effect of inheriting the original configuration after the board is switched is realized.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的端口属性继承方法的流程图;1 is a flowchart of a port attribute inheritance method according to an embodiment of the present invention;
图2是根据本发明实施例的端口属性继承装置的结构框图;2 is a structural block diagram of a port attribute inheriting apparatus according to an embodiment of the present invention;
图3是根据本发明实施例的接口卡热插拔配置继承流程图。FIG. 3 is a flowchart of inheritance of an interface card hot plug configuration according to an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
在本实施例中提供了一种端口属性继承方法,图1是根据本发明实施例的端口属性继承方法的流程图,如图1所示,该流程包括如下步骤:In this embodiment, a port attribute inheritance method is provided. FIG. 1 is a flowchart of a port attribute inheritance method according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
步骤S102,在通信设备内第一单板更换为第二单板时,检测到第二单板的类型与第一单板的类型不同;Step S102: When the first board is replaced with the second board in the communication device, the type of the second board is different from the type of the first board.
步骤S104,判断第二单板的端口的类型与第一单板的端口的类型是否相同;Step S104, determining whether the type of the port of the second board is the same as the type of the port of the first board;
步骤S106,在判断结果指示相同的情况下,将第二单板的端口属性配置为第一单板的端口属性。In step S106, if the result of the determination is the same, the port attribute of the second board is configured as the port attribute of the first board.
通过上述步骤,在通信设备内第一单板更换为第二单板时,首先判断第二单板的类型是否与第一单板的类型是否相同,在判断结果为不相同的情况下,进一步判断第二单板的端口的类型是否与第二单板的端口的类型是否相同,在判断结果为是的情况下,将第二单板的端口属性配置为第一单板的端口属性,解决了相关技术中在切换单板的过程中,原有配置无法继承的问题,进而实现了在单板切换之后,能够继承原有配置的效果。 When the first board in the communication device is replaced with the second board, it is determined whether the type of the second board is the same as the type of the first board, and if the judgment result is different, further If the type of the port of the second board is the same as the type of the port of the second board, the port attribute of the second board is configured as the port attribute of the first board. In the related art, in the process of switching a board, the original configuration cannot be inherited, and the effect of inheriting the original configuration after the board switching is realized.
上述步骤S106中涉及到在判断结果指示相同的情况下,将第二单板的端口属性配置为第一单板的端口属性,在一个可选实施例中,在第二单板的端口数量与第一单板的端口数量不相等的情况下,按照第二单板的端口顺序依次继承第一单板的端口属性。In the above step S106, the port attribute of the second board is configured as the port attribute of the first board in the case that the determination result indication is the same. In an optional embodiment, the number of ports on the second board is If the number of ports on the first board is not equal, the port attributes of the first board are inherited in the order of the ports of the second board.
在将第二单板的端口属性配置为第一单板的端口属性的过程中,在一个可选实施例中,在第二单板的端口数量大于第一单板的端口数量的情况下,对第二单板的指定端口的端口属性使用默认配置,其中,指定端口为第二单板中未配置第一单板的端口属性的端口。从而将第二单板中的所有端口的端口属性均进行了配置。In the process of configuring the port attribute of the second board as the port attribute of the first board, in an optional embodiment, if the number of ports of the second board is greater than the number of ports of the first board, The default port is configured for the port attribute of the specified port on the second card. The specified port is the port on the second card where the port attribute of the first board is not configured. Therefore, the port attributes of all the ports in the second board are configured.
在一个可选实施例中,检测到第一单板更换为该第二单板之前,在第一单板与通信设备的连接断开时,对第一单板的端口属性设置标志位,并保存。从而在将第一单板更换为第二单板时可以根据所存储的对第一单板的端口属性的标志位对第二单板的端口进行配置。In an optional embodiment, before detecting that the first board is replaced with the second board, when the connection between the first board and the communication device is disconnected, the port attribute of the first board is set, and save. Therefore, when the first board is replaced with the second board, the port of the second board can be configured according to the stored flag of the port attribute of the first board.
将第二单板的端口属性配置为第一单板的端口属性之后,在一个可选实施例中,清除第一单板的端口属性所对应的标志位。从而可以将端口属性对应的标志位更新至继承第一单板端口属性的端口。After the port attribute of the first board is configured as the port attribute of the first board, in an optional embodiment, the flag bit corresponding to the port attribute of the first board is cleared. Therefore, the flag corresponding to the port attribute can be updated to the port that inherits the port attribute of the first board.
在另一个可选实施例中,在第二单板的端口的类型与第一单板的端口的类型不相同的情况下,将第二单板端口进行默认配置。由于第二单板的端口的类型与第一单板的端口的类型属于不同的类型,在这种情况下,第二单板的端口不能继承第一单板的端口属性,此时将第二单板端口进行默认配置。In another optional embodiment, the second board port is configured by default if the type of the port of the second board is different from the type of the port of the first board. The port of the second board cannot be inherited from the port attribute of the first board. In this case, the port of the second board cannot be in the same type as the port of the first board. In this case, the port of the second board cannot inherit the port attribute of the first board. The board port is configured by default.
在一个可选实施例中,在第二单板的类型与第一单板的类型相同的情况下,将第二单板的端口属性配置为第一单板的端口属性,并将该标志位清除。In an optional embodiment, if the type of the second board is the same as the type of the first board, the port attribute of the second board is configured as the port attribute of the first board, and the flag is set. Clear.
在本实施例中还提供了一种端口属性继承装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。A port attribute inheriting device is also provided in this embodiment, and the device is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图2是根据本发明实施例的端口属性继承装置的结构框图,如图2所示,该装置包括:检测模块22,设置为在通信设备内第一单板更换为第二单板时,检测到第二单板的类型与第一单板的类型不同;判断模块24,设置为判断第二单板的端口的类型与第一单板的端口的类型是否相同;配置模块26,设置为在判断结果指示相同的情况下,将第二单板的端口属性配置为第一单板的端口属性。 2 is a structural block diagram of a port attribute inheriting device according to an embodiment of the present invention. As shown in FIG. 2, the device includes: a detecting module 22 configured to detect when a first board in a communication device is replaced with a second board. The type of the second board is different from the type of the first board; the determining module 24 is configured to determine whether the type of the port of the second board is the same as the type of the port of the first board; the configuration module 26 is set to If the result of the judgment is the same, configure the port attribute of the second board as the port attribute of the first board.
可选地,配置模块26还设置为在第二单板的端口数量与第一单板的端口数量不相等的情况下,按照第二单板的端口顺序依次继承该第一单板的端口属性。Optionally, the configuration module 26 is further configured to inherit the port attributes of the first board in sequence according to the port order of the second board, in the case that the number of the ports of the second board is not equal to the number of the ports of the first board. .
可选地,配置模块26还设置为在第二单板的端口数量大于第一单板的端口数量的情况下,对第二单板的指定端口的端口属性使用默认配置,其中,指定端口为第二单板中未配置该第一单板的端口属性的端口。Optionally, the configuration module 26 is further configured to use a default configuration for the port attribute of the designated port of the second board, where the number of ports of the second board is greater than the number of ports of the first board, where the designated port is The port of the port attribute of the first board is not configured on the second board.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述各个模块均位于同一处理器中;或者,上述各个模块分别位于第一处理器、第二处理器和第三处理器...中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are respectively located. In the first processor, the second processor, and the third processor.
针对相关技术中存在的上述技术问题,下面结合可选实施例进行说明,本可选实施例结合了上述实施例及其可选实施方式。For the above technical problems existing in the related art, the following description will be made in conjunction with the optional embodiments, which are combined with the above embodiments and their optional embodiments.
本可选实施例的主要目的在于提供一种数据通信设备端口属性继承的方法,以解决现有设备中存在的问题。The main purpose of this alternative embodiment is to provide a method for inheriting port attribute of a data communication device to solve the problem existing in the existing device.
通过存储设备,在数据通信设备硬件发生变化时,保存原有端口属性,当新端口重新上线后,根据具体情况,下发之前的全部或者部分配置,以实现端口属性继承。The storage port is used to save the original port attributes when the data communication device hardware changes. After the new port is brought online again, all or part of the previous configuration is delivered according to the specific conditions to implement port attribute inheritance.
具体操作步骤如下:The specific steps are as follows:
(1)、数据通信设备运行中,系统硬件发生变化,如端口移除等,保存端口配置属性,更新之前保存的端口配置属性;(1) During the operation of the data communication device, the system hardware changes, such as port removal, save the port configuration attribute, and update the previously saved port configuration attribute;
(2)、当系统硬件再次发生变化,如端口再次加载,检查硬件属性;(2) When the system hardware changes again, such as the port is loaded again, check the hardware properties;
如果硬件属性和之前硬件一致,则重新下发端口属性配置,让端口属性恢复和端口移除前一致;If the hardware attributes are the same as those of the previous hardware, re-deliver the port attribute configuration to make the port attribute recovery consistent with that before the port is removed.
如果硬件属性与步骤(1)之前不一致,则根据情况,全部或者部分下发端口属性配置,让端口属性尽可能的得到继承;If the hardware attribute is inconsistent with the previous step (1), the port attribute configuration is delivered in whole or in part according to the situation, so that the port attribute is inherited as much as possible;
(3)、如果系统硬件属性再次发生变化,重复步骤(1)。(3) If the system hardware properties change again, repeat step (1).
本可选实施例的具体的实施方式有:Specific implementations of this alternative embodiment are:
(1)、同一块单板的插拔操作,接口及业务配置保持原有配置不变。(1) The plug-in operation of the same board, the interface and service configuration remain unchanged.
(2)、接口子卡置换,拔出子卡,插入一块不同类型的子卡: (2), interface sub-card replacement, pull out the sub-card, insert a different type of sub-card:
如果新子卡的接口类型与原子卡的接口类型一样,则继承接口及配置;If the interface type of the new daughter card is the same as the interface type of the atomic card, the interface and configuration are inherited;
若新子卡的接口数多,则部分继承原子卡接口属性,多出的接口使用默认配置;If the number of interfaces of the new daughter card is large, the atomic card interface attribute is partially inherited, and the extra interface uses the default configuration;
如果新子卡的接口数少,则原接口卡多出的接口离线;If the number of interfaces of the new subcard is small, the interface of the original interface card is offline;
新子卡的接口类型与原来子卡的接口类型不一样,原来子卡的接口离线,新子卡的接口有效,但使用默认配置。The interface type of the new daughter card is different from the interface type of the original daughter card. The interface of the original daughter card is offline, and the interface of the new daughter card is valid, but the default configuration is used.
(3)、线卡与业务卡直接发生置换,旧接口离线,新接口在线,新接口只有默认配置。(3) The line card and the service card are directly replaced, the old interface is offline, the new interface is online, and the new interface has only the default configuration.
(4)、冗余的历史接口及配置数据支持命令删除。子卡热插拔或者单板离线时,将相关接口配置信息生成通道化接口数据,加个标识位保留下来。当子卡重新插上时,物理接口上报数据库,会重新对端口下发默认配置,而不是继承之前的端口属性。(4) Redundant historical interface and configuration data support command deletion. When the subcard is hot swapped or the board is offline, the related interface configuration information is generated to generate channelized interface data, and the identifier bit is reserved. When the daughter card is re-plugged, the physical interface is reported to the database, and the default configuration is delivered to the port instead of inheriting the previous port attribute.
在一个可选实施例中是根据本可选实施例的产品实现同一块单板热插拔属性继承的流程;In an optional embodiment, the process of implementing the same block hot swap attribute inheritance is implemented according to the product of the optional embodiment;
步骤(1),在系统运行过程中,一块单板被拔出,数据库保存端口配置属性,同时更新之前保存的端口配置属性。In step (1), during the running of the system, a board is pulled out, the database saves the port configuration attribute, and the previously saved port configuration attribute is updated.
步骤(2),当这块单板再次插入,系统比较单板类型,可以判断出和上次拔出的单板是同一类型的单板。In the step (2), when the board is inserted again, the system compares the board type and can determine that the board is the same type as the last board.
步骤(3),系统把步骤1保存的端口属性重新下发。In step (3), the system re-delivers the port attribute saved in step 1.
在另一个可选实施例是根据本发明接口卡热插拔配置继承流程图的流程;In another optional embodiment, the flow chart of the interface card hot plug configuration inheritance flow chart according to the present invention is used;
图3是根据本发明实施例的接口卡热插拔配置继承流程图,如图3所示:FIG. 3 is a flowchart of inheritance of an interface card hot plug configuration according to an embodiment of the present invention, as shown in FIG. 3:
数据通信系统运行中,发生接口卡热插拔的场景:In the running of the data communication system, the scene where the interface card is hot swapped occurs:
拔出接口卡后,数据库会对接口配置加一个标志位进行保存,而不进行删除。After the interface card is removed, the database adds a flag to the interface configuration for saving without deleting.
当插上接口卡时,会进行判断:When the interface card is plugged in, it will be judged:
(1)、如果插上的是同类型的接口卡,则从数据库中,对新接口卡进行配置下发,当配置正常下发后,数据中清除标志位。从而完成接口配置继承。 (1) If the interface card of the same type is inserted, the new interface card is configured and delivered from the database. After the configuration is normally sent, the flag is cleared in the data. Thereby completing the interface configuration inheritance.
(2)、如果插上的是不同类型的接口卡,则会判断新的类型的接口卡是否与原接口卡接口类型相同。如,同为1G以太网口或者同为POS口等。(2) If a different type of interface card is plugged in, it will determine whether the new type of interface card is the same type as the original interface card. For example, the same as the 1G Ethernet port or the same as the POS port.
(3)、如果新旧接口卡接口类型相同,则进行接口配置检查。如果新子卡接口数多于旧子卡,则按照端口顺序依次继承端口属性,多出的端口进行默认配置。如果新子卡接口数小于旧子卡,则按照端口顺序依次继承端口属性后,多出的端口属性标志位不进行清除,继续保留。(3) If the interface types of the new and old interface cards are the same, perform interface configuration check. If the number of new subcard interfaces is more than the old subcards, the port attributes are inherited in the order of the ports, and the extra ports are configured by default. If the number of new subcard interfaces is smaller than the old subcard, the port attribute flag is not cleared after the port attribute is inherited in the order of the port, and the reservation is continued.
(4)、如果新旧接口卡接口类型不同,则旧卡配置保存,新卡进行默认配置。(4) If the interface type of the new and old interface cards is different, the old card configuration is saved, and the new card is configured by default.
在再一个可选实施例是根据本可选实施例的线卡和业务卡属性继承流程;Yet another alternative embodiment is the line card and service card attribute inheritance process according to the present alternative embodiment;
步骤(1),在系统运行过程中,一块单板被拔出,数据库保存端口配置属性,同时更新之前保存的端口配置属性。In step (1), during the running of the system, a board is pulled out, the database saves the port configuration attribute, and the previously saved port configuration attribute is updated.
步骤(2),当在该线卡槽位重新插入一块业务卡,系统检查单板类型不同,接口类型不同,无可继承单板属性。In step (2), when a service card is re-inserted in the slot of the line card, the system checks the board type and the interface type is different.
步骤(3),系统把步骤(1)保存的属性设置标志位,保存,但不重新下发。In step (3), the system sets the flag of the attribute saved in step (1) and saves it, but does not re-issue it.
综上所述,通过本发明中的技术方案解决了相关技术中在切换单板的过程中,原有配置无法继承的问题,进而实现了在单板切换之后,能够继承原有配置的效果。In summary, the technical solution in the present invention solves the problem that the original configuration cannot be inherited in the process of switching the board in the related art, and further realizes the effect of inheriting the original configuration after the board switching.
在另外一个实施例中,还提供了一种软件,该软件用于执行上述实施例及优选实施方式中描述的技术方案。In another embodiment, software is also provided for performing the technical solutions described in the above embodiments and preferred embodiments.
在另外一个实施例中,还提供了一种存储介质,该存储介质中存储有上述软件,该存储介质包括但不限于:光盘、软盘、硬盘、可擦写存储器等。In another embodiment, a storage medium is further provided, wherein the software includes the above-mentioned software, including but not limited to: an optical disk, a floppy disk, a hard disk, an erasable memory, and the like.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。 It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
基于本发明实施例提供的上述技术方案,采用在通信设备内第一单板更换为第二单板时,检测到第二单板的类型与第一单板的类型不同;判断第二单板的端口的类型与第一单板的端口的类型是否相同;在判断结果指示相同的情况下,将第二单板的端口属性配置为第一单板的端口属性。解决了相关技术中在切换单板的过程中,原有配置无法继承的问题,进而实现了在单板切换之后,能够继承原有配置的效果。 According to the foregoing technical solution provided by the embodiment of the present invention, when the first board is replaced with the second board in the communication device, the type of the second board is different from the type of the first board; If the type of the port is the same as the port type of the first board, the port attribute of the second board is configured as the port attribute of the first board. The problem that the original configuration cannot be inherited during the process of switching the board in the related art is solved, and the effect of inheriting the original configuration after the board is switched is realized.

Claims (10)

  1. 一种端口属性继承方法,包括:A port attribute inheritance method, including:
    在通信设备内第一单板更换为第二单板时,检测到所述第二单板的类型与所述第一单板的类型不同;When the first board is replaced with the second board in the communication device, the type of the second board is different from the type of the first board;
    判断所述第二单板的端口的类型与所述第一单板的端口的类型是否相同;Determining whether the type of the port of the second board is the same as the type of the port of the first board;
    在判断结果指示相同的情况下,将所述第二单板的端口属性配置为所述第一单板的端口属性。If the result of the determination is the same, the port attribute of the second board is configured as the port attribute of the first board.
  2. 根据权利要求1所述的方法,其中,将所述第二单板的端口属性配置为所述第一单板的端口属性包括:The method of claim 1, wherein configuring the port attribute of the second board as the port attribute of the first board comprises:
    在所述第二单板的端口数量与所述第一单板的端口数量不相等的情况下,按照所述第二单板的端口顺序依次继承所述第一单板的端口属性。If the number of ports of the second board is not equal to the number of ports of the first board, the port attributes of the first board are sequentially inherited according to the port order of the second board.
  3. 根据权利要求2所述的方法,其中,包括:The method of claim 2, comprising:
    在所述第二单板的端口数量大于所述第一单板的端口数量的情况下,对所述第二单板的指定端口的端口属性使用默认配置,其中,所述指定端口为所述第二单板中未配置所述第一单板的端口属性的端口。In the case that the number of ports of the second board is greater than the number of ports of the first board, a default configuration is used for the port attribute of the designated port of the second board, where the designated port is the The port of the port attribute of the first board is not configured in the second board.
  4. 根据权利要求1所述的方法,其中,检测到所述第一单板更换为所述第二单板之前包括:The method of claim 1, wherein before detecting the replacement of the first board into the second board, the method comprises:
    在所述第一单板与所述通信设备的连接断开时,对所述第一单板的端口属性设置标志位,并保存。When the connection between the first board and the communication device is disconnected, a flag is set for the port attribute of the first board, and is saved.
  5. 根据权利要求4所述的方法,其中,将所述第二单板的端口属性配置为所述第一单板的端口属性之后,还包括:The method of claim 4, wherein after the port attribute of the second board is configured as the port attribute of the first board, the method further includes:
    清除所述第一单板的端口属性所对应的标志位。Clear the flag bit corresponding to the port attribute of the first board.
  6. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1 wherein the method further comprises:
    判断所述第二单板的端口的类型与所述第一单板的端口的类型不相同的情况下,将所述第二单板端口进行默认配置。If the type of the port of the second board is different from the type of the port of the first board, the second board port is configured by default.
  7. 根据权利要求4所述的方法,其中,所述方法还包括: The method of claim 4 wherein the method further comprises:
    判断所述第二单板的类型与所述第一单板的类型相同的情况下,将所述第二单板的端口属性配置为所述第一单板的端口属性,并将所述标志位清除。If the type of the second board is the same as the type of the first board, the port attribute of the second board is configured as a port attribute of the first board, and the flag is Bit clear.
  8. 一种端口属性继承装置,包括:A port attribute inheritance device includes:
    检测模块,设置为在通信设备内第一单板更换为第二单板时,检测到所述第二单板的类型与所述第一单板的类型不同;The detecting module is configured to detect that the type of the second board is different from the type of the first board when the first board is replaced with the second board in the communication device;
    判断模块,设置为判断所述第二单板的端口的类型与所述第一单板的端口的类型是否相同;a determining module, configured to determine whether the type of the port of the second board is the same as the type of the port of the first board;
    配置模块,设置为在判断结果指示相同的情况下,将所述第二单板的端口属性配置为所述第一单板的端口属性。The configuration module is configured to configure the port attribute of the second board as the port attribute of the first board when the judgment result indication is the same.
  9. 根据权利要求8所述的装置,其中,所述配置模块还设置为在所述第二单板的端口数量与所述第一单板的端口数量不相等的情况下,按照所述第二单板的端口顺序依次继承所述第一单板的端口属性。The device according to claim 8, wherein the configuration module is further configured to follow the second order if the number of ports of the second board is not equal to the number of ports of the first board The port order of the board inherits the port attributes of the first board in sequence.
  10. 根据权利要求9所述的装置,其中,所述配置模块还设置为在所述第二单板的端口数量大于所述第一单板的端口数量的情况下,对所述第二单板的指定端口的端口属性使用默认配置,其中,所述指定端口为所述第二单板中未配置所述第一单板的端口属性的端口。 The device of claim 9, wherein the configuration module is further configured to: when the number of ports of the second board is greater than the number of ports of the first board, The port attribute of the specified port uses the default configuration. The specified port is the port of the second board that does not have the port attribute of the first board.
PCT/CN2015/075300 2014-12-12 2015-03-27 Port attribute inheritance method and device WO2016090768A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410767951.1A CN105743686B (en) 2014-12-12 2014-12-12 Port attribute inheritance method and device
CN201410767951.1 2014-12-12

Publications (1)

Publication Number Publication Date
WO2016090768A1 true WO2016090768A1 (en) 2016-06-16

Family

ID=56106540

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/075300 WO2016090768A1 (en) 2014-12-12 2015-03-27 Port attribute inheritance method and device

Country Status (2)

Country Link
CN (1) CN105743686B (en)
WO (1) WO2016090768A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109885521B (en) * 2019-02-28 2021-03-09 苏州浪潮智能科技有限公司 Interrupt processing method and system, electronic equipment and storage medium
CN111610732B (en) * 2020-04-28 2021-09-24 同方泰德国际科技(北京)有限公司 Method, device and equipment for replacing configurable input/output module

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020067336A (en) * 2001-02-16 2002-08-22 삼성전자 주식회사 Method for maintaining stability of network system
CN1592137A (en) * 2003-09-02 2005-03-09 华为技术有限公司 Backup method capable of carrying on main interface service character
CN101729319A (en) * 2009-12-11 2010-06-09 成都市华为赛门铁克科技有限公司 Method, device and system for veneer groove position number identification
CN102571450A (en) * 2012-02-16 2012-07-11 华为技术有限公司 Port configuration method and device of network interface module and frame communication device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079734B (en) * 2007-06-22 2012-03-07 中兴通讯股份有限公司 A hot plug configuration recovery method of rack device
CN103812680B (en) * 2012-11-14 2017-12-19 中兴通讯股份有限公司 A kind of system and method for realizing veneer switching
CN103259733B (en) * 2013-05-15 2016-12-28 杭州华三通信技术有限公司 A kind of daughter card unit dynamic adaptation method and cable card board

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020067336A (en) * 2001-02-16 2002-08-22 삼성전자 주식회사 Method for maintaining stability of network system
CN1592137A (en) * 2003-09-02 2005-03-09 华为技术有限公司 Backup method capable of carrying on main interface service character
CN101729319A (en) * 2009-12-11 2010-06-09 成都市华为赛门铁克科技有限公司 Method, device and system for veneer groove position number identification
CN102571450A (en) * 2012-02-16 2012-07-11 华为技术有限公司 Port configuration method and device of network interface module and frame communication device

Also Published As

Publication number Publication date
CN105743686B (en) 2019-02-19
CN105743686A (en) 2016-07-06

Similar Documents

Publication Publication Date Title
US10585691B2 (en) Distribution system, computer, and arrangement method for virtual machine
US8495618B1 (en) Updating firmware in a high availability enabled computer system
CN106469103B (en) The maintaining method and device of hard disk
CN104216793B (en) Application Backup, the method and apparatus recovered
CN109726066B (en) Method and apparatus for identifying problem components in a storage system
WO2021004256A1 (en) Node switching method in node failure and related device
CN111858146A (en) Method, apparatus and computer program product for recovering data
US10511487B2 (en) Method and mechanism for efficiently managing flows
WO2016090768A1 (en) Port attribute inheritance method and device
CN109379223A (en) A kind of method and apparatus for realizing network interface card automated setting
US20180338007A1 (en) System and method for providing extensible communication gateway with session pooling
US9830349B2 (en) Maintaining storage profile consistency in a cluster having local and shared storage
CN115098294B (en) Abnormal event processing method, electronic equipment and management terminal
CN107562650B (en) Method and system for mapping physical host to storage system
CN115756955A (en) Data backup and data recovery method and device and computer equipment
CN108055159A (en) A kind of clustered node operation synchronous method and device
CN109408485B (en) Distributed lock implementation method and system
CN110058790B (en) Method, apparatus and computer program product for storing data
CN112463228A (en) Storage pool hybrid deployment method and device
JP6694145B2 (en) Information processing device and management program
US20150163110A1 (en) Registration Reconciliation Influenced by Expired Registration Records
CN105490817B (en) Interface board hot plug processing method and device
CN110703988A (en) Storage pool creating method, system, terminal and storage medium for distributed storage
CN106941413B (en) Service management method and device
CN110045930B (en) Method, device, equipment and medium for virtual platform to manage storage equipment volume

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15867411

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15867411

Country of ref document: EP

Kind code of ref document: A1