CN101483662A - Packet forwarding apparatus and method for virtual storage network switch - Google Patents

Packet forwarding apparatus and method for virtual storage network switch Download PDF

Info

Publication number
CN101483662A
CN101483662A CN 200810001359 CN200810001359A CN101483662A CN 101483662 A CN101483662 A CN 101483662A CN 200810001359 CN200810001359 CN 200810001359 CN 200810001359 A CN200810001359 A CN 200810001359A CN 101483662 A CN101483662 A CN 101483662A
Authority
CN
China
Prior art keywords
package
line
data
network switch
iscsi
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.)
Granted
Application number
CN 200810001359
Other languages
Chinese (zh)
Other versions
CN101483662B (en
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.)
Industrial Technology Research Institute ITRI
Original Assignee
Industrial Technology Research Institute ITRI
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 Industrial Technology Research Institute ITRI filed Critical Industrial Technology Research Institute ITRI
Priority to CN 200810001359 priority Critical patent/CN101483662B/en
Publication of CN101483662A publication Critical patent/CN101483662A/en
Application granted granted Critical
Publication of CN101483662B publication Critical patent/CN101483662B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a virtualization storage network switch packaging and transmitting device and a method thereof. The invention can be applied in a switch environment established by Internet small computer system interface (iSCSI) connecting lines. The packing and transmitting device comprises a header retriever, a distributor, and a transmitting unit. When system authentication of the iSCSI conference connecting lines is completed, the header extractor receives at least one package on the iSCSI connecting lines and retrieves the header data of the at least one package; the distributor determines the flow direction of the received package; the transmitting unit performs direct package transmitting actions between the front end and the back end of the established connecting line and the actions comprises an action of converting the virtual address received by the distributor into a real address and an action of establishing a corresponding relationship between an client interface and a storage interface and transmitting load data entrained in the connecting lines.

Description

The packet forwarding apparatus of virtual storage network switch and method
Technical field
The invention relates to packet forwarding apparatus and the method for a kind of virtual storage network switch (virtualization switch), (InternetSmall Computer System Interface is iSCSI) in interchanger (switch) environment that line is set up to can be applicable to world-wide web slim calculator system interface.
Background technology
The networking of storage device is one of trend of world-wide web development, and the iSCSI host-host protocol is a new network storing technology standard of rising.(Storage Area Network is to refer in particular to the network that links storage facilities and server SAN), is with network series connection storage facilities to store LAN.Compared to Redundant Array of Independent Disks (RAID) (Redundant Array ofIndependent Disks, RAID) and slim calculator system interface (Small Computer System Interface, the technology that server and storage facilities are directly linked such as SCSI), the network storing technology is except having high speed transmission abilities, also can not limit the expansion and the backup of storage facilities because of server itself, so extendibility and reliability are good.
Because high frequency range demand, fiber channel (fiber channel) are storage network connecting technologies commonly used at present.The storage network technology of another new rise is exactly a host-host protocol of just having finished the iSCSI of standard formulation.The main function of iSCSI host-host protocol is order and the data with SCSI, and (Protocal Data Unit PDU) transmits on IP network the protocol Data Unit by iSCSI, by the iSCSI agreement, makes IP network also can become storage network.For client, only need to change its server and storage facilities into the iSCSI interface as storage network with IP network, use the switching equipment of original IP network, just can build and put out storage network.
Fig. 1 is a general enforcement example schematic of iSCSI virtual storage network.As shown in Figure 1, client 102 is installed the driver (driver) and virtual server (virtualization server) 101 bindings that iSCSI opens the beginning (initiator) 110.Store end 103 driver and virtual server 101 bindings of iscsi target (target) 120 are installed.Virtual server 101 opens the driver of beginning and target except installation iSCSI, adds virtualization software layer 140.
Based on the setting of this virtualization software layer 140, observe the variation of iSCSI package field with the angle of iSCSI packaging data-flow.Iscsi target (target) 120 by interchanger in the virtual server 103 receives the iSCSI package and unties this package at the beginning, pass to SCSI layer 130 and come reading order, call out the true access site of virtualization software layer 140 conversions, produce SCSI access command form, at last scsi command is packaged into the iSCSI package and sends out.In this a series of transfer process, iSCSI is by the package form of initial input (input), remove gauge outfit (header) part, the scsi command (CDB) of acquisition load capacity (payload), access SCSI layer, find the actual access of data (access) position through virtualization software layer mapping (mapping), produce scsi command again, add iSCSI header at last and transmit.
Export the iSCSI package of (output) to the end from the iSCSI package of input (input), in appearance, the both is the iSCSI package of same agreement, but observe from virtual interchanger (virtualization switch) is inner, but need software assistance, just can finish this virtual network and store based on iSCSI line framework through multilayer.The iSCSI package that finally will send also repeats through the action of unnecessary data-moving, comprises disassembling at the beginning, gets back to actions such as generation at last again.
In existing technology, use the iSCSI agreement can reduce following a few class as the virtual network storing technology of connection mode.
The first kind as shown in Figure 2, with iSCSI interchanger 201 and iSCSI user's main frame (host) end 202 relations, the agency mechanism (agent) of management storage configuration, be dispersed in outside the data path (datapath), the data of transmission can directly arrive on the network storage devices 203 without the interchanger of storage server.Data just are sent on the storage device 203 after leaving user's end, do not have unnecessary protocol processes and data to duplicate on the data path at once.Yet, with the storage device end iSCSI agency mechanism (agent) need be installed at user's end, shown in label 210 and 220, come and storage server exchange access information.
For example, U.S. Pat 6,845 in 403 the document, is divided into control category and data category with the access package of iSCSI agreement.The package of control category is sent on the access management server by user's end, server then transmits this and orders true storage device, data category then directly transmits data by the iSCSI line that user's end and true storage device end are set up in advance, so can reach the most direct data transfer path.But the user holds and special iSCSI driver must be installed could interaction on the function be arranged with management server, and increases progressively when storage device quantity, also will and then increase progressively at the iSCSI line of user's end with storage device.
Second class as shown in Figure 3, user's host side 302 and store the end 303 the same iSCSI agency mechanisms that need shown in label 320 and 310, is assisted, data transfer data to storage by switch router (switchrouter) 301 and hold (storage).Router is with IP layer 311 lookup table mode simply fast, and the determination data package is sent in the storage end 303 of setting.So data path has only the conversion of IP position, yet the user holds to be needed iSCSI agency mechanism 320 is installed, and access information is also difficult synchronously.
For example, U.S. Pat 6,934, in 799 the document, user's end sends simultaneously at scsi command, searches and holds distinctive virtual IP address correspondence table the user, finds out IP and TCP position that the iSCSI package transmits, this package is sent to and transforms gateway (virtualizationgateway), package is sent on the real network access position again.The load of access (loading) is dispersed on user's end and the true access site, and each package on the retention data path transmits, and has only simple IP position to replace.So, when changing the entity storage device, it is corresponding with entity IP only to need to go up the change virtual IP address at data gateway (virtualization gateway), and the package that transmits only needs to change the field of IP and TCP position on data path, data packet is without any unnecessary replication actions.
Yet user's end need be made an access control module set in fact on iSCSI driver upper strata, could add the virtual access system of gateway.Processing ease between the virtual and true hard disk of gateway management, but each user holds the modification process complexity of block scope (block range) and virtual TCP field corresponding relation on the access list, difficultly reaches unified management.
The 3rd class as shown in Figure 4, iSCSI interchanger 401 between the user hold 402 with the data road of true storage device 403 through among, finish the design that virtual network stores in independently working (stand alone) mode, the user holds installation iSCSI driver (driver) just can pass through interchanger 401 access datas.The user hold 402 need to have that general iSCSI opens beginning person (Initiator) but 410 just the networks that provide of access interchanger 401 store.Yet data packet needs protocol processes and data replication actions through multilayer at interchanger 401 transmittance processs, therefore can reduce access usefulness.
For example, in the document of U.S. Patent Publication No. US 2005/0114464, use general iSCSI agreement to add that virtualization software layer reaches virtual storage network.Between virtual location access that receives and true storage device, find out the corresponding relation of virtual and actual access, do the optimization of data path, and can link user's end and two different host-host protocols of storage network end, reach protocol conversion.Yet, in the process of protocol conversion, the buffering of transmitting data is not disclosed the particular processing mode.Can increase unnecessary data replication actions in general data buffering mode, reduce access usefulness.
Existing technology realizes virtual mainly contain (in-band) and outer (out-of-band) dual mode of frequency band in the frequency band.In the out-of-band mode, virtual unit is to be seated outside the data path, and dynamical data transfer path between client and the access device can be provided.Yet after the configuration of change access device, the renewal and the communication meeting between the user of virtual unit are more time-consuming, and client also need install the software interface of linking up with virtual bench, but relatively do not meet the convenience to the storage device direct access.In the in-band mode, virtual unit is placed among the data access path of user and storage device, though after the storage device group earthquake, more convenient in the management, and can provide the convenience of client to the storage device direct access, yet client can be shared same frequency range with the True Data transmission path to the data volumes such as data interrogation of virtual unit, so can reduce data transmission efficiency.
In above-mentioned two kinds of methods, reach virtual access with the in-band mode, storage server on the data path is finished the work virtual and conversion of entity access address usually alone, and the out-of-band mode is that the virtual access workload is disperseed (distributed) agency mechanism on storage server and user's end.
Summary of the invention
In the enforcement example of this exposure, can provide packet forwarding apparatus and method in a kind of virtual storage network switch, can use in the interchanger environment that the iSCSI line set up.In the enforcement example of this exposure, at the two ends of iSCSI agreement line, promptly client with store end, use iSCSI meeting (session) the line corresponded manner of tabling look-up, package directly passes between the two ends of meeting (session) line, finishes client and the exchanges data that stores end.
Implement in the example one, this exposure is about packet forwarding apparatus in a kind of virtual storage network switch, in this virtual storage network switch, one target module of front end and at least one user end are set up line, one of rear end opens beginning person module and at least one network storage end is set up line, this packet forwarding apparatus can comprise: a header acquisition device (HeaderExtractor), a distributor (Dispatcher) and a transfer unit (Fordwarding Unit), header acquisition device.After the iSCSIsession line was finished system authentication, the header acquisition device was taken at least one package on the iSCSI line, and captured the gauge outfit data of this at least one each and every one package; Distributor determines the flow direction of the package that these are taken over; Transfer unit is done the action that package directly passes between the front end of setting up line and rear end, comprise the virtual address translation that distributor receives become true address action, set up the corresponding relation of client-side interface (client-sideinterface) and the corresponding relation that stores end interface (storage-side interface) and the action of transmitting the load data of carrying secretly on the line.
Implement in the example at another, this exposure is the package forwarding method about a kind of virtual storage network switch, the method can comprise: at least one the iSCSI package that receives from the employed TCP line of iSCSI meeting (session), only capture the gauge outfit of each iSCSI package; For each iSCSI package, check whether the form of this package is qualified type of passing on; To the qualified package that passes on, check whether be the package of iSCSI order (Cmnd) type; If convert the corresponding virtual access address information of the package of this iSCSI order (Cmnd) type to true address, and add a new corresponding relation in the dynamic meeting line table of comparisons (DSMT); From the dynamic meeting line table of comparisons (DSMT), find out corresponding destination meeting identification code (session ID) and open beginning person work tap (initiator task tag, ITT) field; According to the connection state present situation of this destination meeting, revise iSCSI package gauge outfit, and transmit the iSCSI load data of amended iSCSI gauge outfit and source TCP line.
The package forwarding mechanism of this exposure also can be implemented in the system of multiple processor structure except can implementing under having Transmission Control Protocol function operations system.
Description of drawings
Below cooperate the detailed description of following drawings and Examples, will on address other purpose of the present invention and advantage and be specified in after, wherein:
Fig. 1 is a model intention of the general enforcement of iSCSI virtual storage network.
Fig. 2 is a schematic diagram, and the another kind of technology that virtual network stores of reaching is described.
Fig. 3 is a schematic diagram, and the another kind of technology that virtual network stores of reaching is described.
Fig. 4 is a schematic diagram, and the another kind of technology that virtual network stores of reaching is described.
To be the iSCSI protocol Data Unit hold a schematic diagram of the handling process that the package that stores end directly passes on from the user to Fig. 5, and consistent with some enforcement example in this exposures.
Fig. 6 is an example schematic, and the structure of the packet forwarding apparatus of virtual storage network switch is described, and consistent with some enforcement example in this exposure.
Fig. 7 is an example schematic, and the thin portion action of each module in the packet forwarding apparatus is described, and consistent with some enforcement example in this exposure.
Fig. 8 is the content of each element in the dynamic meeting line table of comparisons and an example schematic setting up process, and consistent with some enforcement example in this exposure.
Fig. 9 illustrates that a virtual address access requirement corresponds to the example schematic that real storage location is a plurality of different devices, and consistent with some enforcement example in this exposure.
Figure 10 illustrates that each element back in the meeting line table of comparisons is set an example schematic of an indicating bit, and with this exposure in some to implement example consistent.
Figure 11 illustrates that PDU duplicates the adapter module on the flow direction of package, the role who plays the part of the package recasting and integrate, and consistent with some enforcement example in this exposure.
Figure 12 is an exemplary flowchart, illustrates that PDU duplicates the adapter module and how to realize when client is sent the requirement action of read command, and consistent with some enforcement example in this exposure.
Figure 13 is an exemplary flowchart, illustrates that PDU duplicates the adapter module and how to realize when client is sent the requirement action of WRITE order, and consistent with some enforcement example in this exposure.
Figure 14 is an example schematic, further specifies input of address translator interface and the parameter of exporting, and consistent with some enforcement example in this exposure.
Figure 15 is an example schematic flow sheet, and the method for the packet forwarding apparatus of virtual storage network switch is described, and consistent with some enforcement example in this exposure.
Figure 16 A is in the single-processor system, the example schematic of the relation of iSCSI, package forwarding mechanism and core cell.
Figure 16 B is on the multicomputer system, the example schematic of the relation of iSCSI, package forwarding mechanism and core cell.
Figure 17 is on the multicomputer system, and several mould splits of packet forwarding apparatus are dispersed in the example schematic of carrying out on the microprocessor independently.
Embodiment
In the enforcement example of this exposure, be in a procotol, iSCSI procotol for example, in the interchanger environment that line is set up, the bridge that provides a package directly to pass on (forward), iSCSI package do not need from user end to the handling process that stores end to disassemble, read, change complicated actions such as location, gauge outfit foundation through unnecessary package gauge outfit.A schematic diagram of Fig. 5 handling process that to be the iSCSI protocol Data Unit directly pass on from client to the package that stores end, and consistent with some enforcement example in this exposures.
With reference to figure 5, shown in label 510, the iSCSI protocol Data Unit, receives only the package gauge outfit and handles in the handling process that stores end 503 in client 502.Then shown in label 520,, find out corresponding iSCSI link information by direct forwarding mechanism.Shown in label 530, the package gauge outfit directly is sent to stores end 503 again.The iSCSI protocol Data Unit that is transmitted back to client 502 from storage end 503 is the same after receiving gauge outfit, shown in label 511, find client 502 lines that require these data by 520 mechanism of directly passing on, then return the package gauge outfit to client 502, shown in label 531.
In other words, this exposure provides the bridge of a linking between user's end and network storage devices end.It is the iSCSI session line of connection mode that the object that is connected is to use the iSCSI procotol.The method that is connected is the corresponding relation of line one to one that produces user and storage device two ends in the mode of building table.
After corresponding relation is set up, after the gauge outfit of all the iSCSI agreement packages on the line is revised through field, together with the data of carrying secretly, directly pass on (forward) to the network storage devices end, data from the response of network storage devices end, find the user to hold corresponding iSCSI line with same lookup table mode, directly package is sent to user's end.The arrange in pairs or groups software layer way of existing virtual interchanger, the enforcement example of this exposure still can provide the user virtualized storage effect in the package process of passing on.And after the direct transfer unit of the package of this exposure (Forwarding Unit) independent, can better be carried out usefulness on the platform of multiprocessor having.
Fig. 6 is an example schematic, and the structure of the packet forwarding apparatus of virtual storage network switch (virtualization switch) is described, and consistent with some enforcement example in this exposure.With reference to figure 6, in the environment of this virtual interchanger, one target module (targetmodule) of front end, for example iscsi target 620, can hold 602 to set up iSCSI meeting (session) line with at least one user, beginning person module (Initiator Module) is opened in one of rear end, and for example iSCSI opens beginning person 610, can store end 603 with at least one network and set up the iSCSIsession line.In the case structure 600 of the packet forwarding apparatus of this exposure, comprise a header acquisition device 661, a distributor 662 and a transfer unit 663.
After iSCSI session line was finished system authentication, header acquisition device 661 received at least one package on the iSCSI line, and captured the gauge outfit data of this at least one each and every one package.The flow direction of distributor 662 these packages of being taken over of decision.Transfer unit 663 has been set up between the front end of iSCSI line and the rear end two and has been done the action that package directly passes on, the virtual access address transition that comprises the package that distributor 662 is received become true address action, set up client-side interface and the corresponding relation that stores end interface, for example at a dynamic meeting line table of comparisons (DynamicSession Mapping Table, DSMT) set up the relation of this correspondence in, and the action of transmitting the iSCSI load data of carrying secretly on the iSCSI line (payload).
Header acquisition device 661 can carry out Data Control at a plurality of iSCSI packages on the line, gauge outfit and data separating with iSCSI, allow whole package pass on and have only the data processing of gauge outfit field in the protocol Data Unit in the process, and do not relate to the data-moving action of data field position in the protocol Data Unit.
Transfer unit 663 can comprise an address translator (Address Translator again, AT), a dynamic meeting line table of comparisons (DSMT), PDU duplicate take over module (PDU DuplicationHandler, PDH), a gauge outfit adjusts a device (Header Adaptor) and a data Conveyer (Data Mover).And also can comprise a descriptor formation (descriptor queue) in the case structure 600 of packet forwarding apparatus.Fig. 7 illustrates the thin portion action of these modules in the packet forwarding apparatus, and consistent with some enforcement example in this exposure.
With reference to figure 7, header acquisition device 661 is after authentication on the iSCSI connection system is finished, from the information of line, can find out the information of this line ID (being designated as Conn) and virtual access ID (being designated as VIun), with the synthetic access descriptor (descriptor) of these data sets, note down in the descriptor formation 711, wait for that next handling procedure carries out.Descriptor formation 711 is to separate work that receives gauge outfit and the work of analyzing gauge outfit, allows these two work have an opportunity to carry out simultaneously, and can solve the problem of competing mutually that a plurality of lines need requirement distributor 662 to handle simultaneously.
When having data, descriptor formation 711 enters, distributor 662 can take out an access descriptor from descriptor formation 711, from descriptor information, can learn the type of receiving package, for example iSCSI order (iSCSI Cmnd), iSCSI data outputs (iSCSI DataOut), iSCSI data inputs (iSCSI DataIn), iSCSI reply (iSCSIRsp), iSCSI prepares to transmit the type of (iSCSI R2T) package of etc.ing, and determine that whether the package received is the qualified package that passes on type.If the package of order (Cmnd) type, then distributor 662 can transmit the data gauge outfit of this package to next unit continuation processing.If order other package beyond (Cmnd) type, then distributor 662 iSCSITarget that the gauge outfit of this package and the data of carrying secretly can be sent back in the system in the lump processes; Distributor 662 can judge whether this package directly gives transfer unit 663, allows transfer unit 663 directly be transferred to network and stores on the end 603.
The function of address translator 763a is the conversion between virtual access and the actual position.After address transducer 763a receives virtual access point (Vlun), access address (block) and access length (length), just can find out real access site, with the line of meeting (session) under the access site.That is to say that address translator 763a can find out the corresponding relation of real access address and meeting (session) line ID from virtual access point and access site.
Receive the iSCSI package of coming from distributor 662, after the conversion of access address through address translator 763a, meeting (session) the line ID that learns true access site is the true storage device number of access therewith.PDU duplicates and takes over module (PDH) 763b decision source package and pass on the corresponding relation of package, and sets up the relation of this correspondence in the dynamic meeting line table of comparisons (DSMT) 763c.
PDU duplicates and takes over module (PDH) 763b inserts corresponding element (entry) in the dynamic meeting line table of comparisons (DSMT) 763c content.Dynamically the content of each element will illustrate in Fig. 7 among the meeting line table of comparisons (DSMT) 763c.After dynamically the meeting line table of comparisons (DSMT) 763c filled out corresponding relation, PDU duplicated adapter module (PDH) 763b transmission package gauge outfit to gauge outfit and adjusts device 763d.Gauge outfit is adjusted the field modification and transmission action that device 763d handles the iSCSI gauge outfit.If this gauge outfit is carried load data (payload) secretly, then use data mover 763e directly the TCP layer of receiving terminal to be used as the transmission data, on the TCP line that stores end, send out.
PDU duplicates and takes over module (PDH) 763b and can solve corresponding situation virtual and one-to-many during entity is corresponding, the access that allows the user can expand out a plurality of real objects when the access of a virtual objects of initiation.Gauge outfit is adjusted the value that device 763d can learn from the dynamic meeting line table of comparisons (DSMT) 763c that iSCSI gauge outfit field replaces, and then this gauge outfit is sent out on the TCP line that iSCSI meeting (session) is subordinate to.Data mover 763e can directly be used as the data that iSCSI transmits with the iSCSI load data that rests on the TCP line, sends out.
So, the user concentrated on the setting of the access right of destination end (target) and virtual storage device do management on the interchanger, the iSCSI that allows the user that general easy acquisition can be installed opens beginning person (initiator) and links software, directly interchanger is used as and is the iscsi target person (target) does access, the true storage device that is linked with the iSCSI agreement on interchanger can be used virtualized configuration mode, confirm to offer user's access by account number cipher, user's end needn't be installed any extra access control software.The reception of data is retained in lower floor's network layer, by the position that the direct determination data of data mover transmits, reduces unnecessary data number of copy times.
Fig. 8 is the content of each element in the dynamic meeting line table of comparisons (DSMT) and an example schematic setting up process, and consistent with some enforcement example in this exposure.With reference to figure 8, dynamically each element mainly contains three fields among the meeting line table of comparisons (DSMT) 763c, that is client-side interface (Client Side Interface) 831, store end interface (Storage Side Interface) 832, and significance bit 833, write down meeting line (session) ID (being designated as src_sess) of user's end respectively and open beginning person work tap (initiator tasktag) (being designated as src_ITT), store meeting line (session) ID (being designated as dst_sess) of end and open envoy's work tap (being designated as dst_ITT), and corresponding to the access sequence of same virtual access relation.Significance bit can be convenient to PDU and duplicate and take over module (PDH) 763b and manage from storing the iSCSI package of end passback.
Dynamically the lifetime of each element starts from the iSCSI bidding protocol data cell (Cmd PDU) that transfer unit 663 receives client among the meeting line table of comparisons (DSMT) 763c, finishes till transfer unit 663 receives the iSCSI response protocol data cell (Rsp PDU) that stores end.Element exist during, the mode of the one to one available or a pair of a plurality of meeting of protocol Data Unit (PDU) (session) that receives from client end is sent to the iSCSI storage device of destination.From the data packet of storage device passback, equally can find out the client that requires data through the mode that transfer unit 663 is tabled look-up.
Set up the process of element, come the assistance of first iSCSI bidding protocol data cell (Cmd PDU) of converting unit from client by address translator 763a, can learn meeting (session) the field dst_sess of storage end and the data of ITT field dst_ITT, whether this correspondence of record is the corresponding relation of a pair of a plurality of meeting (session) in the significance bit field of element simultaneously, from then on after, the protocol Data Unit (PDU) of same iSCSI work (Task) is when entering transfer unit 663, whether the capital has corresponding element with among the meeting (session) of protocol Data Unit (PDU) and the ITT field search dynamic meeting line table of comparisons (DSMT) 763c, find out meeting (session) ID and the ITT field of destination, up to from storing last iSCSI response (Rsp) package of end passback, just finish the corresponding relation of this element.
When transfer unit 663 receives an iSCSI bidding protocol data cell (Cmd PDU) from client, after passing through address translator 763a access, when the data volume of learning this virtual access is dispersed on the network storage devices of a plurality of entities, transfer unit 663 is except the work that the execution package directly leads, also need at a plurality of network storage devices that this access command is contained, iSCSI packages of transmission access of relating to.
For example, suppose virtual address (the Request Virtual Address that access that a user sends requires, Request VA) 910 corresponds to real storage location (Physical Address PA) is the PA1 and the PA2 of two different storing devices, as shown in Figure 9.When transfer unit 663 is learnt two network equipments of this access target for disperseing from address translator 763a, the PDU in the transfer unit 663 duplicated and took over the destination end information of number that module (PDH) 763b can be provided according to address translator 763a this moment, dynamically setting up a plurality of elements among the meeting line table of comparisons (DSMT) 763c, on behalf of transfer unit 663, each element need with the workload that stores the unaided work of end (Task).
As shown in figure 10, PDU duplicates and takes over module (PDH) 763b when setting up element, can mark in the significance bit (Vbit) of each element back, allow and to learn to be that the multiplex (MUX) makes last effort access (multi-task) access from the iSCSI package that stores the end passback.For example, the V representative is not last effort access, and the X representative is last effort access.
Figure 11 further specifies PDU and duplicates adapter module (PDH) on the flow direction of package, not only plays the part of the package recasting and also plays the part of the role of packet intergration.As shown in figure 11, for example, when the user of client sends a virtual access request, and entity access data amount (block) is when being the package of A+B, wherein data volume A is the data on target (Target) A, data volume B is the data on target B, can produce other access package to target A and the target B that stores end this moment in the middle of transfer unit 663, from the iSCSI data protocol data cell (DataPDU) that stores the end passback through modification table look-up after, can pass back to the user of client, iSCSI response protocol data cell (Rsp PDU) then can not be passed the user of client back, after last related target data access end of transmission of this access (the significance bit Vbit by the element of the dynamic meeting line table of comparisons (DSMT) 763c learns), PDU duplicates and takes over module (PDH) 763b and just can return the user that an iSCSI response protocol data cell (Rsp PDU) is given client.The virtual access package requirement of sending from the user of client, data packet through passback, the response protocol data cell of Jie Shouing to the end, the user of client does not feel fully with reaction that stores end target person (StorageTarget) of access any difference.So the PDU in the transfer unit 663 duplicates and takes over the role that in fact module (PDH) 763b can play the part of the package recasting and integrate.
The exemplary flowchart of Figure 12 and Figure 13 illustrates that respectively when client was sent requiring of READ/WRITE order, PDU duplicated adapter module (PDH) 763b and how to realize, and consistent with some enforcement example in this exposure.
When client is sent requiring of read command, the iSCSI package that transfer unit 663 receives is by behind the address translator 763a, it is several to learn that the real reading object of this iSCSI package has, and PDU duplicates and takes over module (PDH) 763b sets up correspondence in the dynamic meeting line table of comparisons (DSMT) 763c element number.Can get primary data from the descriptor of address translator 763a after and be dispersed in the situation that stores end the conversion of this package.Immediately as shown in figure 12, in step 1201, PDU duplicates the iSCSI package of taking over module (PDH) 763b generation data read and stores end to first, and waits for storing and hold response iSCSI DataInPDU.After receiving this response iSCSI DataIn PDU, directly lead back user's end behind the modification field, shown in step 1202.Repeat to receive DataIn PDU and lead back user's action till storing end response iSCSIRsp PDU, finish this is stored the data demand of end, shown in step 1203.Then produce the next data demand that stores end, repeat above-mentioned receiving step, finish the reception project of each element correspondence among the dynamic meeting line table of comparisons (DSMT) 763c, shown in step 1204.The significance bit field demonstrates the correspondence that finishing touch stores end in the element of correspondence, just iSCSI Rsp PDU is returned the end to the user, shown in step 1205.
When client is sent requiring of WRITE order, PDU duplicates the realization that the action of taking over module (PDH) 763b is similar to READ among Figure 12, different places is that the user sends after the action of WRITE, wait for that storing the end response prepares to transmit (Ready to Transfer, R2T) iSCSI package, PDU duplicate adapter module (PDH) 763b just can begin to send iSCSI DataOut PDU to the storage device end.PDU duplicates and takes over the detailed realization action of module (PDH) 763b as shown in figure 13.
PDU duplicates and takes over module (PDH) 763b behind the order request of user's termination receipts across a plurality of storage device WRITE, indication by address translator 763a, dynamically filling out the project that several store end among the meeting line table of comparisons (DSMT) 763c, shown in step 1301.Send the iSCSI R2T PDU that first is stored the data demand of end and waits for the reception passback again, lead back user's end, shown in step 1302.Transfer unit 663 begins to receive iSCSI DataOut PDU, PDU duplicate take over module (PDH) 763b the iSCSI package that receives according to the real storage device that leads one by one of listed save project among the dynamic meeting line table of comparisons (DSMT) 763c, shown in step 1303.After the storage device that this WRITE order is involved all write, PDU duplicated adapter module (PDH) 763b and just responds an iSCSIRsp PDU to user's end, shown in step 1304.
Figure 14 is an example schematic, further specifies input of address translator interface and the parameter of exporting, and consistent with some enforcement example in this exposure.In this example, address translator 763a can be from the virtual access information of input, virtual access point (virtual disk ID) for example, virtual access address (virtual block address) and access data length information such as (access length), change out the entity storage device number (physical disknumber) that corresponding this virtual access is comprised, the entity access point of the entity storage device corresponding (physical disk ID) with each, entity access address (physical blockaddress), data access length (access length), iSCSI meeting line (iSCSI session) ID that the entity storage device is set up etc.If corresponding entity storage device number, then has the same entity access parameter of many groups greater than one.
Hold above-mentionedly, in virtual storage network switch, package as the iSCSI package, is transferred to the handling process that network stores end from user end, can illustrate with the example flow process of Figure 15, and consistent with some enforcement example in this exposures.In the example of Figure 15, it is respectively to pass on employed TCP line of iSCSI session and iSCSI package to illustrate that network connectivity mode and package pass on.
With reference to Figure 15, shown in step 1510, at least one the iSCSI package that from the employed TCP line of iSCSIsession, receives, capture the gauge outfit of each iSCSI package.Shown in step 1520, for each iSCSI package, whether the form of checking this package is qualified type of passing on, and packet type such as iSCSI Cmnd, iSCSI DataOut, iSCSI DataIn, iSCSI Rsp, iSCSI R2T for example are to determine the flow direction of this package.Shown in step 1530,, check whether be the package of iSCSI order (Cmnd) type to the qualified package that passes on.If shown in step 1540, convert the corresponding virtual access address information of the package of this iSCSI order (Cmnd) type to true address, and add a new corresponding relation in the dynamic meeting line table of comparisons (DSMT).For example, can learn the corresponding virtual access address information (as access point, address, length etc.) of the package of this type from the information the employed TCP line of iSCSI session, convert this virtual access address information to true access site, and add the dynamic meeting line table of comparisons (DSMT) as the 8th figure.Proceed step 1550 then.
If other beyond the iSCSI Cmnd be qualified to pass on the package of type, then shown in step 1550, from the dynamic meeting line table of comparisons (DSMT), find out corresponding destination meeting (session) ID and ITT field.For example, from the dynamic meeting line table of comparisons (DSMT), can find out corresponding destination meeting (session) ID and ITT field with the ITT field with the session ID of source package.
In step 1560, according to the connection state present situation of this destination meeting (session), revise iSCSI package gauge outfit, and transmit the iSCSI load data (payload) of amended iSCSI gauge outfit and source end TCP line.For example, can be according to the connection state present situation of this destination meeting (session), the field such as ITT field, CmdSN that replaces this package, to revise iSCSI package gauge outfit later again together with the iSCSI load data that rests on source end TCP line, according to the employed TCP line of destination session, data are sent to destination.
So, from the received iSCSI package of interchanger target person (Switch Target), to interchanger open iSCSI package that beginning person (Switch Initiator) will transmit relatively on, the iSCSI package form that target person (Target) is received, will produce same iSCSI package form at Qi Shizhe (Initiator) and be sent to destination, that is to say, both iSCSI gauge outfits all have identical operation code (opcode), except receiving the destination difference of package, different iSCS Isession lines have outside a little difference on iSCSI gauge outfit field, and the field of other data of description in gauge outfit can not change.
Because after the received data of interchanger are found out the live network access site through virtualization software layer, data can be by the complete destination that is sent to, so extremely export (output) iSCSI package from input (input) iSCSI package, this discloses in the aforesaid enforcement example, the iSCSI package that can successfully receive from target (Target), replace corresponding field, generation is suitable for the iSCSI package that Qi Shizhe (Initiator) transmits, so, can remove the action that package unnecessary between numerous software layers is disassembled and changed from.
The package forwarding mechanism of this exposure can be implemented in the single-processor or the system of multiple processor structure.Figure 16 A and Figure 16 B are respectively in single-processor (single-processor) and multiprocessor (multi-processor) system, the example schematic of the relation of iSCSI, package forwarding mechanism and core cell (Kernel).
With reference to figure 16A, in the single-processor system, this example is to place the host software layer to carry out iSCSI and package forwarding mechanism.Ginseng Figure 16 B, on multicomputer system, this example is to be used for operating core cell and iSCSI software layer by primary processor, and the part of package forwarding mechanism, be by the microprocessor (MicroEngine beyond the primary processor, ME) carry out, allow the program of carrying out on this microprocessor reach exchanges data with the program on the primary processor by special communication interface (Core Component).
In the example on the multicomputer system, a kind of mode of enforcement is that the several mould splits that Fig. 7 of this exposure can be implemented the packet forwarding apparatus of example are dispersed in independently to be carried out on the microprocessor, shown in the example of Figure 17.Each independently microprocessor own local (local) variable access space is arranged, shared static random access memory (SRAM) access site is also arranged, the program counter (programcounter) of oneself is also arranged simultaneously, each microprocessor can be operated simultaneously at one time.Provide special line of communication between the different microprocessors, can reach the transmission or the information notice of data between the microprocessor by the distinctive storage area of hardware structure.The benefit of each module independent is, can be embodied on the system architecture of multiprocessor, allow a plurality of modules that the possibility of running is simultaneously arranged, and reduce the load of primary processor, can significantly promote the efficiency of transmission of iSCSI protocol Data Unit (PDU) on Virtual switch (virtualizationswitch).
So the package forwarding mechanism of this exposure can have multiple implementation, for example with software realize, hardware is realized, contain and realize on the platform of single-processor or multiprocessor etc.
Only, above-described, only be inventive embodiment, when not limiting scope of the invention process according to this.Be that every equalization of being done according to claim scope of the present invention changes and modifies, all should still belong in the scope that patent of the present invention contains.

