WO2011113393A2 - 一种实现虚拟局域网标识转换的方法及装置 - Google Patents

一种实现虚拟局域网标识转换的方法及装置 Download PDF

Info

Publication number
WO2011113393A2
WO2011113393A2 PCT/CN2011/073381 CN2011073381W WO2011113393A2 WO 2011113393 A2 WO2011113393 A2 WO 2011113393A2 CN 2011073381 W CN2011073381 W CN 2011073381W WO 2011113393 A2 WO2011113393 A2 WO 2011113393A2
Authority
WO
WIPO (PCT)
Prior art keywords
vid
service
service information
information table
local
Prior art date
Application number
PCT/CN2011/073381
Other languages
English (en)
French (fr)
Other versions
WO2011113393A3 (zh
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 华为技术有限公司
Priority to PCT/CN2011/073381 priority Critical patent/WO2011113393A2/zh
Priority to CN201180000286.8A priority patent/CN102577257B/zh
Priority to EP11755710.8A priority patent/EP2654250A4/en
Publication of WO2011113393A2 publication Critical patent/WO2011113393A2/zh
Publication of WO2011113393A3 publication Critical patent/WO2011113393A3/zh
Priority to US14/013,855 priority patent/US20130343394A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • 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/70Virtual switches
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2596Translation of addresses of the same type other than IP, e.g. translation from MAC to MAC addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Definitions

  • the present invention relates to the field of network communication technologies, and in particular, to a method and apparatus for implementing virtual local area network identifier conversion.
  • VLAN virtual local area network
  • VID VLAN IDentity
  • the virtual local area network (VID, VLAN IDentity) of each virtual local area network (VLAN) is unique. After the VID of a certain VLAN is determined, other VLANs in the network cannot use the same VID. And any node in the VLAN can only use the VID identifier. Since the length of the VID is 12 bits, it can identify up to about 4,000 VLANs in the network, even if each user uses only one VLAN, the number of users is also It is limited to a range of approximately 4,000.
  • TRILL Transparent Interconnection of Lots of Links
  • IETF Internet Engineering Task Force
  • LSR Link State Routing
  • STP Spanning Tree Protocol
  • a Layer 2 network can support a larger number of virtual servers in the future.
  • the number of required VLANs is much larger than 4,000.
  • the general VID can It identifies about 4,000 VLANs. Therefore, it can be seen that the method of identifying VLANs according to the traditional network VID is not feasible in this scenario.
  • VIDs can be used under different switch shelves, thereby improving the reusability of VID, and finally enabling each rack to have 4 thousand VIDs are available.
  • VID VLAN
  • different VLANs can be used in different switch frames because the same service can be used, and nodes belonging to different VLANs cannot communicate directly. This causes different services belonging to the same service. There is no direct communication between nodes.
  • some specific switches on each switch chassis in the same service need to convert different VIDs and then forward data packets, and store the correspondence between VIDs of each service in different racks.
  • the switch that supports the TRILL protocol is a RB (Route Bridge).
  • the configuration of the VID on the RB is usually implemented by manual configuration. The workload is very large.
  • the virtual server may be migrated to other switch shelves in real time.
  • the service configuration supported by the virtual server in the migrated switch chassis is required.
  • a new VID, and the VID of the service supported by the virtual server and the VID assigned by the other switch to the service are also configured on other RBs. Due to the hysteresis of the manual configuration, the service delay is inevitable. .
  • the embodiment of the invention provides a method and a device for implementing virtual local area network identifier conversion, which can avoid hugely generated when the corresponding relationship between the virtual local area network identifier and the virtual local area network identifier of the routing bridge device of other switch frames is manually configured on the routing bridge device.
  • the workload and serious lag can avoid hugely generated when the corresponding relationship between the virtual local area network identifier and the virtual local area network identifier of the routing bridge device of other switch frames is manually configured on the routing bridge device. The workload and serious lag.
  • the method for implementing virtual local area network identifier conversion includes: acquiring and storing a service information table sent by each RB bridge device RB, where the service information table includes services supported by each RB, identifiers of each RB, and RBs. Corresponding relationship of the local virtual local area network identifier VID of the supported service; receiving the data message sent by the source terminal of the TRILL encapsulation forwarded by the neighboring RB; querying the stored service information table, converting the VID in the data message Cost field VID; Send the data message after the converted VID to the destination terminal.
  • the device for implementing virtual local area network identifier conversion includes: an obtaining unit, configured to obtain a service information table sent by each RB; a storage unit, configured to store a service information table sent by each RB obtained by the acquiring unit; a data packet sent by the source terminal for receiving the TRILL encapsulation of the neighboring RB; a query unit, configured to query a service information table stored by the storage unit; and a conversion unit, configured to query the service information table according to the query unit
  • the VID carried in the data packet is converted into a local VID; and the transmitter is configured to send the data packet after the converted VID to the destination terminal.
  • the embodiment of the present invention can dynamically obtain and store the service information table of each RB bridge device, and after receiving the data packet that is the egress RB, according to the data packet.
  • the ingress RB and the VID information of the inner layer message query the stored service information table to obtain the local VID information to be converted, and can realize the real-time update of the whole network service information table when the virtual machine migration occurs, avoiding each The problem of shortage of VID caused by the use of the global unique VID of the service, and the problem of huge configuration workload and configuration lag caused by manual configuration of the local VID.
  • Figure 1 is a schematic diagram of the globalization of a virtual local area network
  • FIG. 2 is a schematic diagram of a virtual local area network identifier conversion according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a process of forwarding and encapsulating data packets under the TRILL protocol in the embodiment of the present invention
  • FIG. 4 is a schematic diagram of an embodiment of a method for implementing virtual local area network identifier conversion according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of a usage scenario of a virtual local area network identifier conversion according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram of another embodiment of a method for implementing virtual local area network identifier conversion according to an embodiment of the present invention
  • FIG. 7 is a schematic diagram of an embodiment of an apparatus for implementing virtual local area network identifier conversion in an embodiment of the present invention.
  • the embodiment of the invention provides a method and a device for implementing virtual local area network identifier conversion, which are used to avoid the business information table between the service of other RBs supporting the same service and the local VID of other RBs manually configured on the RB. , and the resulting workload is huge and the configuration speed is seriously lagging behind.
  • the thick solid line is the virtual LAN servicel used by user A.
  • Each switch is a TRILL-enabled switch (ie, RB).
  • TopRack (ToR, Top of Rack) is the top-level RB in the rack.
  • 101 is ToR
  • 102 is a virtual switch
  • 103 is a terminal
  • the terminal can be a virtual machine (VM, Virtual Machine)
  • 104 is only participating.
  • Transit RB for packet forwarding.
  • the devices on the same layer in the network are the same device.
  • each virtual The ID of the LAN VLAN is unique.
  • VID 38 is used to identify servicel, then VID 38 cannot be used when identifying other virtual LANs in the network, and each node belonging to the virtual LAN servicel can only use VID 38. As an identification.
  • VID localization is described below. VID localization is for a specific service or customer. Different VIDs can be used to identify the service or customer under different switch frames. Please refer to Figure 2, where the thick solid line is the virtual used by user B.
  • LAN servicel 201 is each ToR, 202 is a virtual switch, 203 is a terminal, and 204 is a transit RB that only participates in packet forwarding (the devices in the same layer in the network are the same device, not shown in the figure), but Its function is the same as the marked device).
  • 205-208 are different switch shelves (Rack).
  • the VID assigned by the Rack 205 to the virtual local area network servicel is 35; the RID 207 assigns the VID value of the virtual local area network servicel to 1028; the Rack 208 allocates the VID of the virtual local area network servicel to 314; the Rack 206 has no servicel terminal, so there is no servicel. Assign a VID.
  • a virtual server in the virtual LAN servicel is migrated from the Rack 205 to the Rack 206, if the VID 35 has been allocated to another user in the Rack 206, then a VID must be assigned from the unused VID of the Rack 206. For virtual LAN servicel to be used in Rack 206, such as VID 998, this can improve the reuse rate of VID.
  • the source terminal 301 is ready to send data packets to the destination terminal. 306.
  • the first RB that receives the data packet is an ingress RB.
  • the ingress RB 302 in FIG. 3 is responsible for TRILL encapsulation of the data packet, and the RB 302 is configured according to the destination MAC address. The address finds the last RB on the forwarding path, called the egress RB, as shown in Figure 3, the egress RB 305.
  • Ingress RB 302 uses the identity of egress RB 305 as an alias for the egress RBridge device (Egress Rbridge Nickname) and its own identity as an alias for the ingress RBridge device (Ingress RBridge Nickname) in the TRILL header.
  • a dynamic protocol is run between all RBs to get the alias ( nickname ) of each RB.
  • the egress RB nickname represents a distribution tree. The nickname is the root of the distribution tree.
  • the ingress RB is responsible for selecting which distribution tree to use for multicast or broadcast forwarding.
  • the intermediate RB between the ingress RB and the egress RB is responsible for forwarding data packets, such as RB 303 and RB 304 in FIG.
  • the intermediate RB determines the hop of the next hop (Hop) according to the egress RB each time the data packet is received.
  • Layer 2 address and the Layer 2 address is used as the destination address of the external Layer 2 header, and its Layer 2 address is used as the external address.
  • the source address of the Layer 2 header and the value of the Hop Count Although the external Layer 2 packet header changes every hop, the original message (that is, the inner layer message) does not change, and is finally sent to the destination terminal 306. It should be noted that the VID information carried in the data packet remains unchanged throughout the forwarding process. To change the VID, only the RB configured with the VLAN mapping function can be implemented.
  • an embodiment of a method for implementing virtual local area network identifier conversion under the TRILL protocol in the embodiment of the present invention includes:
  • each RB bridge device Acquire and store a service information table of each RB bridge device, where the service information table includes a service supported by each RBridge device, an identifier of each RBridge device, and a corresponding relationship between local WLAN identifiers of services supported by each RBridge device. .
  • the RB corresponding service information table needs to be established in each RB according to the service supported by the RB (one VLAN for each service), the identifier of the RB, and the local VID allocated for the service supported by the RB. Then, each RB sends its own service information table to the adjacent RB through the link state packet, and then continues to be forwarded by the neighboring RB, so that the service information table is spread in the network, and finally, all the RBs will be A service information table of each RB in the entire network is obtained, that is, a local VID corresponding to the same service by another RB is stored on each RB.
  • the service in the service information table may be represented by a unified service number.
  • service 1 indicates voice service
  • service 2 indicates data service
  • service 3 indicates video service.
  • the identifier of the RB can be the system identifier or the alias of the RB ( nickname ).
  • FIG. 5 is a schematic diagram of a usage scenario of a virtual local area network identifier conversion method, including a switch frame Rack505-Rack507, a routing bridge device RB501-RB503 in the switch chassis 505-507, and a transit RB504.
  • service 1 the virtual local area network corresponding to service 1 is shown by the thick solid line in the figure.
  • Rack505 configures the VID of service 1 to be 35
  • Rack506 configures the VID of service 1 to 1028, Rack507
  • the VID configured for service 1 is 314.
  • the service information table is configured on each RB.
  • the alias of RB501 is ToR1
  • the alias of RB502 is ToR2
  • the alias of RB503 is ToR3
  • the service information table on RB501 is (service 1 : ToRl , VID35 )
  • the service information table on the RB502 is (service 1 : ToR2, VID1028)
  • the service information table on RB503 is (servicel: ToR3, VID314).
  • Each RB supporting the service service 1 sends the respective service information table to the adjacent RB, and then the neighboring RB continues to forward the information, and the service information table is spread in the network, and finally, all the services of the service service l are supported.
  • the RBs will store the foregoing service information table of each RB, and the service information table includes information of all the RBs supporting the service1 and the corresponding local VID information of the RB. It can be understood that the service number may also be the user group number. .
  • the foregoing service information table may be stored in a Link State Data Base (LSDB).
  • the service information table configured on each RB can be extended by the TLV (Type, Length, Value) in the LSP packet type of the Intermediate System to Intermediate System Routing Protocol (IS-IS).
  • the TLV can be named user-group-to-vlan mapping TLV, or can define an existing TLV sub-TLV, which can be named user-group-to-vlan mapping sub-TLV
  • the new TLV or the sub-TLV format can be as follows:
  • the System ID can be the system identifier of the RB that sent the message, or it can be a unique feature information such as an alias.
  • the User Group ID is a specific user group or service.
  • the identifier is also globally unique; the Local VID is the value of the local VLAN ID used by the specific user group ID under the RB of the given System ID, and is locally unique.
  • I User Group ID I (4 bytes) 402. Receive a data packet sent by a source terminal encapsulated by a multi-link transparent interconnection protocol forwarded by a neighboring RBridge device.
  • 510 is a virtual switch between the RB and the terminal.
  • the RB 501 is the ingress RB of the service1
  • the RB 503 is the egress RB of the service1
  • the RB 502 is the data.
  • the RB that the elapsed from the ingress RB to the egress RB may be referred to as a source terminal
  • the terminal 509 may be referred to as a target terminal.
  • the data sent by the source terminal 508 includes the MAC address of the source terminal 508 and the MAC address of the target terminal 509.
  • the virtual switch 510 adds the data packet.
  • Rack505 is configured with the VID information (VID35) of the servicel.
  • VID35 VID35
  • the RB 5011 encapsulates the data packet according to the TRILL protocol.
  • the encapsulated data packet has the same VID, which is still 35.
  • the RB nickname is ToRl
  • the egress RB nickname is ToR3.
  • the header encapsulation of the outer data packet also follows the TRILL rule, which is specific to the prior art and will not be described here.
  • the data packet sent by the source terminal 508 is forwarded through the layer to reach the egress RB 503.
  • the RB 503 receives the data packet from the source terminal, reads the egress RB information in the data packet, and knows that the egress RB is itself, and then stores the VID information included in the inner RB identifier and the inner layer data packet according to the ingress RB identifier and the step 401.
  • the service information table is queried to obtain the virtual local area network identifier of service 1 under Rack 507, that is, the local VID 314 of service 1 on RB 503. Then, the RB 503 exchanges the VID 35 in the received data message with the local VID 314.
  • the egress RB that is, the RB 503, sends the data packet after the VID is converted to the destination terminal 509.
  • the RB dynamically acquires and stores the service information table of each RB bridge device. After receiving the data packet that is the egress RB, the RB dynamically obtains the VID information of the ingress RB and the inner layer packet in the data packet.
  • the stored service information table is queried to obtain local VID information that needs to be converted, which avoids the problem of shortage of VID caused by using a globally unique VID for each service, and the problem of large configuration workload and configuration lag caused by manual configuration of the local VID.
  • another embodiment of the present invention further includes after step 404:
  • the media access control address of the source terminal that sends the data packet, the local VID of the service to which the data packet belongs, and the service information table of the ingress RB are obtained and stored.
  • the egress RB 503 converts the VID corresponding to the ingress RB501 included in the received data packet to the local VID, and sends the data packet after the VID is converted to the destination terminal 509, and acquires and stores the source terminal.
  • the MAC address of 508, the local VID 314 of service 1, and the service information table of the ingress RB501, that is, the source address learning of the TRILL is performed after the VID is converted, the flow of the subsequent data packets is ensured, and the database is updated in time.
  • the embodiment of the invention further provides a method for virtual local area network identifier conversion, which is applicable to a routing bridge device. As shown in Figure 6, it includes:
  • the service information table includes a service supported by the RBridge device, an identifier of the RBridge device, and a correspondence between local WLAN identifiers of services supported by the RBridge device.
  • the service supported by the RB includes the services that can be provided by the switches in the switch.
  • the local VID corresponding to the service refers to the VID used by the service in the switch chassis.
  • the virtual terminal may migrate between different switch shelves.
  • the adaptation layer of the physical server of the migration destination sends a migration notification to the neighboring RBs in the chassis to which the virtual terminal is to be moved.
  • the migration notification may be a virtual interface discovery and configuration protocol (VDP). , VSI discovery and configuration protocol ) message, which carries the identity of the virtual terminal to be migrated.
  • VDP virtual interface discovery and configuration protocol
  • the RB After receiving the migration notification sent by the physical server of the virtual terminal migration destination, the RB determines the local virtual local area network identifier corresponding to each service supported by the virtual terminal according to the identifier of the virtual terminal carried in the migration notification.
  • the RB queries information about all services supported by the virtual terminal (for example, a service number) according to the identifier of the virtual terminal in the migration notification sent by the physical server, according to the queried industry.
  • the service information and the stored service information table determine whether the local VID has been allocated for the service supported by the virtual terminal, that is, whether the terminal supporting the same service as the virtual terminal exists in the chassis. If a local VID has been assigned to a service, indicating that there is a terminal in the rack that supports the same service as the virtual terminal, the local VID does not need to be allocated for the service.
  • the updated service information table includes: the service supported by the RB, the identifier of the RB, and the local VID corresponding to all services supported by the RB after the update.
  • the usage status of the VID in the system database is managed by the management program, and the query can know whether a VID has been used, and the unused VID can be selected as the migrated virtual terminal.
  • the terminal 508 is a virtual terminal, and the virtual terminal 508 supports two services at the same time: servicel and service2 (the virtual local area network to which the service 2 belongs is not shown in the figure).
  • Terminal 509 only supports one service service 1.
  • the service information table stored on the RB 503 is (servicel: ToR3, VID314).
  • the bridge routing device RB 503 in the Rack 507 receives a migration notification sent by the physical server (not shown), which carries the identity of the virtual terminal 508.
  • the RB 503 After receiving the migration notification, the RB 503 queries the virtual terminal 508 to support the services service1 and service2 according to the identifier of the virtual terminal 508 carried therein. (This query can be performed by an information server or other device capable of providing service information, which is not shown in the figure. Out).
  • the RB 503 queries the stored service information table and finds that the local VID has been assigned to the servicel, so there is no need to reassign the local VID to the servicel.
  • the original service information table of the RB 503 does not have the information of the service 2, so the service 2 belongs to the new service under the Rack 507, and the local VID used in the Rack 507 needs to be assigned to the service 2, which is assumed to be VID 2048.
  • the service information table in RB503 is updated to include two entries (servicel: ToR3, VID314) and (service2: ToR3, VID2048). Then, the RB 503 transmits the updated service information table to the adjacent RB 502 through the link state packet, so that the updated service information table is spread in the network, and the service information table is updated on each RB.
  • the embodiment shown in FIG. 4 mainly embodies the operation of the RB when forwarding the data packet.
  • the embodiment shown in FIG. 6 mainly embodies the operation of the RB when updating the service information table.
  • the forwarding data message and the updated service information table are often performed simultaneously or crosswise. Therefore, the steps in the embodiment shown in FIG. 4 and the embodiment shown in FIG. 6 can be arbitrarily combined into a new scheme, and are not limited by the execution order.
  • the RB to which the virtual terminal is to be moved allocates a new local VID for the new service supported by the virtual terminal, updates the local service information table, and updates the updated service information table.
  • the service information table spreads throughout the network, realizing the real-time update of the service information table of the entire network, and reducing the workload of manual configuration.
  • an apparatus for implementing virtual local area network identifier conversion according to an embodiment of the present invention, which is used to implement the foregoing method embodiments of the present invention.
  • an embodiment of an apparatus for implementing virtual local area network identifier conversion in the embodiment of the present invention includes :
  • the obtaining unit 701 is configured to obtain a service information table sent by each RB (refer to step 401), and is further configured to: after receiving the data message sent by the forwarded source terminal, according to the entry RB identifier in the data message, and the The VID in the data packet, after querying the stored service information table, obtains the local VID of the service to which the data packet belongs, and obtains the source terminal that sends the data packet after forwarding the data packet sent by the source terminal. a media access control address, a local VID of the service to which the data packet belongs, and a service information table of the ingress RB;
  • the storage unit 702 is configured to store a service information table sent by each RB acquired by the acquiring unit 701, and store a media access control address of the source terminal that sends the data packet, a local VID of the service to which the data packet belongs, and a service of the ingress RB.
  • Information Sheet ;
  • the receiver 703 is configured to receive a data message sent by the source terminal of the TRILL package forwarded by the neighboring RB (step 403), and receive a migration notification sent by the physical server to which the virtual terminal is moved (step 602);
  • the querying unit 704 is configured to query the service information table stored by the storage unit 702 according to the entry RB identifier carried in the data packet and the VID information included in the inner layer data packet (step 403), and further, according to the migration
  • the identifier of the virtual terminal queries all the services supported by the migrated virtual terminal. Information (step 603);
  • the converting unit 705 is configured to convert the VID carried in the data packet to the local VID according to the query result of the query unit 704 in the service information table (step 403);
  • the transmitter 706 is configured to send the data packet after the VID is converted by the converting unit 705 to the destination terminal (step 404), and is further configured to send the service information table of the egress RB itself to the neighboring RB by using the link state packet (step 401). And, the updated service information table after the virtual terminal is migrated is sent to the neighboring RB through the link state packet (step 604).
  • the device may further include:
  • the determining unit 707 is configured to: after receiving the migration notification sent by the physical server of the virtual terminal migration destination, determine the local VID corresponding to each service after the virtual terminal is migrated according to the identifier information of the virtual terminal to be migrated carried in the migration notification ( Step 603);
  • the determining unit 708 is configured to determine, according to the information of the service queried by the query unit 704 and the stored service information table, whether the local VID has been allocated for the service supported by the virtual terminal (step 603);
  • the selecting unit 709 is configured to: when the determining unit 708 determines that the service supported by the virtual terminal is a new service, select an unused VID in the database as the local VID corresponding to the new service (step 603); and the updating unit 710 is configured to The local VID corresponding to each service supported by the migrated virtual terminal updates the service information table (step 603).
  • the apparatus of the embodiment of the present invention may include different combinations of the above units according to different functions implemented, and the above units should not be all necessary technical features of the apparatus embodiment.
  • the device in the embodiment of the present invention can dynamically acquire and store the service information table of each RB bridge device, and after receiving the data packet that is the egress RB, according to the VID of the ingress RB and the inner layer packet in the data packet.
  • the information is stored in the service information table to obtain the local VID information to be converted, and the real-time update of the service information table of the entire network can be realized when the virtual machine is migrated, thereby avoiding the shortage of the VID caused by using the global unique VID for each service.
  • the manual configuration of the local VID bow I have a huge workload and configuration lag.
  • the instructions are stored in a computer readable storage medium, which may be a read only memory, a magnetic disk or an optical disk, or the like.

Abstract

本发明实施例公开了一种实现虚拟局域网(VLAN)标识转换的方法及装置,用于避免因在路由桥设备上人工配置包括与该路由桥设备支持同一业务的其他路由桥设备的标识及其他路由桥设备的本地VLAN标识之间的对应关系的业务信息表,而产生的工作量巨大以及配置速度严重滞后的问题。本发明实施例的方法包括:获取并存储各路由桥设备发送的业务信息表(401),接收相邻路由桥设备转发的多链接透明互联(TRILL)封装的源终端发送的数据报文(402),查询所存储的业务信息表,将接收的数据报文中的VLAN标识转换成本地VLAN标识(403),向目的终端发送转换VLAN标识后的数据报文(404)。

Description

一种实现虚拟局域网标识转换的方法及装置 技术领域
本发明涉及网络通信技术领域,尤其涉及一种实现虚拟局域网标识转换的 方法及装置。
背景技术
在传统二层网络中 ,每个虚拟局域网( VLAN, Virtual Local Area Network ) 的虚拟局域网标识( VID, VLAN IDentity )是唯一的 , 某个 VLAN的 VID确 定后, 网络中的其他 VLAN不能使用同一 VID, 而且该 VLAN中的任何一个 节点也只能使用该 VID标识, 由于 VID的长度为 12比特,所以在网络中最多 能标识约 4千个 VLAN, 即便每个用户只使用一个 VLAN,用户数量也被限制 在约 4千的范围。 多链接透明互联协议 ( TRILL, Transparent Interconnection of Lots of Links )是互联网工程任务组 ( IETF, Internet Engineering Task Force ) 的一个工作组, 也是一个协议, 主要整合了网桥和路由器的优点, 将链路状态 路由 (LSR, Link State Routing )技术用在链路层, 而且不会干扰上层路由器 的工作。 TRILL协议是为了替代生成树协议( STP, Spanning Tree Protocol ) 而诞生的, 它的优势主要有三, 其一是能替换 STP这已经略显衰老的技术, 其二是提高了对单播和多播在多路方面 ( Multi-Pathing ) 的支持, 其三是减少 数据传播的延迟。
随着二层路由协议如 TRILL的应用以及虚拟服务器部署的逐步成熟, 可 以预期在将来一个二层网络可以支持更多数目的虚拟服务器。 在这类场景下, 如果我们使用 VLAN技术来进行业务或者客户之间的天然二层隔离, 就会出 现所需 VLAN的数量远远大于 4千的情况, 而如前文所述, 一般 VID最多能 标识约 4千个 VLAN, 因此可知按照传统网络 VID标识 VLAN的作法在此场 景下是不可行的。 解决这个问题, 可通过使用本地化 VLAN ID的方法, 即对 于特定业务或者客户,在不同的交换机架下可以使用不同 VID,从而提高 VID 的复用度, 最终可以使得每个机架下都有 4千个 VID可使用。
本地化 VID后, 由于相同业务可在不同的交换机架下使用不同的 VLAN, 而且属于不同 VLAN的节点不能直接通信, 这样导致了属于相同业务的不同 节点之间不能直接通信。 为了克服上述问题,便需要相同业务下每个交换机架 上的某些特定交换机将不同 VID进行转换后再转发数据报文, 同时存储每个 业务在不同机架下的 VID之间的对应关系。 在 TRILL协议下, 支持 TRILL协 议的交换机为路由桥设备(RB, Route Bridge), 而在 RB上配置 VID通常是通 过人工配置来实现的, 工作量十分巨大。 另外, 虚拟服务器可能被实时迁移至 其他交换机架,如果迁入的交换机架中不存在与该虚拟服务器支持同一业务的 服务器,则需要在该迁入的交换机架中为该虚拟服务器支持的业务配置一个新 的 VID, 并且, 还需要在其他 RB上配置该虚拟服务器支持的业务对应的 VID 及其他交换机为该业务分配的 VID的对应关系, 由于人工配置的滞后性, 必 然会带来业务的迟延。
发明内容
本发明实施例提供了一种实现虚拟局域网标识转换的方法及装置,能够避 免在路由桥设备上人工配置虚拟局域网标识与其他交换机架的路由桥设备的 虚拟局网标识的对应关系时产生的巨大的工作量及严重滞后问题。
本发明实施例提供的实现虚拟局域网标识转换的方法, 包括: 获取并存储 各路由桥设备 RB发送的业务信息表,所述业务信息表包含各 RB支持的业务, 各 RB的标识以及各 RB所支持的业务的本地虚拟局域网标识 VID的对应关 系; 接收相邻 RB转发的 TRILL封装的源终端发送的数据报文; 查询所存储 的所述业务信息表, 将所述数据报文中的 VID转换成本地 VID; 向目的终端 发送所述转换 VID后的数据报文。
本发明实施例提供的实现虚拟局域网标识转换的装置, 包括: 获取单元, 用于获取各 RB发送的业务信息表; 存储单元, 用于存储获取单元获取的各 RB发送的业务信息表; 接收器, 用于接收相邻 RB转发的 TRILL封装的源终 端发送的数据报文; 查询单元, 用于查询存储单元所存储的业务信息表; 转换 单元,用于根据查询单元在业务信息表中的查询结果,将所述数据报文中携带 的 VID转换成本地 VID; 发送器, 用于向目的终端发送所述转换 VID后的数 据报文。
从以上技术方案可以看出,本发明实施例能够动态获取并存储各个路由桥 设备的业务信息表, 在接收到自身为出口 RB的数据报文后, 根据该数据报文 中的入口 RB和内层报文的 VID信息查询所存储的业务信息表来获得需要转 换的本地 VID信息, 并能够在发生虚拟机迁移时实现全网业务信息表的实时 更新, 避免了每个业务使用全局唯一 VID造成的 VID短缺的问题, 以及人工 配置本地 VID引起的配置工作量巨大和配置滞后的问题。
附图说明
图 1为虚拟局域网全局化的一个示意图;
图 2为本发明实施例中虚拟局域网标识转换的一个示意图;
图 3为本发明实施例中 TRILL协议下数据报文的转发及封装过程的示意 图;
图 4 为本发明实施例中实现虚拟局域网标识转换的方法一个实施例示意 图;
图 5为本发明实施例中虚拟局域网标识转换的一个使用场景示意图; 图 6 为本发明实施例中实现虚拟局域网标识转换的方法另一个实施例示 意图;
图 7 为本发明实施例中实现虚拟局域网标识转换的装置的一个实施例示 意图。
具体实施方式
本发明实施例提供了一种实现虚拟局域网标识转换的方法及装置,用于避 免因在 RB上人工配置与该 RB支持同一业务的其他 RB的业务及其他 RB的 本地 VID之间的业务信息表, 而产生的工作量巨大以及配置速度的严重滞后 的问题。
为便于理解, 首先对 TRILL协议下 VLAN全局化进行说明, 请参阅图 1 , 图中粗实线为用户 A使用的虚拟局域网 servicel , 各交换机均为具有 TRILL 功能的交换机(即 RB ), 其中, 架顶交换机(ToR, Top of Rack ) 为机架下 处于顶层的 RB, 图中 101为 ToR, 102为虚拟交换机, 103为终端, 终端可以 为虚拟机( VM , Virtual Machine ) , 104为只参加报文转发的中转 RB , (在网 络中同一层的设备为同一种设备, 未在图中一一标出,但其功能与标出的设备 相同), 在传统二层网络中, 每个虚拟局域网 VLAN的 ID是唯一的, 当某个 VLAN的 VID确定后, 网络中的其他 VLAN不能使用该 VID , 而且该 VLAN 中的各节点也只能使用该 VID, 假设使用 VID 38标识 servicel , 那么对网络 中的其他虚拟局域网进行标识时, 就不能使用 VID 38, 而且属于虚拟局域网 servicel的各节点也只能使用 VID 38作为标识。
下面介绍 VID本地化, VID本地化就是对于特定业务或者客户, 在不同 的交换机架下可以使用不同 VID对该业务或者客户进行标识,请参阅图 2, 图 中粗实线为用户 B使用的虚拟局域网 servicel , 201为各 ToR, 202为虚拟交 换机, 203为终端, 204为只参加报文转发的中转 RB (在网络中同一层的设备 为同一种设备, 未在图中——标出, 但其功能与标出的设备相同)。 205-208 为不同的交换机架(Rack )。 其中 Rack 205为虚拟局域网 servicel分配的 VID 为 35; Rack 207为虚拟局域网 servicel 分配的 VID值为 1028; Rack 208为虚 拟局域网 servicel分配的 VID为 314; Rack 206下没有 servicel的终端, 所以 没有为 servicel分配 VID。当虚拟局域网 servicel中某个虚拟服务器从 Rack 205 被迁移到 Rack 206中, 如果 VID 35在 Rack 206中已经分配给另一个用户使 用 , 则此时必须从 Rack 206未被使用的 VID中分配一个 VID供虚拟局域网 servicel在 Rack 206内使用, 比如 VID 998, 这样可以提高 VID的复用率。
为便于理解, 下面概要介绍 TRILL协议下数据报文的转发及封装过程, 以单播数据报文为例, 请参阅图 3 , TRILL协议下, 假设源终端 301准备将数 据报文发送至目的终端 306, 当数据报文发送出去后, 第一个收到该数据报文 的 RB为入口( ingress )RB,如图 3中入口 RB 302,负责对数据报文进行 TRILL 封装, RB 302根据目的 MAC地址查找出转发路径上的最后一个 RB, 称为出 口 ( egress ) RB, 如图 3中出口 RB 305。 入口 RB 302将出口 RB 305的标识 作为出口路由桥设备的别名( Egress Rbridge Nickname ),将自身的标识作为入 口路由桥设备的别名 ( Ingress RBridge Nickname )放在 TRILL头中。 所有的 RB之间运行一个动态协议以获取各个 RB的别名 ( nickname )。 对于组播或广 播报文来说, egress RB nickname表示一个分发树,该 nickname是分发树的根, 入口 RB负责选择使用哪颗分发树来进行组播或广播转发。 在入口 RB及出口 RB之间的中间 RB负责转发数据报文, 如图 3中 RB 303及 RB 304, 中间 RB 每次收到数据报文便根据出口 RB来决定下一跳(Hop ) 的 RB的二层地址, 并把该二层地址作为外部二层报文头的目的地址,把自身的二层地址作为外部 二层报文头的源地址, 并递减跳次计数 ( Hop Count ) 的值。 尽管外部二层报 文头每跳都改变, 但是原本的报文(即内层报文) 内容并不发生变化, 最终发 往目的终端 306。需要说明的是,数据报文携带的 VID信息在整个转发过程中 一直不变, 若要改变 VID只有配置了虚拟局域网映射( VLAN mapping )功能 的 RB才可以实现。
下面对本发明实施例提供的实现虚拟局域网标识转换的方法进行描述,请 参阅图 4,本发明实施例中的在 TRILL协议下实现虚拟局域网标识转换的方法 的一个实施例包括:
401、 获取并存储各路由桥设备的业务信息表, 该业务信息表包括各路由 桥设备支持的业务、各路由桥设备的标识以及各路由桥设备所支持的业务的本 地虚拟局域网标识的对应关系。
本步骤中, 需要在每个 RB中, 根据该 RB支持的业务(每个业务对应一 个 VLAN )、该 RB的标识以及为该 RB支持的业务分配的本地 VID建立该 RB 相应的业务信息表。 然后, 由各 RB将自身的业务信息表通过链路状态包发送 给相邻的 RB, 再由相邻 RB继续向外转发, 使该业务信息表在网络中进行扩 散, 最终, 所有 RB都将得到全网中每个 RB的业务信息表, 也就是说, 在每 个 RB上都存储了别的 RB对同一业务所对应的本地 VID。
上述业务信息表中的业务可以用统一约定的业务编号来表示, 例如, 用 service 1表示语音业务, service2表述数据业务, service3表示视频业务等。 RB 的标识可以是系统标识或者该 RB的别名 ( nickname )。
为便于理解, 请参阅图 5, 图 5为虚拟局域网标识转换方法的一个使用场 景的示意图, 其中包括, 交换机架 Rack505-Rack507, 交换机架 505-507中的 路由桥设备 RB501-RB503以及中转 RB504。假设用户 A租用业务编号为 1的 业务, 即 service 1 ( service 1 对应的虚拟局域网如图中粗实线所示)。 Rack505 为 service 1配置的 VID为 35, Rack506为 service 1配置的 VID为 1028, Rack507, 为 service 1配置的 VID为 314。
在各个 RB上配置业务信息表,例如,假设 RB501的别名为 ToRl , RB502 的别名为 ToR2, RB503的别名为 ToR3 , 对于 service 1 , RB501上的业务信息 表为( service 1 : ToRl , VID35 ), RB502上的业务信息表为( service 1 : ToR2, VID1028 ) RB503 上的业务信息表为 (servicel : ToR3 , VID314 )。 支持业务 service 1 的各 RB将各自的上述业务信息表发送给相邻的 RB, 再由相邻 RB 继续向外转发, 将此业务信息表在网络中进行扩散, 最终, 支持业务 service l 的所有 RB都将存储各 RB的上述业务信息表, 该业务信息表中包含所有支持 servicel的 RB的信息以及对应的该 RB的本地 VID的信息, 可以理解的, 其 中的业务编号也可为用户组编号。
需要说明的是,上述业务信息表可以存储在连接状态数据库(LSDB, Link State Data Base ) 中。 各 RB上配置的业务信息表可以通过扩展中间系统到中 间系统的路由选择十办议 (IS-IS , Intermediate System to Intermediate System Routing Protocol ) 的 LSP报文类型中的 TLV ( Type, Length, Value ) 实现, 如可定义新的 TLV, 该 TLV可命名为 user-group-to-vlan mapping TLV, 或者可 定义一个现有 TLV的 sub-TLV,可命名为 user-group-to-vlan mapping sub-TLV, 该新的 TLV或者该 sub-TLV的格式均可如下所示:
Type=GRP-to-VlD I (1 byte)
Length I (1 byte)
System ID I (6 bytes)
User Group to VID mapping ( 1 ) I (6 bytes)
User Group to VID mapping ( 2 ) I (6 bytes) 其中, System ID可以是发出该信息的 RB的系统标识, 也可能是别名等 具有唯一性的特征信息; User Group ID是某特定用户组或者业务的标识, 也 具有全局唯一性; Local VID是特定的 user group ID在给定 System ID的 RB 下使用的本地 VLAN标识的值, 具有本地唯一性。
其中, 每个 User Group to VID mapping的格式如下所示: I Local VID I ― (2 bytes)
I User Group ID I (4 bytes) 402、 接收相邻路由桥设备转发的多链接透明互联协议封装的源终端发送 的数据报文。
请参见图 5, 510为位于 RB及终端之间的虚拟交换机。 当 Rack505中的 终端 508需要向 Rack507中的另一终端 509发送 servicel的报文时, RB501为 servicel的入口 RB ( Ingress RB ), RB 503为 servicel的出口 RB ( Egress RB ), RB 502为数据才艮文从入口 RB至出口 RB所需经过的 RB, 终端 508可称为源 终端, 终端 509可称为目标终端。 源终端 508发送的数据 ^艮文中包含源终端 508的 MAC地址及目标终端 509的 MAC地址, 当源终端 508发送的 servicel 的数据报文到达虚拟交换机 510 时, 虚拟交换机 510 为该数据报文添加 Rack505为 servicel配置的 VID信息 ( VID35 ), 当数据才艮文到达 RB 501时, RB 5011按照 TRILL协议对数据报文进行封装, 封装后的数据报文内层 VID 不变, 仍为 35, 入口 RB nickname为 ToRl , 出口 RB nickname为 ToR3 , 外层 数据报文的包头封装也遵循 TRILL规定, 具体为现有技术, 此处不再赘述。
源终端 508发送的数据报文经过层层转发, 到达出口 RB503。
403、 查询所存储的业务信息表, 将接收到的数据报文中的虚拟局域网标 识转换成本地虚拟局域网标识。
RB503接收到来自源终端的数据报文, 读取该数据报文中的 egress RB 信息, 可知出口 RB为自身, 再根据入口 RB标识以及内层数据报文中包含的 VID信息和步骤 401 中存储的业务信息表进行查询, 可以获得 service 1 在 Rack507下的虚拟局域网标识, 即 service 1在 RB503上的本地 VID314。 然后, RB503将收到的数据报文中的 VID35换成本地 VID 314。
404、 向目的终端发送该转换虚拟局域网标识后的数据报文。
出口 RB, 即 RB503 , 将转换 VID后的数据报文发送给目的终端 509。 本发明实施例中, RB动态获取并存储各个路由桥设备的业务信息表, 当 接收到自身为出口 RB的数据报文后,根据该数据报文中的入口 RB和内层报 文的 VID信息查询所存储的业务信息表来获得需要转换的本地 VID信息, 避 免了每个业务使用全局唯一 VID造成的 VID短缺的问题, 以及人工配置本地 VID引起的配置工作量巨大和配置滞后的问题。
基于图 4所示的方法, 本发明另一实施例在步骤 404之后进一步包括: 获 取并存储发送数据报文的源终端的介质访问控制地址、该数据报文所属业务的 本地 VID以及入口 RB的业务信息表。
例如, 在图 5中, 出口 RB503将接收到的数据报文中包含的入口 RB501 对应的 VID转换成本地 VID, 并且将转换 VID后的数据报文发送给目的终端 509之后, 获取并存储源终端 508的 MAC地址、 service 1的本地 VID314以及 入口 RB501的业务信息表, 即在转换 VID之后再进行 TRILL的源地址学习 , 保证后续数据报文的流转进程正确, 以及数据库的及时更新。
本发明实施例另外提供了一种虚拟局域网标识转换的方法,适用于路由桥 设备。 如图 6所示, 包括:
601、 获取并存储业务信息表, 该业务信息表包括该路由桥设备支持的业 务、该路由桥设备的标识以及该路由桥设备支持的业务的本地虚拟局域网标识 的对应关系。
当 RB为交换机架的架顶交换机时, 该 RB支持的业务包括该交换机架下 各交换机能够提供的业务, 业务对应的本地 VID是指业务在该交换机架下使 用的 VID。
602、 接收物理服务器发送的迁移通知, 该迁移通知中携带将要迁移的虚 拟终端的标识。
当虚拟局域网中的终端为虚拟终端时,虚拟终端可能会在不同交换机架之 间发生迁移。 当虚拟终端准备迁移时, 迁移目的地的物理服务器的适配层会发 送迁移通知给该虚拟终端将要迁入的机架下的相邻 RB, 该迁移通知可以是虚 拟接口发现和配置协议( VDP, VSI discovery and configuration protocol )消息, 其中携带将要迁移的虚拟终端的标识。
603、 根据该迁移通知中携带的虚拟终端的标识, 确定该虚拟终端所支持 的各业务对应的本地虚拟局域网标识, 更新业务信息表。
当 RB接收到虚拟终端迁移目的地的物理服务器发送的迁移通知后,根据 迁移通知中携带的该虚拟终端的标识,确定该虚拟终端所支持的各业务对应的 本地虚拟局域网标识。
具体的, RB根据物理服务器发送的迁移通知中的虚拟终端的标识, 查询 该虚拟终端的所支持的全部业务的信息 (例如业务编号), 根据所查询到的业 务的信息以及存储的业务信息表逐一判断是否已经为该虚拟终端所支持的业 务分配了本地 VID,即判断本机架下是否已经存在与该虚拟终端支持相同业务 的终端。如果已经为某业务分配了本地 VID,表明本机架下存在与该虚拟终端 支持相同业务的终端), 则不需要再为该业务分配本地 VID。 如果尚未为所述 虚拟终端支持的业务分配本地 VID,表明该业务为本机架下的新业务, 需要在 数据库中选取未使用的 VID作为该新业务对应的本地 VID, 并更新存储的业 务信息表。 更新后的业务信息表包括: 该 RB所支持的业务, 该 RB的标识以 及更新后该 RB支持的全部业务对应的本地 VID。
本实施例中, 系统数据库中的 VID的使用状态是通过管理程序进行管理 的, 查询便可知某个 VID是否已被使用, 以此为据可选取未被使用的 VID作 为所迁移的虚拟终端的新业务对应的本地 VID。
604、 向相邻路由桥设备发送更新后的业务信息表, 以使该更新后的业务 信息表在 VLAN中扩散。
下面以图 5为例对上述过程作进一步说明。假设终端 508为虚拟终端, 并 且, 虚拟终端 508同时支持两种业务: servicel 和 service2 ( service2所属的虚 拟局域网没有在图中示出)。 终端 509仅仅支持一种业务 service 1。 虚拟终端 508迁移前, RB503上存储的业务信息表为 (servicel : ToR3 , VID314 )。 当 虚拟终端 508从 Rack505迁移到 Rack507时, Rack507中的桥路由设备 RB503 收到物理服务器(图中未示出)发送的迁移通知, 该迁移通知中携带虚拟终端 508的标识。 RB503收到该迁移通知后,根据其中携带的虚拟终端 508的标识, 查询到虚拟终端 508支持业务 servicel和 service2 (这种查询可以通过信息服 务器或者其他能够提供业务信息的设备进行, 图中未示出)。 RB503查询存储 的业务信息表, 发现已经为 servicel分配了本地 VID, 因此不需要为 servicel 重新分配本地 VID。 此外, RB503原来的业务信息表中没有 service2的信息, 因此 service2属于 Rack507下的新业务, 需要为 service2分配一个在 Rack507 中使用的本地 VID, 假设为 VID2048。 这样, RB503 中的业务信息表更新后 包括了两个表项( servicel : ToR3 , VID314 )和( service2: ToR3 , VID2048 )。 然后, RB503通过链路状态包向相邻的 RB502发送更新后的业务信息表, 以 使该更新后的业务信息表在网络中扩散 ,在各 RB上进行业务信息表的更新。 从以上内容可以看出, 图 4所示实施例是主要体现了 RB在转发数据报文 时的操作, 图 6所示实施例主要体现了 RB在更新业务信息表时的操作, 对于 RB来说, 转发数据报文和更新业务信息表往往是同时进行或者交叉进行的。 所以,图 4所示实施例和图 6所示实施例中的各步骤可以任意组合成新的方案, 并不受执行顺序的限制。
在虚拟终端发生迁移后进行的发送数据报文转换 VID的过程, 以及进行 TRILL的源地址学习的过程同前述实施例所描述的内容, 此处不再赘述。
本发明实施例中, 当用户租用的虚拟终端发生迁移时, 该虚拟终端将要迁 入的 RB为该虚拟终端支持的新业务分配新的本地 VID,更新本地的业务信息 表, 并将更新后的业务信息表在整个网络内扩散, 实现了全网业务信息表的实 时更新, 减少了人工配置的工作量。
下面介绍本发明实施例提供的实现虚拟局域网标识转换的装置,用于实现 本发明上述各方法实施例, 请参阅图 7, 本发明实施例中的实现虚拟局域网标 识转换的装置的一个实施例包括:
获取单元 701 , 用于获取各 RB发送的业务信息表(参考步骤 401 ), 还用 于在接收到转发的源终端发送的数据报文后,根据该数据报文中的入口 RB标 识以及所述数据报文中的 VID,在查询所存储的业务信息表后,获取该数据报 文所属业务的本地 VID, 以及在转发源终端发送的数据报文后, 获取发送该数 据报文的源终端的介质访问控制地址、 该数据报文所属业务的本地 VID 以及 入口 RB的业务信息表;
存储单元 702, 用于存储获取单元 701获取的各 RB发送的业务信息表, 以及存储发送该数据报文的源终端的介质访问控制地址、该数据报文所属业务 的本地 VID以及入口 RB的业务信息表;
接收器 703 ,用于接收相邻 RB转发的 TRILL封装的源终端发送的数据报 文(步骤 403 ), 以及接收虚拟终端迁往的物理服务器发送的迁移通知(步骤 602 );
查询单元 704, 用于根据该数据报文中携带的入口 RB标识以及内层数据 报文中包含的 VID信息, 查询存储单元 702所存储的业务信息表(步骤 403 ), 还用于根据迁移的虚拟终端的标识查询所迁移的虚拟终端所支持的全部业务 的信息 (步骤 603 );
转换单元 705, 用于根据查询单元 704在业务信息表中的查询结果, 将数 据报文中携带的 VID转换成本地 VID (步骤 403 );
发送器 706,用于将转换单元 705转换 VID后的数据报文向目的终端发送 (步骤 404 ),还用于将出口 RB自身的业务信息表通过链路状态包发送给相邻 RB (步骤 401 ) , 以及, 将虚拟终端迁移之后更新后的业务信息表通过链路状 态包发送给相邻 RB (步骤 604 )。
需要说明的是, 该装置还可以进一步包括:
确定单元 707, 用于当接收到虚拟终端迁移目的地的物理服务器发送的迁 移通知后,根据迁移通知中携带的将要迁移的虚拟终端的标识信息,确定虚拟 终端迁移后各业务对应的本地 VID (步骤 603 );
判断单元 708, 用于根据查询单元 704所查询到的业务的信息以及存储的 业务信息表, 逐一判断是否已经为该虚拟终端所支持的业务分配了本地 VID (步骤 603 );
选取单元 709, 用于当判断单元 708确定该虚拟终端支持的业务为新业务 时,在数据库中选取未使用的 VID作为该新业务对应的本地 VID (步骤 603 ); 更新单元 710, 用于根据所迁移的虚拟终端所支持的各业务对应的本地 VID, 更新业务信息表(步骤 603 )。
本发明实施例的装置根据实现的功能不同,可以包括上述各单元中的不同 组合, 不应将上述单元全部作为本装置实施例的必要技术特征。
本发明实施例中的装置能够动态获取并存储各个路由桥设备的业务信息 表, 在接收到自身为出口 RB的数据报文后, 根据该数据报文中的入口 RB和 内层报文的 VID信息查询所存储的业务信息表来获得需要转换的本地 VID信 息, 并能够在发生虚拟机迁移时实现全网业务信息表的实时更新,避免了每个 业务使用全局唯一 VID造成的 VID短缺的问题, 以及人工配置本地 VID弓 I起 的配置工作量巨大和配置滞后的问题。
需要说明的是,本发明所提供的技术方案也适用于在网络中多播及广播数 据报文, 步骤大致相同, 此处不再赘述。
本领域技术人员可以理解实现上述实施例方法中的全部或部分步骤是可 以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存 储介质中, 上述提到的存储介质可以是只读存储器, 磁盘或光盘等。
以上对本发明所提供的一种实现虚拟局域网标识转换的方法及装置进行 了详细介绍, 对于本领域的技术人员, 依据本发明实施例的思想, 在具体实施 方式及应用范围上均会有改变之处, 综上所述, 本说明书内容不应理解为对本 发明的限制。

