WO2020119317A1 - 报文转发方法及装置、存储介质、电子装置 - Google Patents
报文转发方法及装置、存储介质、电子装置 Download PDFInfo
- Publication number
- WO2020119317A1 WO2020119317A1 PCT/CN2019/114787 CN2019114787W WO2020119317A1 WO 2020119317 A1 WO2020119317 A1 WO 2020119317A1 CN 2019114787 W CN2019114787 W CN 2019114787W WO 2020119317 A1 WO2020119317 A1 WO 2020119317A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- aggregation group
- member ports
- forwarding
- register
- entry
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/70—Virtual switches
-
- 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/24—Multipath
- H04L45/245—Link aggregation, e.g. trunking
-
- 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/32—Flooding
-
- 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/38—Flow based routing
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/50—Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
Definitions
- the present invention relates to the field of communications, and in particular, to a message forwarding method and device, storage medium, and electronic device.
- SmartGroup link aggregation
- VSC Virtual Switching Cluster
- VSC Virtual Switching Cluster
- the member ports in a link aggregation SmartGroup group are often distributed to each member device for timely switching and forwarding of traffic.
- the packet When SmartGroup is used as the outgoing port of traffic, the packet will be forwarded by selecting a member port in the aggregation group through a hash algorithm. In order to facilitate the monitoring and analysis of the traffic, it is often desirable to select the shortest path for the traffic entering from the device and preferentially forward it from the member ports of the device in the aggregation group.
- the entries PORT_NUM and MODULE_ID in the SmartGroup registers TRUNK_GROUP and TRUNK_MEMBER related to their forwarding can distinguish whether the member port is the device port. Therefore, the function of local forwarding of known unicast messages in the VSC system can be realized by setting related register entries.
- Embodiments of the present invention provide a message forwarding method and device, a storage medium, and an electronic device, so as to at least solve the problem that the device in the related art cannot realize local preferential forwarding after receiving an unknown unicast message.
- a packet forwarding method includes: setting a register entry on the first device in the following manner: only the member ports of the aggregation group of the first device and the members are set The number of ports is used as the register entry; the unknown unicast message received by the first device is forwarded according to the set register entry.
- a message forwarding apparatus including: a setting module, configured to set a register entry on a first device in the following manner: only grouping the aggregation group of the first device The number of member ports and the number of member ports is used as the register entry; the forwarding module is configured to forward the non-known unicast message received by the first device according to the set register entry.
- a storage medium characterized in that a computer program is stored in the storage medium, wherein the computer program is configured to execute the message forwarding method when running.
- an electronic device including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute The message forwarding method.
- FIG. 1 is a schematic diagram of unknown unicast message forwarding in a VSC system in the related art
- FIG. 2 is a flowchart of a message forwarding method according to an embodiment of the present invention.
- FIG. 3 is a schematic diagram of non-known unicast local preferential forwarding of a VSC system according to an embodiment of the present invention
- FIG. 4 is a structural block diagram of a packet forwarding device according to an embodiment of the present invention.
- FIG. 5 is another structural block diagram of a packet forwarding device according to an embodiment of the present invention.
- FIG. 6 is a flow chart of non-known unicast local preferential forwarding of the VSC system according to the preferred embodiment of the present invention.
- traffic a non-known unicast message (hereinafter referred to as traffic) enters the Flood to SmartGroup from this device, if the device has a member port of the aggregation group, the traffic will be forwarded from the port of the device If the device does not have member port traffic in the aggregation group, select the member ports of other devices for forwarding.
- traffic a non-known unicast message
- the mechanism for forwarding the unknown unicast packets of the VSC system is as follows: As shown in Figure 1, taking Switch A and Switch B as an example, the 1 port and 2 port of device A are the same as the 3 port and 4 port of device B. Smart Group1, at this time, the settings of the BLOCK_MASK entry in the NONUCAST_TRUNK_BLOCK_MASK register on the A and B devices are as follows.
- the unknown unicast traffic entering the A device is used as an example for analysis.
- the following embodiments of the present invention provide a new method for setting the NONUCAST_TRUNK_BLOCK_MASK register.
- FIG. 2 is a flowchart of a message forwarding method according to an embodiment of the present invention. As shown in FIG. 2, it includes: step S202, setting the Register entry: only the member ports of the aggregation group of the first device and the number of the member ports are used as the register entry; in step S204, the first device is forwarded according to the set register entry Unknown unicast messages.
- the embodiment of the present invention further provides the following technical solution: forwarding the first item according to the set register entry Before the unknown unicast message received by a device, the method further includes: determining whether other devices have member ports of the aggregation group, wherein the first device and the other devices are located in the same virtual trunking switching VSC system; After determining that the other device has a member port of the aggregation group, enable cross-device traffic isolation on the first device to prevent the unknown unicast message from being forwarded from the member port of the other device , When it is determined that the other device does not have a member port of the aggregation group, the other device may not be processed.
- the register entry on the first device is set at least in the following manner: only the member ports of the aggregation group of the first device and the number of the member ports are used as the register entry,
- the method further includes: obtaining a distribution situation of the aggregation group on the first device, where the distribution situation includes: member ports of the aggregation group and the number of the member ports on the first device .
- the number of the other devices is at least one, that is, in the foregoing VSC system, multiple devices may be included.
- forwarding the non-known unicast message received by the first device according to the set register entry includes: selecting a member port from the set register entry; based on the member port Forward the non-known unicast message.
- the register entry on the first device is set in the following manner: only the member ports of the aggregation group of the first device and the number of the member ports are used as the register entry.
- the method further includes: judging whether the member port of the aggregation group of the first device exists on the first device, wherein, when the judgment result is yes, setting the register entry on the first device in the following manner: Only the member ports of the aggregation group of the first device and the number of the member ports are used as the register entry.
- the following example takes two devices in the VSC system: device A (Switch A) and device B (Switch B) as examples.
- Switch A and Switch B construct a VSC system.
- Port 1 and port 2 of device A form the same SmartGroup1 as port 3 and port 4 of device B.
- the specific implementation method is as follows: If device A has member ports in SmartGroup1 At this time, only the A device member port and the number entry BLOCK_MASK in the NONUCAST_TRUNK_BLOCK_MASK setting register are delivered, and the A device register settings are shown below.
- the register After the register is set in the above manner, it can be ensured that the traffic entered by the A device can be forwarded from the member port 1 or 2 of the aggregation group.
- the B device also has a member port in the SmartGroup1, the cross-device traffic destination port isolation is enabled. Function, when the traffic is flooded to the destination port SmartGroup1 of the B device through the Hig port, the member ports (ports 3 and 4) in the aggregation group are isolated to prevent the problem of doubling the flooded traffic forwarding.
- the A device does not have SmartGroup1 When a member port is used, it is processed according to the existing forwarding mode.
- the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware, but in many cases the former is Better implementation.
- the technical solutions of the present invention can be embodied in the form of software products in essence or part of contributions to the existing technology, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk,
- the CD-ROM includes several instructions to enable a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the embodiments of the present invention.
- a packet forwarding device is also provided.
- the device is used to implement the above-mentioned embodiments and preferred implementation modes, and those that have already been described will not be repeated.
- the term "module” may implement a combination of software and/or hardware that performs predetermined functions.
- the devices described in the following embodiments are preferably implemented in software, implementation of hardware or a combination of software and hardware is also possible and conceived.
- the apparatus includes: a setting module 40, configured to set a register entry on the first device in the following manner: only the The number of member ports of the aggregation group of the first device and the number of the member ports are used as the register entry; the forwarding module 42 is used to forward the non-known receipt received by the first device according to the set register entry Broadcast message.
- a setting module 40 configured to set a register entry on the first device in the following manner: only the The number of member ports of the aggregation group of the first device and the number of the member ports are used as the register entry
- the forwarding module 42 is used to forward the non-known receipt received by the first device according to the set register entry Broadcast message.
- the apparatus further includes: a judgment module 44 for judging whether other devices have member ports of the aggregation group, wherein the first device and the other devices are located in the same In the virtual trunking switching VSC system; the opening module 46 is used to enable the cross-device traffic isolation function on the first device after it is determined that the other device has a member port of the aggregation group to prevent the unauthorized Knowing that unicast packets are forwarded from member ports of the other devices.
- the apparatus further includes: an obtaining module 48, configured to obtain the distribution of the aggregation group on the first device, the distribution including: the first The member ports of the aggregation group and the number of member ports on a device.
- the number of other devices in the VSC system is at least one.
- FIG. 6 is a flow chart of non-known unicast local preferential forwarding of a VSC system according to a preferred embodiment of the present invention. As shown in FIG. 6, it includes: Step S502, Switch A and Switch B construct a VSC system, Switch A is a master device, and Switch B is the standby device, configure SmartGroup1; Step S504, record the distribution of SmartGroup1 member ports on each device through the information recording module; Step S506, determine whether there are member ports in SmartGroup1 located in the A device, if not, do not process.
- Step S508 if a member port in SmartGroup1 is located in the A device, the local member port and the entry BLOCK_MASK in the number setting register NONUCAST_TRUNK_BLOCK_MASK are delivered.
- step S508 it is determined whether the B device has a member port in SmartGroup1, and if not, it is not processed.
- step S510 if a member port in SmartGroup1 is located in the B device, the local member port of the A device is isolated to prevent the flooding traffic flowing from the Hig port connecting the A device and the B device containing the member port from being forwarded from the member port of the A device.
- Step S512 if there is no member port in the SmartGroup1 located in the B device, the processing is performed according to the original flow.
- An embodiment of the present invention further provides a storage medium, the storage medium including a stored program, wherein the method described above is executed when the above program runs.
- the above-mentioned storage medium may be set to store program code for performing the following steps: S1, setting the register entry on the first device in the following manner: only the first device's The member ports of the aggregation group and the number of the member ports are used as the register entry; S2, forwarding the non-known unicast message received by the first device according to the set register entry.
- the above storage medium may include, but is not limited to: a USB flash drive, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), Various media that can store program codes, such as removable hard disks, magnetic disks, or optical disks.
- modules or steps of the present invention can be implemented by a universal computing device, they can be concentrated on a single computing device, or distributed in a network composed of multiple computing devices Above, optionally, they can be implemented with program code executable by the computing device, so that they can be stored in the storage device to be executed by the computing device, and in some cases, can be in a different order than here
- the steps shown or described are performed, or they are made into individual integrated circuit modules respectively, or multiple modules or steps among them are made into a single integrated circuit module to achieve. In this way, the present invention is not limited to any specific combination of hardware and software.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明提供了一种报文转发方法及装置、存储介质、电子装置,其中,上述方法包括:按照以下方式设置第一设备上的寄存器表项:仅将所述第一设备的聚合组的成员端口和所述成员端口的个数作为所述寄存器表项;按照设置的所述寄存器表项转发所述第一设备接收的非已知单播报文。
Description
交叉引用
本发明要求在2018年12月14日提交中国专利局、申请号为201811534502.7、发明名称为“报文转发方法及装置、存储介质、电子装置”的中国专利申请的优先权,该申请的全部内容通过引用结合在本发明中。
本发明涉及通信领域,具体而言,涉及一种报文转发方法及装置、存储介质、电子装置。
随着通信技术的发展,为了满足拓扑网络之间高宽带、高稳定性以及冗余备份的高可靠性要求,链路聚合(SmartGroup)功能被广泛用于虚拟交换集群环境。
虚拟交换集群(Vritual Switch Cluster,简称为VSC)作为一种网络虚拟化技术,可以将多个单独运行的物理设备组成一个虚拟设备,彼此之间通过拓扑发现协议发现对方,并通过一台主设备来管理整个VSC***,其他设备作为备份设备担任转发角色。在VSC***中,为了保障某一成员设备出现意外故障后***运行及流量转发不受影响,一个链路聚合SmartGroup组中的成员端口往往分布于各个成员设备用于流量的及时切换和转发。
SmartGroup作为流量出端口时,报文会通过哈希算法选择聚合组中一个成员端口进行转发。为了便于对流量的监控和分析,往往希望从本设备进入的流量选择最短路径,优先从聚合组中本设备的成员端口进行转发。对于已知单播报文,由于与其转发相关的SmartGroup寄存器TRUNK_GROUP、TRUNK_MEMBER中表项PORT_NUM、MODULE_ID可以区分成员端口是否为本设备端口。因此通过对相关寄存器表项的设置可以实现已知单播报文在VSC***中本地优先转发的功能。
然而,对于VSC***中出端口为SmartGroup的非已知单播报文,是不支持本地优先转发的。这是由于非已知单播具有泛洪的特性以及相关SmartGroup寄存器表项NONUCAST_TRUNK_BLOCK_MASK中表项BLOCK_MASK是以VSC***聚合组中的所有成员端口掩码的方式进行设置的,进入设备的报文哈希到索引值后从所有成员端口中选择一个端口进行转发,未能实现本地优先转发。
针对相关技术中,设备接收到非已知单播报文后,无法实现本地优先转发等问题,尚未提出有效的技术方案。
发明内容
本发明实施例提供了一种报文转发方法及装置、存储介质、电子装置,以至少解决相关技术中设备接收到非已知单播报文后,无法实现本地优先转发等问题。
根据本发明的一个实施例,还提供了一种报文转发方法,包括:按照以下方式设置第一设备上的寄存器表项:仅将所述第一设备的聚合组的成员端口和所述成员端口的个数作为所述寄存器表项;按照设置的所述寄存器表项转发所述第一设备接收的非已知单播报文。
根据本发明的另一个实施例,还提供了一种报文转发装置,包括:设置模块,用于按照以下方式设置第一设备上的寄存器表项:仅将所述第一设备的聚合组的成员端口和所述成员端口的个数作为所述寄存器表项;转发模块,用于按照设置的所述寄存器表项转发所述第一设备接收的非已知单播报文。
根据本发明的另一个实施例,还提供了一种存储介质,其特征在于,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述报文转发方法。
根据本发明的另一个实施例,还提供了一种电子装置,包括存储器和处理器,其特征在于,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行所述报文转发方法。
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是相关技术中VSC***非已知单播报文转发示意图;
图2为根据本发明实施例的报文转发方法的流程图;
图3为根据本发明实施例的VSC***非已知单播本地优先转发示意图;
图4是根据本发明实施例的报文转发装置的结构框图;
图5是根据本发明实施例的报文转发装置的另一结构框图;
图6为根据本发明优选实施例的VSC***非已知单播本地优先转发流程图。
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
现有的VSC***中,当非已知单播报文(以下简称为流量)从本设备进入泛洪到SmartGroup时,如果本设备有该聚合组的成员端口,流量会选择从本设备端口进行转发,如果本设备没有该聚合组中的成员端口流量则选择其他设备的成员端口进行转发。
现阶段VSC***非已知单播报文的转发机理如下:如图1所示,以Switch A和Switch B构建VSC***为例,A设备1端口、2端口与B设备3端口、4端口组成同一Smart Group1,此时A、B设备上寄存器NONUCAST_TRUNK_BLOCK_MASK中表项BLOCK_MASK设置如下所示。
基于上述表项设置,以进入A设备的非已知单播流量为例进行分析,首先根据报文内容哈希出一索引(以1为例),根据这一索引查找A、B设备寄存器表项BLOCK_MASK(此时A设备表项为ipipe0[1]:<BLOCK_MASK=0x0006>;B设备表项为ipipe0[1]:<BLOCK_MASK=0x0008>),A设备中成员口1端口、2端口和B设备成员口4端口被掩掉,则流量会选择从B设备3端口进行转发。由于非已知单播流量转发相关SmartGroup寄存器表项下发的为VSC***聚合组中的所有成员端口个数,致使非已知单播报文未能实现本地优先转发。
为了能够实现VSC***中非已知单播报文本地优先转发的功能,本发明以下实施例提供了NONUCAST_TRUNK_BLOCK_MASK寄存器设置的新方法。
实施例1
本发明实施例提供了一种报文转发方法,图2为根据本发明实施例的报文转发方法的流程图,如图2所示,包括:步骤S202,按照以下方式设置第 一设备上的寄存器表项:仅将所述第一设备的聚合组的成员端口和所述成员端口的个数作为所述寄存器表项;步骤S204,按照设置的所述寄存器表项转发所述第一设备接收的非已知单播报文。
通过上述步骤,通过先按照以下方式设置第一设备上的寄存器表项:仅将所述第一设备的聚合组的成员端口和所述成员端口的个数作为所述寄存器表项,然后按照设置的寄存器表项转发所述第一设备接收的非已知单播报文,采用上述技术方案,解决了相关技术中,设备接收到非已知单播报文后,无法实现本地优先转发等问题,进而可以优先转发非已知单播报文。
在实际应用中,为了避免第一设备接收到的非已知单播报文泛洪到其他设备,本发明实施例中,还提供了以下技术方案:按照设置的所述寄存器表项转发所述第一设备接收的非已知单播报文之前,所述方法还包括:判断其他设备是否存在所述聚合组的成员端口,其中,所述第一设备和其他设备位于同一虚拟集***换VSC***中;在判定所述其他设备存在所述聚合组的成员端口后,在所述第一设备上开启跨设备的流量隔离功能,以防所述非已知单播报文从所述其他设备的成员端口转发,在判定所述其他设备不存在所述聚合组的成员端口时,对其他设备可不作处理。
在本发明实施例中,至少按照以下方式设置第一设备上的寄存器表项:仅将所述第一设备的聚合组的成员端口和所述成员端口的个数作为所述寄存器表项之前,所述方法还包括:获取所述聚合组在所述第一设备上的分布情况,所述分布情况包括:所述第一设备上的所述聚合组的成员端口和所述成员端口的个数。
在本发明实施例中,所述其他设备的个数为至少一个,即在上述VSC***中,可以包括多个设备。
在本发明实施例中,按照设置的所述寄存器表项转发所述第一设备接收的非已知单播报文,包括:从设置的所述寄存器表项中选择成员端口;基于所述成员端口转发所述非已知单播报文。
在本发明实施例中,按照以下方式设置第一设备上的寄存器表项:仅将所述第一设备的聚合组的成员端口和所述成员端口的个数作为所述寄存器表项之前,所述方法还包括:判断所述第一设备上是否存在所述所述第一设备的聚合组的成员端口,其中,在判断结果为是时,按照以下方式设置第一设备上的寄存器表项:仅将所述第一设备的聚合组的成员端口和所述成员端口的个数作为所述寄存器表项。
以下示例以VSC***中存在两个设备:A设备(Switch A)和B设备(Switch B)为例进行说明。
如图3所示,其中,Switch A和Switch B构建VSC***,A设备1端口、2端口与B设备3端口、4端口组成同一SmartGroup1,具体实现的方法如下:若A设备有SmartGroup1中成员端口时,则只下发A设备成员端口和个数设置寄存器NONUCAST_TRUNK_BLOCK_MASK中表项BLOCK_MASK,A设备寄存器设置如下所示。
在寄存器采用上述方式设置后,此时可以确保A设备进入的流量可以从聚合组中成员端口1口或2口进行转发,同时若B设备也有SmartGroup1中成员端口,则开启跨设备流量目的端口隔离功能,当流量通过Hig端口泛洪到B设备目的端口SmartGroup1时,将聚合组中成员端口(3、4端口)隔离掉,防止形成泛洪流量转发翻倍的问题,当然,若A设备没有SmartGroup1中成员端口时,则按照现有转发模式进行处理。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。
实施例2
在本实施例中还提供了一种报文转发装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图4是根据本发明实施例的报文转发装置的结构框图,如图4所示,该装置包括:设置模块40,用于按照以下方式设置第一设备上的寄存器表项:仅将所述第一设备的聚合组的成员端口和所述成员端口的个数作为所述寄存器表项;转发模块42,用于按照设置的所述寄存器表项转发所述第一设备接收的非已知单播报文。
通过本发明的技术方案,通过先按照以下方式设置第一设备上的寄存器表项:仅将所述第一设备的聚合组的成员端口和所述成员端口的个数作为所述寄存器表项,然后按照设置的寄存器表项转发所述第一设备接收的非已知单播报文,采用上述技术方案,解决了相关技术中,设备接收到非已知单播报文后,无法实现本地优先转发等问题,进而可以优先转发非已知单播报文。
如图5所示,在本发明实施例中,所述装置还包括:判断模块44,用于判断其他设备是否存在所述聚合组的成员端口,其中,所述第一设备和其他设备位于同一虚拟集***换VSC***中;开启模块46,用于在判定所述其 他设备存在所述聚合组的成员端口后,在所述第一设备上开启跨设备的流量隔离功能,以防所述非已知单播报文从所述其他设备的成员端口转发。
在本发明实施例中,如图5所示,所述装置还包括:获取模块48,用于获取所述聚合组在所述第一设备上的分布情况,所述分布情况包括:所述第一设备上的所述聚合组的成员端口和所述成员端口的个数。
需要说明的是,上述VSC***中的其他设备的个数为至少一个。
需要说明的是,上述实施例1-实施例2的技术方案可以结合使用,也可以单独使用,本发明实施例对此不作限定。
以下结合优选实施例对上述技术方案进行说明,但不用于限定本发明实施例的技术方案。
优选实施例1
图6为根据本发明优选实施例的VSC***非已知单播本地优先转发流程图,如图6所示,包括:步骤S502,Switch A和Switch B构建VSC***,Switch A为主设备,Switch B为备设备,配置SmartGroup1;步骤S504,通过信息记录模块记录SmartGroup1成员端口在各设备上的分布情况;步骤S506,判断SmartGroup1中是否有成员端口位于A设备,若没有则不作处理。
步骤S508,若SmartGroup1中有成员端口位于A设备,下发本地成员端口和个数设置寄存器NONUCAST_TRUNK_BLOCK_MASK中表项BLOCK_MASK。
步骤S508,判断B设备是否有SmartGroup1中成员端口,若没有则不作处理。
步骤S510,若SmartGroup1中有成员端口位于B设备,则对A设备本地成员端口进行隔离,防止从A设备与含有成员端口的B设备连接的Hig端口流入的泛洪流量从A设备成员端口转发。
步骤S512,若SmartGroup1中没有成员端口位于B设备,则按照原流程进行处理。
实施例3
本发明的实施例还提供了一种存储介质,该存储介质包括存储的程序,其中,上述程序运行时执行上述任一项的方法。
可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:S1,按照以下方式设置第一设备上的寄存器表项:仅将所述第一设备的聚合组的成员端口和所述成员端口的个数作为所述寄存器表项;S2,按照设置的所述寄存器表项转发所述第一设备接收的非已知单播报文。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
Claims (10)
- 一种报文转发方法,其中,包括:按照以下方式设置第一设备上的寄存器表项:仅将所述第一设备的聚合组的成员端口和所述成员端口的个数作为所述寄存器表项;按照设置的所述寄存器表项转发所述第一设备接收的非已知单播报文。
- 根据权利要求1所述的方法,其中,按照设置的所述寄存器表项转发所述第一设备接收的非已知单播报文之前,所述方法还包括:判断其他设备是否存在所述聚合组的成员端口,其中,所述第一设备和其他设备位于同一虚拟集***换VSC***中;在判定所述其他设备存在所述聚合组的成员端口后,在所述第一设备上开启跨设备的流量隔离功能,以防所述非已知单播报文从所述其他设备的成员端口转发。
- 根据权利要求1所述的方法,其中,至少按照以下方式设置第一设备上的寄存器表项:仅将所述第一设备的聚合组的成员端口和所述成员端口的个数作为所述寄存器表项之前,所述方法还包括:获取所述聚合组在所述第一设备上的分布情况,所述分布情况包括:所述第一设备上的所述聚合组的成员端口和所述成员端口的个数。
- 根据权利要求2或3所述的方法,其中,所述其他设备的个数为至少一个。
- 根据权利要求1所述的方法,其中,按照设置的所述寄存器表项转发所述第一设备接收的非已知单播报文,包括:从设置的所述寄存器表项中选择成员端口;基于所述成员端口转发所述非已知单播报文。
- 根据权利要求1所述的方法,其中,按照以下方式设置第一设备上的寄存器表项:仅将所述第一设备的聚合组的成员端口和所述成员端口的个数作为所述寄存器表项之前,所述方法还包括:判断所述第一设备上是否存在所述所述第一设备的聚合组的成员端口,其中,在判断结果为是时,按照以下方式设置第一设备上的寄存器表项:仅将所述第一设备的聚合组的成员端口和所述成员端口的个数作为所述寄存器表项。
- 一种报文转发装置,其中,包括:设置模块,用于按照以下方式设置第一设备上的寄存器表项:仅将所述第一设备的聚合组的成员端口和所述成员端口的个数作为所述寄存器表项;转发模块,用于按照设置的所述寄存器表项转发所述第一设备接收的非已知单播报文。
- 根据权利要求7所述的装置,其中,所述装置还包括:判断模块,用于判断其他设备是否存在所述聚合组的成员端口,其中,所述第一设备和其他设备位于同一虚拟集***换VSC***中;开启模块,用于在判定所述其他设备存在所述聚合组的成员端口后,在所述第一设备上开启跨设备的流量隔离功能,以防所述非已知单播报文从所述其他设备的成员端口转发。
- 一种存储介质,其中,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至6任一项中所述的方法。
- 一种电子装置,包括存储器和处理器,其中,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行所述权利要求1至6任一项中所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811534502.7 | 2018-12-14 | ||
CN201811534502.7A CN111327543A (zh) | 2018-12-14 | 2018-12-14 | 报文转发方法及装置、存储介质、电子装置 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020119317A1 true WO2020119317A1 (zh) | 2020-06-18 |
Family
ID=71076199
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/114787 WO2020119317A1 (zh) | 2018-12-14 | 2019-10-31 | 报文转发方法及装置、存储介质、电子装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111327543A (zh) |
WO (1) | WO2020119317A1 (zh) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114338538A (zh) * | 2021-12-30 | 2022-04-12 | 锐捷网络股份有限公司 | 一种表项更新方法、装置、电子设备及存储介质 |
CN114374659A (zh) * | 2022-01-18 | 2022-04-19 | 苏州盛科科技有限公司 | 一种堆叠***中实现本地优先转发的方法、装置及存储介质 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102769568A (zh) * | 2012-07-19 | 2012-11-07 | 中兴通讯股份有限公司 | 一种基于虚拟交换集群的流量转发方法及*** |
CN103248581A (zh) * | 2013-05-20 | 2013-08-14 | 杭州华三通信技术有限公司 | 聚合链路负载分担方法和装置 |
US20150032815A1 (en) * | 2012-07-31 | 2015-01-29 | Hangzhou H3C Technologies Co., Ltd. | Message forwarding in data center network |
CN104506437A (zh) * | 2014-12-29 | 2015-04-08 | 杭州华三通信技术有限公司 | 一种表项建立方法及装置 |
CN107634905A (zh) * | 2016-07-19 | 2018-01-26 | 南京中兴新软件有限责任公司 | 堆叠***中数据转发方法及装置 |
-
2018
- 2018-12-14 CN CN201811534502.7A patent/CN111327543A/zh not_active Withdrawn
-
2019
- 2019-10-31 WO PCT/CN2019/114787 patent/WO2020119317A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102769568A (zh) * | 2012-07-19 | 2012-11-07 | 中兴通讯股份有限公司 | 一种基于虚拟交换集群的流量转发方法及*** |
US20150032815A1 (en) * | 2012-07-31 | 2015-01-29 | Hangzhou H3C Technologies Co., Ltd. | Message forwarding in data center network |
CN103248581A (zh) * | 2013-05-20 | 2013-08-14 | 杭州华三通信技术有限公司 | 聚合链路负载分担方法和装置 |
CN104506437A (zh) * | 2014-12-29 | 2015-04-08 | 杭州华三通信技术有限公司 | 一种表项建立方法及装置 |
CN107634905A (zh) * | 2016-07-19 | 2018-01-26 | 南京中兴新软件有限责任公司 | 堆叠***中数据转发方法及装置 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114338538A (zh) * | 2021-12-30 | 2022-04-12 | 锐捷网络股份有限公司 | 一种表项更新方法、装置、电子设备及存储介质 |
CN114374659A (zh) * | 2022-01-18 | 2022-04-19 | 苏州盛科科技有限公司 | 一种堆叠***中实现本地优先转发的方法、装置及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN111327543A (zh) | 2020-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110830371B (zh) | 报文重定向方法、装置、电子设备及可读存储介质 | |
CN103118148B (zh) | 一种arp缓存更新方法和设备 | |
US9094235B2 (en) | Systems and methods for link bandwidth conservation in a local area network connected to a trill network | |
WO2017000832A1 (zh) | Mac地址的同步方法、装置及*** | |
CN112887229B (zh) | 一种会话信息同步方法及装置 | |
CN113489640B (zh) | 报文转发方法、装置及网关*** | |
WO2020057445A1 (zh) | 一种通信***、方法及装置 | |
CN113839862B (zh) | Mclag邻居之间同步arp信息的方法、***、终端及存储介质 | |
WO2020119317A1 (zh) | 报文转发方法及装置、存储介质、电子装置 | |
US20190349436A1 (en) | Methods, apparatus and systems for resuming transmission link | |
CN110391919B (zh) | 组播流量转发方法、装置、电子设备 | |
US20220094768A1 (en) | Processing protocol packet | |
CN108234358B (zh) | 一种组播报文传输方法、装置及机器可读存储介质 | |
US11627081B2 (en) | Method and system segregating application traffic in a wide area network | |
WO2021000619A1 (zh) | 报文转发方法及装置 | |
WO2020181733A1 (zh) | 一种基于vpc的多数据中心互通方法及相关设备 | |
US9654304B2 (en) | Method and apparatus for sending transparent interconnection of lots of links data frame | |
US7257134B2 (en) | Method of pacing the synchronization of routing information in a data switching environment | |
EP3468286A1 (en) | Method, device and system for data transmission, physical residential gateway and access node | |
CN108768845B (zh) | 一种多归属主机路由同步方法及装置 | |
US20160337232A1 (en) | Flow-indexing for datapath packet processing | |
CN110661710A (zh) | 一种虚拟化***的报文传输方法及装置 | |
US9853891B2 (en) | System and method for facilitating communication | |
CN111107142B (zh) | 业务访问方法和装置 | |
US20200322260A1 (en) | Systems and methods for automatic traffic recovery after vrrp vmac installation failures in a lag fabric |
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: 19897413 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22/10/2021) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19897413 Country of ref document: EP Kind code of ref document: A1 |