Claims (21)

1, a kind of packet forwarding apparatus of virtual storage network switch, in this virtual storage network switch, a target of front end and at least one user end are set up line, and one of rear end opens the beginning person and at least one network storage end is set up line, it is characterized in that this packet forwarding apparatus comprises:
One header acquisition device receives at least one package on this line that builds on front end, and captures the gauge outfit data of this at least one package;
A distributor determines the flow direction of this received package; And
A transfer unit, set up between the front end of line and the rear end at this and to have done the action that package directly passes on, the virtual access address transition that comprises the package that this distributor reception is come becomes the action of true address, the corresponding relation of setting up client-side interface and storing end interface, and the action of transmitting the load data of carrying secretly on this line.
2, the packet forwarding apparatus of virtual storage network switch as claimed in claim 1, it is characterized in that, wherein the line of the line of setting up in this front end and the foundation of this rear end is a kind of line of world-wide web slim calculator system interface meeting of the host-host protocol that uses world-wide web slim calculator system interface, this target is a world-wide web slim calculator system interface target, and this Qi Shizhe is that a world-wide web slim calculator system interface opens the beginning.
3, the packet forwarding apparatus of virtual storage network switch as claimed in claim 1 is characterized in that, wherein this transfer unit also comprises:
An address translator, the virtual access address transition that this distributor is received the package that comes becomes true address;
A dynamic meeting line table of comparisons comprises this source package of a plurality of descriptions and passes on the element of corresponding relation of package that each element has client-side interface at least, stores end interface and three fields of significance bit;
A protocol Data Unit duplicates the adapter module, in this dynamic meeting line table of comparisons, insert the content of corresponding element after, send out the gauge outfit that this distributor receives the package that comes;
A gauge outfit is adjusted device, handles the field of package gauge outfit and revises and transmit; And
A data Conveyer is used as rest on load data on the line as the data of transmission, sends out.
4, the packet forwarding apparatus of virtual storage network switch as claimed in claim 1, it is characterized in that, wherein this client-side interface, store end interface and three fields of significance bit and write down the meeting line identification code of user's end respectively and open the beginning work tap, store the meeting line of end and open envoy's work tap and corresponding to the access sequence relation of same virtual access.
5, the packet forwarding apparatus of virtual storage network switch as claimed in claim 1, it is characterized in that, wherein this header acquisition device produces the access descriptor of this at least one package gauge outfit, and each access descriptor comprises the information of corresponding line identification code and virtual access point.
6, the packet forwarding apparatus of virtual storage network switch as claimed in claim 1 is characterized in that, wherein this distributor is learnt the type of receiving package from the gauge outfit of this package, and whether the package received of decision is the qualified package that passes on type.
7, the packet forwarding apparatus of virtual storage network switch as claimed in claim 1 is characterized in that, wherein this receives that the type of package is wherein a kind of packet type that order, data output, data input, answer and preparation transmit.
8, the packet forwarding apparatus of virtual storage network switch as claimed in claim 1, it is characterized in that, wherein this packet forwarding apparatus be with software realize, hardware is realized, contain the aforementioned wherein a kind of mode that realizes on the single-processor or the platform of multiprocessor realizes.
9, a kind of package forwarding method of virtual storage network switch, in this virtual storage network switch, a target person of front end sets up line with at least one user's end, and one of rear end opens the beginning person and at least one network storage end is set up line, it is characterized in that this package forwarding method comprises:
In at least one package that from this line that builds on front end, receives, capture the gauge outfit of each this package;
Whether the form of checking each this package is qualified type;
To the package of qualified type, check whether be the package of command type;
Be, convert the corresponding virtual access address information of the package of this command type to true address, and add a new corresponding relation in a dynamic meeting line table of comparisons:
From this dynamic meeting line table of comparisons, find out qualified type each this package correspondence destination meeting identification code with open beginning person work tap field: and
Revise the gauge outfit of each this package of qualified type, and send out the load data on amended gauge outfit and the source end line.
10, the package forwarding method of virtual storage network switch as claimed in claim 9, it is characterized in that wherein this new corresponding relation comprises the meeting line identification code that the user holds and opens beginning person work tap, stores the meeting line of end and open envoy's work tap and corresponding to the information of the access sequence relation of same virtual access.
11, the package forwarding method of virtual storage network switch as claimed in claim 9 is characterized in that, wherein when the package of this command type was the package of a data read, this package forwarding method also comprised:
The package that produces data read stores end to first, and waits for that first stores end response data input protocol Data Unit;
After receiving this response data input protocol Data Unit, directly lead back corresponding user's end behind the modification field;
Repeat to receive data input protocol Data Unit and this action of leading back user's end till first stores the answer protocol Data Unit of end, finish first is stored the data demand of end;
Produce the next data demand that stores end, repeat above-mentioned receiving step, finish the reception project of each element correspondence in the dynamic meeting line table of comparisons; And
The significance bit field demonstrates the correspondence that finishing touch stores end in the element of correspondence, and the answer protocol Data Unit that just this finishing touch is stored end returns to this corresponding user's end.
12, the package forwarding method of virtual storage network switch as claimed in claim 9 is characterized in that, wherein when the package of this command type be data write package the time, this package forwarding method also comprises:
By address transition, in this dynamic meeting line table of comparisons, fill out the project that at least one stores end;
Send the preparation transport protocol data unit that first is stored the data demand of end and waits for the reception passback, lead back corresponding user's end;
The package that receives according at least one the real storage device that leads one by one of listed save project in this dynamic meeting line table of comparisons; And
After the storage device that this write command involved all writes, just respond one and reply protocol Data Unit to this corresponding user's end.
13, the package forwarding method of virtual storage network switch as claimed in claim 9, it is characterized in that, wherein this virtual access address information convert to true address comprise at least from the input virtual access point, virtual access address and access data length information, change out the entity storage device number that corresponding this virtual access is comprised, the meeting line identification code that the entity access point of the entity storage device corresponding with each, entity access address, data access length, entity storage device are set up.
14, the package forwarding method of virtual storage network switch as claimed in claim 9, it is characterized in that, wherein the line of the line set up of this front end and the foundation of this rear end is a kind of line of world-wide web slim calculator system interface meeting of the host-host protocol that uses world-wide web slim calculator system interface, this target is a world-wide web slim calculator system interface target, and this Qi Shizhe is that a world-wide web slim calculator system interface opens the beginning person.
15, the package forwarding method of virtual storage network switch as claimed in claim 14, it is characterized in that, wherein this dynamic meeting line table of comparisons comprises an element at least, the lifetime of each this element starts from receiving the world-wide web slim calculator system interface bidding protocol data cell of client, finishes till receiving the world-wide web slim calculator system interface response protocol data cell that stores end.
16, the package forwarding method of virtual storage network switch as claimed in claim 15, it is characterized in that, wherein each this element exist during, the protocol Data Unit that receives from client end is with one to one or the mode of a pair of a plurality of meetings is sent to the world-wide web slim calculator system interface storage device of destination.
17, the package forwarding method of virtual storage network switch as claimed in claim 9 is characterized in that, wherein the package of this qualified type is wherein one type the package that order, data output, data input, answer and preparation transmit.
18, the package forwarding method of virtual storage network switch as claimed in claim 9 is characterized in that, wherein is the connection state present situation according to this destination meeting, revises the gauge outfit of each this package of qualified type.
19, the package forwarding method of virtual storage network switch as claimed in claim 9, it is characterized in that, wherein the gauge outfit of each this package has a corresponding access descriptor, and each this access descriptor comprises the information of corresponding line identification code and virtual access point.
20, the package forwarding method of virtual storage network switch as claimed in claim 9 is characterized in that, wherein this package forwarding method is by carrying out in the host software layer on the single-processor.
21, the package forwarding method of virtual storage network switch as claimed in claim 9 is characterized in that, wherein the step of this package forwarding method is to carry out in primary processor at least one microprocessor in addition that is dispersed on the multiprocessor.
CN 200810001359 2008-01-09 2008-01-09 Packet forwarding apparatus and method for virtual storage network switch Expired - Fee Related CN101483662B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810001359 CN101483662B (en) 2008-01-09 2008-01-09 Packet forwarding apparatus and method for virtual storage network switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810001359 CN101483662B (en) 2008-01-09 2008-01-09 Packet forwarding apparatus and method for virtual storage network switch

