WO2018205541A1 - 动态分配虚端口vpls转发防错方法及系统 - Google Patents

动态分配虚端口vpls转发防错方法及系统 Download PDF

Info

Publication number
WO2018205541A1
WO2018205541A1 PCT/CN2017/111566 CN2017111566W WO2018205541A1 WO 2018205541 A1 WO2018205541 A1 WO 2018205541A1 CN 2017111566 W CN2017111566 W CN 2017111566W WO 2018205541 A1 WO2018205541 A1 WO 2018205541A1
Authority
WO
WIPO (PCT)
Prior art keywords
vpls
mac address
level field
value
forwarding
Prior art date
Application number
PCT/CN2017/111566
Other languages
English (en)
French (fr)
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 WO2018205541A1 publication Critical patent/WO2018205541A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Definitions

  • the present invention relates to the field of VPLS network models, and in particular, to a method and system for dynamically allocating virtual port VPLS forwarding error prevention.
  • VPLS Virtual Private LAN Service
  • VP Virtual Port
  • MAC Media Access Control
  • FIG. 1 is a schematic diagram of the structure of a basic network topology model. As shown in the figure, two VPLSs multiplex the same physical link. When the communication link between the communication device A and the communication device B in FIG.
  • the protection mechanism of the link notifies the control plane to perform the rapid deletion and increase of the VP in the VPLS service; and the duration of the fault process is short, even if For the VP-based revocation mechanism model, due to the short deletion and increase time, there may be transient forwarding errors, and inaccurate and unreliable communication cannot be avoided.
  • the fault process can be divided into the following steps to illustrate:
  • VPID1 is a member of VSI1 (Virtual Switch Instance).
  • VSI1 indicates the index ID1 of the VPLS.
  • VPID2 belongs to the member of VSI2.
  • VSI2 indicates the index ID2 of the VPLS. Learned in the MAC address table The entries are as follows:
  • the control plane deletes the VPID2 in the VSI1 member VPID1 and VSI2, and recovers the VPID resource.
  • the MAC address table does not have a quick revocation mechanism. The entries learned in the MAC address table remain. No change, as follows:
  • VPID1 belongs to VSI2 and VPID2 belongs to VSI1.
  • the learning in the MAC address table is short due to the short fault time.
  • the entries that have arrived have not been aged or updated, resulting in the previously learned entries remaining unchanged, as follows:
  • step 3 it is found that there is a problem in forwarding.
  • the data stream of VSI1+MAC1 is sent out from VPID1, and VPID1 is a member of VSI2; the data stream of VSI2+MAC2 is sent out from VPID2.
  • VP ID2 is a member of VSI1; thus, the data flow between two different VPLS services has been streamed, and the forwarding error occurs. Therefore, how to implement the VPLS service member VP dynamic deletion and addition, when the corresponding entry in the MAC address table is not deleted or updated, the data flow between different VPLS services does not have streaming problem, which has important research value.
  • the purpose of the present invention is to overcome the deficiencies of the above background art, and to provide a method and system for dynamically allocating virtual port VPLS forwarding error prevention.
  • the forwarding layer of the present invention is capable of recognizing The re-creation process of the VP in the VPLS ensures that the forwarding is correct and the streaming does not occur, providing predictable services for communication accuracy and reliability between users.
  • the invention provides a dynamic allocation virtual port VPLS forwarding error prevention method, comprising the following steps:
  • the virtual private local area network service VPLS applies for the member VP table, and allocates the index VPID of the corresponding VP table;
  • the value of the LEVEL field is written into the LEVEL field in the VP table corresponding to the VPID;
  • VPLS learns the source MAC address to obtain the source VPID, writes the source VPID to the MAC address table, and then reads the value of the LEVEL field in the VP table, and writes the VP level VP_LEVEL field in the MAC address table;
  • the VPLS searches the MAC address table, obtains the forwarding destination VPID, and reads out the value of the VP_LEVEL field in the found MAC address table.
  • Reading the obtained forwarding destination VPID searching the VP table, obtaining the value of the LEVEL field in the VP table, and comparing the value of the VP_LEVEL field with the value of the LEVEL field;
  • the service forwarding data is broadcasted and forwarded in the VPLS until the MAC address table is updated; if the results are equal, the service forwarding data is forwarded from the obtained forwarding destination VPID.
  • step A the method further includes the steps of: initializing the value of the LEVEL field in the VP table to 0.
  • the specific process of adding a fixed integer value on the basis of reading the value of the LEVEL field of the VP table in step B is: setting the LEVEL field The value of 1 is added to the LEVEL field in the VP table corresponding to the VPID, and is cyclically accumulated during the process of dynamically allocating the VP table by the VPLS.
  • the specific process of obtaining the source VPID by using the VPLS to learn the source MAC address in the step C is as follows: VPLS learns the source MAC address, learns the source VPID through the source MAC address and the virtual switch instance VSI, and the VSI is VPLS. Index ID.
  • the VPLS in the step D searches the MAC address table, and obtains the forwarding destination VPID.
  • the VPLS searches the MAC address table according to the VSI and the destination MAC address to obtain the forwarding destination VPID.
  • step D the following steps are further included:
  • VPLS deletes the member VP table, reads the entry corresponding to the VPID of the deleted VP table, saves the read LEVEL field; then clears all the fields in the VP table; and then writes the value of the saved LEVEL field to the VP table.
  • the LEVEL field The LEVEL field.
  • step E the following steps are further included:
  • the present invention further provides a dynamic allocation virtual port VPLS forwarding error prevention system, which is used for forwarding a service of a virtual private local area network service VPLS between distributed devices, and the system includes a VPLS processing module, a VP table processing module, a MAC address learning module, and a service. Error-proof forwarding module, VP table recovery update module, and MAC address table recovery module;
  • the VPLS processing module is configured to: apply for a member VP table, allocate an index VPID of the VP table, and establish a mapping relationship between the MAC address table and the VP table;
  • the VP table processing module is configured to: add a LEVEL field in the VP table, and change a value of the LEVEL field in a process of dynamically allocating a VP table by the VPLS;
  • the MAC address learning module is configured to: read the value of the LEVEL field in the VP table Out, write the VP level VP_LEVEL field in the MAC address table;
  • the service error-proof forwarding module is configured to compare the value of the VP_LEVEL field in the MAC address table with the value of the LEVEL field in the VP table, and forward the service forwarding data from the forwarding destination VPID;
  • the VP table recovery update module is configured to: recover the VP table resource, save the LEVEL field in the read VP table, and then clear all fields in the VP table;
  • the MAC address table recovery module is configured to: clear all fields of the MAC address table corresponding to the VP table, and clear the VP_LEVEL field in the MAC address table.
  • the VP table processing module initializes the value of the LEVEL field to 0.
  • the value of the LEVEL field saved by the VP table recovery update module is incremented by one. Write to the VP table and cycle through the accumulation.
  • the MAC address learning module learns the source VPID through the source MAC and the virtual switching instance VSI, and writes the source VPID into the MAC address table, where the VSI is the index ID of the VPLS; the VPLS processing module The MAC address table is searched according to the destination MAC address and the virtual switching instance VSI, and the forwarding destination VPID is obtained.
  • the forwarding layer of the present invention can identify the re-creation process of the VP in the VPLS, thereby ensuring correct forwarding and no streaming.
  • the invention adds an attribute LEVEL field in the VP table; the hardware value of the LEVEL value is initialized to 0, and each time the VP resource is re-allocated after deletion, the LEVEL value in the VP before deletion is retained, and after the re-allocation, the 1st value is added based on the reserved LEVEL value.
  • the loop is accumulated.
  • the invention can support the dynamic VPLS service model, can reflect the actual business application scenario in real time, and provide predictable services for communication accuracy and reliability between users.
  • Figure 1 is a schematic diagram of the structure of a basic network topology model.
  • FIG. 2 is a flowchart of a process for dynamically allocating a virtual port VPLS forwarding error prevention method according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of a process for initializing a VP table for dynamically allocating a virtual port VPLS forwarding error prevention method according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of a process for dynamically allocating a VPLS allocation VP table of a virtual port VPLS forwarding error prevention method according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of performing MAC address learning processing on a VPLS that dynamically allocates a virtual port VPLS forwarding error prevention method according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of processing a VPLS service forwarding error prevention method for dynamically allocating a virtual port VPLS forwarding error prevention method according to an embodiment of the present invention.
  • FIG. 7 is a flowchart of a process for dynamically allocating a VP table of a virtual port VPLS forwarding error prevention method according to an embodiment of the present invention.
  • FIG. 8 is a flowchart of processing for reclaiming a MAC address table of a virtual port VPLS forwarding error prevention method according to an embodiment of the present invention.
  • FIG. 9 is a structural block diagram of a dynamic allocation virtual port VPLS forwarding error prevention system according to an embodiment of the present invention.
  • FIG. 1 a schematic structural diagram of a basic network topology model has been described in detail in the background art, and details are not described herein again.
  • an embodiment of the present invention provides a method for dynamically allocating virtual port VPLS forwarding error prevention by a distributed device, including the following steps:
  • step S1 specifically includes the following steps:
  • S101 The service forwarding hardware board is powered on, and a LEVEL field for forwarding error prevention is added to the VP table.
  • step S2 specifically includes the following steps:
  • the value of the LEVEL field is incremented by one, and then written into the LEVEL field in the VP table corresponding to the VPID, and cyclically accumulated in the process of dynamically allocating the VP table by the VPLS.
  • the value of the LEVEL field is different to indicate that the VP table is newly allocated.
  • the value initialization of the LEVEL field in the VP table can also be set to different values such as 1, 2, and 3.
  • the value of the LEVEL field can be similarly added by 1, 2, and 3. And other values.
  • step S3 specifically includes the following steps:
  • the VPLS learns the source MAC address, learns the source VPID through the source MAC address and the virtual switching instance VSI, and writes the source VPID into the MAC address table, where the VSI is the index ID of the VPLS.
  • step S4 specifically includes the following steps:
  • the VPLS searches the MAC address table according to the VSI and the destination MAC address, and obtains the forwarding destination VPID.
  • S404 comparing the values of LEVEL1 and LEVEL2, if the results of the comparison are not equal, go to S405, if the results of the comparison are equal, go to S406;
  • S405 The service forwarding data is broadcast and forwarded in the VPLS until the MAC address table is updated.
  • S406 The service forwarding data is forwarded from the obtained forwarding destination VPID.
  • step S5 specifically includes the following steps:
  • S501 VPLS deletes the member VP table, reads the entry corresponding to the VPID of the deleted VP table, and saves the read LEVEL field.
  • step S6 specifically includes the following steps:
  • S601 Recover the MAC address table, and clear all fields of the MAC address table corresponding to the VP table.
  • the embodiment of the present invention further provides a dynamic allocation virtual port VPLS forwarding error prevention system, which is used for forwarding a service of a virtual private local area network service VPLS between distributed devices, and the system includes a VPLS processing module and a VP table processing.
  • Module MAC address learning module, service error prevention forwarding module, VP table recovery update module, MAC address table recovery module;
  • the VPLS processing module is configured to: apply for a member VP table, allocate an index VPID of the VP table, and establish a mapping relationship between the MAC address table and the VP table;
  • the VP table processing module is configured to: add a LEVEL field in the VP table, and change a value of the LEVEL field in a process of dynamically allocating a VP table by the VPLS;
  • the MAC address learning module is configured to: read out the value of the LEVEL field in the VP table, and write the value of the VP level VP_LEVEL field in the MAC address table;
  • the service error-proof forwarding module is configured to compare the value of the VP_LEVEL field in the MAC address table with the value of the LEVEL field in the VP table, and forward the service forwarding data from the forwarding destination VPID;
  • the VP table recovery update module is configured to: recover the VP table resource, save the LEVEL field in the read VP table, and then clear all fields in the VP table;
  • the MAC address table recovery module is configured to: clear all fields of the MAC address table corresponding to the VP table, and clear the VP_LEVEL field in the MAC address table.
  • the VPID is used to find and read the corresponding VP table, and the LEVEL field is used for forwarding and error prevention of the data flow between the VPLS services.
  • the VP table processing module initializes the value of the LEVEL field to 0.
  • the value of the LEVEL field saved by the VP table recovery update module is incremented by 1 and then written.
  • the value initialization of the LEVEL field in the VP table can also be set to different values such as 1, 2, and 3.
  • the value of the LEVEL field can be similarly added by 1, 2, and 3. And other values.
  • the value initialization of the LEVEL field in the VP table can also be set to different values such as 1, 2, and 3.
  • the value of the LEVEL field can be similarly added by 1, 2, and 3. And other values.
  • the MAC address learning module learns the source VPID through the source MAC and the virtual switching instance VSI, and writes the source VPID into the MAC address table, where the VSI is the index ID of the VPLS; the VPLS processing module according to the purpose
  • the MAC address and the virtual switching instance VSI look up the MAC address table to obtain the forwarding destination VPID.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种动态分配虚端口VPLS转发防错方法及系统,涉及VPLS网络模型领域。该方法包括如下步骤:在虚端口VP表中增加LEVEL字段;VPLS申请成员VP表,分配对应的VP表的索引VPID;在读出VP表的LEVEL字段的值的基础上增加固定整数后;将VP表中LEVEL字段的值读出,写入MAC地址表中VP等级VP_LEVEL字段。该系统包括:包括VPLS处理模块、VP表处理模块、MAC地址学习模块、业务防错转发模块、VP表回收更新模块、MAC地址表回收模块。本发明的转发层能够识别出VPLS中VP存在重新创建过程,不发生串流情况,为用户间通信准确性、可靠性等方面提供可预期的服务。

Description

动态分配虚端口VPLS转发防错方法及系统 技术领域
本发明涉及VPLS网络模型领域,具体是涉及一种动态分配虚端口VPLS转发防错方法及系统。
背景技术
VPLS(Virtual Private Lan Servic,虚拟专用局域网业务)网络模型中,基于VP(Virtual Port,虚端口)的MAC(Media Access Control,介质访问控制)地址学习和业务数据转发是基础,需要保证用户间通信的准确性。在动态的VPLS业务场景中,业务场景的变化会导致业务及业务中VP的动态删除和增加。
典型的业务场景是两个通信设备之间创建两条VPLS业务,支持VP的动态删除和增加。VPLS的MAC地址学习表项内容为MAC地址和VP之间建立的映射关系。图1为基本网络拓扑模型的结构示意图,如图所示两个VPLS复用同一个物理链路。图1中通信设备A和通信设备B之间的通信链路发生瞬间闪断时,链路的保护机制会通知控制层面进行VPLS业务中VP的快速删除和增加;同时故障过程持续时间短,即使对于有基于VP的撤销机制模型,由于删除和增加时间短,也会存在瞬时转发错误现象,不能避免通信的不准确、不可靠现象。故障过程可分为如下步骤举例说明:
一、链路闪断之前,VPID1属于VSI1(Virtual Switch Instance,虚拟交换实例)中成员,VSI1表示VPLS的索引ID1;VPID2属于VSI2中成员,VSI2表示VPLS的索引ID2。MAC地址表中学习到的 条目如下:
VSI1+MAC1-->VPID1
VSI2+MAC2-->VPID2
二、链路闪断之后没有恢复之前,控制层面删除了VSI1中的成员VPID1、VSI2中的VPID2,同时回收VPID资源;此时MAC地址表没有快速撤销机制,MAC地址表中学习到的条目保持不变,如下:
VSI1+MAC1-->VPID1
VSI2+MAC2-->VPID2
三、链路闪断之后恢复后,控制层面重新创建了这两条VPLS中VP成员,但分配的VPID资源有变化,VPID1属于VSI2,VPID2属于VSI1;由于故障时间短,MAC地址表中的学习到的条目尚未老化或者更新,导致之前学习到的条目依然保持不变,如下:
VSI1+MAC1-->VPID1
VSI2+MAC2-->VPID2
到了步骤三,发现此时转发出现了问题,数据通过查询MAC地址表后,VSI1+MAC1的数据流从VPID1发送出去,而此时VPID1为VSI2中成员;VSI2+MAC2的数据流从VPID2发送出去,而此时VP ID2为VSI1中成员;至此,两个不同VPLS业务之间的数据流发生了串流情况,转发出错。因此,如何实现VPLS业务的成员VP动态删除和增加时,MAC地址表中对应的条目没有删除或者更新情况下,不同VPLS业务间数据流不出现串流问题,具有很重要的研究价值。
发明内容
本发明的目的是为了克服上述背景技术的不足,提供一种动态分配虚端口VPLS转发防错方法及系统。本发明的转发层能够识别出 VPLS中VP存在重新创建过程,进而保证转发正确,不发生串流情况,为用户间通信准确性、可靠性等方面提供可预期的服务。
本发明提供一种动态分配虚端口VPLS转发防错方法,包括如下步骤:
A、在虚端口VP表中增加用于转发防错的等级LEVEL字段;
B、虚拟专用局域网业务VPLS申请成员VP表,分配对应的VP表的索引VPID;
根据分配的VPID读出对应的VP表,保存读出VP表的LEVEL字段的值;
在读出VP表的LEVEL字段的值的基础上增加固定整数后,再将LEVEL字段的值写入VPID对应的VP表中的LEVEL字段中;
C、VPLS进行源MAC地址学习得到源VPID,将源VPID写入MAC地址表,然后将VP表中LEVEL字段的值读出,写入MAC地址表中的VP等级VP_LEVEL字段;
D、VPLS查找MAC地址表,获得转发目的VPID,读出查找到的MAC地址表中VP_LEVEL字段的值;
读出获得的转发目的VPID,查找VP表,获得VP表中的LEVEL字段的值,比较VP_LEVEL字段的值和LEVEL字段的值;
若结果不相等,业务转发数据在VPLS内广播转发,直至MAC地址表更新为止;若结果相等,业务转发数据从获得的转发目的VPID中转发出去。
在上述技术方案的基础上,步骤A和步骤B之间,还包括以下步骤:将VP表中LEVEL字段的值初始化设为0。
在上述技术方案的基础上,步骤B中所述在读出VP表的LEVEL字段的值的基础上增加固定整数数值的具体过程为:将LEVEL字段 的值加1后写入VPID对应的VP表中的LEVEL字段,并在VPLS动态分配VP表的过程中循环累加。
在上述技术方案的基础上,步骤C中所述VPLS进行源MAC地址学习得到源VPID的具体过程为:VPLS进行源MAC地址学习,通过源MAC和虚拟交换实例VSI学习得到源VPID,VSI为VPLS的索引ID。
在上述技术方案的基础上,步骤D中所述VPLS查找MAC地址表,获得转发目的VPID的具体过程为:所述VPLS根据VSI和目的MAC地址查找MAC地址表,获得转发目的VPID。
在上述技术方案的基础上,步骤D之后,还包括如下步骤:
E:VPLS删除成员VP表,读取删除VP表的VPID对应的表项,保存读出的LEVEL字段;然后将VP表中所有字段清零;再将保存的LEVEL字段的值写入该VP表中LEVEL字段。
在上述技术方案的基础上,步骤E之后,还包括如下步骤:
F:回收MAC地址表,将VP表对应的MAC地址表所有字段清零;再将MAC地址表中VP_LEVEL字段清零。
本发明还提供一种动态分配虚端口VPLS转发防错系统,用于转发分布式设备之间虚拟专用局域网业务VPLS的业务,该系统包括VPLS处理模块、VP表处理模块、MAC地址学习模块、业务防错转发模块、VP表回收更新模块、MAC地址表回收模块;
所述VPLS处理模块用于:申请成员VP表,分配VP表的索引VPID,并建立MAC地址表和VP表之间的映射关系;
所述VP表处理模块用于:在VP表中增加等级LEVEL字段,并在VPLS动态分配VP表的过程中改变LEVEL字段的值;
所述MAC地址学习模块用于:将VP表中LEVEL字段的值读 出,写入MAC地址表中的VP等级VP_LEVEL字段;
所述业务防错转发模块用于:比较MAC地址表中VP_LEVEL字段的值和VP表中的LEVEL字段的值,将业务转发数据从转发目的VPID转发出去;
所述VP表回收更新模块用于:回收VP表资源,保存读出的VP表中的LEVEL字段后,将VP表中所有字段清零;
所述MAC地址表回收模块用于:将VP表对应的MAC地址表所有字段清零,并将MAC地址表中VP_LEVEL字段清零。
在上述技术方案的基础上,所述VP表处理模块将LEVEL字段的值初始化设为0,在VPLS动态分配VP表的过程中,将通过VP表回收更新模块保存的LEVEL字段的值加1后写入VP表中,并循环累加。
在上述技术方案的基础上,所述MAC地址学习模块通过源MAC和虚拟交换实例VSI学习得到源VPID,将源VPID写入MAC地址表,其中,VSI为VPLS的索引ID;所述VPLS处理模块根据目的MAC地址和虚拟交换实例VSI查找MAC地址表,获得转发目的VPID。
与现有技术相比,本发明的优点如下:本发明的转发层能够识别出VPLS中VP存在重新创建过程,进而保证转发正确,不发生串流情况。
本发明在VP表中增加属性LEVEL字段;该LEVEL值硬件初始化为0,每次VP资源在删除后重新分配,保留删除前VP中LEVEL值,重新分配后在该保留LEVEL值基础上加1写到VP表中,循环累加。
MAC地址学习时,需要将VP属性中LEVEL字段的值写到MAC 地址表中;VPLS在进行查找MAC地址表转发时,将MAC地址表中VP_LEVEL字段的值,EVEL1和目的VP表中LEVE2值进行比较,相等转发,不相等在VPLS内广播,直至MAC地址表更新为止,保证业务转发正确。
本发明能够支持动态的VPLS业务模型,能够实时反映实际的业务应用场景,为用户间通信准确性、可靠性等方面提供可预期的服务。
附图说明
图1为基本网络拓扑模型的结构示意图。
图2为本发明实施例动态分配虚端口VPLS转发防错方法的处理流程图。
图3为本发明实施例动态分配虚端口VPLS转发防错方法的VP表初始化的处理流程图。
图4为本发明实施例动态分配虚端口VPLS转发防错方法的VPLS分配VP表的处理流程图。
图5为本发明实施例动态分配虚端口VPLS转发防错方法的VPLS进行MAC地址学习处理流程图。
图6为本发明实施例动态分配虚端口VPLS转发防错方法的VPLS业务转发防错的处理流程图。
图7为本发明实施例动态分配虚端口VPLS转发防错方法的回收VP表的处理流程图。
图8为本发明实施例动态分配虚端口VPLS转发防错方法的回收MAC地址表的处理流程图。
图9为本发明实施例动态分配虚端口VPLS转发防错系统的结构框图。
具体实施方式
下面结合附图及具体实施例对本发明作进一步的详细描述。
参见图1所示,为基本网络拓扑模型的结构示意图,在背景技术中已经详细说明,在此不再赘述。
参见图2所示,本发明实施例提供一种分布式设备动态分配虚端口VPLS转发防错方法,包括如下步骤:
S1:虚端口VP表初始化;
S2:虚拟专用局域网业务VPLS分配VP表;
S3:VPLS进行介质访问控制MAC地址学习后写入MAC地址表;
S4:VPLS业务转发防错;
S5:回收VP表资源,用于后续动态分配使用;
S6:回收MAC地址表,用于后续继续转发防错使用。
参见图3所示,步骤S1具体包括如下步骤:
S101:业务转发硬件板卡上电,在VP表中增加用于转发防错的等级LEVEL字段;
S102:VP表中LEVEL字段的值初始化设为0。
参见图4所示,步骤S2具体包括如下步骤:
S201:VPLS申请成员VP表,分配对应的VP表的索引VPID;
S202:根据分配的VPID读出对应的VP表,保存读出VP表的LEVEL字段的值;
S203:在读出VP表的LEVEL字段的值的基础上加1后,再将LEVEL字段的值写入VPID对应的VP表中的LEVEL字段中。
本实施例中,将LEVEL字段的值加1后写入VPID对应的VP表中的LEVEL字段,并在VPLS动态分配VP表的过程中循环累加, LEVEL字段的值不同用于表明VP表是新分配的。在实际应用中,VP表中LEVEL字段的值初始化也可以设为1、2、3等不同的数值,在VPLS动态分配VP表的过程,LEVEL字段的值也可以同理加上1、2、3等其他数值。
参见图5所示,步骤S3具体包括如下步骤:
S301:VPLS进行源MAC地址学习,通过源MAC和虚拟交换实例VSI学习得到源VPID,将源VPID写入MAC地址表,VSI为VPLS的索引ID。
S302:将VP表中LEVEL字段的值读出,写入MAC地址表中VP等级VP_LEVEL字段;
参见图6所示,步骤S4具体包括如下步骤:
S401:VPLS根据VSI和目的MAC地址查找MAC地址表,获得转发目的VPID;
S402:读出查找到的MAC地址表中VP_LEVEL字段的值,记为LEVEL1;
S403:读出获得的转发目的VPID,查找VP表,获得VP表中的LEVEL字段的值,记为LEVEL2;
S404:比较LEVEL1和LEVEL2的值,若比较的结果不相等,转到S405,若比较的结果相等,转到S406;
S405:业务转发数据在VPLS内广播转发,直至MAC地址表更新为止;
S406:业务转发数据从获得的转发目的VPID中转发出去。
参见图7所示,步骤S5具体包括如下步骤:
S501:VPLS删除成员VP表,读取删除VP表的VPID对应的表项,保存读出的LEVEL字段;
S502:将VP表中所有字段清零;
S503:将步骤S501中保存的LEVEL字段的值写入该VP表中LEVEL字段。
参见图8所示,步骤S6具体包括如下步骤:
S601:回收MAC地址表,将VP表对应的MAC地址表所有字段清零;
S602:MAC地址表中VP_LEVEL字段清零。
参见图9所示,本发明实施例还提供一种动态分配虚端口VPLS转发防错系统,用于转发分布式设备之间虚拟专用局域网业务VPLS的业务,该系统包括VPLS处理模块、VP表处理模块、MAC地址学习模块、业务防错转发模块、VP表回收更新模块、MAC地址表回收模块;
所述VPLS处理模块用于:申请成员VP表,分配VP表的索引VPID,并建立MAC地址表和VP表之间的映射关系;
所述VP表处理模块用于:在VP表中增加等级LEVEL字段,并在VPLS动态分配VP表的过程中改变LEVEL字段的值;
所述MAC地址学习模块用于:将VP表中LEVEL字段的值读出,写入MAC地址表中的VP等级VP_LEVEL字段;
所述业务防错转发模块用于:比较MAC地址表中VP_LEVEL字段的值和VP表中的LEVEL字段的值,将业务转发数据从转发目的VPID转发出去;
所述VP表回收更新模块用于:回收VP表资源,保存读出的VP表中的LEVEL字段后,将VP表中所有字段清零;
所述MAC地址表回收模块用于:将VP表对应的MAC地址表所有字段清零,并将MAC地址表中VP_LEVEL字段清零。
其中,VPID用于查找并读出对应的VP表,LEVEL字段用于VPLS业务间数据流的转发防错。
在本实施例中,所述VP表处理模块将LEVEL字段的值初始化设为0,在VPLS动态分配VP表的过程中,将通过VP表回收更新模块保存的LEVEL字段的值加1后写入VP表中,并循环累加。在实际应用中,VP表中LEVEL字段的值初始化也可以设为1、2、3等不同的数值,在VPLS动态分配VP表的过程,LEVEL字段的值也可以同理加上1、2、3等其他数值。在实际应用中,VP表中LEVEL字段的值初始化也可以设为1、2、3等不同的数值,在VPLS动态分配VP表的过程,LEVEL字段的值也可以同理加上1、2、3等其他数值。
在本实施例中,所述MAC地址学习模块通过源MAC和虚拟交换实例VSI学习得到源VPID,将源VPID写入MAC地址表,其中,VSI为VPLS的索引ID;所述VPLS处理模块根据目的MAC地址和虚拟交换实例VSI查找MAC地址表,获得转发目的VPID。
本领域的技术人员可以对本发明实施例进行各种修改和变型,倘若这些修改和变型在本发明权利要求及其等同技术的范围之内,则这些修改和变型也在本发明的保护范围之内。
说明书中未详细描述的内容为本领域技术人员公知的现有技术。

Claims (10)

  1. 一种动态分配虚端口VPLS转发防错方法,其特征在于,包括如下步骤:
    A、在虚端口VP表中增加用于转发防错的等级LEVEL字段;
    B、虚拟专用局域网业务VPLS申请成员VP表,分配对应的VP表的索引VPID;
    根据分配的VPID读出对应的VP表,保存读出VP表的LEVEL字段的值;
    在读出VP表的LEVEL字段的值的基础上增加固定整数后,再将LEVEL字段的值写入VPID对应的VP表中的LEVEL字段中;
    C、VPLS进行源MAC地址学习得到源VPID,将源VPID写入MAC地址表,然后将VP表中LEVEL字段的值读出,写入MAC地址表中的VP等级VP_LEVEL字段;
    D、VPLS查找MAC地址表,获得转发目的VPID,读出查找到的MAC地址表中VP_LEVEL字段的值;
    读出获得的转发目的VPID,查找VP表,获得VP表中的LEVEL字段的值,比较VP_LEVEL字段的值和LEVEL字段的值;
    若结果不相等,业务转发数据在VPLS内广播转发,直至MAC地址表更新为止;若结果相等,业务转发数据从获得的转发目的VPID中转发出去。
  2. 如权利要求1所述的动态分配虚端口VPLS转发防错方法,其特征在于:步骤A和步骤B之间,还包括以下步骤:将VP表中LEVEL字段的值初始化设为0。
  3. 如权利要求2所述的动态分配虚端口VPLS转发防错方法,其特征在于:步骤B中所述在读出VP表的LEVEL字段的值的基础 上增加固定整数数值的具体过程为:将LEVEL字段的值加1后写入VPID对应的VP表中的LEVEL字段,并在VPLS动态分配VP表的过程中循环累加。
  4. 如权利要求1所述的动态分配虚端口VPLS转发防错方法,其特征在于:步骤C中所述VPLS进行源MAC地址学习得到源VPID的具体过程为:VPLS进行源MAC地址学习,通过源MAC和虚拟交换实例VSI学习得到源VPID,VSI为VPLS的索引ID。
  5. 如权利要求4所述的动态分配虚端口VPLS转发防错方法,其特征在于:步骤D中所述VPLS查找MAC地址表,获得转发目的VPID的具体过程为:所述VPLS根据VSI和目的MAC地址查找MAC地址表,获得转发目的VPID。
  6. 如权利要求1所述的动态分配虚端口VPLS转发防错方法,其特征在于:步骤D之后,还包括如下步骤:
    E:VPLS删除成员VP表,读取删除VP表的VPID对应的表项,保存读出的LEVEL字段;然后将VP表中所有字段清零;再将保存的LEVEL字段的值写入该VP表中LEVEL字段。
  7. 如权利要求6所述的动态分配虚端口VPLS转发防错方法,其特征在于:步骤E之后,还包括如下步骤:
    F:回收MAC地址表,将VP表对应的MAC地址表所有字段清零;再将MAC地址表中VP_LEVEL字段清零。
  8. 一种实现权利要求1所述方法的动态分配虚端口VPLS转发防错系统,用于转发分布式设备之间虚拟专用局域网业务VPLS的业务,其特征在于:包括VPLS处理模块、VP表处理模块、MAC地址学习模块、业务防错转发模块、VP表回收更新模块、MAC地址表回收模块;
    所述VPLS处理模块用于:申请成员VP表,分配VP表的索引VPID,并建立MAC地址表和VP表之间的映射关系;
    所述VP表处理模块用于:在VP表中增加等级LEVEL字段,并在VPLS动态分配VP表的过程中改变LEVEL字段的值;
    所述MAC地址学习模块用于:将VP表中LEVEL字段的值读出,写入MAC地址表中的VP等级VP_LEVEL字段;
    所述业务防错转发模块用于:比较MAC地址表中VP_LEVEL字段的值和VP表中的LEVEL字段的值,将业务转发数据从转发目的VPID转发出去;
    所述VP表回收更新模块用于:回收VP表资源,保存读出的VP表中的LEVEL字段后,将VP表中所有字段清零;
    所述MAC地址表回收模块用于:将VP表对应的MAC地址表所有字段清零,并将MAC地址表中VP_LEVEL字段清零。
  9. 根据权利要求8所述的动态分配虚端口VPLS转发防错系统,其特征在于:所述VP表处理模块将LEVEL字段的值初始化设为0,在VPLS动态分配VP表的过程中,将通过VP表回收更新模块保存的LEVEL字段的值加1后写入VP表中,并循环累加。
  10. 根据权利要求8或9所述的动态分配虚端口VPLS转发防错系统,其特征在于:所述MAC地址学习模块通过源MAC和虚拟交换实例VSI学习得到源VPID,将源VPID写入MAC地址表,其中,VSI为VPLS的索引ID;所述VPLS处理模块根据目的MAC地址和虚拟交换实例VSI查找MAC地址表,获得转发目的VPID。
PCT/CN2017/111566 2017-05-09 2017-11-17 动态分配虚端口vpls转发防错方法及系统 WO2018205541A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710322353.7 2017-05-09
CN201710322353.7A CN107124346A (zh) 2017-05-09 2017-05-09 动态分配虚端口vpls转发防错方法及系统

Publications (1)

Publication Number Publication Date
WO2018205541A1 true WO2018205541A1 (zh) 2018-11-15

Family

ID=59727973

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/111566 WO2018205541A1 (zh) 2017-05-09 2017-11-17 动态分配虚端口vpls转发防错方法及系统

Country Status (2)

Country Link
CN (1) CN107124346A (zh)
WO (1) WO2018205541A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107124346A (zh) * 2017-05-09 2017-09-01 烽火通信科技股份有限公司 动态分配虚端口vpls转发防错方法及系统
CN109803031A (zh) * 2019-01-14 2019-05-24 烽火通信科技股份有限公司 一种mac地址快速撤销的方法及系统

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621550A (zh) * 2009-08-14 2010-01-06 杭州华三通信技术有限公司 Vpls中mac地址回收方法及装置
CN102308539A (zh) * 2011-07-08 2012-01-04 华为技术有限公司 转发端口快速切换的方法及装置
CN102821168A (zh) * 2012-08-09 2012-12-12 中兴通讯股份有限公司 基于vpls的mac地址老化的方法及装置
US20130148657A1 (en) * 2011-12-07 2013-06-13 Cisco Technology, Inc. Mechanism for e-vpn interoperability with vpls
CN105721315A (zh) * 2016-04-06 2016-06-29 烽火通信科技股份有限公司 一种集中式mac地址学习的控制方法
CN107124346A (zh) * 2017-05-09 2017-09-01 烽火通信科技股份有限公司 动态分配虚端口vpls转发防错方法及系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621550A (zh) * 2009-08-14 2010-01-06 杭州华三通信技术有限公司 Vpls中mac地址回收方法及装置
CN102308539A (zh) * 2011-07-08 2012-01-04 华为技术有限公司 转发端口快速切换的方法及装置
US20130148657A1 (en) * 2011-12-07 2013-06-13 Cisco Technology, Inc. Mechanism for e-vpn interoperability with vpls
CN102821168A (zh) * 2012-08-09 2012-12-12 中兴通讯股份有限公司 基于vpls的mac地址老化的方法及装置
CN105721315A (zh) * 2016-04-06 2016-06-29 烽火通信科技股份有限公司 一种集中式mac地址学习的控制方法
CN107124346A (zh) * 2017-05-09 2017-09-01 烽火通信科技股份有限公司 动态分配虚端口vpls转发防错方法及系统

