CN102710529A - Message forward method and equipment based on virtual device - Google Patents

Message forward method and equipment based on virtual device Download PDF

Info

Publication number
CN102710529A
CN102710529A CN2012102123492A CN201210212349A CN102710529A CN 102710529 A CN102710529 A CN 102710529A CN 2012102123492 A CN2012102123492 A CN 2012102123492A CN 201210212349 A CN201210212349 A CN 201210212349A CN 102710529 A CN102710529 A CN 102710529A
Authority
CN
China
Prior art keywords
interface board
forwarding
table item
configuration
switch device
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN2012102123492A
Other languages
Chinese (zh)
Inventor
王明辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN2012102123492A priority Critical patent/CN102710529A/en
Publication of CN102710529A publication Critical patent/CN102710529A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention provides a message forward method and switch equipment based on a virtual device VD. The method comprises the following steps of: dividing all external ports, which belong to the same interface board, on the switch equipment to the same VD; and when a message is received through the external port of the interface board, searching a VD configuration and forward table entry matched with the VD at the external port on the interface board, and forwarding the message by using the searched VD configuration and forward table entry.

Description

Message forwarding method and equipment based on virtual unit
Technical field
The application relates to network communications technology field, particularly based on the message forwarding method and the equipment of virtual unit (VD).
Background technology
The VD technology is that a physical equipment is invented many logical device; Each logical device is called VD; Each VD is exactly the equipment of a platform independent for the user; The routing daemon of own independent operating, two layers and three layer protocols, forwarding-table item and interface are arranged, also can independently add the user, independently restart and read oneself configuration file, other VD is not exerted an influence.
For the physical equipment of supporting the VD technology, this whole physical equipment essence is exactly a VD, is called default VD, such as the Device among Fig. 1.When the user logins this physical equipment, actual log be exactly default VD.This default VD is called management VD, is defaulted as VD1 usually.Default VD need not be created, and can not be deleted.With the default VD of the corresponding right and wrong of default VD, Device A to the Device C among Fig. 1 is non-default VD.
Physical equipment will be supported the VD technology; Just need same veneer of this physical equipment that the configuration distributing of a plurality of VD can be arranged simultaneously; And can come into force simultaneously, so that the message that gets into from different ports is handled according to configuration and forwarding-table item that port place VD goes to mate this VD.If this physical equipment is a routing device, it can be configured in through the difference of each VD of software mode flexible allocation on the same veneer and coexist, and does not have conflict.
Yet, for the overwhelming majority's switch device, because it is restricted by chip; If the configuration of a plurality of VD is arranged on same veneer simultaneously; Can cause configuration such as the L2_entry of different VD, Fib etc. conflict, and can not accomplish that afoul VD configuration issues simultaneously, matees respectively.So switch device is normally divided the VD port according to chip; Divide by chip through limiting the VD port; Stipulate that all outside ports of same chip only belong to a VD; This VD is called effective VD of this chip, on this chip, only issues configuration and forwarding-table item with this effective VD, has solved the possible collision problem of different VD configurations.
But if move a plurality of VD, just need this veneer to comprise corresponding polylith chip on the veneer, each VD needs corresponding configuration and forwarding-table item, and each chip also needs the data of correspondence, is very large for the demand of internal memory;
Also have; Generally; The overall list item (like Fib, arp etc.) that each chip is provided with on veneer is identical; Driving only needs to safeguard that a sets of data structure is just passable; Yet, if divide the VD port, because the corresponding different VD of different chip by chip; This just needs multidimensional to protect a few sets of data structures, has bigger workload.
Summary of the invention
The application provides based on the message forwarding method of virtual unit and equipment, to avoid because according to the chip division problems that VD was brought.
The technical scheme that the application provides comprises:
A kind of message forwarding method based on virtual unit VD, this method is applied to switch device, comprising:
All outside ports that belong to same interface board on the said switch device are divided to same VD;
When an interface board receives message through outside port, on this interface board, search the VD configuration and the forwarding-table item that mate with the residing VD of this outside port, utilize the VD configuration and the forwarding-table item that find to transmit said message.
A kind of switch device of transmitting based on virtual unit VD message, said switch device comprises: a plurality of interface boards, all outside ports on the same interface board are divided to same VD;
When each interface board receives message through the outside port on this plate, on this interface board, search the VD configuration and the forwarding-table item that mate with the residing VD of this outside port, utilize the VD configuration and the forwarding-table item that find to transmit said message.
Can find out by above technical scheme, among the present invention, limit and press interface board division VD port; Stipulate that all outside ports only belong to a VD on the same interface board, promptly an interface board has only a VD, on this interface board, only issues configuration and forwarding-table item with this VD coupling; So, just make and have only a VD corresponding configuration and forwarding-table item on the interface board that this has obviously solved EMS memory occupation than prior art; And because an interface board has only a VD, the chip on this VD and the interface board has no relation; Therefore, when the overall list item (like Fib, arp etc.) that has a plurality of chips and this each chip to be provided with on this interface board is identical, only need to safeguard that a sets of data structure is just passable; Simplify and handle, save workload, make the switch product of low and middle-end under the situation of interface board memory-limited, also can realize the VD function; Solved the demand of switch device well, expanded the application scenarios of product this characteristic.
Description of drawings
Fig. 1 uses sketch map for the VD networking;
The method flow diagram that Fig. 2 provides for the embodiment of the invention;
The switch device structure chart that Fig. 3 provides for the embodiment of the invention.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer, describe the present invention below in conjunction with accompanying drawing and specific embodiment.
Because being of limited application of VD characteristic, customer requirement neither be very high, and therefore, the present invention can provide the implementation method of a cover virtual unit from convenient, simple, effective equal angles, to avoid dividing the problem that VD was brought according to chip.Describe in the face of method provided by the invention down:
Referring to Fig. 2, the method flow diagram that Fig. 2 provides for the embodiment of the invention.This flow process is applied on the switch device shown in Figure 3.In Fig. 3, switch device comprises master control borad and a plurality of interface board.Wherein, in order to guarantee the reliability of switch device, master control borad can be subdivided into main control board and slave control board, and main control board is in running order, and slave control board is in Status of Backups, and Fig. 3 is not shown.
As shown in Figure 2, this flow process can may further comprise the steps:
Step 201 is divided to same VD with all outside ports that belong to same interface board on the switch device.
Can find out that from step 201 the present invention divides the VD port according to interface board, be specially: all outside ports that limit on the same interface board only belong to a VD, and wherein, this VD can be described as effective VD of this interface board.
That is to say that among the present invention, an interface board can only move an effective VD in a time, if promptly moved a VD, other VD just do not allow to rerun.Need to prove; The present invention just limits an interface board can only move a VD, and the VD that does not limit the operation of distinct interface plate is identical or difference, as one embodiment of the present of invention; The distinct interface plate can move same VD, also can move different VD.With switch device as shown in Figure 3; This switch device comprises: interface board 1 to interface board 7; Wherein, all outside ports belong to VD1 on interface board 1 to the interface board 3, i.e. interface board 1 to interface board 3 operation VD1; And all outside ports belong to VD2 on interface board 4 to the interface board 7, i.e. interface board 4 to interface board 7 operation VD2.Can find out, be example with interface board 1, though then interface board 1 to interface board 3 interface boards are different, the VD of operation is identical, and, interface board 1 and interface board 4 to interface board 7 arbitrary interface boards, interface board is different, and the VD of operation is also different.
In the prior art; Owing to divide VD according to chip, so, just need this veneer to comprise the corresponding chip of each VD in the time of on a veneer, will moving a plurality of VD; And because each VD needs corresponding configuration and forwarding-table item; Each chip also needs corresponding data, so, can cause memory requirements very big; And the overall list item (like Fib, arp etc.) that each chip is provided with on next piece veneer of normal conditions is identical, and driving only needs to safeguard that a sets of data structure is just passable; Yet; If divide the VD port by chip, just need multidimensional to protect a few sets of data structures, have bigger workload.
And among the present invention, limit according to interface board and divide the VD port, stipulate that all outside ports only belong to a VD on the same interface board; This VD is called effective VD, and promptly an interface board has only an effective VD, on this interface board, only issues configuration and forwarding-table item with this effective VD coupling; So, just make and have only a configuration and a forwarding-table item that effective VD is corresponding on the interface board that this has obviously solved EMS memory occupation than prior art; And because an interface board has only an effective VD, the chip on this effective VD and the interface board has no relation; Therefore, when the overall list item (like Fib, arp etc.) that has a plurality of chips and this each chip to be provided with on this interface board is identical, only need to safeguard that a sets of data structure is just passable; Simplify and handle, save workload, make the switch product of low and middle-end under the situation of interface board memory-limited, also can realize the VD function; Solved the demand of switch device well, expanded the application scenarios of product this characteristic.
Step 202 when the outside port through an interface board receives message, is searched the VD configuration and the forwarding-table item that mate with the residing VD of this outside port on this interface board, utilize the VD configuration and the forwarding-table item that find to transmit said message.
In this step 202, the configuration of VD and forwarding-table item all with prior art in the VD VD configuration and forwarding-table item structure, content class seemingly, repeat no more.
In addition, in this step 202, the method that in VD, E-Packets in method that VD configuration that utilization finds and forwarding-table item E-Packet and the prior art is similar, repeats no more.
So far, accomplish flow process shown in Figure 2.
In the present invention, the configuration of VD and forwarding-table item generate and issue by the master control borad on the switch device.Wherein, if master control borad shown in Figure 3 comprises: main with control board and subsequent use control board, then the configuration of VD and forwarding-table item be by leading with the control board realization, below all is like this.
Among the present invention, the master control borad on the switch device has stronger disposal ability and sufficient memory source as the engine plate, therefore, can move the VD of total interface plate, and the agreement of carrying out in each VD is calculated to generate VD configuration and the forwarding-table item of each VD.With switch device shown in Figure 3 is example, and then master control borad moves VD1, VD2, and calculates VD configuration and the forwarding-table item that generates VD1 by agreement, and the VD of VD2 configuration and forwarding-table item, and correspondence is issued to interface board afterwards.Such as, the VD of VD1 configuration is issued to interface board 1 to interface board 3 respectively with forwarding-table item, the VD of VD2 is disposed and forwarding-table item is issued to interface board 4 to interface board 7 respectively.
In addition, among the present invention, for the master control borad on the switch device; If this master control borad does not have outside port, then with the effective VD of default VD, wherein as this master control borad; Default VD is: for the equipment of supporting the VD technology, this whole equipment essence is exactly a VD, is called default VD.And if this master control borad has outside port, all outside ports that then limit this master control borad belong to same VD, and this VD is not above-mentioned default VD, with the effective VD of this VD as this master control borad.Wherein, effective VD of master control borad and the method that the application provides relation are little, just simple here the description.
Need to prove that among the present invention, effective VD of an interface board immobilizes, it can move, such as, effective VD of interface board 1 shown in Figure 3 migrates to VD2 from VD1, to this situation, and operation below the present invention just needs to carry out:
Deletion is the VD configuration and the forwarding-table item of VD1 coupling with migration VD before on this interface board 1 earlier; Promptly the VD before this migration is an interface board 1 of extracting this generation VD migration in the VD1; VD after increase and the migration is the VD configuration and the forwarding-table item of VD2 coupling on this interface board 1 afterwards, and promptly the VD after this migration is that the interface board that this generation of insertion VD moves in the VD2 is an interface board 1.
Wherein, with migration after VD be that VD configuration and the forwarding-table item of VD2 coupling is that VD2 generates and be issued to that the interface board that VD moves takes place is interface board 2 by master control borad through the VD after the operation migration.
Based on above-described method, the invention provides the switch device of transmitting based on virtual unit VD message.Said switch device comprises: master control borad and a plurality of interface board, and all outside ports on the same interface board are divided to same VD;
Wherein, when each interface board receives message through the outside port on this plate, on this interface board, search the VD configuration and the forwarding-table item that mate with the residing VD of this outside port, utilize the VD configuration and the forwarding-table item that find to transmit said message.
Master control borad is used for generating VD configuration and the forwarding-table item that matees with this VD to the VD of living in of all outside ports on each interface board, and is issued to this interface board.Wherein, if control board comprises: main with control board and subsequent use control board, the operation that then generates VD configuration and forwarding-table item with controlling realization, below all is like this by main.
Among the present invention; When the VD migration takes place at all outside ports of this plate in each interface board; The VD of the VD coupling before on this plate, deleting earlier and moving disposes and forwarding-table item, and the VD of the VD coupling after increase and the migration disposes and forwarding-table item on this interface board afterwards.
Wherein, the VD configuration of the VD coupling after said and the migration and forwarding-table item are generated and are issued to the interface board that VD moves takes place through moving VD after the said migration by said master control borad.
The structure of above-mentioned switch device can be as shown in Figure 3.
Can find out by above technical scheme, among the present invention, limit and press interface board division VD port; Stipulate that all outside ports only belong to a VD on the same interface board, promptly an interface board has only a VD, on this interface board, only issues configuration and forwarding-table item with this VD coupling; So, just make and have only a VD corresponding configuration and forwarding-table item on the interface board that this has obviously solved EMS memory occupation than prior art; And because an interface board has only a VD, the chip on this VD and the interface board has no relation; Therefore, when the overall list item (like Fib, arp etc.) that has a plurality of chips and this each chip to be provided with on this interface board is identical, only need to safeguard that a sets of data structure is just passable; Simplify and handle, save workload, make the switch product of low and middle-end under the situation of interface board memory-limited, also can realize the VD function; Solved the demand of switch device well, expanded the application scenarios of product this characteristic.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being made, is equal to replacement, improvement etc., all should be included within the scope that the present invention protects.

Claims (8)

1. message forwarding method based on virtual unit VD, this method is applied to switch device; It is characterized in that said method comprises:
All outside ports that belong to same interface board on the said switch device are divided to same VD;
When an interface board receives message through its outside port, on this interface board, search the VD configuration and the forwarding-table item that mate with this outside port VD of living in, utilize the VD configuration and the forwarding-table item that find to transmit said message.
2. method according to claim 1 is characterized in that, the master control borad on the said switch device generates VD configuration and the forwarding-table item that matees with this VD to the residing VD of all outside ports on each interface board, and is issued to this interface board.
3. method according to claim 1 and 2 is characterized in that, if the VD migration takes place all outside ports on the interface board, then this method further comprises:
The VD of the VD coupling before on this interface board, deleting earlier and moving disposes and forwarding-table item, and the VD of the VD coupling after increase and the migration disposes and forwarding-table item on this interface board afterwards.
4. based on the described method of claim 3, it is characterized in that VD configuration and forwarding-table item said and that migration VD afterwards mates generate and be issued to the interface board that generation VD moves by said master control borad through moving said migration VD afterwards.
5. switch device of transmitting based on virtual unit VD message; It is characterized in that said switch device comprises: a plurality of interface boards, all outside ports on the same interface board are divided to same VD;
When each interface board receives message through the outside port on this plate, on this interface board, search the VD configuration and the forwarding-table item that mate with the residing VD of this outside port, utilize the VD configuration and the forwarding-table item that find to transmit said message.
6. switch device according to claim 5 is characterized in that said switch device also comprises: master control borad;
Said master control borad is used for generating VD configuration and the forwarding-table item that matees with this VD to the VD of living in of all outside ports on each interface board, and is issued to this interface board.
7. according to claim 5 or 6 described switch devices; It is characterized in that; When the VD migration takes place at all outside ports of this plate in each interface board; The VD of the VD coupling before on this plate, deleting earlier and moving disposes and forwarding-table item, and the VD of the VD coupling after increase and the migration disposes and forwarding-table item on this interface board afterwards.
8. based on the described switch device of claim 7, it is characterized in that VD configuration and forwarding-table item said and that migration VD afterwards mates generate and be issued to the interface board that generation VD moves by said master control borad through moving said migration VD afterwards.
CN2012102123492A 2012-06-21 2012-06-21 Message forward method and equipment based on virtual device Pending CN102710529A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012102123492A CN102710529A (en) 2012-06-21 2012-06-21 Message forward method and equipment based on virtual device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012102123492A CN102710529A (en) 2012-06-21 2012-06-21 Message forward method and equipment based on virtual device

Publications (1)

Publication Number Publication Date
CN102710529A true CN102710529A (en) 2012-10-03

Family

ID=46903098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012102123492A Pending CN102710529A (en) 2012-06-21 2012-06-21 Message forward method and equipment based on virtual device

Country Status (1)

Country Link
CN (1) CN102710529A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103684965A (en) * 2013-12-06 2014-03-26 杭州华三通信技术有限公司 Exchanging device allocated based on VDs and message transmitting method allocated based on VDs
CN103973560A (en) * 2013-02-04 2014-08-06 杭州华三通信技术有限公司 Device and method for fault treatment of stack links in IRF (intelligent resilient framework) system
WO2015149343A1 (en) * 2014-04-04 2015-10-08 华为技术有限公司 In-network message processing method, in-network message forwarding equipment and in-network message processing system
CN107547364A (en) * 2017-08-15 2018-01-05 新华三技术有限公司 Route sending-down method, device and the network equipment
CN109768909A (en) * 2019-03-26 2019-05-17 杭州迪普科技股份有限公司 Message forwarding method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075400A (en) * 2011-03-04 2011-05-25 上海市信息网络有限公司 Rapid ring protection protocol (RRPP) ring network topology transmission system and transmission method
CN102469021A (en) * 2010-11-18 2012-05-23 杭州华三通信技术有限公司 Method of transmitting business flow and member equipment in intelligent resilience frame system
CN102480410A (en) * 2010-11-22 2012-05-30 杭州华三通信技术有限公司 Single board for centralized business processing and virtualized resource dividing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102469021A (en) * 2010-11-18 2012-05-23 杭州华三通信技术有限公司 Method of transmitting business flow and member equipment in intelligent resilience frame system
CN102480410A (en) * 2010-11-22 2012-05-30 杭州华三通信技术有限公司 Single board for centralized business processing and virtualized resource dividing method
CN102075400A (en) * 2011-03-04 2011-05-25 上海市信息网络有限公司 Rapid ring protection protocol (RRPP) ring network topology transmission system and transmission method

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973560A (en) * 2013-02-04 2014-08-06 杭州华三通信技术有限公司 Device and method for fault treatment of stack links in IRF (intelligent resilient framework) system
CN103973560B (en) * 2013-02-04 2018-01-12 新华三技术有限公司 A kind of method and apparatus that link failure processing is stacked in IRF systems
CN103684965A (en) * 2013-12-06 2014-03-26 杭州华三通信技术有限公司 Exchanging device allocated based on VDs and message transmitting method allocated based on VDs
CN103684965B (en) * 2013-12-06 2017-07-14 新华三技术有限公司 The switching equipment and message forwarding method configured based on virtual unit
WO2015149343A1 (en) * 2014-04-04 2015-10-08 华为技术有限公司 In-network message processing method, in-network message forwarding equipment and in-network message processing system
CN105379206A (en) * 2014-04-04 2016-03-02 华为技术有限公司 In-network message processing method, in-network message forwarding equipment and in-network message processing system
CN105379206B (en) * 2014-04-04 2019-03-01 华为技术有限公司 Message processing method, forwarding device and message handling system in network
CN107547364A (en) * 2017-08-15 2018-01-05 新华三技术有限公司 Route sending-down method, device and the network equipment
CN109768909A (en) * 2019-03-26 2019-05-17 杭州迪普科技股份有限公司 Message forwarding method and device
CN109768909B (en) * 2019-03-26 2021-04-27 杭州迪普科技股份有限公司 Message forwarding method and device

Similar Documents

Publication Publication Date Title
US11042311B2 (en) Cluster system with calculation and storage converged
US20180239726A1 (en) Data transmission method, device, and system
US8769040B2 (en) Service providing system, a virtual machine server, a service providing method, and a program thereof
CN103444138B (en) communication control system, switching node and communication control method
US7970852B2 (en) Method for moving operating systems between computer electronic complexes without loss of service
CN101980490B (en) Link establishment method for virtual switch and physical switch and device thereof
JP2019503596A5 (en)
US20140075439A1 (en) Virtualization management method and related apparatuses for managing hardware resources of a communication device
Yu et al. Migration based protection for virtual infrastructure survivability for link failure
CN103353861B (en) Realize method and the device of distributed I/O resource pool
WO2016065643A1 (en) Network card configuration method and resource management center
CN102710529A (en) Message forward method and equipment based on virtual device
US9858096B2 (en) Communication device migration method of extension function and communication system
US9928206B2 (en) Dedicated LAN interface per IPMI instance on a multiple baseboard management controller (BMC) system with single physical network interface
KR20150036597A (en) Method and apparatus for determining virtual machine drifting
CN110224917B (en) Data transmission method, device and system and server
CN102857414A (en) Forwarding table writing method and device and message forwarding method and device
CN110546620A (en) Data processing method, storage system and switching equipment
CN103729234A (en) Method and device for clustering management of virtual machines
JP2016116184A (en) Network monitoring device and virtual network management method
US10089267B2 (en) Low latency efficient sharing of resources in multi-server ecosystems
CN114650223B (en) Network configuration method and device of Kubernetes cluster and electronic equipment
US9729470B2 (en) Method, apparatus, and system for implementing node port virtualization on fibre channel
JP5610227B2 (en) Computer and identifier management method
US9052839B2 (en) Virtual storage apparatus providing a plurality of real storage apparatuses

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20121003