Claims

o WO 2011/113393 PCT/CN2011/073381 - 13- 权 利 要 求
1、 一种实现虚拟局域网标识转换的方法, 其特征在于, 包括:
获取并存储各路由桥设备 RB发送的业务信息表,所述业务信息表包含各 RB支持的业务, 各 RB的标识以及各 RB所支持的业务的本地虚拟局域网标 识 VID的对应关系;
接收相邻 RB转发的 TRILL封装的源终端发送的数据报文;
查询所存储的所述业务信息表, 将所述数据报文中的 VID 转换成本地
VID;
向目的终端发送所述转换 VID后的数据报文。
2、 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括: 将出口 RB 自身的业务信息表通过链路状态包发送给相邻 RB, 所述业务 信息表包含出口 RB自身支持的业务, 出口 RB自身的标识以及出口 RB自身 的本地 VID的对应关系。
3、 根据权利要求 1所述的方法, 其特征在于, 所述查询所存储的所述业 务信息表, 将所述数据报文中的 VID转换成本地 VID包括:
根据所述数据报文中的入口 RB标识以及所述数据报文中的 VID,查询所 存储的所述业务信息表, 获取所述数据报文所属业务的本地 VID;
将所述数据报文中的 VID转换成所述本地 VID。
4、根据权利要求 1至 3任一项所述的方法,其特征在于,所述将转换 VID 后的数据报文向目的终端发送之后包括:
获取并存储所述源终端的介质访问控制地址、所述数据报文所属业务的本 地 VID以及入口 RB的业务信息表。
5、 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括: 当接收到虚拟终端迁移目的地的物理服务器发送的迁移通知后,根据所述 迁移通知中携带的所迁移虚拟终端的标识,确定所述虚拟终端所支持的各业务 对应的本地 VID。
6、 根据权利要求 5所述的方法, 其特征在于, 所述根据所述迁移通知中 携带的所迁移的虚拟终端的标识,确定所述虚拟终端所支持的各业务对应的本 地 VID包括: o
WO 2011/113393 PCT/CN2011/073381
- 14- 根据所述虚拟终端的标识查询所述虚拟终端支持的所有业务信息; 根据所查询到的业务信息,判断是否已经为所述虚拟终端所支持的所有业 务分配了本地 VID, 对于未分配本地 VID的新业务, 在数据库中选取未使用 的 VID作为所述新业务对应的本地 VID。
7、 根据权利要求 5所述的方法, 其特征在于, 所述确定所述虚拟终端所 支持的各业务对应的本地 VID之后包括:
根据所述虚拟终端所支持的各业务对应的本地 VID更新业务信息表, 将 更新后的业务信息表通过链路状态包发送给相邻 RB。
8、 一种实现虚拟局域网标识转换的装置, 其特征在于, 包括:
获取单元, 用于获取各 RB发送的业务信息表;
存储单元, 用于存储所述获取单元获取的各 RB发送的业务信息表; 接收器, 用于接收相邻 RB转发的 TRILL封装的源终端发送的数据报文; 查询单元, 用于查询所述存储单元所存储的业务信息表;
转换单元,用于根据所述查询单元在业务信息表中的查询结果,将所述数 据报文中携带的 VID转换成本地 VID;
发送器, 用于向目的终端发送所述转换 VID后的数据报文。
9、 根据权利要求 8所述的装置, 其特征在于,
所述发送器,还用于将出口 RB自身的业务信息表通过链路状态包发送给 相邻 RB , 以及当根据迁移的虚拟终端所支持的各业务对应的本地 VID更新业 务信息表后, 将更新后的业务信息表通过链路状态包发送给相邻 RB。
10、 根据权利要求 8或 9所述的装置, 其特征在于,
所述获取单元,还用于根据所述数据报文中的入口 RB标识以及所述数据 报文中的 VID, 由所述查询单元查询所存储的所述业务信息表后, 获取所述数 据报文所属业务的本地 VID, 以及在转发源终端发送的数据报文后,获取源终 端的介质访问控制地址、所述数据报文所属业务 VID以及入口 RB的业务信息 表信息;
所述存储单元,还用于存储所述获取单元获取的所述源终端的介质访问控 制地址、 所述数据报文所属业务的本地 VID以及入口 RB的业务信息表信息; 所述查询单元,还用于根据所述数据报文中的入口 RB标识以及所述数据 o
WO 2011/113393 PCT/CN2011/073381
- 15- 报文中的 VID, 查询所存储的所述业务信息表, 以及, 根据迁移的虚拟终端的 标识信息查询所述虚拟终端支持的所有业务信息。
11、 根据权利要求 8所述的装置, 其特征在于, 所述装置还包括: 确定单元,用于当接收到虚拟终端迁移目的地的物理服务器发送的迁移通 知后, 则根据所述迁移通知中携带的所迁移虚拟终端的标识,确定所述虚拟终 端所支持的各业务对应的本地 VID。
12、 根据权利要求 11所述的装置, 其特征在于, 所述装置还包括: 判断单元,用于根据所查询到的业务信息, 判断是否已经为所述虚拟终端 所支持的所有业务分配了本地 VID;
选取单元, 用于对于未分配本地 VID的新业务, 在数据库中选取未使用 的 VID作为所述新业务对应的本地 VID;
更新单元,用于根据所述虚拟终端所支持的各业务对应的本地 VID, 更新 业务信息表。
PCT/CN2011/073381 2011-04-27 2011-04-27 一种实现虚拟局域网标识转换的方法及装置 WO2011113393A2 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
PCT/CN2011/073381 WO2011113393A2 (zh) 2011-04-27 2011-04-27 一种实现虚拟局域网标识转换的方法及装置
CN201180000286.8A CN102577257B (zh) 2011-04-27 2011-04-27 一种实现虚拟局域网标识转换的方法及装置
EP11755710.8A EP2654250A4 (en) 2011-04-27 2011-04-27 METHOD AND APPARATUS FOR VIRTUAL LOCAL NETWORK IDENTITY TRANSFORMATION
US14/013,855 US20130343394A1 (en) 2011-04-27 2013-08-29 Method and Apparatus for Converting Virtual Local Area Network Identity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/073381 WO2011113393A2 (zh) 2011-04-27 2011-04-27 一种实现虚拟局域网标识转换的方法及装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/013,855 Continuation US20130343394A1 (en) 2011-04-27 2013-08-29 Method and Apparatus for Converting Virtual Local Area Network Identity

Publications (2)

Publication Number Publication Date
WO2011113393A2 true WO2011113393A2 (zh) 2011-09-22
WO2011113393A3 WO2011113393A3 (zh) 2012-04-05

Family

ID=44649657

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/073381 WO2011113393A2 (zh) 2011-04-27 2011-04-27 一种实现虚拟局域网标识转换的方法及装置

Country Status (4)

Country Link
US (1) US20130343394A1 (zh)
EP (1) EP2654250A4 (zh)
CN (1) CN102577257B (zh)
WO (1) WO2011113393A2 (zh)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102801599A (zh) * 2012-07-26 2012-11-28 华为技术有限公司 一种通信方法和系统
CN103368808A (zh) * 2012-04-04 2013-10-23 马维尔以色列(M.I.S.L.)有限公司 透明路由桥
US20140071987A1 (en) * 2012-09-07 2014-03-13 Dell Products L.P. Systems and methods providing reverse path forwarding compliance for a multihoming virtual routing bridge
CN105591913A (zh) * 2015-11-04 2016-05-18 杭州华三通信技术有限公司 Trill网络中的报文转发方法和装置
CN107977255A (zh) * 2012-11-27 2018-05-01 瑞典爱立信有限公司 用于在启用openflow的云计算中使用mpls时分离租户特定数据的装置和方法

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780486B (zh) * 2012-10-26 2017-03-08 杭州华三通信技术有限公司 一种trill网络中的镜像报文传输方法和设备
CN104301226B (zh) * 2013-07-16 2017-11-10 新华三技术有限公司 一种指定路由桥选举方法、设备和系统
CN103701679B (zh) * 2013-12-16 2017-10-13 上海斐讯数据通信技术有限公司 一种实现vlan转换的方法
TWI539776B (zh) * 2014-01-23 2016-06-21 宏碁股份有限公司 資料中心伺服器資源的動態規劃方法
CN105187311B (zh) * 2015-06-09 2018-11-27 新华三技术有限公司 一种报文转发方法及装置
CN106612211B (zh) * 2015-10-23 2020-02-21 华为技术有限公司 VxLAN中的路径探测方法,控制器和网络设备
CN105591874B (zh) * 2015-12-22 2020-10-13 新华三技术有限公司 一种数据发送方法及装置
US9860160B2 (en) * 2015-12-30 2018-01-02 Stmicroelectronics, Inc. Multipath switching using per-hop virtual local area network classification
WO2018103043A1 (zh) * 2016-12-08 2018-06-14 华为技术有限公司 云计算系统中的报文处理方法及设备
JP7003539B2 (ja) * 2017-09-28 2022-01-20 京セラドキュメントソリューションズ株式会社 アドホックネットワーク経路構築システム、ノード、センターノード及びアドホックネットワーク経路構築方法

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030152075A1 (en) * 2002-02-14 2003-08-14 Hawthorne Austin J. Virtual local area network identifier translation in a packet-based network
US7672314B2 (en) * 2004-07-09 2010-03-02 Cisco Technology, Inc. Scaling VLANs in a data network
CN101047583B (zh) * 2006-03-31 2011-12-14 株式会社日立制作所 支持虚拟局域网服务的无源光网络系统及相应方法
US7787480B1 (en) * 2009-03-04 2010-08-31 Juniper Networks, Inc. Routing frames in a trill network using service VLAN identifiers
US8665886B2 (en) * 2009-03-26 2014-03-04 Brocade Communications Systems, Inc. Redundant host connection in a routed network
US8064458B2 (en) * 2009-06-23 2011-11-22 Nortel Networks Limited Method and apparatus for simulating IP multinetting

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
None

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103368808A (zh) * 2012-04-04 2013-10-23 马维尔以色列(M.I.S.L.)有限公司 透明路由桥
CN103368808B (zh) * 2012-04-04 2019-03-22 马维尔以色列(M.I.S.L.)有限公司 用于在网络中传输分组的装置、系统和方法
CN102801599A (zh) * 2012-07-26 2012-11-28 华为技术有限公司 一种通信方法和系统
EP2866390A4 (en) * 2012-07-26 2015-07-01 Huawei Tech Co Ltd COMMUNICATION METHOD AND SYSTEM
KR101623416B1 (ko) * 2012-07-26 2016-05-23 후아웨이 테크놀러지 컴퍼니 리미티드 통신 방법 및 시스템
US20140071987A1 (en) * 2012-09-07 2014-03-13 Dell Products L.P. Systems and methods providing reverse path forwarding compliance for a multihoming virtual routing bridge
US9083645B2 (en) * 2012-09-07 2015-07-14 Dell Products L.P. Systems and methods providing reverse path forwarding compliance for a multihoming virtual routing bridge
CN107977255A (zh) * 2012-11-27 2018-05-01 瑞典爱立信有限公司 用于在启用openflow的云计算中使用mpls时分离租户特定数据的装置和方法
CN105591913A (zh) * 2015-11-04 2016-05-18 杭州华三通信技术有限公司 Trill网络中的报文转发方法和装置
CN105591913B (zh) * 2015-11-04 2018-10-12 新华三技术有限公司 Trill网络中的报文转发方法和装置

Also Published As

Publication number Publication date
CN102577257A (zh) 2012-07-11
EP2654250A4 (en) 2014-02-19
CN102577257B (zh) 2014-02-19
US20130343394A1 (en) 2013-12-26
WO2011113393A3 (zh) 2012-04-05
EP2654250A2 (en) 2013-10-23

Similar Documents

Publication Publication Date Title
WO2011113393A2 (zh) 一种实现虚拟局域网标识转换的方法及装置
US9621373B2 (en) Proxy address resolution protocol on a controller device
US10616108B2 (en) Scalable MAC address virtualization
EP2897347B1 (en) Method for transmitting addresses correspondence relationship in second-layer protocol using link status routing
US9448821B2 (en) Method and system for realizing virtual machine mobility
EP3065358B1 (en) Method and device for message forwarding
US20180026934A1 (en) Using a Virtual Internet Protocol Address to Represent Dually Connected Hosts in an Internet Protocol Overlay Network
CN103227843B (zh) 一种物理链路地址管理方法及装置
CN1822570B (zh) 在基于以太网的网络中进行的伪线路对等体地址的自动发现方法
US9504016B2 (en) Optimized multicast routing in a Clos-like network
WO2015180084A1 (zh) 一种报文转发方法和VxLAN网关
WO2011032472A1 (zh) 虚拟专用网络的实现方法及系统
WO2012142750A1 (zh) 一种地址解析的方法,装置和系统
WO2018214809A1 (zh) 消息发送方法及装置、存储介质
CN108199963B (zh) 报文转发方法和装置
WO2014176740A1 (zh) 流分类器、业务路由触发器、报文处理的方法和系统
WO2012051872A1 (zh) 一种实现二层网络的扩展方法及扩展的二层网络
WO2012119390A1 (zh) 虚拟机迁移通知方法和系统
TW201541262A (zh) 以軟體定義網路(sdn)支援虛擬機器遷移之方法
EP2584742B1 (en) Method and switch for sending packet
WO2013107245A1 (zh) 在透明多链路互联(trill)网络中实现组播的方法、装置及系统
WO2018014767A1 (zh) 一种信息确定方法、装置及存储介质
US9438475B1 (en) Supporting relay functionality with a distributed layer 3 gateway
WO2011147351A1 (zh) 生成转发表项、报文转发、地址获取的方法及边缘装置
WO2015090023A1 (zh) Vlan接入vf网络的实现方法及装置、fcf

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201180000286.8

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11755710

Country of ref document: EP

Kind code of ref document: A2

WWE Wipo information: entry into national phase

Ref document number: 2011755710

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE