WO2007031003A1 - Method for building intelligent virtual switching link - Google Patents

Method for building intelligent virtual switching link Download PDF

Info

Publication number
WO2007031003A1
WO2007031003A1 PCT/CN2006/002247 CN2006002247W WO2007031003A1 WO 2007031003 A1 WO2007031003 A1 WO 2007031003A1 CN 2006002247 W CN2006002247 W CN 2006002247W WO 2007031003 A1 WO2007031003 A1 WO 2007031003A1
Authority
WO
WIPO (PCT)
Prior art keywords
vlan
virtual switch
switch
port
establishing
Prior art date
Application number
PCT/CN2006/002247
Other languages
French (fr)
Chinese (zh)
Inventor
Longbin Hu
Zhining Ye
Chaomei Gong
Yuan Qu
Xiaolong Qian
Wei Yu
Weidong Zhong
Haoxin Jia
Original Assignee
Zte Corporation
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 Zte Corporation filed Critical Zte Corporation
Publication of WO2007031003A1 publication Critical patent/WO2007031003A1/en

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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/35Switches specially adapted for specific applications
    • H04L49/354Switches specially adapted for specific applications for supporting virtual local area networks [VLAN]

Definitions

  • the present invention relates to the field of computers using intelligent virtual switching (IV-Switch or Intelligent Virtual-Switch) technology, and more particularly to a method for establishing an intelligent virtual switching link in the field of network communication.
  • Intelligent virtual switching technology is a method of establishing virtual circuits.
  • the Chinese patent (CN 1538682A) describes IV-Switch technology.
  • the port number and the outbound VLAN ID (number) are selected by the inbound port number and the inbound VLAN ID (number).
  • This technology can effectively suppress broadcast traffic on the network and avoid broadcast storms.
  • the Switoh system combines the carrier-class concept with the computer concept. It is simpler than MPLS (Multi-Protocol Label Switching), easy to understand and master. The operation and maintenance requirements are not high in MPLS and low in cost.
  • the construction of a carrier-class Ethernet bearer network has attracted great attention from telecom operators and equipment manufacturers at home and abroad.
  • the VLAN Virtual Local Area Network
  • the ID (Identity) is a label or a number.
  • each port can have 4096 VLANs to distinguish users, which greatly expands the number of VLANs.
  • VLAN range is not improved.
  • the actual networking requirements cannot be met by using the existing IV-Switch technology.
  • customer A includes customer A-l
  • customer A-2 includes customer B-l
  • customer B includes customer B-l
  • Customer A's two-part network client A-1 VLAN (1-4095) and customer A-2 VLAN (1-4095) are connected to the backbone through port 104 of IV-Switch device 101 and port 110 of IV-Switch device 103, respectively. Net, and interoperate.
  • Customer B's two-part network client B-1 VLAN (1-4095) and customer B-2 VLAN (1-4095) are connected to the backbone through port 105 of IV-Switoh device 101 and port 111 of IV-Switeh device 103, respectively. Net, and interoperate.
  • both client A and client B need to pass through port 106 of IV-Switch device 101 and port 109 of IV-Switch device 103, in addition, both client A and client B already exist. 4096 VLAN-wide subnet applications. At this time, because the port 106 and port 109 can only support a maximum of 4096 VLAN ranges, the original IV-Switch technology cannot solve this requirement.
  • the current IV-Switch technology has a significant drawback. Because it is limited to a single port on the backbone network, it only supports 4096 VLAN ranges, which will lead to many practical applications. Application requirements cannot be met.
  • IEEE 802.1Q tunnel (QI Q, g ⁇ VLAN Stacking, stackable VLAN) is a new technology of VLAN overlay packaging, that is, the VLA encapsulation of data packets can be nested multiple times, and the VLAN range can be extended by using VLAN overlay technology.
  • the invention can effectively solve the problem that the VLAN range is limited.
  • the present invention describes how to combine the IV-Switch technology and the QINQ technology to provide an improved method for establishing an IV-Switch link, which can effectively expand the application of the IV-Switch technology.
  • the VLAN range of the backbone network, the present invention is a very important method for making the IV-Switdi technology more widely used.
  • Invention disclosure is a very important method for making the IV-Switdi technology more widely used.
  • the object of the present invention is to provide a method for establishing an intelligent virtual switch link, which is used to solve the problem that the existing IV-Switch technology has a limited VLAN range on the backbone network in a large-scale application.
  • the present invention provides a method for establishing an intelligent virtual switch link, which is applicable to the field of network communication, and includes:
  • Step 1 Determine a path of the virtual switch that passes from the source network user to the destination network user, and use the source virtual switch as the current virtual switch.
  • Step 2 Establish an exchange entry on the current virtual switch, and the current virtual switch selects a port, a policy for processing the outbound VLAN ID according to the exchange entry, and selects a processing policy according to the outgoing VLAN ID.
  • Step 3 The device port and the VLAN ID corresponding to the destination network user are respectively used as the egress port and the outbound VLAN ID of the current virtual switch, and a switching entry between the destination network user and the destination network user is established, thereby establishing a virtual circuit.
  • the method for establishing an intelligent virtual switch link wherein the structure of the exchange entry specifically includes: a forwarding table KEY, a forwarding table RESULT; the forwarding table KEY further includes an inbound VLAN ID and an ingress port number;
  • the publication of RESULT includes adding VLAN flag bits, reducing VLAN flag bits, Out VLAN ID, outgoing port number.
  • the method for establishing an intelligent virtual switch link where the processing policy for the outgoing VLA ID includes: adding a VLAN ID, replacing a VLAN ID, and reducing a VLAN ID.
  • the method for establishing an intelligent virtual switch link wherein, in the second step, when the processing policy of the outgoing VLAN ID is to add a VLAN ID, the current virtual switch is from the current virtual switch to the destination network user. A pair of peers is established for the current virtual switch on the path, and the peer performs reduced VLAN ID processing.
  • the method for establishing an intelligent virtual switching link wherein, in the second step, when the processing policy of the outgoing VLAN ID is to replace the VLA ID, selecting an idle outgoing VLAN ID from the selected outgoing port, And establishing an exchange entry with the next-level virtual switch according to the ingress port number, the inbound VLAN ID, the selected outbound port number, the outbound VLAN ID, and the outgoing VLAN ID processing policy of the current virtual switch.
  • step 2 further includes: the next-level virtual switch adopts itself as a current virtual switch, and determines whether the current virtual switch is a destination virtual switch. A step of.
  • the method for establishing an intelligent virtual switching link wherein, in the second step, if the current virtual switch is not a destination virtual switch, the processing strategy of the outbound VLAN ID of the pair of upper-level virtual switches is further determined. A step of.
  • the processing policy of the outgoing VLAN ID of the upper-level virtual switch is to increase the VLAN ID or replace the VLAN ID
  • the outgoing VLAN ID and the outgoing port selected by the upper-level virtual switch are respectively used as the current virtual switch.
  • the processing policy of the outbound VLAN ID of the upper level virtual switch is to reduce the VLAN ID
  • the egress port selected by the upper level virtual switch is used as the ingress end of the current virtual switch.
  • the method for establishing an intelligent virtual switch link wherein after the step of using the egress port selected by the upper-level virtual switch as an ingress port of the current virtual switch, the method further includes: searching for the current The virtual switch connects to the peer of the upper-level virtual switch on the established link of the source network user, and uses the in-VLAN ID number of the virtual switch corresponding to the peer as the incoming VLA of the current virtual switch. ID, determines the processing strategy of the VLAN ID.
  • the method for establishing an intelligent virtual switch link where, in the second step, when the pair is out
  • the VLAN ID processing policy is to reduce the VLAN ID, and establish a relationship with the next-level virtual switch according to the inbound port number, the inbound VLAN ID, the selected egress port number, and the outgoing VLAN ID of the current virtual switch. Exchange table entry.
  • the present invention effectively improves the establishment of an IV-Switch link by combining QINQ and IV-Switch technology.
  • This method expands the VLAN range of the IV-Switch technology in the backbone network and overcomes the existing IV-Switeh.
  • the technology has the disadvantage of limited VLAN range on the backbone network.
  • Figure 1 is a network diagram of requirements for an IV-Switch application
  • FIG. 2 is a schematic flow chart of a method for implementing the present invention
  • FIG. 4 is a schematic diagram of a processing flow of packet forwarding in a port mode according to the present invention
  • FIG. 5 is a networking application diagram of a hierarchical IV-Switdi according to the present invention. The best way to implement the invention
  • FIG. 2 is a schematic flow chart of the method for implementing the present invention.
  • the method for implementing the present invention specifically includes the following steps - step 201, determining the virtual switch path to be passed from the source network user to the destination network user;
  • Step 202 The source virtual switch is used as the current virtual switch.
  • Step 203 Select an outbound port of the current virtual switch, and select a processing policy for the outgoing VLAN ID.
  • Step 204 it is determined whether the processing policy of the outgoing VLAN ID is to increase the VLAN ID, and if yes, go to step 206, otherwise go to step 205;
  • Step 205 it is determined whether the processing policy of the outgoing VLAN ID is a replacement VLAN ID, and if yes, go to step 207, otherwise go to step 209;
  • Step 206 Establish a peer for the current virtual switch on the path of the current virtual switch to the destination network user, where the peer performs a VLAN ID reduction policy opposite to the added VLAN ID.
  • Step 207 Select an idle outbound VLAN ID from the selected outbound port.
  • Step 208 Process the ingress port, the inbound VLAN ID, the selected outbound port number, the outbound VLAN ID, and the outbound VLAN ID according to the current virtual switch. Establish an exchange entry with the next-level virtual switch, go to step 210;
  • Step 209 Establish an exchange entry with the next-level virtual switch according to the ingress port, the inbound VLAN ID, and the selected egress port number of the current virtual switch, and the processing policy of the outbound VLAN ID.
  • Step 210 the next level of virtual The switch uses itself as the current virtual switch;
  • Step 211 determine whether it is the destination virtual switch, if not, go to step 212, otherwise go to step 216;
  • Step 212 Determine whether the outbound VLAN ID policy of the upper level virtual switch is an increase VLAN.
  • step 213 If yes, go to step 213, otherwise, reduce the VLA ID, go to step 214;
  • Step 213 the outgoing VLAN ID and the egress port selected by the upper-level virtual switch are taken as the in-VLAN ID and the ingress port of the current virtual switch, and the process proceeds to step 203;
  • Step 214 The egress port selected by the upper-level virtual switch is used as an ingress port of the current virtual switch.
  • Step 215 Find a peer of the upper-level virtual switch on the link that has been established from the current virtual switch to the source network user, and find the in-VLAN ID of the peer virtual switch as the in-VLAN ID of the current virtual switch. Go to step 203;
  • Step 216 Determine whether the outbound VLAN ID policy of the upper level virtual switch is an increase VLAN.
  • step 217 If yes, go to step 217, otherwise, reduce the VLAN ID, go to step 218;
  • Step 217 The outgoing VLAN ID and the egress port selected by the upper-level virtual switch are used as the in-VLAN ID and the ingress port of the current virtual switch, and the processing strategy of the VLAN ID is determined, and the process proceeds to step 220;
  • Step 218 The egress port selected by the upper-level virtual switch is used as an ingress port of the current virtual switch.
  • Step 219 Find the peer of the upper-level virtual switch on the link that has been established from the current virtual switch to the source network user, and find the in-VLAN ID of the peer virtual switch as the in-VLAN ID of the current virtual switch. And determine the processing strategy of the VLAN ID;
  • step 220 the device port and the VLAN ID corresponding to the destination network user are used as the outbound port and the outbound VLAN ID of the current virtual switch, and the exchange entry between the user and the destination network user is established; and in step 221, the virtual circuit is established and ended.
  • the IV-Switch forwarding table structure of the present invention is a data structure of a method for improving the establishment of an intelligent virtual switching (IV-Switch) link.
  • the IV-Switch forwarding table 301 includes an IV-Switch forwarding table KEY 302 and an IV-Switch forwarding table RESULT 303;
  • the IV-Switch forwarding table KEY 302 which is composed of an ingress port number 303 and an inbound VLAN ID number 304, is used to retrieve the IV-Switch forwarding table 301;
  • the IV-Switch forwarding table RESULT 303 is used to store a series of flag bits (add VLAN tag 305, reduce VLAN flag bit 306) and outgoing port number 307 and outgoing VLAN ID number 308;
  • the port number 303 is used to construct a KEY value for retrieving the IV-Switch forwarding table 301;
  • the VLAN ID number 304 is used to form a KEY value for retrieving the IV-Switch forwarding table 301.
  • the VLAN flag bit 305 is added to indicate that the data packet needs to be encapsulated with a VLAN; if the data packet is entered, it is already a VLAN packet. , then the VLAN stack will be formed, that is, the packet format of the QINQ encapsulation is formed;
  • the VLAN flag bit 306 is used to indicate that the outermost VLAN encapsulation needs to be removed from the data packet; if the data packet is entered, there is no VLAN encapsulation, then the operation is not performed;
  • the data packet is encapsulated into a new packet, and then sent out from the egress port indicated by the egress port number 307;
  • the outbound VLAN ID number 308 is used to add a new VLAN and replace the VLA operation (adding the VLAN flag bit and reducing the VLAN flag bit to 0), and using the outbound VLAN ID number 308 in the IV-Switch forwarding table 301 as the most The new VLAN ID number encapsulated in the outer VLAN. If the processing policy of the outbound VLAN ID number 308 is to reduce the VLAN ID, the VLAN ID number 308 is not required.
  • FIG. 4 is a schematic diagram of a processing flow for performing packet forwarding in the port mode to which the present invention is applied.
  • the process specifically includes the following steps:
  • Step 401 Take the data packet entry port number and the outermost VLAN ID number of the data packet.
  • Step 402 Search for the IV-Switch forwarding table by using the data packet entry port number and the outermost VLAN ID number.
  • Step 403 Determine whether the added VLAN flag bit is valid. If yes, go to step 404. Otherwise, Go to step 406;
  • Step 404 Take the new VLAN ID number stored in the matching IV-Switch forwarding table entry.
  • Step 405 Encapsulate a new layer on the outside of the data packet with the new VLAN ID number in the matched IV-Switoh forwarding table entry.
  • VLAN go to step 411; if the packet is already in the VLAN packet, then the VLAN stack will be formed, that is, the packet format of the QINQ encapsulation is formed;
  • Step 406 determining whether the VLAN flag is valid, if yes, go to step 409, otherwise go to step 407;
  • Step 407 Take the new VLAN ID number stored in the matched IV-Switoh forwarding table entry.
  • Step 408 Replace the VLAN encapsulated in the outermost VLAN of the packet with the new VLAN ID number in the matching IV-Switch forwarding table entry. ID number, go to step 411;
  • Step 409 determining whether the incoming data packet is a VLAN encapsulated message, if yes, go to step 410, otherwise go to step 411;
  • Step 410 Remove or cancel the outermost VLAN of the data packet.
  • Step 411 Obtain an interface from the matched IV-Switch forwarding table entry.
  • Step 412 Send the encapsulated new data packet from the outbound port of the matched IV-Switch forwarding table entry.
  • FIG. 1 The actual networking application shown in FIG. 1 is further implemented by the present invention as described below.
  • the IV-Switch device 101 is the source virtual switch and the IV-Switch device 103 is the destination virtual switch.
  • the IV-Switch device 101 establishes the following IV-Switch for customer A-1 and customer B-1 respectively.
  • the IV-Switch device 102 establishes the following IV-Switch forwarding table:
  • the IV-Switch device 103 is the peer of the IV-Switch device 101, the IV-Switch device 101 performs the VLAN ID adding policy, and the IV-Switch device 103 performs the VLAN ID reduction policy.
  • the IV-Switch device 103 establishes the following IV-Switch. Forwarding table:
  • the device 102 reaches the destination virtual switch IV-Switch device 103.
  • the data stream of the client A-1 is removed to be added to the outer VLAN ID of the backbone network, and the original data stream is restored.
  • the traffic from port 110 and customer A-2 is intercommunicated.
  • the IV-Switch device 102 reaches the destination virtual switch IV-Switch device 103.
  • the data stream of the client B-1 is removed, and the outer VLAN ID that is added to traverse the backbone network is restored.
  • the data stream communicates with the traffic of the client B-2 from the port 111.
  • the traffic of the client A and the client B are successfully interworked by using only two VLAN IDs (1 and 2) on the port 106 of the IV-Switch device 101. Therefore, it can be seen from the above implementation process that the present invention is effective.
  • the VLAN range resources of the backbone network are saved, and the VLAN range of the backbone network is expanded.
  • FIG. 5 shows a networking application diagram of a hierarchical IV-Switch.
  • a network is divided into three levels: access network (IV-Switch device 514 ⁇ 516) and bearer network (IV-Switch device). 510-513) and the backbone network (IV-Switch devices 501 ⁇ 509), which may be the user network under the access network.
  • access network IV-Switch device 514 ⁇ 566
  • bearer network IV-Switch device 510-513
  • the backbone network IV-Switch devices 501 ⁇ 509
  • a VLAN ID can be encapsulated in the traffic sent by the user network, which is called the "access network VLAN ID”.
  • the access network On the IV-Switch device of the bearer network, the access network can be accessed. The sent traffic continues to encapsulate a VLAN ID, which is called the "bearer network VLAN ID".
  • the traffic sent by the bearer network can be encapsulated with a VLAN ID, which is called the backbone VLAN ID. ".
  • the data flow uses the "backbone network VLAN ID” to traverse the backbone network, uses the “bearer network VLAN ID” to traverse the bearer network, and uses the "access network VLAN ID” to traverse the access network.
  • the network condition of the upper layer can be considered transparent.
  • the network condition of the upper layer can be considered transparent.
  • the data stream enters the backbone network IV-Switch device 514 from the bearer network IV-Switch device 510, it is added to a "backbone network VLAN ID", and after the backbone network IV-Switch device 515 reaches the backbone network IV-Switch device 516. , remove the "backbone network VLAN ID" and enter the destination IV-Switch device 512 or 513.
  • the above backbone network can be considered to be transparent, so that when the IV-Switch is deployed on the bearer network, the network conditions of other layers can be ignored.
  • the method of the present invention can effectively solve the problem that the existing IV-Switch technology cannot meet the networking application requirements shown in FIG. 1, and expand the practical application range of the IV-Switch, and can make the IV-Switch technology not only Making full use of the 4096 VLAN range of a single port, it can also greatly save the VLAN range resources of the backbone network, which is beneficial to the backbone network to access more applications, and provides conditions for large-scale Ethernet access.
  • the invention can make the management of the network traffic very convenient, and can also implement the hierarchical IV-Switch application.

Abstract

A method for building a intelligent virtual exchange chain circuit in network communication field, comprising: step 1, ensure the path of passed virtual exchange from the source virtual user to the target virtual user, and make the source virtual switch be the current virtual switch; step 2, building a exchange list on current virtual exchange, selecting the outlet port and the processing strategy of outlet VLAN ID based the exchange list, and select outlet VLAN ID base the VLAN ID processing strategy, using the apparatus ports and the VLAN ID as outlet port and outlet VLAN ID of the current virtual exchange, to build the exchange list between the target users, then, the virtual circuit is completed. The method effectively spreads the range of IV-Switch technique used in the VLAN of the main network, conquered the problem of the IV-Switch technique’s using range being restricted in the main network.

Description

一种建立智能虚交换链路的方法 技术领域  Method for establishing intelligent virtual switching link
本发明涉及使用智能虚交换(IV-Switch或 Intelligent Virtual-Switch)技术 的计算机领域, 特别是涉及一种网络通信领域建立智能虚交换链路的方法。 背景技术  The present invention relates to the field of computers using intelligent virtual switching (IV-Switch or Intelligent Virtual-Switch) technology, and more particularly to a method for establishing an intelligent virtual switching link in the field of network communication. Background technique
智能虛交换技术是一种建立虚拟电路的方法, 中国专利 (CN 1538682A) 阐述了 IV-Switch技术。 在 IV-Switch中, 通过入端口号和入 VLAN ID (号) 来选择出端口号和出 VLAN ID (号),该技术可以有效抑制网络中的广播流量, 避免广播风暴的发生, 在 IV-Switoh体系中结合了电信级理念和计算机理念, 实现起来比 MPLS (Multi-Protocol Label Switching, 多协议标签交换技术)简 单, 易于理解和掌握, 对运维的要求没有 MPLS 高, 成本低, 可用于构建电 信级以太承载网, 已引起国内外电信运营商和设备制造商极大的关注。 其中, VLAN (Virtual Local Area Network) 为虚拟局域网, ID (Identity) 为标示或 标不号。  Intelligent virtual switching technology is a method of establishing virtual circuits. The Chinese patent (CN 1538682A) describes IV-Switch technology. In the IV-Switch, the port number and the outbound VLAN ID (number) are selected by the inbound port number and the inbound VLAN ID (number). This technology can effectively suppress broadcast traffic on the network and avoid broadcast storms. The Switoh system combines the carrier-class concept with the computer concept. It is simpler than MPLS (Multi-Protocol Label Switching), easy to understand and master. The operation and maintenance requirements are not high in MPLS and low in cost. The construction of a carrier-class Ethernet bearer network has attracted great attention from telecom operators and equipment manufacturers at home and abroad. The VLAN (Virtual Local Area Network) is a virtual local area network, and the ID (Identity) is a label or a number.
利用 IV-Switch技术可以使得每个端口都有独立的 4096个 VLAN来区分 用户, 大大扩展了 VLAN的数目, 但是按照目前的实现方式, 只能充分利用 每个端口的 VLAN范围, 对于整网的 VLA 范围没有改善, 如图 1所示的实 际组网需求, 应用现有的 IV-Switch技术就无法满足。  With IV-Switch technology, each port can have 4096 VLANs to distinguish users, which greatly expands the number of VLANs. However, according to the current implementation, only the VLAN range of each port can be fully utilized. The VLA range is not improved. As shown in Figure 1, the actual networking requirements cannot be met by using the existing IV-Switch technology.
在图 1中, 客户 A包括客户 A-l、 客户 A-2, 客户 B包括客户 B-l、 客户 In Figure 1, customer A includes customer A-l, customer A-2, customer B includes customer B-l, customer
B- 2。 B- 2.
客户 A的两部分网络客户 A-1 VLAN ( 1-4095)、客户 A-2 VLAN ( 1-4095) 分别通过 IV-Switch设备 101的端口 104和 IV-Switch设备 103的端口 110接 入到骨干网, 并且进行互通。  Customer A's two-part network client A-1 VLAN (1-4095) and customer A-2 VLAN (1-4095) are connected to the backbone through port 104 of IV-Switch device 101 and port 110 of IV-Switch device 103, respectively. Net, and interoperate.
客户 B的两部分网络客户 B-1 VLAN ( 1-4095)、客户 B-2 VLAN ( 1-4095) 分别通过 IV-Switoh设备 101的端口 105和 IV-Switeh设备 103的端口 111接入 到骨干网, 并且进行互通。  Customer B's two-part network client B-1 VLAN (1-4095) and customer B-2 VLAN (1-4095) are connected to the backbone through port 105 of IV-Switoh device 101 and port 111 of IV-Switeh device 103, respectively. Net, and interoperate.
由于客户 A和客户 B的数据流都需要通过 IV-Switch设备 101的端口 106 和 IV-Switch设备 103的端口 109, 另外, 客户 A和客户 B都分别已经存在了 4096个 VLAN范围的子网应用, 此时, 由于受到端口 106和端口 109最大只 能支持 4096个 VLAN范围的限制, 应用原来的 IV-Switch技术将无法解决该 需求。 Since the data flows of both client A and client B need to pass through port 106 of IV-Switch device 101 and port 109 of IV-Switch device 103, in addition, both client A and client B already exist. 4096 VLAN-wide subnet applications. At this time, because the port 106 and port 109 can only support a maximum of 4096 VLAN ranges, the original IV-Switch technology cannot solve this requirement.
从图 1所示的应用组网可以看出, 目前的 IV-Switch技术存在一个比较明 显的缺陷是, 在骨干网上面由于受限于单端口, 只支持 4096个 VLAN范围, 将导致很多实际的应用需求无法满足。  As shown in the application networking shown in Figure 1, the current IV-Switch technology has a significant drawback. Because it is limited to a single port on the backbone network, it only supports 4096 VLAN ranges, which will lead to many practical applications. Application requirements cannot be met.
IEEE802.1Q隧道 (QI Q, g卩 VLAN Stacking, 可堆叠 VLAN) 是一种 VLAN叠加封装的新技术, 即数据包的 VLA 封装可以进行多次嵌套, 通过 使用 VLAN叠加技术可以扩展 VLAN范围,可以有效地解决 VLAN范围受限 的问题, 本发明介绍如何将 IV-Switch技术和 QINQ技术结合起来, 提供一种 IV-Switch链路建立的改进方法,该方法可以有效地扩大 IV-Switch技术应用中 骨干网的 VLAN范围,本发明是使得 IV-Switdi技术得到进一步更广泛应用的 一个十分重要的方法。 发明公开  IEEE 802.1Q tunnel (QI Q, g卩VLAN Stacking, stackable VLAN) is a new technology of VLAN overlay packaging, that is, the VLA encapsulation of data packets can be nested multiple times, and the VLAN range can be extended by using VLAN overlay technology. The invention can effectively solve the problem that the VLAN range is limited. The present invention describes how to combine the IV-Switch technology and the QINQ technology to provide an improved method for establishing an IV-Switch link, which can effectively expand the application of the IV-Switch technology. The VLAN range of the backbone network, the present invention is a very important method for making the IV-Switdi technology more widely used. Invention disclosure
本发明的目的在于提供一种建立智能虚交换链路的方法, 用于解决现有 IV-Switch技术在大规模应用中, 骨干网上 VLAN范围受限的问题。  The object of the present invention is to provide a method for establishing an intelligent virtual switch link, which is used to solve the problem that the existing IV-Switch technology has a limited VLAN range on the backbone network in a large-scale application.
为了实现上述目的,本发明提供了一种建立智能虚交换链路的方法,适用 于网络通信领域, 其特征在于, 包括:  In order to achieve the above object, the present invention provides a method for establishing an intelligent virtual switch link, which is applicable to the field of network communication, and includes:
步骤一, 确定从源网络用户到目的网络用户的所经过的虚拟交换机路径, 并将源虚拟交换机作为当前虚拟交换机;  Step 1: Determine a path of the virtual switch that passes from the source network user to the destination network user, and use the source virtual switch as the current virtual switch.
步骤二,在所述当前虚拟交换机上建立交换表项,所述当前虚拟交换机根 据所述交换表项选择出端口、 对出 VLAN ID 的处理策略, 并根据所述对出 VLAN ID的处理策略选择出 VLAN ID; 及  Step 2: Establish an exchange entry on the current virtual switch, and the current virtual switch selects a port, a policy for processing the outbound VLAN ID according to the exchange entry, and selects a processing policy according to the outgoing VLAN ID. Out VLAN ID; and
步骤三, 将所述目的网络用户对应的设备端口、 VLAN ID分别作为所述 当前虚拟交换机的出端口、 出 VLAN ID, 建立与所述目的网络用户之间的交 换表项, 从而建立虚电路。  Step 3: The device port and the VLAN ID corresponding to the destination network user are respectively used as the egress port and the outbound VLAN ID of the current virtual switch, and a switching entry between the destination network user and the destination network user is established, thereby establishing a virtual circuit.
所述的建立智能虚交换链路的方法,其中,所述交换表项的结构具体包括: 转发表 KEY、 转发表 RESULT; 所述转发表 KEY又包括入 VLAN ID、 入端 口号; 所述转发表 RESULT又包括增加 VLAN标志位、 减少 VLAN标志位、 出 VLAN ID、 出端口号。 The method for establishing an intelligent virtual switch link, wherein the structure of the exchange entry specifically includes: a forwarding table KEY, a forwarding table RESULT; the forwarding table KEY further includes an inbound VLAN ID and an ingress port number; The publication of RESULT includes adding VLAN flag bits, reducing VLAN flag bits, Out VLAN ID, outgoing port number.
所述的建立智能虚交换链路的方法, 其中, 所述对出 VLA ID的处理策 略包括: 增加 VLAN ID、 替换 VLAN ID、 减少 VLAN ID。  The method for establishing an intelligent virtual switch link, where the processing policy for the outgoing VLA ID includes: adding a VLAN ID, replacing a VLAN ID, and reducing a VLAN ID.
所述的建立智能虚交换链路的方法, 其中, 所述步骤二中, 当所述对出 VLAN ID的处理策略为增加 VLAN ID时,则在从所述当前虚拟交换机到所述 目的网络用户的路径上为所述当前虚拟交换机建立一对等体,所述对等体执行 减少 VLAN ID处理。  The method for establishing an intelligent virtual switch link, wherein, in the second step, when the processing policy of the outgoing VLAN ID is to add a VLAN ID, the current virtual switch is from the current virtual switch to the destination network user. A pair of peers is established for the current virtual switch on the path, and the peer performs reduced VLAN ID processing.
所述的建立智能虚交换链路的方法, 其中, 所述步骤二中, 当所述对出 VLAN ID的处理策略为替换 VLA ID时,则从选择的出端口中选取一空闲出 VLAN ID, 并根据所述当前虚拟交换机的入端口号、 入 VLAN ID和所选择的 出端口号、 出 VLAN ID及对出 VLAN ID的处理策略建立与下一级虚拟交换 机之间的交换表项。  The method for establishing an intelligent virtual switching link, wherein, in the second step, when the processing policy of the outgoing VLAN ID is to replace the VLA ID, selecting an idle outgoing VLAN ID from the selected outgoing port, And establishing an exchange entry with the next-level virtual switch according to the ingress port number, the inbound VLAN ID, the selected outbound port number, the outbound VLAN ID, and the outgoing VLAN ID processing policy of the current virtual switch.
所述的建立智能虚交换链路的方法,其中, 所述步骤二中, 还包括一所述 下一级虚拟交换机将其自身作为当前虚拟交换机,并判断所述当前虚拟交换机 是否为目的虚拟交换机的步骤。  The method for establishing an intelligent virtual switch link, wherein the step 2 further includes: the next-level virtual switch adopts itself as a current virtual switch, and determines whether the current virtual switch is a destination virtual switch. A step of.
所述的建立智能虚交换链路的方法, 其中, 所述步骤二中, 若所述当前虚 拟交换机不是目的虚拟交换机, 则还包括一对上一级虚拟交换机的出 VLAN ID的处理策略进行判断的步骤。  The method for establishing an intelligent virtual switching link, wherein, in the second step, if the current virtual switch is not a destination virtual switch, the processing strategy of the outbound VLAN ID of the pair of upper-level virtual switches is further determined. A step of.
所述的建立智能虚交换链路的方法, 其中,  The method for establishing an intelligent virtual switch link, where
若所述对上一级虚拟交换机的出 VLAN ID的处理策略为增加 VLAN ID 或替换 VLAN ID,则将所述上一级虚拟交换机所选择的出 VLAN ID和出端口 分别作为所述当前虚拟交换机的入 VLAN ID和入端口;  If the processing policy of the outgoing VLAN ID of the upper-level virtual switch is to increase the VLAN ID or replace the VLAN ID, the outgoing VLAN ID and the outgoing port selected by the upper-level virtual switch are respectively used as the current virtual switch. Into the VLAN ID and the ingress port;
若所述对上一级虚拟交换机的出 VLAN ID的处理策略为减少 VLAN ID, 则将所述上一级虛拟交换机所选择的出端口作为所述当前虚拟交换机的入端 □。  If the processing policy of the outbound VLAN ID of the upper level virtual switch is to reduce the VLAN ID, the egress port selected by the upper level virtual switch is used as the ingress end of the current virtual switch.
所述的建立智能虚交换链路的方法,其中,所述将所述上一级虚拟交换机 所选择的出端口作为所述当前虚拟交换机的入端口的步骤之后,还包括:寻找 从所述当前虚拟交换机到所述源网络用户已建立的链路上的上一级虚拟交换 机的对等体, 并将所述对等体对应的虚拟交换机的入 VLAN ID号作为所述当 前虚拟交换机的入 VLA ID, 确定出 VLAN ID的处理策略。 所述的建立智能虚交换链路的方法, 其中, 所述步骤二中, 当所述对出The method for establishing an intelligent virtual switch link, wherein after the step of using the egress port selected by the upper-level virtual switch as an ingress port of the current virtual switch, the method further includes: searching for the current The virtual switch connects to the peer of the upper-level virtual switch on the established link of the source network user, and uses the in-VLAN ID number of the virtual switch corresponding to the peer as the incoming VLA of the current virtual switch. ID, determines the processing strategy of the VLAN ID. The method for establishing an intelligent virtual switch link, where, in the second step, when the pair is out
VLAN ID的处理策略为减少 VLAN ID时,则根据所述当前虛拟交换机的入端 口号、 入 VLAN ID和所选择的出端口号、 对出 VLAN ID的处理策略建立与 下一级虚拟交换机之间的交换表项。 The VLAN ID processing policy is to reduce the VLAN ID, and establish a relationship with the next-level virtual switch according to the inbound port number, the inbound VLAN ID, the selected egress port number, and the outgoing VLAN ID of the current virtual switch. Exchange table entry.
本发明通过将 QINQ和 IV-Switch技术有效地结合,提出一种对 IV-Switch 链路建立的改进方法, 该方法扩大了 IV-Switch技术在骨干网中 VLAN范围, 克服了现有 IV-Switeh技术在大规模应用中,骨干网上 VLAN范围受限的缺点。 附图简要说明  The present invention effectively improves the establishment of an IV-Switch link by combining QINQ and IV-Switch technology. This method expands the VLAN range of the IV-Switch technology in the backbone network and overcomes the existing IV-Switeh. In the large-scale application, the technology has the disadvantage of limited VLAN range on the backbone network. BRIEF DESCRIPTION OF THE DRAWINGS
图 1为 IV-Switch应用的一种需求组网图;  Figure 1 is a network diagram of requirements for an IV-Switch application;
图 2为实现本发明的方法流程示意图;  2 is a schematic flow chart of a method for implementing the present invention;
图 3为本发明 IV-Switch转发表结构;  3 is a structure of an IV-Switch forwarding table of the present invention;
图 4为应用本发明在端口模式下进行报文转发的处理流程示意图; 图 5为本发明层次化 IV-Switdi的一个组网应用图。 实现本发明的最佳方式  4 is a schematic diagram of a processing flow of packet forwarding in a port mode according to the present invention; FIG. 5 is a networking application diagram of a hierarchical IV-Switdi according to the present invention. The best way to implement the invention
下面结合附图对本发明的技术方案的实施作进一步的详细描述。  The implementation of the technical solution of the present invention will be further described in detail below with reference to the accompanying drawings.
请参阅图 2所示,为实现本发明的方法流程示意图。实现本发明的方法具 体包括以下步骤- 步骤 201,确定从源网络用户到目的网络用户的所要经过的虚拟交换机路 径;  Please refer to FIG. 2, which is a schematic flow chart of the method for implementing the present invention. The method for implementing the present invention specifically includes the following steps - step 201, determining the virtual switch path to be passed from the source network user to the destination network user;
步骤 202, 将源虚拟交换机作为当前虚拟交换机;  Step 202: The source virtual switch is used as the current virtual switch.
步骤 203, 选择当前虚拟交换机的一个出端口, 并选择对出 VLAN ID的 处理策略;  Step 203: Select an outbound port of the current virtual switch, and select a processing policy for the outgoing VLAN ID.
步骤 204,判断对出 VLAN ID的处理策略是否是增加 VLAN ID,如果是, 转步骤 206, 否则转步骤 205;  Step 204, it is determined whether the processing policy of the outgoing VLAN ID is to increase the VLAN ID, and if yes, go to step 206, otherwise go to step 205;
步骤 205,判断对出 VLAN ID的处理策略是否是替换 VLAN ID,如果是, 转步骤 207, 否则转步骤 209;  Step 205, it is determined whether the processing policy of the outgoing VLAN ID is a replacement VLAN ID, and if yes, go to step 207, otherwise go to step 209;
步骤 206, 在当前虚拟交换机到目的网络用户的路径上为当前虚拟交换机 建立一个对等体, 该对等体执行与增加 VLAN ID相反的减少 VLAN ID策略; 步骤 207, 从选择的出端口中选取一个空闲的出 VLAN ID; 步骤 208, 根据当前虚拟交换机的入端口、 入 VLAN ID和所选择的出端 口号、 出 VLAN ID及对出 VLAN ID的处理策略建立与下一级虚拟交换机之 间的交换表项, 转步骤 210; Step 206: Establish a peer for the current virtual switch on the path of the current virtual switch to the destination network user, where the peer performs a VLAN ID reduction policy opposite to the added VLAN ID. Step 207: Select an idle outbound VLAN ID from the selected outbound port. Step 208: Process the ingress port, the inbound VLAN ID, the selected outbound port number, the outbound VLAN ID, and the outbound VLAN ID according to the current virtual switch. Establish an exchange entry with the next-level virtual switch, go to step 210;
步骤 209, 根据当前虚拟交换机的入端口、 入 VLAN ID和所选择的出端 口号、 对出 VLAN ID的处理策略建立与下一级虚拟交换机之间的交换表项; 步骤 210, 下一级虛拟交换机将自身作为当前虚拟交换机;  Step 209: Establish an exchange entry with the next-level virtual switch according to the ingress port, the inbound VLAN ID, and the selected egress port number of the current virtual switch, and the processing policy of the outbound VLAN ID. Step 210, the next level of virtual The switch uses itself as the current virtual switch;
步骤 211, 判断自身是否是目的虚拟交换机, 如果不是, 转步骤 212, 否 则转步骤 216;  Step 211, determine whether it is the destination virtual switch, if not, go to step 212, otherwise go to step 216;
步骤 212,判断对上一级虚拟交换机的出 VLAN ID策略是否是增加 VLAN Step 212: Determine whether the outbound VLAN ID policy of the upper level virtual switch is an increase VLAN.
ID或者替换 VLA ID, 如果是, 转步骤 213, 否则, 则是减少 VLA ID, 转 步骤 214; ID or replace the VLA ID, if yes, go to step 213, otherwise, reduce the VLA ID, go to step 214;
步骤 213, 将上一级虚拟交换机所选择的出 VLAN ID和出端口作为当前 虚拟交换机的入 VLAN ID和入端口, 转步骤 203;  Step 213, the outgoing VLAN ID and the egress port selected by the upper-level virtual switch are taken as the in-VLAN ID and the ingress port of the current virtual switch, and the process proceeds to step 203;
步骤 214,将上一级虚拟交换机所选择的出端口作为当前虚拟交换机的入 端口;  Step 214: The egress port selected by the upper-level virtual switch is used as an ingress port of the current virtual switch.
步骤 215, 寻找从当前虚拟交换机到源网络用户已建立的链路上的上一级 虚拟交换机的对等体, 以找到的对等体虚拟交换机的入 VLAN ID作为当前虚 拟交换机的入 VLAN ID, 转步骤 203 ;  Step 215: Find a peer of the upper-level virtual switch on the link that has been established from the current virtual switch to the source network user, and find the in-VLAN ID of the peer virtual switch as the in-VLAN ID of the current virtual switch. Go to step 203;
步骤 216, 判断上一级虚拟交换机的出 VLAN ID策略是否是增加 VLAN Step 216: Determine whether the outbound VLAN ID policy of the upper level virtual switch is an increase VLAN.
ID或者替换 VLAN ID, 如果是, 转步骤 217, 否则, 则是减少 VLAN ID, 转 步骤 218; ID or replacement VLAN ID, if yes, go to step 217, otherwise, reduce the VLAN ID, go to step 218;
步骤 217, 将上一级虚拟交换机所选择的出 VLAN ID和出端口作为当前 虚拟交换机的入 VLAN ID和入端口, 并确定出 VLAN ID的处理策略, 转步 骤 220;  Step 217: The outgoing VLAN ID and the egress port selected by the upper-level virtual switch are used as the in-VLAN ID and the ingress port of the current virtual switch, and the processing strategy of the VLAN ID is determined, and the process proceeds to step 220;
步骤 218,将上一级虚拟交换机所选择的出端口作为当前虚拟交换机的入 端口;  Step 218: The egress port selected by the upper-level virtual switch is used as an ingress port of the current virtual switch.
步骤 219,寻找从当前虚拟交换机到源网络用户已建立的链路上的上一级 虚拟交换机的对等体, 以找到的对等体虚拟交换机的入 VLAN ID作为当前虚 拟交换机的入 VLAN ID, 并确定出 VLAN ID的处理策略; 步骤 220,将目的网络用户所对应的设备端口、 VLAN ID作为当前虚拟交 换机的出端口、 出 VLANID, 建立与目的网络用户之间的交换表项; 以及 步骤 221, 虚电路建立完成, 结束。 Step 219: Find the peer of the upper-level virtual switch on the link that has been established from the current virtual switch to the source network user, and find the in-VLAN ID of the peer virtual switch as the in-VLAN ID of the current virtual switch. And determine the processing strategy of the VLAN ID; In step 220, the device port and the VLAN ID corresponding to the destination network user are used as the outbound port and the outbound VLAN ID of the current virtual switch, and the exchange entry between the user and the destination network user is established; and in step 221, the virtual circuit is established and ended.
请参阅图 3所示, 为本发明 IV-Switch转发表结构, 该转发表结构为一种 改进智能虚交换(IV-Switch)链路建立的方法的数据结构。  Referring to FIG. 3, the IV-Switch forwarding table structure of the present invention is a data structure of a method for improving the establishment of an intelligent virtual switching (IV-Switch) link.
IV-Switch转发表 301,其包括 IV-Switch转发表 KEY 302、 IV-Switch转发 表 RESULT 303;  The IV-Switch forwarding table 301 includes an IV-Switch forwarding table KEY 302 and an IV-Switch forwarding table RESULT 303;
IV-Switch转发表 KEY 302,其由入端口号 303和入 VLAN ID号 304两部 分构成, 用于检索 IV-Switch转发表 301 ;  The IV-Switch forwarding table KEY 302, which is composed of an ingress port number 303 and an inbound VLAN ID number 304, is used to retrieve the IV-Switch forwarding table 301;
IV-Switch转发表 RESULT 303, 用于存储一系列标志位(增加 VLAN标 志位 305、 减少 VLAN标志位 306) 和出端口号 307以及出 VLAN ID号 308 等其他信息;  The IV-Switch forwarding table RESULT 303 is used to store a series of flag bits (add VLAN tag 305, reduce VLAN flag bit 306) and outgoing port number 307 and outgoing VLAN ID number 308;
入端口号 303, 用于构成检索 IV-Switch转发表 301的 KEY值;  The port number 303 is used to construct a KEY value for retrieving the IV-Switch forwarding table 301;
入 VLAN ID号 304, 用于构成检索 IV-Switch转发表 301的 KEY值; 增加 VLAN标志位 305,用于表示需要对数据包再封装一层 VLAN;如果 数据包进入时, 已经是 VLAN报文, 那么将形成 VLAN堆叠, 即形成 QINQ 封装的报文格式;  The VLAN ID number 304 is used to form a KEY value for retrieving the IV-Switch forwarding table 301. The VLAN flag bit 305 is added to indicate that the data packet needs to be encapsulated with a VLAN; if the data packet is entered, it is already a VLAN packet. , then the VLAN stack will be formed, that is, the packet format of the QINQ encapsulation is formed;
减少 VLAN标志位 306,用于表示需要对数据包去除最外层 VLAN封装; 如果数据包进入时, 没有 VLAN封装, 那么不进行该操作;  The VLAN flag bit 306 is used to indicate that the outermost VLAN encapsulation needs to be removed from the data packet; if the data packet is entered, there is no VLAN encapsulation, then the operation is not performed;
出端口号 307, 数据包封装成为新的报文后, 从出端口号 307表示的出端 口发送出去;  After the port number is 307, the data packet is encapsulated into a new packet, and then sent out from the egress port indicated by the egress port number 307;
出 VLAN ID号 308, 在进行增加一层新的 VLAN和替换 VLA 操作(增 加 VLAN标志位和减少 VLAN标志位都为 0) 时, 使用 IV-Switch转发表 301 中的出 VLAN ID号 308作为最外层 VLAN封装的新 VLAN ID号, 如果出 VLAN ID号 308的处理策略是减少 VLAN ID,那么不需要出 VLAN ID号 308。  The outbound VLAN ID number 308 is used to add a new VLAN and replace the VLA operation (adding the VLAN flag bit and reducing the VLAN flag bit to 0), and using the outbound VLAN ID number 308 in the IV-Switch forwarding table 301 as the most The new VLAN ID number encapsulated in the outer VLAN. If the processing policy of the outbound VLAN ID number 308 is to reduce the VLAN ID, the VLAN ID number 308 is not required.
请参阅图 4所示,为应用本发明在端口模式下进行报文转发的处理流程示 意图。 结合图 3, 该流程具体包括如下步骤:  Please refer to FIG. 4, which is a schematic diagram of a processing flow for performing packet forwarding in the port mode to which the present invention is applied. Referring to FIG. 3, the process specifically includes the following steps:
步骤 401, 取数据包入端口号和数据包最外层 VLAN ID号;  Step 401: Take the data packet entry port number and the outermost VLAN ID number of the data packet.
步骤 402,用数据包入端口号和最外层 VLAN ID号查找 IV-Switch转发表; 步骤 403, 判断增加 VLAN标志位是否有效, 若有效, 转步骤 404, 否则 转步骤 406; Step 402: Search for the IV-Switch forwarding table by using the data packet entry port number and the outermost VLAN ID number. Step 403: Determine whether the added VLAN flag bit is valid. If yes, go to step 404. Otherwise, Go to step 406;
步骤 404, 取匹配到的 IV- Switch转发表条目中存放的新 VLAN ID号; 步骤 405,用匹配到的 IV-Switoh转发表条目中的新 VLAN ID号在数据包 的外面再封装一层新的 VLAN,转步骤 411 ;如果数据包进入时,已经是 VLAN 报文, 那么将形成 VLAN堆叠, 即形成 QINQ封装的报文格式;  Step 404: Take the new VLAN ID number stored in the matching IV-Switch forwarding table entry. Step 405: Encapsulate a new layer on the outside of the data packet with the new VLAN ID number in the matched IV-Switoh forwarding table entry. VLAN, go to step 411; if the packet is already in the VLAN packet, then the VLAN stack will be formed, that is, the packet format of the QINQ encapsulation is formed;
步骤 406, 判断减少 VLAN标志位是否有效, 若有效, 转步骤 409, 否则 转步骤 407;  Step 406, determining whether the VLAN flag is valid, if yes, go to step 409, otherwise go to step 407;
步骤 407, 取匹配到的 IV-Switoh转发表条目中存放的新 VLAN ID号; 步骤 408,用匹配到的 IV-Switch转发表条目中的新 VLAN ID号替换数据 包最外层 VLAN封装的 VLAN ID号, 转步骤 411 ;  Step 407: Take the new VLAN ID number stored in the matched IV-Switoh forwarding table entry. Step 408: Replace the VLAN encapsulated in the outermost VLAN of the packet with the new VLAN ID number in the matching IV-Switch forwarding table entry. ID number, go to step 411;
步骤 409, 判断入数据包是否是 VLAN封装报文, 如果是, 转步骤 410, 否则转步骤 411 ;  Step 409, determining whether the incoming data packet is a VLAN encapsulated message, if yes, go to step 410, otherwise go to step 411;
步骤 410, 将数据包的最外层 VLAN封装去除或取消;  Step 410: Remove or cancel the outermost VLAN of the data packet.
步骤 411, 从匹配到的 IV-Switch转发表条目中取得出接口;  Step 411: Obtain an interface from the matched IV-Switch forwarding table entry.
步骤 412, 将封装完毕后的新数据包从匹配到的 IV-Switch转发表条目的 出端口发送出去;  Step 412: Send the encapsulated new data packet from the outbound port of the matched IV-Switch forwarding table entry.
步骤 413, 结束。  Step 413, the end.
下面进一步描述采用本发明来实现图 1所示的实际组网应用。  The actual networking application shown in FIG. 1 is further implemented by the present invention as described below.
假设 IV-Switch设备 101是源虚拟交换机, IV-Switch设备 103是目的虚拟 交换机。 IV-Switch设备 101为客户 A-1和客户 B-1分别建立如下 IV-Switch转 发表:  Assume that the IV-Switch device 101 is the source virtual switch and the IV-Switch device 103 is the destination virtual switch. The IV-Switch device 101 establishes the following IV-Switch for customer A-1 and customer B-1 respectively.
al ), (入端口 104,入 VLAN( 1~4095),增加 VLAN标志二 1,减少 VLAN 标志 =0, 出端口 106, 出 VLAN ID=1 );  Al), (in port 104, in VLAN (1~4095), increase VLAN flag 2, reduce VLAN flag=0, out port 106, out VLAN ID=1);
a2), (入端口 105,入 VLAN( 1~4095),增加 VLAN标志 = 1,减少 VLAN 标志 =0, 出端口 106, 出 VLAN ID-2);  A2), (in port 105, in VLAN (1~4095), increase VLAN flag = 1, reduce VLAN flag = 0, out port 106, out VLAN ID-2);
IV-Switch设备 102建立如下 IV-Switch转发表:  The IV-Switch device 102 establishes the following IV-Switch forwarding table:
bl ), (入端口 107, 入 VLAN= 1, 增加 VLAN标志 =0, 减少 VLAN标 志 =0, 出端口 108, 出 VLAN ID- 1 );  Bl), (in port 107, incoming VLAN = 1, increase VLAN flag = 0, reduce VLAN flag = 0, out port 108, out VLAN ID - 1);
b2), (入端口 107, 入 VLAN=2, 增加 VLAN标志 =0, 减少 VLAN标 志 =0, 出端口 108, 出 VLAN ID=2); IV-Switch设备 103是 IV-Switch设备 101的对等体, IV-Switch设备 101 执行增加 VLAN ID策略, IV-Switch设备 103执行减少 VLAN ID策略, 在 IV-Switch设备 103上建立如下 IV-Switch转发表: B2), (in port 107, in VLAN=2, increase VLAN flag=0, decrease VLAN flag=0, out port 108, out VLAN ID=2); The IV-Switch device 103 is the peer of the IV-Switch device 101, the IV-Switch device 101 performs the VLAN ID adding policy, and the IV-Switch device 103 performs the VLAN ID reduction policy. The IV-Switch device 103 establishes the following IV-Switch. Forwarding table:
cl ), (入端口 109, 入 VLAN=1, 增加 VLAN标志 =0, 减少 VLAN标志 二 1, 出端口 110, 出 VLAN ID=NULL) ;  Cl ), (in port 109, incoming VLAN=1, increase VLAN flag=0, reduce VLAN flag 2, out port 110, out VLAN ID=NULL);
c2), (入端口 109, A VLAN=2, 增加 VLAN标志 =0, 减少 VLAN标志 = 1, 出端口 111, 出 VLAN ID=NULL) ;  C2), (in port 109, A VLAN=2, increase VLAN flag = 0, reduce VLAN flag = 1, out port 111, out VLAN ID = NULL);
客户 A-1的数据流进入到 IV-Switch设备 101之后,被增加一层 VLAN ID = 1, 形成 QINQ封装的报文, 并且以 VLAN ID=1的外层 VLAN ID封装穿越 骨干网 IV-Switch设备 102, 到达目的虚拟交换机 IV-Switch设备 103, 在 IV-Switch设备 103上, 将客户 A-1的数据流去除被增加的用于穿越骨干网的 外层 VLAN ID,恢复成原来的数据流从端口 110与客户 A-2的流量互通起来。  After the data stream of the client A-1 enters the IV-Switch device 101, a VLAN ID = 1 is added to form a QINQ encapsulated packet, and the outer VLAN ID of the VLAN ID=1 is encapsulated to traverse the backbone network IV-Switch. The device 102 reaches the destination virtual switch IV-Switch device 103. On the IV-Switch device 103, the data stream of the client A-1 is removed to be added to the outer VLAN ID of the backbone network, and the original data stream is restored. The traffic from port 110 and customer A-2 is intercommunicated.
类似地, 客户 B- 1的数据流进入到 IV-Switch设备 101之后, 被增加一层 VLAN ΙΌ=2, 形成 QINQ封装的报文, 并且以 VLAN ID=2的外层 VLAN ID 封装穿越骨干网 IV-Switch设备 102,到达目的虚拟交换机 IV-Switch设备 103, 在 IV-Switch设备 103上, 将客户 B-1的数据流去除被增加的用于穿越骨干网 的外层 VLAN ID, 恢复成原来的数据流从端口 111与客户 B-2的流量互通起 来。  Similarly, after the data stream of the client B-1 enters the IV-Switch device 101, a layer of VLAN ΙΌ=2 is added to form a QINQ encapsulated packet, and the outer VLAN ID of the VLAN ID=2 is encapsulated to traverse the backbone network. The IV-Switch device 102 reaches the destination virtual switch IV-Switch device 103. On the IV-Switch device 103, the data stream of the client B-1 is removed, and the outer VLAN ID that is added to traverse the backbone network is restored. The data stream communicates with the traffic of the client B-2 from the port 111.
在 IV-Switch设备 101的端口 106上只使用了两个 VLAN ID ( 1和 2 )就 将客户 A和客户 B的流量成功互通起来, 因此, 从以上实现流程可以看出, 采用本发明有效地节约了骨干网的 VLAN范围资源, 扩大了骨干网 VLAN范 围。  The traffic of the client A and the client B are successfully interworked by using only two VLAN IDs (1 and 2) on the port 106 of the IV-Switch device 101. Therefore, it can be seen from the above implementation process that the present invention is effective The VLAN range resources of the backbone network are saved, and the VLAN range of the backbone network is expanded.
另外,采用本发明也可以使得对网络流量的管理十分方便。从以上实现过 程可以看出, 客户 A 的流量进入骨干网之后都被在外层封装了一个 VLAN ID=1 , 客户 B的流量进入骨干网之后, 都被在外层封装了一个 VLAN ID=2, 这样在骨干网中,所有对客户 A的服务都可以基于 VLAN ID=1来进行, 所有 对客户 B的服务都可以基于 VLAN ID=2来进行。  In addition, the invention can also make the management of network traffic very convenient. It can be seen from the above implementation process that after the traffic of customer A enters the backbone network, a VLAN ID=1 is encapsulated in the outer layer, and after the traffic of the customer B enters the backbone network, a VLAN ID=2 is encapsulated in the outer layer. In the backbone network, all services to customer A can be performed based on VLAN ID=1, and all services to customer B can be performed based on VLAN ID=2.
最后, 采用本发明可以方便地实现层次化的 IV-Switch应用。  Finally, the hierarchical IV-Switch application can be conveniently implemented by the present invention.
图 5所示是层次化 IV-Switch的一个组网应用图, 假设一个网络分为三个 层次, 分别是: 接入网 (IV- Switch设备 514~516)、 承载网 (IV-Switch设备 510-513)和骨干网 (IV-Switch设备 501~509), 接入网下面可以是用户网络。 在接入网的 IV- Switch设备上面, 可以对用户网络上送的流量封装一层 VLAN ID, 称为 "接入网 VLAN ID"; 在承载网的 IV-Switch设备上, 可以对 接入网上送的流量继续封装一层 VLAN ID, 称为 "承载网 VLAN ID"; 在骨 干网的 IV-Switch设备上,可以对承载网上送的流量再封装一层 VLAN ID,称 为 "骨干网 VLAN ID"。 数据流使用 "骨干网 VLAN ID"来穿越骨干网, 使 用 "承载网 VLAN ID"来穿越承载网, 使用 "接入网 VLAN ID"来穿越接入 网。 Figure 5 shows a networking application diagram of a hierarchical IV-Switch. Assume that a network is divided into three levels: access network (IV-Switch device 514~516) and bearer network (IV-Switch device). 510-513) and the backbone network (IV-Switch devices 501~509), which may be the user network under the access network. On the IV-Switch device of the access network, a VLAN ID can be encapsulated in the traffic sent by the user network, which is called the "access network VLAN ID". On the IV-Switch device of the bearer network, the access network can be accessed. The sent traffic continues to encapsulate a VLAN ID, which is called the "bearer network VLAN ID". On the IV-Switch device of the backbone network, the traffic sent by the bearer network can be encapsulated with a VLAN ID, which is called the backbone VLAN ID. ". The data flow uses the "backbone network VLAN ID" to traverse the backbone network, uses the "bearer network VLAN ID" to traverse the bearer network, and uses the "access network VLAN ID" to traverse the access network.
对同一层次的 IV-Switch设备, 可以认为上一层的网络情况是透明的。 例 如, 数据流从承载网 IV-Switch设备 510进入骨干网 IV-Switch设备 514之后, 被加入一个 "骨干网 VLAN ID", 经过骨干网 IV-Switch设备 515, 到达骨干 网 IV-Switch设备 516之后, 去除"骨干网 VLAN ID",进入目的 IV-Switch设 备 512或者 513。 那么整个处理过程, 对于承载网 IV-Switch设备 510来说, 可以认为上面的骨干网是透明的, 这样在承载网上面进行 IV-Switch部署的时 候, 就可以不考虑其他层次的网络情况。 同样, 在骨干网和接入网上面部署 IV-Switch的时候, 也不需要考虑其他层次的网络情况, 也就实现了层次化的 IV-Switch组网, 有利于 IV-Switch技术的大规模应用。  For the same level of IV-Switch equipment, the network condition of the upper layer can be considered transparent. For example, after the data stream enters the backbone network IV-Switch device 514 from the bearer network IV-Switch device 510, it is added to a "backbone network VLAN ID", and after the backbone network IV-Switch device 515 reaches the backbone network IV-Switch device 516. , remove the "backbone network VLAN ID" and enter the destination IV-Switch device 512 or 513. Then, for the entire processing process, for the bearer network IV-Switch device 510, the above backbone network can be considered to be transparent, so that when the IV-Switch is deployed on the bearer network, the network conditions of other layers can be ignored. Similarly, when the IV-Switch is deployed on the backbone network and the access network, there is no need to consider the network at other levels, and the hierarchical IV-Switch networking is implemented, which is beneficial to the large-scale application of the IV-Switch technology. .
当然,本发明还可有其它多种实施例,在不背离本发明精神及其实质的情 况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,但 这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。 工业应用性  The invention may, of course, be embodied in a variety of other embodiments without departing from the spirit and scope of the invention. Changes and modifications are intended to be included within the scope of the appended claims. Industrial applicability
采用本发明所述方法可以有效地解决现有 IV-Switch技术无法满足图 1所 示的组网应用需求的问题, 同时扩大了 IV-Switch的实际应用范围, 并且可以 使得 IV-Switch技术不仅仅充分利用了单端口的 4096个 VLAN范围, 还可以 大大节约骨干网的 VLAN范围资源, 有利于骨干网接入更多的应用, 为大规 模以太网接入提供了条件。  The method of the present invention can effectively solve the problem that the existing IV-Switch technology cannot meet the networking application requirements shown in FIG. 1, and expand the practical application range of the IV-Switch, and can make the IV-Switch technology not only Making full use of the 4096 VLAN range of a single port, it can also greatly save the VLAN range resources of the backbone network, which is beneficial to the backbone network to access more applications, and provides conditions for large-scale Ethernet access.
另外,采用本发明可以使得对网络流量的管理十分方便,还可以实现层次 化的 IV-Switch应用。  In addition, the invention can make the management of the network traffic very convenient, and can also implement the hierarchical IV-Switch application.

Claims

权利要求书 Claim
1、一种建立智能虚交换链路的方法, 适用于网络通信领域, 其特征在于, 包括: A method for establishing an intelligent virtual switching link, which is applicable to the field of network communication, and is characterized in that:
步骤一, 确定从源网络用户到目的网络用户的所经过的虚拟交换机路径, 并将源虚拟交换机作为当前虛拟交换机;  Step 1: Determine a path of the virtual switch that passes from the source network user to the destination network user, and use the source virtual switch as the current virtual switch.
步骤二,在所述当前虚拟交换机上建立交换表项,所述当前虚拟交换机根 据所述交换表项选择出端口、 对出 VLAN ID 的处理策略, 并根据所述对出 VLAN ID的处理策略选择出 VLAN ID; 及  Step 2: Establish an exchange entry on the current virtual switch, and the current virtual switch selects a port, a policy for processing the outbound VLAN ID according to the exchange entry, and selects a processing policy according to the outgoing VLAN ID. Out VLAN ID; and
步骤三, 将所述目的网络用户对应的设备端口、 VLAN ID分别作为所述 当前虚拟交换机的出端口、 出 VLAN ID, 建立与所述目的网络用户之间的交 换表项, 从而建立虚电路。  Step 3: The device port and the VLAN ID corresponding to the destination network user are respectively used as the egress port and the outbound VLAN ID of the current virtual switch, and a switching entry between the destination network user and the destination network user is established, thereby establishing a virtual circuit.
2、 根据权利要求 1所述的建立智能虚交换链路的方法, 其特征在于, 所 述交换表项的结构具体包括:转发表 EY、转发表 RESULT;所述转发表 KEY 又包括入 VLAN ID、入端口号; 所述转发表 RESULT又包括增加 VLAN标志 位、 减少 VLAN标志位、 出 VLAN ID、 出端口号。  The method for establishing an intelligent virtual switch link according to claim 1, wherein the structure of the exchange entry specifically includes: a forwarding table EY, a forwarding table RESULT; and the forwarding table KEY further includes an inbound VLAN ID. Incoming port number; the forwarding table RESULT includes adding a VLAN flag bit, reducing a VLAN flag bit, an out VLAN ID, and an out port number.
3、根据权利要求 1或 2所述的建立智能虚交换链路的方法,其特征在于, 所述对出 VLAN ID的处理策略包括: 增加 VLAN ID、 替换 VLAN ID、 减少 The method for establishing an intelligent virtual switch link according to claim 1 or 2, wherein the processing strategy for the outgoing VLAN ID comprises: adding a VLAN ID, replacing a VLAN ID, and reducing
4、 根据权利要求 3所述的建立智能虚交换链路的方法, 其特征在于, 所 述步骤二中, 当所述对出 VLAN ID的处理策略为增加 VLAN ID时, 则在从 所述当前虚拟交换机到所述目的网络用户的路径上为所述当前虚拟交换机建 立一对等体, 所述对等体执行减少 VLAN ID处理。  The method for establishing an intelligent virtual switching link according to claim 3, wherein, in the second step, when the processing policy of the outgoing VLAN ID is to add a VLAN ID, the current A pair of peers is established for the current virtual switch on the path of the virtual switch to the destination network user, and the peer performs reduced VLAN ID processing.
5、 根据权利要求 3所述的建立智能虚交换链路的方法, 其特征在于, 所 述步骤二中, 当所述对出 VLAN ID的处理策略为替换 VLAN ID时, 则从选 择的出端口中选取一空闲出 VLAN ID, 并根据所述当前虚拟交换机的入端口 号、 入 VLAN ID和所选择的出端口号、 出 VLAN ID及对出 VLAN ID的处理 策略建立与下一级虚拟交换机之间的交换表项。  The method for establishing an intelligent virtual switch link according to claim 3, wherein, in the second step, when the processing policy of the outgoing VLAN ID is a replacement VLAN ID, the selected outgoing port is selected. Select an idle out VLAN ID, and establish a relationship with the next level virtual switch according to the ingress port number, the inbound VLAN ID, the selected outbound port number, the outbound VLAN ID, and the outgoing VLAN ID processing policy of the current virtual switch. Exchange table entry.
6、 根据权利要求 5所述的建立智能虚交换链路的方法, 其特征在于, 所 述步骤二中, 还包括一所述下一级虚拟交换机将其自身作为当前虛拟交换机, 并判断所述当前虚拟交换机是否为目的虚拟交换机的步骤。 The method for establishing an intelligent virtual switch link according to claim 5, wherein in the second step, the next-level virtual switch further includes itself as a current virtual switch. And determining whether the current virtual switch is a destination virtual switch.
' 7、 根据权利要求 6所述的建立智能虚交换链路的方法, 其特征在于, 所 述步骤二中,若所述当前虚拟交换机不是目的虚拟交换机,则还包括一对上一 级虚拟交换机的出 VLAN ID的处理策略进行判断的步骤。  The method for establishing an intelligent virtual switch link according to claim 6, wherein in the second step, if the current virtual switch is not a destination virtual switch, the method further includes a pair of upper-level virtual switches. The step of judging the processing strategy of the outgoing VLAN ID.
8、 根据权利要求 7所述的建立智能虚交换链路的方法, 其特征在于, 若所述对上一级虚拟交换机的出 VLAN ID的处理策略为增加 VLAN ID 或替换 VLAN ID,则将所述上一级虚拟交换机所选择的出 VLAN ID和出端口 分别作为所述当前虛拟交换机的入 VLAN ID和入端口;  The method for establishing an intelligent virtual switching link according to claim 7, wherein if the processing strategy of the outgoing VLAN ID of the upper-level virtual switch is to increase the VLAN ID or replace the VLAN ID, The outbound VLAN ID and the egress port selected by the upper level virtual switch are respectively used as the ingress VLAN ID and the ingress port of the current virtual switch;
若所述对上一级虚拟交换机的出 VLAN ID的处理策略为减少 VLAN ID, 则将所述上一级虚拟交换机所选择的出端口作为所述当前虚拟交换机的入端 If the processing policy of the outgoing VLAN ID of the upper-level virtual switch is to reduce the VLAN ID, the egress port selected by the upper-level virtual switch is used as the input end of the current virtual switch.
□。 □.
9、 根据权利要求 8所述的建立智能虚交换链路的方法, 其特征在于, 所 述将所述上一级虚拟交换机所选择的出端口作为所述当前虚拟交换机的入端 口的步骤之后,还包括:寻找从所述当前虚拟交换机到所述源网络用户巳建立 的链路上的上一级虚拟交换机的对等体,并将所述对等体 -应的虚拟交换机的 入 VLAN ID号作为所述当前虚拟交换机的入 VLAN ID, 确定出 VLAN ID的 处理策略。  The method for establishing an intelligent virtual switch link according to claim 8, wherein after the step of using the egress port selected by the upper-level virtual switch as an ingress port of the current virtual switch, The method further includes: searching for a peer of the upper-level virtual switch on the link established by the current virtual switch to the source network user, and entering the VLAN ID number of the virtual switch of the peer-to-peer As the inbound VLAN ID of the current virtual switch, the processing strategy of the VLAN ID is determined.
10、根据权利要求 3所述的建立智能虚交换链路的方法, 其特征在于, 所 述步骤二中, 当所述对出 VLAN ID的处理策略为减少 VLAN ID时, 则根据 所述当前虚拟交换机的入端口号、 入 VLAN ID和所选择的出端口号、 对出 VLAN ID的处理策略建立与下一级虚拟交换机之间的交换表项。  The method for establishing an intelligent virtual switching link according to claim 3, wherein, in the second step, when the processing policy of the outgoing VLAN ID is to reduce the VLAN ID, according to the current virtual The inbound port number, the inbound VLAN ID, and the selected outbound port number of the switch, and the processing policy for the outgoing VLAN ID establish an exchange entry with the next-level virtual switch.
PCT/CN2006/002247 2005-09-12 2006-09-01 Method for building intelligent virtual switching link WO2007031003A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNB2005100864052A CN100401721C (en) 2005-09-12 2005-09-12 Method for building intelligent virtual switching link
CN200510086405.2 2005-09-12

Publications (1)

Publication Number Publication Date
WO2007031003A1 true WO2007031003A1 (en) 2007-03-22

Family

ID=36080957

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2006/002247 WO2007031003A1 (en) 2005-09-12 2006-09-01 Method for building intelligent virtual switching link

Country Status (2)

Country Link
CN (1) CN100401721C (en)
WO (1) WO2007031003A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100461703C (en) * 2006-09-27 2009-02-11 中兴通讯股份有限公司 Intelligent virtual exchange method and system
CN101453665B (en) * 2007-11-29 2012-09-05 华为技术有限公司 Connection switching method, apparatus and system for passive optical network
CN102137007B (en) * 2011-01-17 2014-05-21 华为技术有限公司 Method and system for generating network topology as well as coordinator
CN106161113B (en) * 2016-08-31 2018-12-18 浪潮(北京)电子信息产业有限公司 A kind of the QinQ message processing method and platform of linux system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6188691B1 (en) * 1998-03-16 2001-02-13 3Com Corporation Multicast domain virtual local area network
US6266705B1 (en) * 1998-09-29 2001-07-24 Cisco Systems, Inc. Look up mechanism and associated hash table for a network switch
CN1357997A (en) * 2000-12-15 2002-07-10 华为技术有限公司 Virtual local area network access method in Ethernet access network

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1125545C (en) * 2001-12-31 2003-10-22 刘军民 Data forwarding method for implementing virtual channel transmission in LAN
CN100372321C (en) * 2003-04-17 2008-02-27 刘军民 Method for establishing virtual circuit
US7738467B2 (en) * 2003-07-15 2010-06-15 Hewlett-Packard Development Company, L.P. Output port based double Q tagging
CN100505746C (en) * 2004-02-07 2009-06-24 华为技术有限公司 Method for implement virtual leased line

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6188691B1 (en) * 1998-03-16 2001-02-13 3Com Corporation Multicast domain virtual local area network
US6266705B1 (en) * 1998-09-29 2001-07-24 Cisco Systems, Inc. Look up mechanism and associated hash table for a network switch
CN1357997A (en) * 2000-12-15 2002-07-10 华为技术有限公司 Virtual local area network access method in Ethernet access network

Also Published As

Publication number Publication date
CN1738295A (en) 2006-02-22
CN100401721C (en) 2008-07-09

Similar Documents

Publication Publication Date Title
US10284469B2 (en) Progressive MAC address learning
US9608833B2 (en) Supporting multiple multicast trees in trill networks
US9628293B2 (en) Network layer multicasting in trill networks
US7636319B2 (en) Fastpath implementation for a double tagging loopback engine
CN102215170B (en) Method and processor for restraining Internet storm
US20080084884A1 (en) Route once and cross-connect many
US10673737B2 (en) Multi-VRF universal device internet protocol address for fabric edge devices
WO2007147340A1 (en) Method, system and device of the ethernet technique exchanging and forwarding
CN110061915B (en) Method and system for virtual link aggregation across multiple fabric switches
WO2006118696A2 (en) Metro ethernet network with scaled broadcast and service instance domains
CN101909001A (en) Forwarding frames in a computer network using shortest path bridging
WO2012075163A1 (en) Systems and methods for multi-level switching of data frames
WO2011113340A1 (en) Access method and apparatus for multi-protocol label switching layer 2 virtual private network
EP1906595A1 (en) A method for implementing virtue-switch and the apparatus thereof
WO2014183518A1 (en) Method and system for realizing forwarding of data packet
CN1183726C (en) Network organizing method based on multi protocol label exchange virtual private network
WO2014101708A1 (en) Data transmission method and network node in layer 2 network
WO2011160464A1 (en) Method for forwarding message and switch chip
US9699117B2 (en) Integrated fibre channel support in an ethernet fabric switch
CN100373892C (en) Virtual exchanging method capable of routing
WO2007031003A1 (en) Method for building intelligent virtual switching link
EP3113422B1 (en) Method and system of enhancing multiple mac registration protocol (mmrp) for protocol internetworking
WO2007104201A1 (en) A method for forwarding message in the service tunnel of the ethernet application and a system thereof
WO2011097859A1 (en) Method and device for realizing flexible qinq
JP2013544453A (en) Pseudowire providing an in-band control channel with offset

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 06775564

Country of ref document: EP

Kind code of ref document: A1