CN106169982B - Processing method, device and system of expansion port - Google Patents
Processing method, device and system of expansion port Download PDFInfo
- Publication number
- CN106169982B CN106169982B CN201510280185.0A CN201510280185A CN106169982B CN 106169982 B CN106169982 B CN 106169982B CN 201510280185 A CN201510280185 A CN 201510280185A CN 106169982 B CN106169982 B CN 106169982B
- Authority
- CN
- China
- Prior art keywords
- port
- extension
- creation message
- status
- virtual
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/58—Association of routers
- H04L45/583—Stackable routers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/25—Routing or path finding in a switch fabric
- H04L49/253—Routing or path finding in a switch fabric using establishment or release of connections between ports
- H04L49/254—Centralised controller, i.e. arbitration or scheduling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/30—Peripheral units, e.g. input or output ports
- H04L49/3054—Auto-negotiation, e.g. access control between switch gigabit interface connector [GBIC] and link
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
本发明提供了一种扩展端口的处理方法、装置及系统,其中,该方法采用扩展设备PE向控制设备CB发送扩展端口创建消息,其中,该扩展端口创建消息携带该PE的扩展端口的端口状态,该扩展端口创建消息用于通知该CB创建该扩展端口的虚端口,及用于该CB将该端口状态反馈至该虚端口,解决了控制设备CB无法快速发现和监控扩展设备PE的扩展端口的状态信息的问题,实现了CB可以快速发现和监控PE的所有扩展端口及状态信息,提高了处理效率。
The present invention provides an extension port processing method, device and system, wherein the method adopts an extension device PE to send an extension port creation message to a control device CB, wherein the extension port creation message carries the port status of the extension port of the PE , the extension port creation message is used to notify the CB to create the virtual port of the extension port, and for the CB to feed back the port status to the virtual port, which solves the problem that the control device CB cannot quickly discover and monitor the extension port of the extension device PE. To solve the problem of status information, the CB can quickly discover and monitor all the extended ports and status information of the PE, which improves the processing efficiency.
Description
技术领域technical field
本发明涉及通信领域,具体而言,涉及一种扩展端口的处理方法、装置及系统。The present invention relates to the field of communications, and in particular, to a method, device and system for processing an expansion port.
背景技术Background technique
随着云计算概念的火热,数据中心网络技术迎来了一次剧烈的变革,大量新技术标准在近几年内出现,各家设备厂商也纷纷投入海量资源来迎接这一新的挑战。随着云计算的发展,虚拟机激增,企业的数据中心也不可避免的引发了管理难题,网络必须适应新的虚拟化技术趋势。于是网络侧针对数据中心的虚拟机迁移等新技术趋势和需求调整做出了一些新的802.1标准。802.1BR标准是IEEE为本地和大城市网络指定的标准,目的就是打破物理的限制,通过802LAN技术和交互接口来扩展桥和桥的管理对象,把大量策略以及安全和管理方面的处理方法从网卡上的虚拟机和刀片服务器上卸下来,将其重新交给连接存储和计算资源的物理以太交换机,简化数据中心系统的管理。借助新的以太网标准,数据中心使用数据中心桥接可以支持融合的网络,进行基于优先级的流量控制,增加拥塞控制。With the popularity of the cloud computing concept, data center network technology has ushered in a drastic change. A large number of new technology standards have emerged in recent years, and various equipment manufacturers have also invested massive resources to meet this new challenge. With the development of cloud computing, virtual machines have proliferated, and enterprise data centers have inevitably caused management problems. The network must adapt to the new trend of virtualization technology. Therefore, the network side has made some new 802.1 standards for new technology trends and demand adjustments such as virtual machine migration in the data center. The 802.1BR standard is a standard specified by IEEE for local and metropolitan networks. The purpose is to break the physical limitations, expand the bridge and bridge management objects through 802LAN technology and interactive interfaces, and transfer a large number of policies and security and management methods from the network card. The virtual machines and blade servers on the server are removed, and they are handed over to the physical Ethernet switches that connect storage and computing resources, simplifying the management of data center systems. With the new Ethernet standard, data centers can support converged networks using data center bridging, priority-based flow control, and increased congestion control.
802.1BR标准建立了一个扩展桥系统,包括控制设备(Controlling Bridge,简称为CB)和一个或多个扩展设备(Port Extender,简称为PE)。CB通过PE客户端服务器协议(Client Server Protocol,简称为CSP),配置和监控PE。其中PE通过PE CSP定义的扩展端口创建消息(Extended Port Create)向CB报告存在的扩展端口,CB收到消息后,创建一个相应的虚端口,以便用户可以将物理桥的端口通过点对点局域网(Local Area Net work,简称为LAN)连接扩展到远端PE。PE通过端口状态参数设置(Status Parameters Set)消息向CB报告扩展端口的端口状态(MAC_Operational),CB收到消息后,将扩展端口的MAC_Operational状态通过链路状态(MAC_Enabled)参数反馈到相应的虚端口。The 802.1BR standard establishes an extension bridge system, including a control device (Controlling Bridge, referred to as CB) and one or more extension devices (Port Extender, referred to as PE). The CB configures and monitors the PE through the PE Client Server Protocol (Client Server Protocol, CSP for short). The PE reports the existing extended port to the CB through the Extended Port Create message (Extended Port Create) defined by the PE CSP. After the CB receives the message, it creates a corresponding virtual port so that the user can connect the port of the physical bridge through the point-to-point local area network (Local Area Network). Area Network, abbreviated as LAN) connection is extended to remote PE. The PE reports the port status (MAC_Operational) of the extension port to the CB through the Port Status Parameters Set message. After the CB receives the message, it feeds back the MAC_Operational status of the extension port to the corresponding virtual port through the link status (MAC_Enabled) parameter. .
CB在最初创建对应虚拟端口无法直接获知PE的状态。目前多数设备厂商采用的方法是,在PE启动后,只将MAC_Operational状态为通(TRUE)的扩展端口通过扩展端口创建消息(Extended Port Create)通报给CB设备,CB收到消息后直接将相应虚端口的MAC_Enabled置为TRUE。该方法的缺点是MAC_Operational状态为断(FALSE)的扩展端口无法快速发现和监控,另外如果扩展端口状态由TRUE变为FALSE,就会出现FALSE状态扩展端口可能有对应虚接口也可能没有对应虚接口的情况。The CB cannot directly learn the state of the PE when the corresponding virtual port is created initially. At present, the method adopted by most equipment manufacturers is that after the PE is started, only the extended port whose MAC_Operational status is TRUE is notified to the CB device through the Extended Port Create message, and the CB directly sends the corresponding virtual port after receiving the message. The port's MAC_Enabled is set to TRUE. The disadvantage of this method is that the extended port whose MAC_Operational state is off (FALSE) cannot be quickly discovered and monitored. In addition, if the extended port state changes from TRUE to FALSE, the extended port in the FALSE state may or may not have a corresponding virtual interface. Case.
针对相关技术中,控制设备CB无法快速发现和监控扩展设备PE的扩展端口的状态信息的问题,目前尚未提出有效的解决方案。Aiming at the problem in the related art that the control device CB cannot quickly discover and monitor the status information of the expansion port of the expansion device PE, no effective solution has been proposed yet.
发明内容SUMMARY OF THE INVENTION
本发明提供了一种扩展端口的处理方法、装置及系统,以至少解决相关技术中控制设备CB无法快速发现和监控扩展设备PE的扩展端口的状态信息的问题。The present invention provides an expansion port processing method, device and system to at least solve the problem in the related art that the control device CB cannot quickly discover and monitor the state information of the expansion port of the expansion device PE.
根据本发明的一个方面,提供了一种扩展端口的处理方法,包括:According to an aspect of the present invention, there is provided a processing method for an expansion port, comprising:
扩展设备PE向控制设备CB发送扩展端口创建消息,其中,所述扩展端口创建消息携带所述PE的扩展端口的端口状态,所述扩展端口创建消息用于通知所述CB创建所述扩展端口的虚端口,及用于所述CB将所述端口状态反馈至所述虚端口。The extension device PE sends an extension port creation message to the control device CB, wherein the extension port creation message carries the port status of the extension port of the PE, and the extension port creation message is used to notify the CB to create the extension port. A virtual port, and for the CB to feed back the port status to the virtual port.
进一步地,所述方法还包括:Further, the method also includes:
所述PE接收所述扩展端口创建消息的应答消息后,将所述扩展端口的链路状态设置为通。After receiving the response message of the extension port creation message, the PE sets the link state of the extension port to up.
进一步地,所述扩展端口创建消息携带所述PE的扩展端口的端口状态包括:Further, the port status of the extension port of the PE carried by the extension port creation message includes:
通过所述扩展端口创建消息中的端口状态三元组TLV字段携带所述端口状态。The port state is carried by the port state triplet TLV field in the extension port creation message.
根据本发明的另一个方面,还提供了一种扩展端口的处理方法,包括:According to another aspect of the present invention, there is also provided a processing method for an expansion port, comprising:
控制设备CB接收扩展设备PE发送的扩展端口创建消息,其中,所述扩展端口创建消息携带有所述PE的扩展端口的端口状态;The control device CB receives an extension port creation message sent by the extension device PE, wherein the extension port creation message carries the port state of the extension port of the PE;
所述CB根据所述扩展端口创建消息创建所述扩展端口的虚端口,并将所述端口状态反馈至所述虚端口。The CB creates a virtual port of the extension port according to the extension port creation message, and feeds back the port status to the virtual port.
进一步地,将所述端口状态反馈至所述虚端口包括:Further, feeding back the port status to the virtual port includes:
所述CB将所述端口状态通过用于指示链路状态的参数值反馈到所述虚端口。The CB feeds back the port status to the virtual port through a parameter value for indicating the link status.
进一步地,所述端口状态携带于所述扩展端口创建消息中的端口状态三元组TLV中。Further, the port status is carried in the port status triplet TLV in the extension port creation message.
根据本发明的另一个方面,还提供了一种扩展端口的处理装置,包括:According to another aspect of the present invention, there is also provided a processing device for expanding ports, comprising:
发送模块,用于扩展设备PE向控制设备CB发送扩展端口创建消息,其中,所述扩展端口创建消息携带所述PE的扩展端口的端口状态,所述扩展端口创建消息用于通知所述CB创建所述扩展端口的虚端口,及用于所述CB将所述端口状态反馈至所述虚端口。A sending module, configured to send an extension port creation message from the extension device PE to the control device CB, wherein the extension port creation message carries the port status of the extension port of the PE, and the extension port creation message is used to notify the CB to create a virtual port of the extension port, and for the CB to feed back the port status to the virtual port.
进一步地,所述装置还包括:Further, the device also includes:
应答模块,用于所述PE接收所述扩展端口创建消息的应答消息后,将所述扩展端口的链路状态设置为通。A response module, configured to set the link state of the extension port to up after the PE receives the response message of the extension port creation message.
进一步地,所述扩展端口创建消息携带所述PE的扩展端口的端口状态包括:Further, the port status of the extension port of the PE carried by the extension port creation message includes:
通过所述扩展端口创建消息中的端口状态三元组TLV字段携带所述端口状态。The port state is carried by the port state triplet TLV field in the extension port creation message.
根据本发明的再一个方面,还提供了一种扩展端口的处理装置,括:According to another aspect of the present invention, a processing device for expanding ports is also provided, including:
接收模块,用于控制设备CB接收扩展设备PE发送的扩展端口创建消息,其中,所述扩展端口创建消息携带有所述PE的扩展端口的端口状态;a receiving module, configured to control the device CB to receive an extension port creation message sent by the extension device PE, wherein the extension port creation message carries the port state of the extension port of the PE;
创建模块,用于所述CB根据所述扩展端口创建消息创建所述扩展端口的虚端口,并将所述端口状态反馈至所述虚端口。A creation module is used for the CB to create a virtual port of the extension port according to the extension port creation message, and to feed back the port status to the virtual port.
进一步地,将所述端口状态反馈至所述虚端口包括:Further, feeding back the port status to the virtual port includes:
所述CB将所述端口状态通过用于指示链路状态的参数值反馈到所述虚端口。The CB feeds back the port status to the virtual port through a parameter value for indicating the link status.
进一步地,所述端口状态携带于所述扩展端口创建消息中的端口状态三元组TLV中。Further, the port status is carried in the port status triplet TLV in the extension port creation message.
根据本发明的再一个方面,还提供了一种扩展端口的处理系统,其特征在于,包括:控制设备CB和一个或多个扩展设备PE;According to yet another aspect of the present invention, a processing system for an expansion port is also provided, which is characterized in that it includes: a control device CB and one or more expansion devices PE;
所述PE向所述CB发送扩展端口创建消息,其中,所述扩展端口创建消息携带所述PE的扩展端口的端口状态;The PE sends an extension port creation message to the CB, wherein the extension port creation message carries the port status of the extension port of the PE;
所述CB根据所述扩展端口创建消息创建所述扩展端口的虚端口,并将所述端口状态反馈至所述虚端口。The CB creates a virtual port of the extension port according to the extension port creation message, and feeds back the port status to the virtual port.
通过本发明,采用扩展设备PE向控制设备CB发送扩展端口创建消息,其中,该扩展端口创建消息携带该PE的扩展端口的端口状态,该扩展端口创建消息用于通知该CB创建该扩展端口的虚端口,及用于该CB将该端口状态反馈至该虚端口,解决了控制设备CB无法快速发现和监控扩展设备PE的扩展端口的状态信息的问题,实现了CB可以快速发现和监控PE的所有扩展端口及状态信息,提高了处理效率。According to the present invention, the extension device PE is used to send an extension port creation message to the control device CB, wherein the extension port creation message carries the port status of the extension port of the PE, and the extension port creation message is used to notify the CB to create the extension port. The virtual port, and the port status for the CB to feed back to the virtual port, solves the problem that the control device CB cannot quickly discover and monitor the status information of the extension port of the extension device PE, and realizes that the CB can quickly discover and monitor the PE's status information. All expansion ports and status information improve processing efficiency.
附图说明Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the attached image:
图1是根据本发明实施例的一种扩展端口的处理方法的流程图一;1 is a flowchart 1 of a method for processing an expansion port according to an embodiment of the present invention;
图2是根据本发明实施例的一种扩展端口的处理方法的流程图二;2 is a second flowchart of a method for processing an expansion port according to an embodiment of the present invention;
图3是根据本发明实施例的一种扩展端口的处理装置的结构框图一;3 is a structural block diagram 1 of a processing device for an expansion port according to an embodiment of the present invention;
图4是根据本发明实施例的一种扩展端口的处理装置的结构框图二;4 is a second structural block diagram of a processing device for an expansion port according to an embodiment of the present invention;
图5是根据本发明优选实施例的CB和PE组网示意图;5 is a schematic diagram of a CB and PE networking according to a preferred embodiment of the present invention;
图6是根据相关技术中的CB快速发现和监控PE工作流程的示意图;Fig. 6 is the schematic diagram according to CB in the related art to quickly discover and monitor PE workflow;
图7是根据本发明优选实施例的CB快速发现和监控PE工作流程的示意图。FIG. 7 is a schematic diagram of the workflow of CB quickly discovering and monitoring PE according to a preferred embodiment of the present invention.
具体实施方式Detailed ways
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in conjunction with embodiments. It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence.
在本实施例中提供了一种扩展端口的处理方法,图1是根据本发明实施例的一种扩展端口的处理方法的流程图一,如图1所示,该流程包括如下步骤:A method for processing an expansion port is provided in this embodiment, and FIG. 1 is a flowchart 1 of a method for processing an expansion port according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:
步骤S102,扩展设备PE向控制设备CB发送扩展端口创建消息,其中,该扩展端口创建消息携带该PE的扩展端口的端口状态;Step S102, the extension device PE sends an extension port creation message to the control device CB, wherein the extension port creation message carries the port state of the extension port of the PE;
步骤S104,CB根据该扩展端口创建消息创建该扩展端口的虚端口,将该端口状态反馈至该虚端口。Step S104, the CB creates a virtual port of the extension port according to the extension port creation message, and feeds back the port status to the virtual port.
通过上述步骤,扩展设备PE向控制设备CB发送扩展端口创建消息,其中,该扩展端口创建消息携带该PE的扩展端口的端口状态,该扩展端口创建消息用于通知该CB创建该扩展端口的虚端口,及用于该CB将该端口状态反馈至该虚端口,解决了控制设备CB无法快速发现和监控扩展设备PE的扩展端口的状态信息的问题,实现了CB可以快速发现和监控PE的所有扩展端口及状态信息,提高了处理效率。Through the above steps, the extension device PE sends an extension port creation message to the control device CB, wherein the extension port creation message carries the port status of the extension port of the PE, and the extension port creation message is used to notify the CB to create a virtual port of the extension port. The port, and the port used by the CB to feed back the port status to the virtual port, solves the problem that the control device CB cannot quickly discover and monitor the status information of the extension port of the extension device PE, and realizes that the CB can quickly discover and monitor all PEs. Expanded port and status information to improve processing efficiency.
在本实施例中,该PE接收该扩展端口创建消息的应答消息后,将该扩展端口的链路状态设置为通。In this embodiment, after receiving the response message of the extension port creation message, the PE sets the link state of the extension port to up.
在本实施例中,可以通过该扩展端口创建消息中的端口状态三元组TLV(Type-length-Value,类型-长度-值)字段携带该端口状态。In this embodiment, the port state may be carried through the port state triplet TLV (Type-length-Value, type-length-value) field in the extension port creation message.
在本实施例中提供了一种扩展端口的处理方法,图2是根据本发明实施例的一种扩展端口的处理方法的流程图二,如图2所示,该流程包括如下步骤:A method for processing an expansion port is provided in this embodiment, and FIG. 2 is a second flowchart of a method for processing an expansion port according to an embodiment of the present invention. As shown in FIG. 2 , the process includes the following steps:
步骤S202,控制设备CB接收扩展设备PE发送的扩展端口创建消息,其中,该扩展端口创建消息携带有该PE的扩展端口的端口状态;Step S202, the control device CB receives an extension port creation message sent by the extension device PE, wherein the extension port creation message carries the port state of the extension port of the PE;
步骤S204,该CB根据该扩展端口创建消息创建该扩展端口的虚端口,并将该端口状态反馈至该虚端口。Step S204, the CB creates a virtual port of the extension port according to the extension port creation message, and feeds back the port status to the virtual port.
通过上述步骤,控制设备CB接收扩展设备PE发送的扩展端口创建消息,其中,该扩展端口创建消息携带有该PE的扩展端口的端口状态,该CB根据该扩展端口创建消息创建该扩展端口的虚端口,并将该端口状态反馈至该虚端口,解决了控制设备CB无法快速发现和监控扩展设备PE的扩展端口的状态信息的问题,实现了CB可以快速发现和监控PE的所有扩展端口及状态信息,提高了处理效率。Through the above steps, the control device CB receives an extension port creation message sent by the extension device PE, wherein the extension port creation message carries the port status of the extension port of the PE, and the CB creates a virtual port of the extension port according to the extension port creation message. port, and feed back the port status to the virtual port, which solves the problem that the control device CB cannot quickly discover and monitor the status information of the extension port of the extension device PE, and realizes that the CB can quickly discover and monitor all the extension ports and the status of the PE. information to improve processing efficiency.
在本实施例中,该CB将该端口状态通过用于指示链路状态的参数值反馈到该虚端口。In this embodiment, the CB feeds back the port state to the virtual port through a parameter value for indicating the link state.
在本实施例中,该端口状态携带于该扩展端口创建消息中的端口状态三元组TLV中。In this embodiment, the port state is carried in the port state triplet TLV in the extension port creation message.
在本实施例中还提供了一种扩展端口的处理装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a processing device for expanding a port is also provided, and the device is used to implement the above-mentioned embodiments and preferred implementations, and what has been described will not be repeated. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also possible and contemplated.
图3是根据本发明实施例的一种扩展端口的处理装置的结构框图一,如图3所示,该装置包括:FIG. 3 is a structural block diagram 1 of a processing device for an expansion port according to an embodiment of the present invention. As shown in FIG. 3 , the device includes:
发送模块32,用于扩展设备PE向控制设备CB发送扩展端口创建消息,其中,该扩展端口创建消息携带该PE的扩展端口的端口状态,该扩展端口创建消息用于通知该CB创建该扩展端口的虚端口,及用于该CB将该端口状态反馈至该虚端口。The sending module 32 is used for the extension device PE to send an extension port creation message to the control device CB, wherein the extension port creation message carries the port state of the extension port of the PE, and the extension port creation message is used to notify the CB to create the extension port The virtual port is used for the CB to feed back the port status to the virtual port.
通过上述装置,扩展设备PE向控制设备CB发送扩展端口创建消息,其中,该扩展端口创建消息携带该PE的扩展端口的端口状态,该扩展端口创建消息用于通知该CB创建该扩展端口的虚端口,及用于该CB将该端口状态反馈至该虚端口,解决了控制设备CB无法快速发现和监控扩展设备PE的扩展端口的状态信息的问题,实现了CB可以快速发现和监控PE的所有扩展端口及状态信息,提高了处理效率。Through the above device, the extension device PE sends an extension port creation message to the control device CB, wherein the extension port creation message carries the port status of the extension port of the PE, and the extension port creation message is used to notify the CB to create a virtual port of the extension port. The port, and the port used by the CB to feed back the port status to the virtual port, solves the problem that the control device CB cannot quickly discover and monitor the status information of the extension port of the extension device PE, and realizes that the CB can quickly discover and monitor all PEs. Expanded port and status information to improve processing efficiency.
在本实施例中,该装置还包括:In this embodiment, the device further includes:
应答模块,用于该PE接收该扩展端口创建消息的应答消息后,将该扩展端口的链路状态设置为通。The response module is used for the PE to set the link status of the extension port to be up after receiving the response message of the extension port creation message.
图4是根据本发明实施例的一种扩展端口的处理装置的结构框图二,如图4所示,该装置包括:FIG. 4 is a second structural block diagram of a processing device for an expansion port according to an embodiment of the present invention. As shown in FIG. 4 , the device includes:
接收模块42,用于控制设备CB接收扩展设备PE发送的扩展端口创建消息,其中,该扩展端口创建消息携带有该PE的扩展端口的端口状态;The receiving module 42 is used for the control device CB to receive the extension port creation message sent by the extension device PE, wherein the extension port creation message carries the port state of the extension port of the PE;
创建模块44,用于该CB根据该扩展端口创建消息创建该扩展端口的虚端口,并将该端口状态反馈至该虚端口。The creation module 44 is used for the CB to create a virtual port of the extension port according to the extension port creation message, and to feed back the port status to the virtual port.
通过上述装置,控制设备CB接收扩展设备PE发送的扩展端口创建消息,其中,该扩展端口创建消息携带有该PE的扩展端口的端口状态,该CB根据该扩展端口创建消息创建该扩展端口的虚端口,并将该端口状态反馈至该虚端口,解决了控制设备CB无法快速发现和监控扩展设备PE的扩展端口的状态信息的问题,实现了CB可以快速发现和监控PE的所有扩展端口及状态信息,提高了处理效率。Through the above device, the control device CB receives an extension port creation message sent by the extension device PE, wherein the extension port creation message carries the port status of the extension port of the PE, and the CB creates a virtual port of the extension port according to the extension port creation message. port, and feed back the port status to the virtual port, which solves the problem that the control device CB cannot quickly discover and monitor the status information of the extension port of the extension device PE, and realizes that the CB can quickly discover and monitor all the extension ports and the status of the PE. information to improve processing efficiency.
在本实施例中,将该端口状态反馈至该虚端口包括:In this embodiment, feeding back the port status to the virtual port includes:
该CB将该端口状态通过用于指示链路状态的参数值反馈到该虚端口。The CB feeds back the port state to the virtual port through a parameter value for indicating the link state.
在本发明的实施例中,还提供了一种扩展端口的处理系统,包括:控制设备CB和一个或多个扩展设备PE;In an embodiment of the present invention, a processing system for an expansion port is also provided, including: a control device CB and one or more expansion devices PE;
该PE向该CB发送扩展端口创建消息,其中,该扩展端口创建消息携带该PE的扩展端口的端口状态;The PE sends an extension port creation message to the CB, wherein the extension port creation message carries the port state of the extension port of the PE;
该CB根据该扩展端口创建消息创建该扩展端口的虚端口,并将该端口状态反馈至该虚端口。The CB creates a virtual port of the extension port according to the extension port creation message, and feeds back the port status to the virtual port.
下面结合优选实施例和实施方式对本发明进行详细说明。The present invention will be described in detail below with reference to the preferred embodiments and implementations.
本发明的提供的优选实施例,加快了CB对PE扩展端口的发现和监控,避免CB虚端口与PE扩展端口的不一致,同时减少消息发送次数。The preferred embodiment provided by the present invention speeds up the discovery and monitoring of the PE extension port by the CB, avoids the inconsistency between the CB virtual port and the PE extension port, and reduces the number of message sending.
本发明的优选实施例提供了一种CB快速发现和监控PE扩展端口的方法,包括:A preferred embodiment of the present invention provides a method for CB to quickly discover and monitor PE extension ports, including:
PE在Extended Port Create消息中直接增加端口参数(Port Status)TLV,携带扩展端口的MAC_Operational状态;The PE directly adds the port parameter (Port Status) TLV in the Extended Port Create message, which carries the MAC_Operational status of the extended port;
CB收到Extended Port Create消息后,创建一个与扩展端口相应的虚端口,并根据Port Status TLV中MAC_Operational状态,设置虚端口的状态和MAC_Enabled参数。After the CB receives the Extended Port Create message, it creates a virtual port corresponding to the extended port, and sets the virtual port status and MAC_Enabled parameters according to the MAC_Operational status in the Port Status TLV.
图5是根据本发明优选实施例的CB和PE组网示意图,如图5所示,CB和PE建立连接,此时PE的三个扩展口的MAC_Operational都处于FALSE状态。FIG. 5 is a schematic diagram of networking between CB and PE according to a preferred embodiment of the present invention. As shown in FIG. 5 , CB and PE establish a connection. At this time, the MAC_Operational of the three extension ports of PE are in the FALSE state.
本发明的优选实施例提出的MAC转发条目跨设备的方法在本实施例中主备设备上的相关工作流程如下:In the method for the cross-device MAC forwarding entry proposed by the preferred embodiment of the present invention, the relevant work flow on the active and standby devices in this embodiment is as follows:
图6是根据相关技术中的CB快速发现和监控PE工作流程的示意图,如图6所示,根据其他设备厂商工作流程,当PE扩展口2、3的MAC_Operational变为TRUE,创建了两个对应的虚端口,此时无法从CB快速发现和监控PE的扩展口1;当扩展口3MAC_Operational再变为FALSE,CB仍然是两个虚端口,此时扩展端口1和3虽然状态相同,但CB上只有扩展端口3的对应虚端口,没有扩展端口1的虚端口,只可以监控扩展端口3。Figure 6 is a schematic diagram of the workflow of quickly discovering and monitoring PEs according to the CB in the related art. As shown in Figure 6, according to the workflow of other equipment manufacturers, when the MAC_Operational of PE expansion ports 2 and 3 become TRUE, two corresponding At this time, the expansion port 1 of the PE cannot be quickly discovered and monitored from the CB; when the expansion port 3 MAC_Operational becomes FALSE again, the CB is still two virtual ports. There is only the corresponding virtual port of extension port 3, and there is no virtual port of extension port 1. Only extension port 3 can be monitored.
图7是根据本发明优选实施例的CB快速发现和监控PE工作流程的示意图,如图7所示,根据本发明优选实施例的工作流程,当CB和PE建立连接后,PE便将扩展端口1、2、3全部用Extended Port Create消息通知给CB,CB根据该消息创建三个对应的虚接口,此时可以从CB设置和监控PE的三个扩展口的参数;当PE扩展口2、3的MAC_Operational变为TRUE,PE发送Status Parameters Set消息,CB能快速对扩展端口进行监控;当扩展口3MAC_Operational再变为FALSE,PE也发送Status Parameters Set消息,CB的虚端口状态和PE的扩展端口状态仍然对应保持一致。FIG. 7 is a schematic diagram of the workflow of CB quickly discovering and monitoring PE according to the preferred embodiment of the present invention. As shown in FIG. 7 , according to the workflow of the preferred embodiment of the present invention, when the connection is established between the CB and the PE, the PE will extend the port 1, 2, and 3 are all notified to the CB with the Extended Port Create message, and the CB creates three corresponding virtual interfaces according to the message. At this time, the parameters of the three extended ports of the PE can be set and monitored from the CB; When the MAC_Operational of 3 becomes TRUE, the PE sends the Status Parameters Set message, and the CB can quickly monitor the extended port; when the extended port 3 MAC_Operational becomes FALSE again, the PE also sends the Status Parameters Set message, the virtual port status of the CB and the extended port of the PE. The state still corresponds to the same.
本优选实施例公开了一种数据中心网络技术中实现CB快速发现和监控PE的方法,该方法包括:建立一个扩展桥系统,包括CB和一个或多个PE;定义PE CSP协议,以此通过CB配置和监控PE;PE通过PE CSP定义的Extended Port Create消息向CB报告存在的扩展端口;在Extended Port Create消息中增加扩展端口的端口状态(MAC_Operational状态),CB通过该消息动态发现PE扩展端口,并获得扩展端口的状态信息。采用本发明后,CB可以快速发现PE设备的扩展端口,并能及时获取到扩展端口的状态信息。This preferred embodiment discloses a method for quickly discovering and monitoring PEs by a CB in a data center network technology. The method includes: establishing an extended bridge system, including a CB and one or more PEs; The CB configures and monitors the PE; the PE reports the existing extended port to the CB through the Extended Port Create message defined by the PE CSP; the port status (MAC_Operational status) of the extended port is added to the Extended Port Create message, and the CB dynamically discovers the PE extended port through this message , and get the status information of the expansion port. After adopting the invention, the CB can quickly discover the extension port of the PE device, and can obtain the state information of the extension port in time.
另外,在扩展桥系统中,PE通过Extended Port Create消息向CB报告存在的扩展端口的同时,向CB报告对应扩展端口的MAC_Operational状态;In addition, in the extension bridge system, the PE reports the existing extension port to the CB through the Extended Port Create message, and reports the MAC_Operational state of the corresponding extension port to the CB;
CB收到Extended Port Create消息后,创建一个相应的虚端口,以便用户可以将物理桥的端口通过点对点LAN连接扩展到远端PE,并将扩展端口的MAC_Operational状态通过MAC_Enabled参数反馈到相应的虚端口;After the CB receives the Extended Port Create message, it creates a corresponding virtual port, so that the user can extend the port of the physical bridge to the remote PE through the point-to-point LAN connection, and feed back the MAC_Operational status of the extended port to the corresponding virtual port through the MAC_Enabled parameter ;
PE收到Extended Port Create应答消息后,扩展端口的MAC_Enabled参数置TRUE。After the PE receives the Extended Port Create response message, the MAC_Enabled parameter of the extended port is set to TRUE.
在原有PE CSP协议基础上,在Extended Port Create消息中增加一个PortStatus TLV,携带扩展端口MAC_Operational状态。On the basis of the original PE CSP protocol, a PortStatus TLV is added to the Extended Port Create message, which carries the MAC_Operational status of the extended port.
本优选实施例提出了一种数据中心网络技术中实现CB快速发现和监控PE的方法,通过在Extended Port Create消息中直接携带扩展端口的MAC_Operational状态,使CB可以快速发现和监控PE的所有扩展端口,同时减少了Status Parameters Set消息的发送,提高了处理效率。This preferred embodiment proposes a method for CB to quickly discover and monitor PE in the data center network technology. By directly carrying the MAC_Operational status of the extension port in the Extended Port Create message, the CB can quickly discover and monitor all the extension ports of the PE. , while reducing the sending of Status Parameters Set messages and improving processing efficiency.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行上述实施例方法的程序代码:Embodiments of the present invention also provide a storage medium. Optionally, in this embodiment, the above-mentioned storage medium may be configured to store program codes for executing the method of the above-mentioned embodiment:
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a U disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a mobile hard disk, a magnetic Various media that can store program codes, such as discs or optical discs.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行上述实施例的方法。Optionally, in this embodiment, the processor executes the method of the foregoing embodiment according to the program code stored in the storage medium.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented by a general-purpose computing device, which can be centralized on a single computing device, or distributed in a network composed of multiple computing devices Alternatively, they may be implemented in program code executable by a computing device, such that they may be stored in a storage device and executed by the computing device, and in some cases, in a different order than here The steps shown or described are performed either by fabricating them separately into individual integrated circuit modules, or by fabricating multiple modules or steps of them into a single integrated circuit module. As such, the present invention is not limited to any particular combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims (9)
Priority Applications (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510280185.0A CN106169982B (en) | 2015-05-27 | 2015-05-27 | Processing method, device and system of expansion port |
| PCT/CN2015/096867 WO2016188081A1 (en) | 2015-05-27 | 2015-12-09 | Extended port processing method, apparatus and system |
| RU2017144315A RU2693903C1 (en) | 2015-05-27 | 2015-12-09 | Method, apparatus and processing system for expanded port |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510280185.0A CN106169982B (en) | 2015-05-27 | 2015-05-27 | Processing method, device and system of expansion port |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106169982A CN106169982A (en) | 2016-11-30 |
| CN106169982B true CN106169982B (en) | 2020-09-08 |
Family
ID=57359020
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510280185.0A Active CN106169982B (en) | 2015-05-27 | 2015-05-27 | Processing method, device and system of expansion port |
Country Status (3)
| Country | Link |
|---|---|
| CN (1) | CN106169982B (en) |
| RU (1) | RU2693903C1 (en) |
| WO (1) | WO2016188081A1 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108809672B (en) * | 2017-04-26 | 2022-04-19 | 中兴通讯股份有限公司 | Virtual port management method and device |
| CN109728991B (en) * | 2017-10-31 | 2021-11-02 | 中兴通讯股份有限公司 | Method, device, equipment and storage medium for rapidly recovering extended bridge system |
| CN109274516B (en) * | 2017-12-22 | 2022-01-25 | 新华三技术有限公司 | Extended network bridge and online control method thereof |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102223312A (en) * | 2011-07-26 | 2011-10-19 | 杭州华三通信技术有限公司 | Flow control method and equipment based on link status |
| CN102769558A (en) * | 2011-05-06 | 2012-11-07 | 中兴通讯股份有限公司 | Method, system and controlling bridge for acquiring port extension topology information |
| CN104092595A (en) * | 2014-07-21 | 2014-10-08 | 杭州华三通信技术有限公司 | Message processing method and device based on 802.1 BR virtualization system |
| US9294396B2 (en) * | 2013-03-12 | 2016-03-22 | Dell Products L.P. | Port extender |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8249104B2 (en) * | 2008-10-30 | 2012-08-21 | Futurewei Technologies, Inc. | Optical network terminal management and control interface over Ethernet |
| US8495551B2 (en) * | 2009-12-17 | 2013-07-23 | International Business Machines Corporation | Shaping ports in integrated circuit design |
| CN102480412B (en) * | 2010-11-24 | 2016-03-30 | 中兴通讯股份有限公司 | Realize the method and system that S-channel sets up |
| CN102684979B (en) * | 2011-03-11 | 2018-08-14 | 中兴通讯股份有限公司 | A kind of multicast data forwarding method and device for supporting virtual terminal |
| US9077650B2 (en) * | 2012-05-31 | 2015-07-07 | Broadcom Corporation | Multi-homing in an extended bridge |
| RU2549120C2 (en) * | 2012-12-21 | 2015-04-20 | Акционерное общество "Концерн "Созвездие" | Telecommunication network data transmission means and telecommunication network |
| CN104427012B (en) * | 2013-09-04 | 2018-12-11 | 新华三技术有限公司 | Port negotiation method and apparatus |
-
2015
- 2015-05-27 CN CN201510280185.0A patent/CN106169982B/en active Active
- 2015-12-09 WO PCT/CN2015/096867 patent/WO2016188081A1/en not_active Ceased
- 2015-12-09 RU RU2017144315A patent/RU2693903C1/en active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102769558A (en) * | 2011-05-06 | 2012-11-07 | 中兴通讯股份有限公司 | Method, system and controlling bridge for acquiring port extension topology information |
| CN102223312A (en) * | 2011-07-26 | 2011-10-19 | 杭州华三通信技术有限公司 | Flow control method and equipment based on link status |
| US9294396B2 (en) * | 2013-03-12 | 2016-03-22 | Dell Products L.P. | Port extender |
| CN104092595A (en) * | 2014-07-21 | 2014-10-08 | 杭州华三通信技术有限公司 | Message processing method and device based on 802.1 BR virtualization system |
Non-Patent Citations (1)
| Title |
|---|
| 《Virtual Bridged Local Area Networks-Bridge Port Extension》;LAN/MAN Standards Committee;《IEEE Std 802.1BRTM -2012》;20120716;第9.8.2、9.8.6节 * |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2016188081A1 (en) | 2016-12-01 |
| RU2693903C1 (en) | 2019-07-05 |
| CN106169982A (en) | 2016-11-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9054958B2 (en) | System and method for reducing information loss in an aggregated information handling system | |
| US9872205B2 (en) | Method and system for sideband communication architecture for supporting manageability over wireless LAN (WLAN) | |
| CN103026660B (en) | Network policy configuration method, management equipment, and network management center equipment | |
| US20160344633A1 (en) | Load balancing method, device, system and computer storage medium | |
| WO2018024121A1 (en) | Network function (nf) management method and nf management device | |
| US10581697B2 (en) | SDN controlled PoE management system | |
| CN106453124A (en) | Traffic scheduling method and device | |
| CN101083557A (en) | SNMP based IP network cluster managerial approach | |
| CN106656846A (en) | Construction method of coordination layer in software defined network (SDN) architecture | |
| KR20190029486A (en) | Elastic honeynet system and method for managing the same | |
| CN105429938A (en) | Resource allocation method and device | |
| CN106330786A (en) | MAC address synchronization method, apparatus and system | |
| US10498581B2 (en) | Event processing in a network management system | |
| CN110536359B (en) | Network slicing creation method, device, device and storage medium | |
| CN106169982B (en) | Processing method, device and system of expansion port | |
| WO2016180156A1 (en) | Router cluster upgrade system, method and apparatus | |
| CN104811403A (en) | Openflow-based group table processing method and device and group table configuration unit | |
| US20150023215A1 (en) | TRILL Network Establishing Method, Node, and System | |
| CN108512679B (en) | Gateway equipment management method and device | |
| WO2017000625A1 (en) | Dynamic host configuration protocol (dhcp) server management method and apparatus | |
| CN112217680B (en) | Controller capability benchmark test method and device based on software-defined wide area network | |
| CN111901395B (en) | Multi-cluster switching method and device | |
| CN111478937B (en) | Load balancing method and device | |
| CN106341252A (en) | Resource management method and device and control terminal | |
| US10277700B2 (en) | Control plane redundancy system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |
