WO2013060171A1 - 一种虚拟局域网信息传输方法及装置 - Google Patents

一种虚拟局域网信息传输方法及装置 Download PDF

Info

Publication number
WO2013060171A1
WO2013060171A1 PCT/CN2012/078821 CN2012078821W WO2013060171A1 WO 2013060171 A1 WO2013060171 A1 WO 2013060171A1 CN 2012078821 W CN2012078821 W CN 2012078821W WO 2013060171 A1 WO2013060171 A1 WO 2013060171A1
Authority
WO
WIPO (PCT)
Prior art keywords
vid
vids
rule
area network
local area
Prior art date
Application number
PCT/CN2012/078821
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 WO2013060171A1 publication Critical patent/WO2013060171A1/zh

Links

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]
    • H04L12/4675Dynamic sharing of VLAN information amongst network nodes

Definitions

  • the present invention relates to data communication technologies, and in particular, to a virtual local area network (VLAN) information transmission method and apparatus.
  • VLAN virtual local area network
  • LAG Link Aggregation Grou
  • LACP Link Aggregation Control Protocol
  • an embodiment of the present invention provides a virtual local area network information transmission method, where, when transmitting virtual local area network information, the virtual local area network information includes a determination according to one or more virtual local area network identification (VID) selection rules.
  • VID virtual local area network identification
  • a valid VID, or the virtual local area network information includes a type of one or more VID selection rules and a parameter of each VID selection rule indicating a VID selection range.
  • the foregoing method may further have the following feature: the virtual local area network information is a combination of one or more of a device node, an aggregation interface, a sub-interface, and an inter-rack aggregation identifier (D-LAG-ID). Configured information; the virtual local area network letter The information includes device nodes, aggregate interfaces, sub-interfaces, and cross-rack aggregated identifiers (D-LAG-ID)—one or more pieces of information.
  • D-LAG-ID inter-rack aggregation identifier
  • the foregoing method may further have the following feature: the VID selection rule includes an inclusion rule, a parity rule, or an exclusion rule; and the parameter corresponding to the VID selection range corresponding to the inclusion rule is one or more VIDs, indicating the one Or the plurality of VIDs are valid; the parameter indicating the VID selection range corresponding to the parity rule is an odd-numbered indicator or an even-numbered indicator, indicating that the odd or even number of VIDs are valid; and the parameter indicating the VID selection range corresponding to the exclusion rule is one Or multiple VIDs indicating that the one or more VIDs are invalid.
  • the foregoing method may further have the following features: when the parameter indicating the VID selection range is multiple VIDs and some or all of the VIDs are consecutive VIDs, the continuous VID is represented by: a continuous VID identifier, a start of a continuous VID VID, the ending VID of the continuous VID.
  • the foregoing method may further have the following feature: the information format for the single rule in the virtual local area network information includes: the first format segment indicates a type of the VID selection rule, and the second format segment indicates a word occupied by the parameter of the VID selection range.
  • the third format section includes a subformat indicating the number of VIDs
  • the segment indicates the sub-format segment of each VID; the continuous VID occupies three sub-format segments, indicating the continuous VID identifier, the starting VID of the continuous VID, and the ending VID of the continuous VID.
  • the present invention provides a virtual local area network information transmission device, the device includes a virtual local area network information processing module, and the virtual local area network information processing module is configured to send virtual local area network information, where the virtual local area network information includes One or more virtual local area network identification (VID) selection rules determine a valid VID, or the virtual local area network information includes one or more types of VID selection rules and each VID selection rule indicates VID selection The parameters of the range.
  • the foregoing transmission device may further have the following characteristics: the virtual local area network information is one or more of a device node, an aggregation interface, a sub-interface, and an inter-rack aggregation identifier (D-LAG-ID). Combining the configured information; the virtual local area network information includes one or more pieces of device nodes, aggregation interfaces, sub-interfaces, and cross-rack aggregation identifiers (D-LAG-IDs).
  • D-LAG-IDs inter-rack aggregation identifier
  • the foregoing transmission device may further have the following feature: the VID selection rule includes an inclusion rule, a parity rule, or an exclusion rule; and the parameter indicating the VID selection range corresponding to the inclusion rule is one or more VIDs, indicating that One or more VIDs are valid; the parameter indicating the VID selection range corresponding to the parity rule is an odd-numbered indicator or an even-numbered indicator, indicating that the odd or even VID is valid; the parameter indicating the VID selection range corresponding to the exclusion rule is One or more VIDs indicating that the one or more VIDs are invalid.
  • the foregoing transmission device may further have the following features: when the parameter indicating the VID selection range is multiple VIDs and some or all of the VIDs are consecutive VIDs, the continuous VID is represented by: continuous VID identification, continuous VID The starting VID, the ending VID of the continuous VID.
  • the foregoing transmission device may further have the following feature: the information format of the virtual local area network information for a single rule includes: a first format segment indication
  • the second format segment indicates the byte length occupied by the parameter of the VID selection range
  • the third format segment indicates the parameter of the VID selection range
  • the parameter indicating the VID selection range is one or more VIDs and some or all of the VIDs
  • the third format segment includes a sub-format segment indicating the number of VIDs, and represents a sub-format segment of each VID
  • the continuous VID occupies three sub-format segments, respectively indicating a continuous VID identifier, a starting VID of the continuous VID, The VID of the continuous VID.
  • VLAN information transmission method and coding mode supports forwarding of service flow and interaction of VLAN configuration information between two nodes.
  • Simplify the configuration of VLAN information by comprehensively applying rules including rules, parity rules, or exclusion rules, and combine with nodes, aggregate interfaces, sub-interfaces, and cross-rack aggregation identifiers (D-LAG-ID) to flexibly perform service traffic.
  • D-LAG-ID cross-rack aggregation identifiers
  • FIG. 1 is a schematic diagram of a distributed interconnection interface protection network model in the prior art
  • FIG. 2 is a schematic diagram of a VLAN information transmission method in an embodiment of the present invention
  • FIG. 3 is a configuration diagram of binding VLAN information and an interface in an embodiment of the present invention
  • Figure 4 is a schematic diagram of the TLV format and the TLV format used in the embodiment of the present invention
  • Figure 5 is a schematic diagram of the indication manner of the continuous VID in the embodiment of the present invention
  • Figure 6 is a separate VID indication mode in the embodiment of the present invention.
  • a schematic diagram of the continuous indication mode
  • FIG. 7 is a schematic diagram of the VLAN information indication mode 1 in the embodiment of the present invention
  • Figure 8 is a schematic diagram of the VLAN information indication mode 2 in the embodiment of the present invention
  • Figure 9 is a schematic diagram of the format of binding VLAN information and an interface in the embodiment of the present invention
  • FIG. 10 is a schematic diagram of an interface binding example in the embodiment of the present invention
  • FIG. 11 is a schematic diagram of a virtual local area network information apparatus according to an embodiment of the present invention.
  • the local area network information when the virtual local area network information is sent, the local area network information includes a valid VID or a rule and a parameter for determining a valid VID.
  • the VLAN information transmission method includes: when the VLAN information is sent, the VLAN information includes a valid VID determined according to one or more virtual local area network identifier (VID) selection rules, or when the VLAN information is sent, the VLAN information includes The type of one or more VID selection rules and the parameters of each VID selection rule indicating the VID selection range.
  • VIP virtual local area network identifier
  • the VLAN information is information configured for a combination of one or more of a device node, an aggregation interface, a sub-interface, and an inter-rack aggregation identifier (D-LAG-ID); Node, aggregate interface, sub-interface, cross-rack aggregated ID (D-LAG-ID) - one or more pieces of information.
  • the VID selection rule includes an inclusion rule, a parity rule, or an exclusion rule; the parameter corresponding to the VID selection range corresponding to the inclusion rule is one or more VIDs, indicating that the one or more VIDs are valid; the inclusion rule is represented by include, For example: include 1 , 2, 7 , 10-20 means that the VLAN information corresponding to 1, 2, 7, 10-20 is valid.
  • the parameter indicating the VID selection range corresponding to the parity rule is an odd effective indication flag or an even effective indication, indicating that the odd or even VID is valid; for example, odd indicates that the odd VID is valid, and even indicates that the even VID is valid.
  • the parameter indicating the VID selection range corresponding to the exclusion rule is one or more VIDs, indicating that the one or more VIDs are invalid.
  • the exclusion rule is represented by exclude, for example: exclude 12, 15-18 means that the VLAN information corresponding to 12, 15-18 is invalid.
  • the VID may be specified in a separate manner, such as 1, 2, 3, and 7, or may be continuous, such as 1-20 (i.e., 1 to 20 VID).
  • the representation of the continuous VIDs is: a continuous VID identification, a starting VID of a continuous VID, and a ending VID of a continuous VID.
  • VLAN include 1,3,7,10-20, odd, exclude 12,15-18
  • the VLAN indicates that the VLAN information is configured, the include rule contains the VLAN information corresponding to the VID, the odd indicates the VLAN information corresponding to the odd VID, and if it is even, the VLAN information corresponding to the even VID is used, and exclude is the exclusion rule. Indicates that the VLAN information of the subsequent VID is not used. Step by step analysis as follows: include 1 , 3, 7, 10-20 , using the separate VID indication mode and continuous VID indication mode, configured with the following values of VID: 1 , 3,7,10,1 1 , 12,13,14,15,16,17,18,19,20.
  • Odd is an exclusion rule, indicating that only the VLAN information of the odd VID is valid, and the effective VID of the result configuration becomes 1, 3, 7, 1, 1 , 13, 15, 17, 19 .
  • Exclude 12 15-18 is also an exclusion rule, 12 has been excluded, 15-18 is an excluded continuous VID representation, that is, 15, 16, 17, 18 are excluded, the result of the configuration of the effective VID becomes 1 , 3,7,1 1 ,13, 19.
  • the above configuration information can be combined with the node, aggregation interface, sub-interface, and cross-rack aggregation ID (D-LAG-ID) on the device. You can flexibly configure the service selection rule for each port. For example: VLAN include 1, 3, 7, 10-20, odd, exclude 72, 75-78 Bind D-LAG-ID 100
  • Node-ID 7 SG 2 IF 2 this is the configuration of the VLAN with the distributed aggregation group as 100.
  • the local aggregation group (SG) on the device with the node 1 is the number 2 subinterface below (IF) is bound. That is to say, under this sub-interface, the information of the VIDs numbered 1, 3, 7, 1 1 , 13, 19 is valid.
  • the information format for the single rule in the VLAN information includes: the first format segment indicates the type of the VID selection rule, the second format segment indicates the byte length occupied by the parameter of the VID selection range, and the third format segment indicates the parameter of the VID selection range.
  • the third format segment includes sub-format segments indicating the number of VIDs, sub-format segments representing each VID; continuous VID occupation
  • the three sub-format segments respectively indicate the continuous VID identification, the starting VID of the continuous VID, and the ending VID of the continuous VID.
  • the TLV (type, length, value) format shown in the upper part of FIG. 4 can be used, and the format of inclusion, parity, and exclusion is as shown in the lower part of FIG. 4, which includes and excludes the rule coding. Contains the number of VIDs and the part of the specific VID value.
  • the first format segment ie, the type format segment
  • the value is an integer multiple of 2 bytes.
  • the definition of each rule can be as follows:
  • the continuous VID indication mode is used, as shown in Figure 5. If the VID of the indication or code is 1, 2, 3, 4, 5, 7, the code of the Value part is shown in Figure 6. Note that 0x1000 (4096) is used as the continuous VID identifier, and 0, 1-4094 can also be used. Any number outside the range of 4095 does not exceed 65535, because 1-4094 is the normal VID, 0, 4095 is the reserved VID.
  • each rule and VID used are respectively indicated to the other party, and are determined by the other party.
  • a valid VID For VLAN include 1, 3, 7, 10-20, odd, exclude 12, 15-18 configurations, the VLAN IDs of the VIDs numbered 1, 3, 7, 11, 13, 19 are valid, and the result of mode one is As shown in Fig. 7, the result of the second mode is shown in Fig. 8. These two methods have their own advantages and disadvantages. When the number of VIDs is small, the selection method 1 is better, otherwise the selection 2 is better. These two ways also You can combine applications.
  • the number of separated VIDs is reduced.
  • a nested TLV structure may be added to the periphery of the above code, and the above-mentioned coded content is used as the value part of the external TLV code.
  • the encoding mode of the binding interface is shown in Figure 9.
  • the D-LAG-ID, Node-ID, and SG interface numbers are required.
  • the final OxFFFF is also required.
  • the sub-interface number is optional. On the entire SG interface. If there are multiple subinterface numbers, you can rely on OxFFFF to locate the end. Note that the above can also be changed from 2 bytes to 1 byte, which will not be described.
  • FIG. 11 is a virtual local area network information transmission apparatus according to an embodiment of the present invention, the apparatus includes a virtual local area network information processing module; the virtual local area network information processing module is configured to send virtual local area network information, and the virtual local area network information includes Or a plurality of virtual local area network identification (VID) selection rules determine a valid VID, or the virtual local area network information includes a type of one or more VID selection rules and a parameter of each VID selection rule indicating a VID selection range.
  • VID virtual local area network identification
  • the virtual local area network information is information configured for a combination of one or more of a device node, an aggregation interface, a sub-interface, and an inter-rack aggregation identifier (D-LAG-ID); the virtual local area network information. Contains information about one or more of device nodes, aggregate interfaces, sub-interfaces, and cross-rack aggregated identifiers (D-LAG-IDs).
  • the VID selection rule includes an inclusion rule, a parity rule, or an exclusion rule; the parameter indicating the VID selection range corresponding to the inclusion rule is one or more VIDs, indicating that the one or more VIDs are valid; the parity rule The corresponding parameter indicating the VID selection range is an odd effective indication flag or an even effective indication, indicating that the odd or even VID is valid; the parameter indicating the VID selection range corresponding to the exclusion rule is one or more VIDs, indicating the one or more VID is invalid.
  • the parameter indicating the VID selection range is a plurality of VIDs and some or all of the VIDs are consecutive VIDs.
  • the representation of this continuous VID is: continuous VID identification, starting VID of continuous VID, and ending VID of continuous VID.
  • the information format for the single rule in the virtual local area network information includes: the first format segment indicates the type of the VID selection rule, the second format segment indicates the byte length occupied by the parameter of the VID selection range, and the third format segment indicates the VID selection range.
  • the third format segment includes sub-format segments indicating the number of VIDs, sub-format segments representing each VID; continuous VID Three sub-format segments are occupied, indicating the continuous VID identification, the starting VID of the continuous VID, and the ending VID of the continuous VID.
  • each module/unit in the foregoing embodiment may be implemented in the form of hardware, or may be implemented in the form of a software function module.
  • the invention is not limited to any specific form of combination of hardware and software. It is to be understood that the invention may be embodied in various other forms and modifications without departing from the spirit and scope of the invention.
  • the embodiment of the present invention provides a method for transmitting VLAN information and an encoding method, and a method for configuring VLAN information, and supports forwarding of a service flow and interaction of VLAN configuration information between two nodes.
  • Simplify the configuration of VLAN information by comprehensively applying rules including rules, parity rules, or exclusion rules, and combine with nodes, aggregate interfaces, sub-interfaces, and cross-rack aggregation identifiers (D-LAG-ID) to flexibly perform service traffic.
  • D-LAG-ID cross-rack aggregation identifiers
  • the allocation of the VLAN information is compressed during the encoding, which reduces the information traffic during protocol interaction, and avoids excessive protocol packets and reduces network bandwidth consumption.

Landscapes

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

Abstract

一种虚拟局域网信息传输方法及装置,包括发送虚拟局域网信息时,所述虚拟局域网信息包括根据一个或多个虚拟局域网标识(VID)选择规则确定出的有效的VID,或者,所述虚拟局域网信息包括一个或多个VID选择规则的类型以及各VID选择规则指示VID选择范围的参数。通过综合应用包含规则、奇偶规则、或排除规则等规则简化VLAN信息的配置,与节点、聚合接口、子接口、跨机架聚合的标识(D-LAG-ID)结合,可以灵活的进行业务流量的指配,在编码时对连续的VLAN信息进行压缩,针对不同的信息进行特殊编码,减少协议交互时的信息流量。

Description

一种虚拟局域网信息传输方法及装置 技术领域 本发明涉及数据通信技术, 尤其涉及一种虚拟局域网 (VLAN )信息传 输方法及装置。
背景技术
如图 1 所示的是使用基于 802.1AX 标准中规范的链路聚合控制协议 ( Link Aggregation Control Protocol , 简称 LACP )技术构建的一种分布式链 路聚合组( Link Aggregation Grou , 简称 LAG )的系统, 在这个系统中出现 了一些新的特性, 其中一个重要的特性是在互连接口保护网络部分, 不会在 阻止某些端口, 充分发挥网络的带宽, 满足保护、 负载均衡、 冗余的要求。 从图 1看到有个业务网关接口, 这个是用于判断业务流如何转发的。 判 断的基础是需要得到相关的信息, 而目前只是知道根据 VLAN来进行转发, 相关的 VLAN信息的配置方法未规定。
发明内容 本发明要解决的技术问题是提供一种虚拟局域网信息传输方法及装置, 为分布式链路聚合组系统中 VLAN信息的配置提供解决方案。 为了解决上述技术问题, 本发明实施例提供了一种虚拟局域网信息传输 方法, 其中, 发送虚拟局域网信息时, 所述虚拟局域网信息包括根据一个或 多个虚拟局域网标识(VID )选择规则确定出的有效的 VID, 或者, 所述虚 拟局域网信息包括一个或多个 VID选择规则的类型以及各 VID选择规则指 示 VID选择范围的参数。 可选地, 上述方法还可以具有以下特点: 所述虚拟局域网信息是为设备节点、 聚合接口、 子接口、 跨机架聚合的 标识(D-LAG-ID )中的一种或几种的组合所配置的信息; 所述虚拟局域网信 息中包含设备节点、 聚合接口、 子接口、 跨机架聚合的标识(D-LAG-ID )— 个或者多个的信息。 可选地, 上述方法还可以具有以下特点: 所述 VID选择规则包括包含规则、 奇偶规则、 或排除规则; 所述包含规则对应的指示 VID选择范围的参数是一个或多个 VID,表示 该一个或多个 VID有效; 所述奇偶规则对应的指示 VID 选择范围的参数是奇数有效指示标志或 偶数有效指示, 表示奇数或偶数的 VID有效; 所述排除规则对应的指示 VID选择范围的参数是一个或多个 VID,表示 该一个或多个 VID无效。 可选地, 上述方法还可以具有以下特点: 指示 VID选择范围的参数是多个 VID并且部分或全部 VID为连续 VID 时, 对此连续 VID的表示方式为: 连续 VID标识、 连续 VID的起始 VID、 连续 VID的终止 VID。 可选地, 上述方法还可以具有以下特点: 所述虚拟局域网信息中针对单个规则的信息格式包括: 第一格式段指示 VID选择规则的类型,第二格式段指示 VID选择范围的参数占用的字节长度, 第三格式段指示 VID选择范围的参数; 指示 VID选择范围的参数是一个或多个 VID并且部分或全部 VID为连 续 VID时, 所述第三格式段包括指示 VID个数的子格式段, 表示各 VID的 子格式段; 连续 VID占用三个子格式段, 分别指示连续 VID标识、连续 VID 的起始 VID、 连续 VID的终止 VID。 为了解决上述技术问题, 本发明提供了一种虚拟局域网信息传输装置, 所述装置包括虚拟局域网信息处理模块; 所述虚拟局域网信息处理模块, 设 置为发送虚拟局域网信息, 所述虚拟局域网信息包括根据一个或多个虚拟局 域网标识 (VID )选择规则确定出的有效的 VID, 或者, 所述虚拟局域网信 息包括一个或多个 VID选择规则的类型以及各 VID选择规则指示 VID选择 范围的参数。 可选地, 上述传输装置还可以具有以下特点: 所述虚拟局域网信息是为设备节点、 聚合接口、 子接口、 跨机架聚合的 标识(D-LAG-ID )中的一种或几种的组合所配置的信息; 所述虚拟局域网信 息中包含设备节点、 聚合接口、 子接口、 跨机架聚合的标识(D-LAG-ID ) 一 个或者多个的信息。
可选地, 上述传输装置还可以具有以下特点: 所述 VID选择规则包括包含规则、 奇偶规则、 或排除规则; 所述包含规则对应的指示 VID选择范围的参数是一个或多个 VID,表示 该一个或多个 VID有效; 所述奇偶规则对应的指示 VID 选择范围的参数是奇数有效指示标志或 偶数有效指示, 表示奇数或偶数的 VID有效; 所述排除规则对应的指示 VID选择范围的参数是一个或多个 VID,表示 该一个或多个 VID无效。 可选地, 上述传输装置还可以具有以下特点: 指示 VID选择范围的参数是多个 VID并且部分或全部 VID为连续 VID 时, 对此连续 VID的表示方式为: 连续 VID标识、 连续 VID的起始 VID、 连续 VID的终止 VID。 可选地, 上述传输装置还可以具有以下特点: 所述虚拟局域网信息中针对单个规则的信息格式包括: 第一格式段指示
VID选择规则的类型,第二格式段指示 VID选择范围的参数占用的字节长度, 第三格式段指示 VID选择范围的参数; 指示 VID选择范围的参数是一个或多个 VID并且部分或全部 VID为连 续 VID时, 所述第三格式段包括指示 VID个数的子格式段, 表示各 VID的 子格式段; 连续 VID占用三个子格式段, 分别指示连续 VID标识、连续 VID 的起始 VID、 连续 VID的终止 VID。 本方案中提供了 VLAN信息的传输方法及编码方式, 以及 VLAN信息 的配置方式, 支持业务流的转发和 2个节点间进行 VLAN配置信息的交互。 通过综合应用包含规则、 奇偶规则、 或排除规则等规则简化 VLAN信息的配 置, 与节点、 聚合接口、 子接口、 跨机架聚合的标识(D-LAG-ID )结合, 可 以灵活的进行业务流量的指配, 在编码时对连续的 VLAN信息进行压缩, 针 对不同的信息进行特殊编码, 减少协议交互时的信息流量的方法, 同时可以 尽量避免协议报文超长。 通过结合不同的配置标识(flag )编码和 VLAN压 缩减少协议交互时信息载荷的大小, 降低网络带宽消耗。
附图概述 图 1是现有技术中分布式互连接口保护网络模型示意图; 图 2是本发明实施例中 VLAN信息传输方法示意图; 图 3是本发明实施例中 VLAN信息与接口绑定配置的说明示意图; 图 4是 TLV格式和本发明实施例中使用 TLV格式的示意图; 图 5是本发明实施例中连续 VID的指示方式示意图; 图 6是本发明实施例中釆用分离式 VID指示方式和连续式指示方式的示 意图;
图 7是本发明实施例中 VLAN信息指示方式一的示意图; 图 8是本发明实施例中 VLAN信息指示方式二的示意图; 图 9是本发明实施例中将 VLAN信息和接口绑定的格式示意图; 图 10是本发明实施例中接口绑定示例示意图; 图 11是本发明实施例的虚拟局域网信息装置示意图。
本发明的较佳实施方式
下文中将结合附图对本发明的实施例进行详细说明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互任意组合。 如图 2所示的 VLAN信息传输方法, 发送虚拟局域网信息时, 所述局域 网信息包括有效的 VID或者确定有效 VID的规则及参数。 所述 VLAN信息 传输方法包括: 发送 VLAN信息时, 所述 VLAN信息包括根据一个或多个 虚拟局域网标识 (VID )选择规则确定出的有效的 VID, 或者, 发送 VLAN 信息时, 所述 VLAN信息包括一个或多个 VID选择规则的类型以及各 VID 选择规则指示 VID选择范围的参数。 所述 VLAN信息是为设备节点、 聚合接口、 子接口、 跨机架聚合的标识 ( D-LAG-ID ) 中的一种或几种的组合所配置的信息; 所述 VLAN信息中包 殳备节点、 聚合接口、 子接口、 跨机架聚合的标识(D-LAG-ID ) —个或者 多个的信息。 所述 VID选择规则包括包含规则、 奇偶规则、 或排除规则; 所述包含规则对应的指示 VID选择范围的参数是一个或多个 VID,表示 该一个或多个 VID有效; 包含规则由 include表示, 例如: include 1 , 2, 7 , 10-20表示 1 , 2, 7, 10-20对应的 VLAN信息有效。 所述奇偶规则对应的指示 VID 选择范围的参数是奇数有效指示标志或 偶数有效指示, 表示奇数或偶数的 VID有效; 例如 odd表示奇数 VID有效, even表示偶数 VID有效。 所述排除规则对应的指示 VID选择范围的参数是一个或多个 VID,表示 该一个或多个 VID无效。 排除规则由 exclude表示, 例如: exclude 12, 15-18 表示 12, 15-18对应的 VLAN信息无效。 上述方法中, VID的指定方式可以是分离式的, 如 1 , 2、 3、 7 , 也可以 是连续式的, 如 1-20 (即 1至 20的 VID ) 。 指示 VID选择范围的参数是多 个 VID并且部分或全部 VID为连续 VID时, 对此连续 VID的表示方式为: 连续 VID标识、 连续 VID的起始 VID、 连续 VID的终止 VID。 上述选择规则和 VID指定方式可以独立应用也可以组合使用。 举例如下, 有如下的配置:
VLAN include 1,3,7,10-20, odd, exclude 12,15-18 其中 VLAN指明是配置 VLAN信息, include是包含规则, 表示使用后 面 VID对应的 VLAN信息, odd表示使用奇数 VID对应的 VLAN信息, 如 果是 even,表示使用偶数 VID对应的 VLAN信息, exclude 是排除规则, 指 明后续 VID的 VLAN信息不被使用。 逐步解析如下: include 1 ,3,7,10-20 ,使用了分离式的 VID指示方式和连续式的 VID指示 方式, 配置了使用如下数值的 VID: 1 , 3,7,10,1 1 ,12,13,14,15,16,17,18,19,20 。
Odd是一个排除规则, 表示只有奇数 VID的 VLAN信息有效, 结果配 置的有效 VID变为 1 ,3,7,1 1 ,13,15,17,19。 exclude 12,15-18也是一个排除规则, 12已经被排除, 15-18是一个被排 除的连续 VID表示方式, 即 15,16,17,18都要被排除, 结果配置的有效 VID 变为 1 ,3,7,1 1 ,13, 19。 上述配置信息可以和设备上的节点、 聚合接口、 子接口、 跨机架聚合的 标识(D-LAG-ID )结合, 可以灵活配置每端口的业务选择规则。 举例如下: VLAN include 1, 3, 7, 10-20, odd, exclude 72, 75-78 Bind D-LAG-ID 100
Node-ID 7 SG 2 IF 2 从图 3可以看出,这个是将 VLAN的配置同分布式聚合组为 100下节点 为 1的设备上的本地聚合组( SG )为 2下面的编号 2子接口( IF )绑定起来。 也就是说这个子接口下, 编号为 1 ,3,7,1 1 ,13, 19的 VID的信息有效。 所述 VLAN信息中针对单个规则的信息格式包括:第一格式段指示 VID 选择规则的类型, 第二格式段指示 VID选择范围的参数占用的字节长度, 第 三格式段指示 VID选择范围的参数; 指示 VID选择范围的参数是一个或多 个 VID并且部分或全部 VID为连续 VID时, 所述第三格式段包括指示 VID 个数的子格式段, 表示各 VID的子格式段; 连续 VID 占用三个子格式段, 分别指示连续 VID标识、 连续 VID的起始 VID、 连续 VID的终止 VID。 具体的, 可以使用如图 4上半部分所示的 TLV (类型、 长度、值)格式, 则包含、 奇偶、 排除的格式如图 4下半部分所示, 其中包含、 排除规则编码 包含了 VID个数和具体 VID值的部分。 第一格式段(即类型格式段) 长度的单位是字节 (Byte) , 值是 2字节 的整数倍, 其中各规则的定义可以如下表所示:
Figure imgf000009_0001
奇偶规则中对具体奇数有效规则和偶数有效规则的定义可以如下表所
Figure imgf000009_0002
对于包含、 排除规则中 value字段, 如果没有连续的 VID, 就单独指示, 如果有连续的 3个以上 VID, 就釆用连续式 VID指示方式, 如图 5所示。 假 如需要指示或编码的 VID为 1、 2、 3、 4、 5、 7时, Value值部分的编码如图 6, 注意这里使用 0x1000 (4096 )作为连续 VID标识,也可以选用 0, 1-4094, 4095范围外的任何不超过 65535的数字,因为 1-4094是正常的 VID, 0, 4095 是保留 VID。 对应于上述方法中两种方法, 即方式一, 确定出所有有效的 VID, 使用 包含规则来传递有效的 VID; 或者方式二, 将使用的各个规则和 VID分别指 示给对方,由对方解析后确定有效的 VID。对于 VLAN include 1,3, 7,10-20, odd, exclude 12,15-18配置来说, 编号为 1,3,7,11,13, 19的 VID的 VLAN信 息有效, 其方式一的结果如图 7, 方式二的结果如图 8。 此两种方式各有优缺 点, 当 VID个数不多时, 选择方法 1较好, 否则选择 2较好。 此两种方式也 可以组合应用。 特别是有奇偶规则时, 减少分离的 VID个数。 为了区分是 VLAN编码以及其中的 VID相关的编码长度, 可以在上述 编码的外围在加一个嵌套的 TLV结构, 上述的编码内容作为外部 TLV编码 的值部分。 绑定接口的编码方式见图 9 , 其中 D-LAG-ID、 Node-ID , SG接口编号 是必须的, 最后结束 OxFFFF也是必须的, 子接口编号是可选的, 如果没有 标识相关配置关联到整个 SG接口上。 如果有多个子接口编号, 可以依靠 OxFFFF来定位结束。注意,上述内容也可以从 2字节变为 1字节,不再描述。 对于 D-LAG-ID 100 Node-ID 7 SG 2 IF 命令产生的配置,按照上述编码 原则, 编码结果见图 10。 假设类型 (Type )为 10。 图 1 1是本发明实施例的一种虚拟局域网信息传输装置,所述装置包括虚 拟局域网信息处理模块; 所述虚拟局域网信息处理模块, 设置为发送虚拟局 域网信息, 所述虚拟局域网信息包括根据一个或多个虚拟局域网标识( VID ) 选择规则确定出的有效 VID ,或者,所述虚拟局域网信息包括一个或多个 VID 选择规则的类型以及各 VID选择规则指示 VID选择范围的参数。 其中, 所述虚拟局域网信息是为设备节点、 聚合接口、 子接口、 跨机架 聚合的标识(D-LAG-ID )中的一种或几种的组合所配置的信息; 所述虚拟局 域网信息中包含设备节点、聚合接口、子接口、跨机架聚合的标识( D-LAG-ID ) 一个或者多个的信息。
其中, 所述 VID选择规则包括包含规则、 奇偶规则、 或排除规则; 所述包含规则对应的指示 VID选择范围的参数是一个或多个 VID ,表示 该一个或多个 VID有效; 所述奇偶规则对应的指示 VID 选择范围的参数是奇数有效指示标志或 偶数有效指示, 表示奇数或偶数的 VID有效; 所述排除规则对应的指示 VID选择范围的参数是一个或多个 VID ,表示 该一个或多个 VID无效。 指示 VID选择范围的参数是多个 VID并且部分或全部 VID为连续 VID 时, 对此连续 VID的表示方式为: 连续 VID标识、 连续 VID的起始 VID、 连续 VID的终止 VID。 所述虚拟局域网信息中针对单个规则的信息格式包括: 第一格式段指示 VID选择规则的类型,第二格式段指示 VID选择范围的参数占用的字节长度, 第三格式段指示 VID选择范围的参数; 指示 VID选择范围的参数是一个或多个 VID并且部分或全部 VID为连 续 VID时, 所述第三格式段包括指示 VID个数的子格式段, 表示各 VID的 子格式段; 连续 VID占用三个子格式段, 分别指示连续 VID标识、连续 VID 的起始 VID、 连续 VID的终止 VID。 本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。 需要说明的是, 本发明还可有其他多种实施例, 在不背离本发明精神及 和变形, 但这些相应的改变和变形都应属于本发明所附的权利要求的保护范 围。
工业实用性 本发明实施例提供了 VLAN信息的传输方法及编码方式, 以及 VLAN 信息的配置方式,支持业务流的转发和 2个节点间进行 VLAN配置信息的交 互。 通过综合应用包含规则、 奇偶规则、 或排除规则等规则简化 VLAN信息 的配置, 与节点、 聚合接口、 子接口、跨机架聚合的标识(D-LAG-ID )结合, 可以灵活地进行业务流量的指配, 在编码时对连续的 VLAN信息进行压缩, 减少协议交互时的信息流量, 尽量避免协议报文超长, 降低网络带宽消耗。

Claims

权 利 要 求 书
1、 一种虚拟局域网信息传输方法, 其包括: 发送虚拟局域网信息, 所述虚拟局域网信息包括根据一个或多个虚拟局 域网标识 (VID )选择规则确定出的有效的 VID; 或者, 所述虚拟局域网信 息包括一个或多个 VID选择规则的类型以及各 VID选择规则指示 VID选择 范围的参数。
2、 如权利要求 1所述的方法, 其中, 所述虚拟局域网信息是为设备节点、 聚合接口、 子接口、 跨机架聚合的 标识(D-LAG-ID )中的一种或几种的组合所配置的信息; 所述虚拟局域网信 息中包含设备节点、 聚合接口、 子接口、 跨机架聚合的标识(D-LAG-ID )一 个或者多个的信息。
3、 如权利要求 1所述的方法, 其中, 所述 VID选择规则包括包含规则、 奇偶规则、 或排除规则; 所述包含规则对应的指示 VID选择范围的参数是一个或多个 VID,表示 该一个或多个 VID有效; 所述奇偶规则对应的指示 VID 选择范围的参数是奇数有效指示标志或 偶数有效指示, 表示奇数或偶数的 VID有效; 所述排除规则对应的指示 VID选择范围的参数是一个或多个 VID,表示 该一个或多个 VID无效。
4、 如权利要求 3所述的方法, 其中, 指示 VID选择范围的参数是多个 VID并且部分或全部 VID为连续 VID 时, 对此连续 VID的表示方式为: 连续 VID标识、 连续 VID的起始 VID、 连续 VID的终止 VID。
5、 如权利要求 4所述的方法, 其中, 所述虚拟局域网信息中针对单个规则的信息格式包括: 第一格式段指示
VID选择规则的类型,第二格式段指示 VID选择范围的参数占用的字节长度, 第三格式段指示 VID选择范围的参数; 指示 VID选择范围的参数是一个或多个 VID并且部分或全部 VID为连 续 VID时, 所述第三格式段包括指示 VID个数的子格式段, 表示各 VID的 子格式段; 连续 VID占用三个子格式段, 分别指示连续 VID标识、连续 VID 的起始 VID、 连续 VID的终止 VID。
6、 一种虚拟局域网信息传输装置, 所述装置包括虚拟局域网信息处理 模块;
所述虚拟局域网信息处理模块, 设置为发送虚拟局域网信息, 所述虚拟 局域网信息包括根据一个或多个虚拟局域网标识 (VID )选择规则确定出的 有效的 VID; 或者, 所述虚拟局域网信息包括一个或多个 VID选择规则的类 型以及各 VID选择规则指示 VID选择范围的参数。
7、 如权利要求 6所述的传输装置, 其中, 所述虚拟局域网信息是为设备节点、 聚合接口、 子接口、 跨机架聚合的 标识(D-LAG-ID )中的一种或几种的组合所配置的信息; 所述虚拟局域网信 息中包含设备节点、 聚合接口、 子接口、 跨机架聚合的标识(D-LAG-ID )一 个或者多个的信息。
8、 如权利要求 6所述的传输装置, 其中, 所述 VID选择规则包括包含规则、 奇偶规则、 或排除规则; 所述包含规则对应的指示 VID选择范围的参数是一个或多个 VID,表示 该一个或多个 VID有效; 所述奇偶规则对应的指示 VID 选择范围的参数是奇数有效指示标志或 偶数有效指示, 表示奇数或偶数的 VID有效; 所述排除规则对应的指示 VID选择范围的参数是一个或多个 VID,表示 该一个或多个 VID无效。
9、 如权利要求 8所述的传输装置, 其中, 指示 VID选择范围的参数是多个 VID并且部分或全部 VID为连续 VID 时, 对此连续 VID的表示方式为: 连续 VID标识、 连续 VID的起始 VID、 连续 VID的终止 VID。
10、 如权利要求 9所述的传输装置, 其中, 所述虚拟局域网信息中针对单个规则的信息格式包括: 第一格式段指示 VID选择规则的类型,第二格式段指示 VID选择范围的参数占用的字节长度, 第三格式段指示 VID选择范围的参数; 指示 VID选择范围的参数是一个或多个 VID并且部分或全部 VID为连 续 VID时, 所述第三格式段包括指示 VID个数的子格式段, 表示各 VID的 子格式段; 连续 VID占用三个子格式段, 分别指示连续 VID标识、连续 VID 的起始 VID、 连续 VID的终止 VID。
PCT/CN2012/078821 2011-10-25 2012-07-18 一种虚拟局域网信息传输方法及装置 WO2013060171A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110327693.1 2011-10-25
CN201110327693.1A CN103078778B (zh) 2011-10-25 2011-10-25 一种虚拟局域网信息传输方法及装置

Publications (1)

Publication Number Publication Date
WO2013060171A1 true WO2013060171A1 (zh) 2013-05-02

Family

ID=48155188

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/078821 WO2013060171A1 (zh) 2011-10-25 2012-07-18 一种虚拟局域网信息传输方法及装置

Country Status (2)

Country Link
CN (1) CN103078778B (zh)
WO (1) WO2013060171A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110677336A (zh) * 2019-09-02 2020-01-10 京信通信系统(中国)有限公司 开站方法、装置、计算机设备和存储介质
WO2021042845A1 (zh) * 2019-09-06 2021-03-11 南京中兴软件有限责任公司 虚拟局域网业务管理方法、虚拟局域网全局管理设备

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108173767B (zh) * 2017-12-25 2021-02-26 杭州迪普科技股份有限公司 一种基于vlan-if接口复用的报文转发方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1691630A (zh) * 2003-12-23 2005-11-02 阿尔卡特公司 用于增加可用的用户vlan空间的方法和系统
CN1925456A (zh) * 2005-09-01 2007-03-07 中兴通讯股份有限公司 多业务堆叠式虚拟局域网实现的系统、方法及其应用方法
CN101924700A (zh) * 2010-08-09 2010-12-22 福建星网锐捷网络有限公司 报文处理方法、装置和网络设备
CN102025523A (zh) * 2010-12-23 2011-04-20 中兴通讯股份有限公司 一种跨虚拟局域网的组播业务处理方法及设备

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100440868C (zh) * 2005-12-20 2008-12-03 杭州华三通信技术有限公司 一种接入虚拟局域网的方法
JP5476857B2 (ja) * 2009-08-24 2014-04-23 富士通株式会社 通信装置および統計情報収集方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1691630A (zh) * 2003-12-23 2005-11-02 阿尔卡特公司 用于增加可用的用户vlan空间的方法和系统
CN1925456A (zh) * 2005-09-01 2007-03-07 中兴通讯股份有限公司 多业务堆叠式虚拟局域网实现的系统、方法及其应用方法
CN101924700A (zh) * 2010-08-09 2010-12-22 福建星网锐捷网络有限公司 报文处理方法、装置和网络设备
CN102025523A (zh) * 2010-12-23 2011-04-20 中兴通讯股份有限公司 一种跨虚拟局域网的组播业务处理方法及设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110677336A (zh) * 2019-09-02 2020-01-10 京信通信系统(中国)有限公司 开站方法、装置、计算机设备和存储介质
WO2021042845A1 (zh) * 2019-09-06 2021-03-11 南京中兴软件有限责任公司 虚拟局域网业务管理方法、虚拟局域网全局管理设备

Also Published As

Publication number Publication date
CN103078778B (zh) 2017-04-26
CN103078778A (zh) 2013-05-01

Similar Documents

Publication Publication Date Title
US9787740B2 (en) Digital device, network and method for streaming audio or video data
EP2701342A1 (en) Method and system for implementing elastic network interface and interconnection
EP3200399B1 (en) Automated mirroring and remote switch port analyzer (rspan)/encapsulated remote switch port analyzer (erspan) functions using fabric attach (fa) signaling
EP2924934B1 (en) Ethernet switch and method for establishing forwarding patterns in an ethernet switch
WO2015066878A1 (zh) Sdn网络中的控制设备和控制方法
WO2017128905A1 (zh) 一种单主机多环most网络通信系统
WO2012100671A1 (zh) 一种绑定物理网口的方法、网卡及通信系统
CN109691031B (zh) 业务报文传输方法及节点设备
WO2014166102A1 (zh) 一种数据处理的方法、装置及系统
WO2013060171A1 (zh) 一种虚拟局域网信息传输方法及装置
JP5573955B2 (ja) フレーム連結装置
CN104639437A (zh) 堆叠系统中广播报文的转发方法及装置
JP5366841B2 (ja) パケット伝送方法およびパケット伝送装置
JP5630094B2 (ja) 通信装置および通信方法
CN107453895A (zh) 用于配置网络中流通信路径的方法
CN108011802B (zh) 一种报文发送方法及二三层网络设备
CN103823721B (zh) 一种进程间通信的方法及设备
CN101115001B (zh) Adsl路由器的主机和pvc动态绑定的方法
JP6586374B2 (ja) 通信装置、経路管理サーバ、通信方法、および仮想ポート割当方法
US9166815B2 (en) Communication apparatus and communication controlling method in ring network
JP5458340B2 (ja) ネットワーク中継装置
CN110830295B (zh) 一种设备管理方法及系统
CN104272681B (zh) 通信系统和通信控制方法
US9509607B2 (en) Method, network device and system for sending and receiving packet
JP6206497B2 (ja) データ転送装置およびデータ転送方法

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

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

Country of ref document: EP

Kind code of ref document: A1