Publications (2)

Publication Number Publication Date
CN101483662A true CN101483662A (en) 2009-07-15
CN101483662B CN101483662B (en) 2013-01-16

Family

ID=40880589

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810001359 Expired - Fee Related CN101483662B (en) 2008-01-09 2008-01-09 Packet forwarding apparatus and method for virtual storage network switch

Country Status (1)

Country Link
CN (1) CN101483662B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752366A (en) * 2012-05-30 2012-10-24 浪潮电子信息产业股份有限公司 ISCSI (Internet small computer system interface) client-side storage acceleration module
CN108400968A (en) * 2018-01-16 2018-08-14 杭州电子科技大学 A kind of efficient method for realizing mimicry defence model distributor

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752366A (en) * 2012-05-30 2012-10-24 浪潮电子信息产业股份有限公司 ISCSI (Internet small computer system interface) client-side storage acceleration module
CN102752366B (en) * 2012-05-30 2016-11-23 浪潮电子信息产业股份有限公司 A kind of ISCSI client storage accelerating module
CN108400968A (en) * 2018-01-16 2018-08-14 杭州电子科技大学 A kind of efficient method for realizing mimicry defence model distributor
CN108400968B (en) * 2018-01-16 2019-12-24 杭州电子科技大学 Method for realizing mimicry defense model distributor

Also Published As

Publication number Publication date
CN101483662B (en) 2013-01-16

Similar Documents

Publication Publication Date Title
CN104052789B (en) Method and system for the load balance of virtual networking system
CN109361532B (en) High availability system and method for network data analysis and computer readable storage medium
Liu et al. A real-time network simulation infrastructure based on OpenVPN
US8983822B2 (en) Operating a storage server on a virtual machine
US7808996B2 (en) Packet forwarding apparatus and method for virtualization switch
US9491240B2 (en) Maintenance of a fabric priority during synchronous copy operations
CN101276258A (en) Disk array subsystem and control method thereof
CN1429365A (en) Distributed computing system clustering model providing soft real-time responsiveness and continuous availability
GB2419984A (en) Communication in a Serial Attached SCSI storage network
CN103229172B (en) Replicate data
CA2621249A1 (en) Application of virtual servers to high availability and disaster recovery solutions
CN103927216B (en) For managing the method and system of virtual bench
US11704206B2 (en) Generation of host requests to a storage controller for read diagnostic parameters for a data mirroring configuration
TW200817924A (en) External network management interface proxy addressing of data storage drives
CN101188624A (en) Grid middleware system based on virtual machine
CN108604163A (en) Synchronous for file access protocol storage is replicated
CN102143218A (en) Web access cloud architecture and access method
CN101404657B (en) File integrality checking method for network storage system based on iSCSI protocol
US20220121537A1 (en) Communication of diagnostic parameters of a data mirroring configuration from a storage controller to a host
Silva et al. Environment for integration of distributed heterogeneous computing systems
CN101483662B (en) Packet forwarding apparatus and method for virtual storage network switch
US7131108B1 (en) Software development system having particular adaptability to financial payment switches
US9715477B2 (en) Shared-bandwidth multiple target remote copy
CN101567890A (en) Metadata transmission method, client device and server device
US20190037013A1 (en) Methods for managing workload throughput in a storage system and devices thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130116

CF01 Termination of patent right due to non-payment of annual fee