Also Published As

Publication number Publication date
CN107124346A (zh) 2017-09-01

Similar Documents

Publication Publication Date Title
WO2018040530A1 (zh) 一种确定虚拟机迁移的方法和装置
JP6122483B2 (ja) 拡張ホストチャネルアダプタ(hca)モデルに基づいてバーチャルマシンのライブマイグレーションをサポートするためのシステムおよび方法
EP3451597B1 (en) Packet forwarding
CN103931144B (zh) 一种在虚拟域中通信的方法、设备和系统
CN109981493B (zh) 一种用于配置虚拟机网络的方法和装置
KR101912728B1 (ko) 데이터 처리 방법 및 장치
CN103475704B (zh) 一种面向虚拟机群应用的虚拟节点配置方法
US20150200910A1 (en) Control apparatus and transfer control method
WO2015192584A1 (zh) 虚拟路由系统及方法
US9894144B2 (en) Application level mirroring in distributed overlay virtual networks
WO2016023443A1 (zh) Linux软桥支持VLAN的方法
CN103581324A (zh) 一种云计算资源池系统及其实现方法
US20180039505A1 (en) Preventing flow interruption caused by migration of vm
WO2020001514A1 (zh) 业务处理
WO2018205541A1 (zh) 动态分配虚端口vpls转发防错方法及系统
WO2017080440A1 (zh) 一种路由表更新方法、evpn控制设备及evpn系统
US11917004B2 (en) Prioritizing data replication packets in cloud environment
US20190114076A1 (en) Method and Apparatus for Storing Data in Distributed Block Storage System, and Computer Readable Storage Medium
CN107547247B (zh) 智能弹性架构中的三层管理网ip地址分配方法和装置
WO2016070332A1 (zh) 流表项处理方法和装置
JP2017017539A (ja) 仮想ネットワーク設定方法、仮想ネットワーク設定プログラム及び中継装置
WO2016173196A1 (zh) 地址映射关系的学习方法及装置
CN109088767B (zh) 路由更新方法及装置
US11140224B2 (en) Moving storage volumes across network boundaries
CN109039909A (zh) 一种报文转发的方法及装置

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: 17908825

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: 17908825

Country of ref document: EP

Kind code of ref document: A1