CN104363269B - It is a kind of to pass through FC link transmissions, the method and device of reception NAS data - Google Patents

It is a kind of to pass through FC link transmissions, the method and device of reception NAS data Download PDF

Info

Publication number
CN104363269B
CN104363269B CN201410583658.XA CN201410583658A CN104363269B CN 104363269 B CN104363269 B CN 104363269B CN 201410583658 A CN201410583658 A CN 201410583658A CN 104363269 B CN104363269 B CN 104363269B
Authority
CN
China
Prior art keywords
data
scsi
subcommand
sgl
nas
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.)
Active
Application number
CN201410583658.XA
Other languages
Chinese (zh)
Other versions
CN104363269A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410583658.XA priority Critical patent/CN104363269B/en
Publication of CN104363269A publication Critical patent/CN104363269A/en
Priority to PCT/CN2015/077215 priority patent/WO2016065871A1/en
Application granted granted Critical
Publication of CN104363269B publication Critical patent/CN104363269B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • H04L69/085Protocols for interworking; Protocol conversion specially adapted for interworking of IP-based networks with other networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of method by FC link transmission NAS data, and needing respectively NAS and SAN to establish respective transmission link for solution causes the complicated technical problem of link.Methods described includes:The the first subcommand part mapping addressed in command component in NAS data for file system is scsi command by sending ending equipment, and using the remainder in the NAS data in addition to the first subcommand part as scsi data;Wherein, the NAS data include the command component and data division;The sending ending equipment sends the scsi command by the FC chains road direction receiving terminal;The sending ending equipment receive that the receiving terminal replys according to the scsi command generate when being allocated successfully message, the scsi data is sent to by the receiving terminal by the FC links.The invention also discloses corresponding method of reseptance and device.

Description

It is a kind of to pass through FC link transmissions, the method and device of reception NAS data
Technical field
The present invention relates to technical field of memory, more particularly to it is a kind of by FC link transmissions, receive NAS data method and Device.
Background technology
The copy backup transmission of data is to be based on SCSI in SAN (Storage Area Network, storage area network) (Small Computer System Interface, small computer system interface) agreement, is typically based on FCP/iSCSI (Fibre Channel Protocol/i Small Computer System Interface, a kind of fiber channel protocol/base Memory technology under internet and SCSI-3 agreements) agreement progress business transmission.And NAS (Network Attached Storage, network attached storage) in data copy backup transmission generally use be based on IP (Internet Protocol, net Border agreement) proprietary protocol.
SAN and NAS transmission means, addressing system etc. are all different, therefore two kinds of storage modes can not in set of system It is compatible.So, for it the unified storage array of SAN and NAS business be present simultaneously, if according to traditional transmission means, Need to establish protocol channel respectively for SAN subsystems and NAS subsystems.Such transmission group net scheme has a disadvantage that:
Respectively NAS and SAN subsystems establish respective transmission link, then at least need to establish both links, consider further that To the redundancy backup of link, then need to establish 4 links.If for example, to establish the standby system that redundancy is N, need Establish 2N bar links, i.e. N bars SCSI links, and N bar NAS links.Larger investment obviously can be so brought, cost is higher, chain Road is also complex, and when establishing or the when of use is all easier to malfunction.
The content of the invention
Offer of the embodiment of the present invention is a kind of by FC link transmissions, the method and device of reception NAS data, to solve to need It is respectively that NAS and SAN establishes respective transmission link and causes the complicated technical problem of link.
The first aspect of the present invention, there is provided a kind of method by FC link transmission NAS data, including:
Sending ending equipment will be directed to the first subcommand part mapping of file system addressing in the command component in NAS data For small computer system interface scsi command, and will be surplus in addition to the first subcommand part in the NAS data Remaining part is allocated as scsi data;Wherein, the NAS data include the command component and data division;
The sending ending equipment sends the scsi command by the FC chains road direction receiving terminal;
The sending ending equipment is receiving being allocated successfully according to what the scsi command generated for the receiving terminal reply During message, the scsi data is sent to by the receiving terminal by the FC links.
With reference in a first aspect, in the first possible implementation of first aspect, by the NAS data except described Remainder outside first subcommand part as scsi data, including:
The second subcommand part that the command component is included is as private data, and by the private data and institute Data division is stated as the scsi data;
Wherein, the private data is specific for indicating that the data division stores in the dispersed set table SGL pages Position, the command component are made up of the first subcommand part and the second subcommand part.
With reference to the first possible implementation of first aspect, in second of possible implementation of first aspect In, using the private data and the data division as the scsi data, including:
Using the private data, the data division and invalid data as the scsi data;
Wherein, the invalid data is can not be by first subcommand in the private data and the data division When SGL pages filling pointed by part is full, for the data being filled to being not filled by full part.
With reference to second of possible implementation of first aspect, in the third possible implementation of first aspect In, using the private data, the data division and invalid data as the scsi data, including:
As the scsi data before the private data is arranged on into the data division and the invalid data;Or
As the scsi data after the private data is arranged on into the data division and the invalid data.
The second aspect of the present invention, there is provided a kind of method that NAS data are received by FC links, including:
The scsi command that receiving device is sent by the FC links receiving end/sending end;Wherein, the scsi command is The transmitting terminal obtains the first subcommand part mapping that file system addressing is directed in the command component in NAS data;
The receiving device distributes the scattered concentration table SGL pages according to the scsi command, and passes through the FC links Sent to the transmitting terminal and be allocated successfully message;
The receiving device receives the transmitting terminal after message is allocated successfully described in receiving by the FC links The scsi data of transmission, and the scsi data is write into the SGL pages;Wherein, the scsi data includes the NAS numbers Remainder in addition to the first subcommand part, the NAS data include the command component and data portion Point.
With reference to second aspect, in the first possible implementation of second aspect, the scsi data includes private There are data and the data division;
Wherein, the private data includes the second subcommand part in the command component, and the private data is used for The particular location that the data division stores in the SGL pages is indicated, the command component is by the first subcommand portion Divide and the second subcommand part is formed.
With reference to the first possible implementation of second aspect, in second of possible implementation of second aspect In, invalid data is also included in the scsi data;
The invalid data is can not be by the first subcommand part in the private data and the data division When pointed scattered concentration table SGL pages filling is full, for the data being filled to being not filled by full part;
After the scsi data is write into the SGL pages, in addition to:
According to the private data, the data division is parsed from the scsi data for writing the SGL pages.
With reference to second of possible implementation of second aspect, in the third possible implementation of second aspect In, according to the private data, the data division is parsed from the scsi data for writing the SGL pages, including: The data division according to indicated by the private data corresponding position in the SGL pages, from the scsi data In parse the data division.
The third aspect of the present invention, there is provided a kind of device by FC link transmission NAS data, including:
Mapping block, for the first subcommand part of file system addressing will to be directed in the command component in NAS data Be mapped as small computer system interface scsi command, and by the NAS data in addition to the first subcommand part Remainder as scsi data;Wherein, the NAS data include the command component and data division;
Sending module, for sending the scsi command by the FC chains road direction receiving terminal;
The sending module, it is additionally operable to receiving the distribution generated according to the scsi command of the receiving terminal reply During success message, the scsi data is sent to by the receiving terminal by the FC links.
With reference to the third aspect, in the first possible implementation of the third aspect, the mapping block is used for institute The remainder in NAS data in addition to the first subcommand part is stated as scsi data, is specially:
The second subcommand part that the command component is included is as private data, and by the private data and institute Data division is stated as the scsi data;
Wherein, the private data is specific for indicating that the data division stores in the dispersed set table SGL pages Position, the command component are made up of the first subcommand part and the second subcommand part.
With reference to the first possible implementation of the third aspect, in second of possible implementation of the third aspect In, the mapping block is specifically for using the private data and the data division as the scsi data, being specially:
Using the private data, the data division and invalid data as the scsi data;
Wherein, the invalid data is can not be by first subcommand in the private data and the data division When SGL pages filling pointed by part is full, for the data being filled to being not filled by full part.
With reference to second of possible implementation of the third aspect, in the third possible implementation of the third aspect In, the mapping block is specifically used for using the private data, the data division and invalid data as the SCSI numbers According to specially:
As the scsi data before the private data is arranged on into the data division and the invalid data;Or
As the scsi data after the private data is arranged on into the data division and the invalid data.
The fourth aspect of the present invention, there is provided a kind of device that NAS data are received by FC links, including:
Receiving module, for the scsi command sent by the FC links receiving end/sending end;Wherein, the scsi command The first subcommand part mapping that file system addressing is directed in the command component in NAS data is obtained for the transmitting terminal 's;
Distribute module, for distributing the scattered concentration table SGL pages according to the scsi command, and pass through the FC chains road direction The transmitting terminal sends and is allocated successfully message;
Operation module, for using the receiving module by the FC links receive the transmitting terminal receive it is described The scsi data sent after message is allocated successfully, and for the scsi data to be write into the SGL pages;Wherein, it is described Scsi data, which includes the remainder in addition to the first subcommand part, the NAS data in the NAS data, to be included The command component and data division.
With reference to fourth aspect, in the first possible implementation of fourth aspect, the scsi data includes private There are data and the data division;
Wherein, the private data includes the second subcommand part in the command component, and the private data is used for The particular location that the data division stores in the SGL pages is indicated, the command component is by the first subcommand portion Divide and the second subcommand part is formed.
With reference to the first possible implementation of fourth aspect, in second of possible implementation of fourth aspect In, invalid data is also included in the scsi data;
The invalid data is can not be by the first subcommand part in the private data and the data division When pointed scattered concentration table SGL pages filling is full, for the data being filled to being not filled by full part;
Described device also includes parsing module, is used for:The scsi data is write described SGL pages in the operation module After face, according to the private data, the data division is parsed from the scsi data for writing the SGL pages.
With reference to second of possible implementation of fourth aspect, in the third possible implementation of fourth aspect In, the parsing module is specifically used for:The data division according to indicated by the private data is right in the SGL pages The position answered, the data division is parsed from the scsi data.
The fifth aspect of the present invention, there is provided a kind of device by FC link transmission NAS data, including memory, input Equipment, output equipment and processor;The memory, the input equipment and the output equipment connect with the processor respectively Connect, wherein:
The memory, for store instruction;
The processor, for performing the instruction, file system addressing will be directed in the command component in NAS data First subcommand part mapping is small computer system interface scsi command, and described first will be removed in the NAS data Remainder outside subcommand part is as scsi data;Wherein, the NAS data include the command component and data Part;
The output equipment, for sending the scsi command by the FC chains road direction receiving terminal, and, in the input Equipment receive that the receiving terminal replys according to the scsi command generate when being allocated successfully message, pass through the FC links The scsi data is sent to the receiving terminal;
The input equipment, for receiving being distributed into according to scsi command generation for the receiving terminal reply Work(message.
With reference to the 5th aspect, in the first possible implementation of the 5th aspect, the processor is specifically used for will Remainder in the NAS data in addition to the first subcommand part is specially as scsi data:
The second subcommand part that the command component is included is as private data, and by the private data and institute Data division is stated as the scsi data;
Wherein, the private data is specific for indicating that the data division stores in the dispersed set table SGL pages Position, the command component are made up of the first subcommand part and the second subcommand part.
With reference to the first possible implementation of the 5th aspect, in second of possible implementation of the 5th aspect In, the processor is specifically for using the private data and the data division as the scsi data, being specially:
Using the private data, the data division and invalid data as the scsi data;
Wherein, the invalid data is can not be by first subcommand in the private data and the data division When SGL pages filling pointed by part is full, for the data being filled to being not filled by full part.
With reference to second of possible implementation of the 5th aspect, in the third possible implementation of the 5th aspect In, the processor is specifically used for using the private data, the data division and invalid data as the scsi data, Specially:
As the scsi data before the private data is arranged on into the data division and the invalid data;Or
As the scsi data after the private data is arranged on into the data division and the invalid data.
The sixth aspect of the present invention, there is provided a kind of device that NAS data are received by FC links, including:Memory, input Equipment, output equipment and processor;The memory, the input equipment and the output equipment connect with the processor respectively Connect, wherein:
The memory, for store instruction;
The input equipment, for the scsi command sent by the FC links receiving end/sending end;Wherein, the SCSI Order and obtain the first subcommand part mapping that file system addressing is directed in the command component in NAS data for the transmitting terminal Arrive;
The processor, for performing the instruction, the scattered concentration table SGL pages are distributed according to the scsi command, and Sent using the output equipment by transmitting terminal described in the FC chains road direction and be allocated successfully message;
The input equipment, which is additionally operable to receive the transmitting terminal by the FC links, to disappear receiving described be allocated successfully The scsi data sent after breath;
The processor is additionally operable to perform the instruction, and the scsi data is write into the SGL pages;Wherein, it is described Scsi data, which includes the remainder in addition to the first subcommand part, the NAS data in the NAS data, to be included The command component and data division.
With reference to the 6th aspect, in the first possible implementation of the 6th aspect, the scsi data includes private There are data and the data division;
Wherein, the private data includes the second subcommand part in the command component, and the private data is used for The particular location that the data division stores in the SGL pages is indicated, the command component is by the first subcommand portion Divide and the second subcommand part is formed.
With reference to the first possible implementation of the 6th aspect, in second of possible implementation of the 6th aspect In, invalid data is also included in the scsi data;
The invalid data is can not be by the first subcommand part in the private data and the data division When pointed scattered concentration table SGL pages filling is full, for the data being filled to being not filled by full part;
The processor is additionally operable to:The instruction is performed, after the scsi data is write into the SGL pages, root According to the private data, the data division is parsed from the scsi data for writing the SGL pages.
With reference to second of possible implementation of the 6th aspect, in the third possible implementation of the 6th aspect In, the processor is additionally operable to perform the instruction, according to the private data, from the SCSI for writing the SGL pages The data division is parsed in data, is specially:The instruction is performed, the data according to indicated by the private data Part corresponding position in the SGL pages, parses the data division from the scsi data.
It is scsi command by the first subcommand part mapping of the command component in NAS data in the embodiment of the present invention, with And be the equal of that NAS data are mapped as SAN data using the remainder in NAS data as scsi data, thus can be with NAS data are transmitted using the transmission link (i.e. FC links) of SAN system.For example, for SAN and NAS business be present simultaneously For unified storage array, directly transmitted as long as NAS data are mapped as into SAN data can using SAN transmission link NAS data, SAN transmission link need to be only established, without establishing transmission link respectively for SAN and NAS, save hardware money Source, cost is saved, also simplify link structure, reduce the probability of error.
Also, in general, the bandwidth of the special IP circuits of rental is limited, therefore, is entered on a wide area network based on IP agreement During row remote copy, there is larger time delay.And (Fibre Channel, the optical-fibre channel) links of FC used in SAN in bandwidth and Just there is more obvious advantage in time delay.But cause the excellent of FC links because FC links can not transmit NAS data in the prior art Gesture can not bring the lifting in performance to NAS subsystems, and the application of FC links is also narrower.Using in the embodiment of the present invention After technical scheme, NAS data are mapped as SAN data, are transmitted by FC links, FC link bandwidths compared with Width, time delay is smaller, and this advantage can also bring the lifting in performance to NAS subsystems, widen the application of FC links.
Brief description of the drawings
Figure 1A is the hardware structure schematic diagram in the embodiment of the present invention;
Figure 1B is by the main method flow chart of FC link transmission NAS data in the embodiment of the present invention;
Fig. 2 is the corresponding relation schematic diagram of NAS subdatas and file in the embodiment of the present invention;
Fig. 3 is in the embodiment of the present invention to write data into the SGL pages and schematic diagram of the private data when rear;
Fig. 4 is the schematic diagram that will fill invalid data in the embodiment of the present invention in the SGL pages;
Fig. 5 be write data into the embodiment of the present invention in the SGL pages, the SGL pages rest fill invalid data and Schematic diagram of the private data when preceding;
Fig. 6 is the main method flow chart for receiving NAS data in the embodiment of the present invention by FC links;
Fig. 7 is by the citing flow chart of FC link transmission NAS data in the embodiment of the present invention;
Fig. 8 is the primary structure block diagram of the device by FC link transmission NAS data in the embodiment of the present invention;
Fig. 9 is the primary structure block diagram for the device for receiving NAS data in the embodiment of the present invention by FC links;
Figure 10 is the primary structure schematic diagram of the device by FC link transmission NAS data in the embodiment of the present invention;
Figure 11 is the primary structure schematic diagram of the device by FC link transmission NAS data in the embodiment of the present invention.
Embodiment
The embodiment of the present invention provides a kind of method by FC link transmission NAS data, and methods described includes:Transmitting terminal is set It is minicomputer system for the first subcommand part mapping that will be addressed in the command component in NAS data for file system Interface scsi command, and, using the remainder in the NAS data in addition to the first subcommand part as SCSI numbers According to;Wherein, the NAS data include the command component and data division;The sending ending equipment passes through the FC links The scsi command is sent to receiving terminal;The sending ending equipment is receiving being ordered according to the SCSI for the receiving terminal reply When being allocated successfully message of order generation, the receiving terminal is sent to by the FC links by the scsi data.
It is scsi command by the first subcommand part mapping of the command component in NAS data in the embodiment of the present invention, with And be the equal of that NAS data are mapped as SAN data using the remainder in NAS data as scsi data, thus can be with NAS data are transmitted by the transmission link (i.e. FC links) of SAN system.For example, for SAN and NAS business be present simultaneously For unified storage array, directly transmitted as long as NAS data are mapped as into SAN data can using SAN transmission link NAS data, SAN transmission link need to be only established, without establishing transmission link respectively for SAN and NAS, save hardware money Source, cost is saved, also simplify link structure, reduce the probability of error.
Also, in general, the bandwidth of the special IP circuits of rental is limited, therefore, is entered on a wide area network based on IP agreement During row remote copy, there is larger time delay.And (Fibre Channel, the optical-fibre channel) links of FC used in SAN in bandwidth and Just there is more obvious advantage in time delay.But cause the excellent of FC links because FC links can not transmit NAS data in the prior art Gesture can not bring the lifting in performance to NAS subsystems, and the application of FC links is also narrower.Using in the embodiment of the present invention After technical scheme, NAS data are mapped as SAN data, are transmitted by FC links, FC link bandwidths compared with Width, time delay is smaller, and this advantage can also bring the lifting in performance to NAS subsystems, widen the application of FC links.
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
In addition, the terms " system " and " network " are often used interchangeably herein.The terms " and/ Or ", only a kind of incidence relation for describing affiliated partner, represents there may be three kinds of relations, for example, A and/or B, can be with table Show:Individualism A, while A and B be present, these three situations of individualism B.In addition, character "/" herein, such as without special theory Bright, it is a kind of relation of "or" to typically represent forward-backward correlation object.
In the embodiment of the present invention, sending ending equipment is a uniform storage device, and it is both with SAN functions or with NAS Function, i.e. sending ending equipment can both handle the data in SAN system, can also handle the data in NAS system.Likewise, Receiving device is also a uniform storage device, and it is also both with SAN functions or with NAS functions, i.e. receiving device Both the data in SAN system can have been handled, the data in NAS system can also be handled.Unified storage, substantially one can be with The storage architecture of NAS and SAN networking is supported, because it supports different storage agreements to be deposited for main frame systems with data Storage, therefore also referred to as multi-protocols store.
Linkup transmit end equipment and receiving device are FC links that SAN system is supported, i.e. either SAN system In data, or data in NAS system are required for being transmitted by FC links.Specific to refer to Figure 1A, Figure 1A is left The uniform storage device on side is sending ending equipment, and the uniform storage device on the right is receiving device, the direction pointed by arrow The direction that as data are sent.
In the embodiment of the present invention, transmitting terminal and sending ending equipment, same equipment is referred to, likewise, receiving terminal and reception End equipment is also referred to as same equipment.
The embodiment of the present invention is described in further detail with reference to Figure of description.
Figure 1B is referred to, the embodiment of the present invention provides a kind of method by FC link transmission NAS data, methods described Main flow is described as follows.
Step 101:Sending ending equipment will be directed to the first subcommand of file system addressing in the command component in NAS data Part mapping is small computer system interface scsi command, and, the first subcommand part will be removed in the NAS data Outside remainder as scsi data;Wherein, the NAS data include the command component and data division.
In the embodiment of the present invention, NAS data refer to the data packaged by the protocol format supported according to NAS system, i.e. The transmission of NAS data, storage etc. are based on the agreement that NAS system is supported.
The structure of NAS data, can simply it be interpreted as:One NAS data can be abstracted as command component and data division, Certainly gauge outfit can also be included.
In the embodiment of the present invention, SAN data refers to the data packaged by the protocol format supported according to SAN system, i.e. The transmission of SAN data, storage etc. are based on the agreement that SAN system is supported.
NAS data include the command component and the data division, and the command component includes the first son life Order part and the second subcommand part, the first subcommand part are used to address for file system, i.e. pass through described first Subcommand part determines the data division which file be sent to, therefore can be by the first subcommand part mapping For the scsi command." mapping " described in the embodiment of the present invention, just refer to handle, will be at the first subcommand part Manage as the scsi command.
Optionally, the first subcommand part includes target file system ID (Identity, authentication), privately owned number According to information such as length, total length of data.The destination address of the NAS data transmission is determined by the target file system ID, The total length of data shows the total length of the scsi data.
The scsi command includes CDB (Command Data Block, command data block) parameters and LunID (Logic Unit Number ID, logic unit ID) parameter.It is the scsi command by the first subcommand part mapping, including will The Part I of the first subcommand part is mapped as CDB parameters, and the Part II of the first subcommand part is reflected Penetrate as LunID parameters, wherein, the first subcommand part is made up of the Part I and the Part II.
For example, a kind of mapping mode is please mapped to referring to Tables 1 and 2, table 1 by the Part I respectively LunID parameters, table 2 are the CDB parameters being mapped to by Part II.Tables 1 and 2 is 32 with the target file system ID Exemplified by position, the command word in CDB parameters are 0xDE.
Table 1
Table 2
Wherein, private data length and the unit of total length of data can be unit according to sector.In Tables 1 and 2 RESERVED is reserved place, and the PROTECT in table 2 is DIF (standard data integrity field) protection marks, can use SCSI The mode that standard defines is protected to data.The definition of CONTROL fields in table 2 refers to SCSI protocol standard.
Such as another mapping mode, please respectively referring to table 3 and table 4, table 3 is to be mapped to by the Part I LunID parameters, table 4 is the CDB parameters that are mapped to by Part II.Table 3 and table 4 are 64 with the target file system ID Exemplified by position, the command word in CDB parameters are 0xDF.
Table 3
Table 4
Wherein, private data length and the unit of total length of data can be unit according to sector.In table 3 and table 4 RESERVED is reserved place, and the PROTECT in table 4 is DIF (standard data integrity field) protection marks, can use SCSI The mode that standard defines is protected to data.The definition of CONTROL fields in table 4 refers to SCSI protocol standard.
Certainly, the above can also have other mapping modes simply for two examples, as long as can be by the described first son Command component is mapped as the mode of the scsi command within protection scope of the present invention.
A part for the NAS data is mapped as the scsi command, using the other parts of the NAS data as institute Scsi data is stated, completes the form conversion of the NAS data, it can be understood as encapsulate the NAS data for SAN numbers According to, so as to will enter row format conversion after NAS data be transmitted in FC links, you can with utilize FC link transmissions NAS data, without establishing transmission link respectively for SAN and NAS, hardware resource is saved, saves cost, also simplify link Structure, reduce the probability of error.Also, NAS data are mapped as SAN data, are carried out by FC links Transmission, FC link bandwidths are wider, and time delay is smaller, and this advantage can also bring the lifting in performance to NAS subsystems, widen FC The application of link.
Optionally, in the embodiment of the present invention, by the remainder in the NAS data in addition to the first subcommand part It is allocated as the scsi data, to include:
The second subcommand part that the command component is included is as private data, and by the private data With the data division as the scsi data;
Wherein, the private data is used to indicate that the data division (Scatter-Gather-List, disperses collection in SGL Close table) particular location that stores in the page, the command component is by the first subcommand part and the second subcommand portion Divide and form.
That is, in the scsi data, the private data can be used as an individually part.Receiving terminal is receiving After stating scsi data, the scsi data can be stored into the SGL pages, the private data is just used to indicate the number The particular location stored according to part in the SGL pages, so as to facilitate the receiving terminal according to the private data by described in Data division parses.
In the embodiment of the present invention, multiple NAS subdatas may be included in the NAS data, i.e. in the embodiment of the present invention Described NAS data, multiple NAS data can be included in fact.Here in order to distinguish, just the NAS data once transmitted are regarded as One total NAS data, each NAS data wherein included are referred to as NAS subdatas, each NAS subdatas possibility to be accessed It is different files.
Fig. 2 is referred to, so that total NAS data include three NAS subdatas as an example, i.e. subdata 1, subdata 2 in Fig. 2 With subdata 3.Order 1 and address 1 in Fig. 2 correspond to subdata 1, and order 2 and address 2 correspond to subdata 2, order 3 Hes Address 3 corresponds to subdata 3, and file 1 is the file to be accessed of subdata 1, and file 2 is the file to be accessed of subdata 2, file 3 be the file to be accessed of subdata 3, and file 4 is the private data file to be accessed.Part in Fig. 2 in dotted line frame is To be added to the part of the private data, i.e. can be by second corresponding to each NAS subdatas that total NAS data include Subcommand part is added in the private data.
In the embodiment of the present invention, the SGL pages, a SGL page can be referred to, or may also mean that multiple SGL The page.
Further, it is contemplated that data in internal memory be typically according to SGL mode tissues, i.e., will be discrete with a chained list Spatial cache is organized, and for caching larger amount of data, generally each SGL nodes point to one or more memory pages, One memory pages includes 4096Bytes (byte), and real data caching uses a page or multiple all or part of skies Between.
For example, Fig. 3 is referred to, and so that total NAS data include three NAS subdatas as an example, i.e. subdata 1, son in Fig. 3 Data 2 and subdata 3.Order 1 and address 1 in Fig. 3 correspond to subdata 1, and order 2 and address 2 correspond to subdata 2, order Make 3 and address 3 correspond to subdata 3, file 1 is the file to be accessed of subdata 1, and file 2 is the text to be accessed of subdata 2 Part, file 3 are the file to be accessed of subdata 3.SGL nodes corresponding to file 1 be Fig. 3 shown in node 1, the correspondence of node 1 There are two SGL pages, i.e. two after node 1 square frame, it can be seen that subdata 1 needs to be respectively written into the two SGL In the page, write in first SGL page for the data a in subdata 1, write in second SGL page for subdata 1 In data b.SGL nodes corresponding to file 2 are the node 2 shown in Fig. 3, and node 2 is corresponding with a SGL page, that is, is located at A square frame after node 2, it can be seen that subdata 2 needs to write in this SGL page, writes in the SGL pages and is Data h in subdata 2.SGL nodes corresponding to file 3 are the node 3 shown in Fig. 3, and node 3 is corresponding with three SGL pages, Three square frames being located at after node 3, it can be seen that subdata 3 needs to be respectively written into these three SGL pages, write-in the In one SGL page for the data c in subdata 3, write in second SGL page for the data d in subdata 3, write Enter in the 3rd SGL page for the data e in subdata 3.Oblique line in Fig. 3 in square frame represents data in the SGL pages Specific deposit position.File 4 in Fig. 3 represents file corresponding to the private data, and SGL nodes corresponding to file 4 are Fig. 3 In node 4, node 4 is corresponding with two SGL pages, i.e. two after node 4 square frame, it can be seen that described privately owned Data need to be respectively written into the two SGL pages, write in first SGL page for the data f in the private data, Write in second SGL page for the data g in the private data.
Part in Fig. 3 in the dotted line frame on the left side is the part for being added to the private data, i.e. can be by total NAS The second subcommand part corresponding to each NAS subdatas that data include is added in the private data.The right in Fig. 3 Dotted line frame in the NAS data as once transmitted of part corresponding to the SGL pages.
The data division is have recorded in the private data in the SGL pages, i.e., it is corresponding specific in memory pages Position, but the private data follows the data division to send jointly to the receiving terminal, the receiving terminal be Accurate location of the data division in the SGL pages is just will appreciate that after the scsi data is write into the SGL pages, Therefore, in order to which data division storage is arrived into correct position, moving for data subsequently may can be also related to, this is undoubtedly The workload of receiving terminal is added, it is also more troublesome.
In order to avoid the moving on memory pages in data, it may be considered that when the receiving terminal receives data just by number Put in place according to mode as required.
To solve the problem, optionally, in the embodiment of the present invention, using the private data and the data division as institute Scsi data is stated, can be included:
Using the private data, the data division and invalid data as the scsi data;
Wherein, the invalid data is can not be by first subcommand in the private data and the data division When SGL pages filling pointed by part is full, for the data being filled to being not filled by full part.
That is, transmitting terminal can the second subcommand part as the private data, then each nodes of SGL are pointed to each Whole spaces of the SGL pages, i.e., send the total data of each SGL pages when sending, rather than only sends and insert valid data Part, such transmitting terminal sends whole pages, and receiving terminal also inserts data whole pages, afterwards again from the private data The middle position for reading the data division in the page, so that it may obtain complete NAS data.So can be directly by the data Correct position is arrived in part storage, is avoided follow-up data-moving, is saved follow-up operating procedure.
For example, Fig. 4 is referred to, and so that total NAS data include three NAS subdatas as an example, i.e. subdata 1, son in Fig. 4 Data 2 and subdata 3.Order 1 and address 1 in Fig. 4 correspond to subdata 1, and order 2 and address 2 correspond to subdata 2, order Make 3 and address 3 correspond to subdata 3, file 1 is the file to be accessed of subdata 1, and file 2 is the text to be accessed of subdata 2 Part, file 3 are the file to be accessed of subdata 3.SGL nodes corresponding to file 1 be Fig. 4 shown in node 1, the correspondence of node 1 There are two SGL pages, i.e. two after node 1 square frame, it can be seen that subdata 1 needs to be respectively written into the two SGL In the page, write in first SGL page for the data a in subdata 1, write in second SGL page for subdata 1 In data b.SGL nodes corresponding to file 2 are the node 2 shown in Fig. 4, and node 2 is corresponding with a SGL page, that is, is located at A square frame after node 2, it can be seen that subdata 2 needs to write in this SGL page, writes in the SGL pages and is Data h in subdata 2.SGL nodes corresponding to file 3 are the node 3 shown in Fig. 4, and node 3 is corresponding with three SGL pages, Three square frames being located at after node 3, it can be seen that subdata 3 needs to be respectively written into these three SGL pages, write-in the In one SGL page for the data c in subdata 3, write in second SGL page for the data d in subdata 3, write Enter in the 3rd SGL page for the data e in subdata 3.Oblique line in Fig. 4 in square frame represents data in the SGL pages Specific deposit position, the horizontal line in square frame represents deposit position of the invalid data in the SGL pages.Text in Fig. 4 Part 4 represents file corresponding to the private data, and SGL nodes corresponding to file 4 are the node 4 in Fig. 4, and node 4 is corresponding with two The individual SGL pages, i.e. two after node 4 square frame, it can be seen that the private data needs to be respectively written into the two In the SGL pages, write in first SGL page for the data f in the private data, write in second SGL page For the data g in the private data.
Part in Fig. 4 in the dotted line frame on the left side is the part for being added to the private data, i.e. can be by total NAS The second subcommand part corresponding to each NAS subdatas that data include is added in the private data.The right in Fig. 4 Dotted line frame in the NAS data as once transmitted of part corresponding to the SGL pages.
Optionally, in the embodiment of the present invention, position of the private data in the scsi data can be any.Example Such as, using the private data, the data division and the invalid data as the scsi data, can include:
As the scsi data before the private data is arranged on into the data division and the invalid data;Or
As the scsi data after the private data is arranged on into the data division and the invalid data.
If for example, before the private data is arranged on into the data division and the invalid data, the reception End may proceed to receive the data division and the invalid data after the private data has been received.And the receiving terminal is connecing After harvesting the private data, a memory pages can be set up another and deposit the data division and the invalid data.
For example, Fig. 5 is referred to, and so that total NAS data include three NAS subdatas as an example, i.e. subdata 1, son in Fig. 5 Data 2 and subdata 3.Order 1 and address 1 in Fig. 5 correspond to subdata 1, and order 2 and address 2 correspond to subdata 2, order Make 3 and address 3 correspond to subdata 3, file 1 is the file to be accessed of subdata 1, and file 2 is the text to be accessed of subdata 2 Part, file 3 are the file to be accessed of subdata 3.SGL nodes corresponding to file 1 be Fig. 5 shown in node 1, the correspondence of node 1 There are two SGL pages, i.e. two after node 1 square frame, it can be seen that subdata 1 needs to be respectively written into the two SGL In the page, write in first SGL page for the data a in subdata 1, write in second SGL page for subdata 1 In data b.SGL nodes corresponding to file 2 are the node 2 shown in Fig. 5, and node 2 is corresponding with a SGL page, that is, is located at A square frame after node 2, it can be seen that subdata 2 needs to write in this SGL page, writes in the SGL pages and is Data h in subdata 2.SGL nodes corresponding to file 3 are the node 3 shown in Fig. 5, and node 3 is corresponding with three SGL pages, Three square frames being located at after node 3, it can be seen that subdata 3 needs to be respectively written into these three SGL pages, write-in the In one SGL page for the data c in subdata 3, write in second SGL page for the data d in subdata 3, write Enter in the 3rd SGL page for the data e in subdata 3.Oblique line in Fig. 5 in square frame represents data in the SGL pages Specific deposit position, the horizontal line in square frame represents deposit position of the invalid data in the SGL pages.Text in Fig. 5 Part 4 represents file corresponding to the private data, and SGL nodes corresponding to file 4 are the node 4 in Fig. 5, and node 4 is corresponding with two The individual SGL pages, i.e. two after node 4 square frame, it can be seen that the private data needs to be respectively written into the two In the SGL pages, write in first SGL page for the data f in the private data, write in second SGL page For the data g in the private data.In Fig. 5, the private data is placed on the data division and the invalid data Before, the file corresponding to the private data be also located in the data division and file corresponding to the invalid data it Before.
Part in Fig. 5 in the dotted line frame on the left side is the part for being added to the private data, i.e. can be by total NAS The second subcommand part corresponding to each NAS subdatas that data include is added in the private data.The right in Fig. 5 Dotted line frame in the NAS data as once transmitted of part corresponding to the SGL pages.
If for example, after the private data is arranged on into the data division and the invalid data, the reception End may proceed to receive the private data after the data division and the invalid data has been received.And the receiving terminal is connecing After harvesting the data division and the invalid data, a memory pages can be set up another and deposit the private data.Please still join See Fig. 4, the private data is placed on after the data division and the invalid data, corresponding to the private data File is also located in after the data division and file corresponding to the invalid data.
So, it is easy to make a distinction the private data and the data division and the invalid data, receiving terminal will It is easier to find the private data during deposit position for determining the data division by the private data.
Step 102:The sending ending equipment sends the scsi command by the FC chains road direction receiving terminal.
The transmitting terminal sends the scsi command to the receiving terminal first after by the NAS data processings, The receiving terminal is after the scsi command is received, target file system ID, number that can be according to indicated by the scsi command According to the information such as total length come prepare will be used for data storage the SGL pages.
Step 103:The sending ending equipment according to the scsi command in generating of receiving that the receiving terminal replys When being allocated successfully message, the scsi data is sent to by the receiving terminal by the FC links.
The receiving terminal, can be to the transmitting terminal after the data distribution indicated for the scsi command finishes the SGL pages Message is allocated successfully described in return, certainly, the message that is allocated successfully can also be by the FC link transmissions.The hair The scsi data is sent to the receiving terminal by sending end after message is allocated successfully described in receiving, then the receiving terminal will The scsi data is write in the ready SGL pages.
Fig. 6 is referred to, based on same inventive concept, the embodiment of the present invention provides a kind of by FC links reception NAS data Method, the main flow of methods described is described as follows.Flow shown in Fig. 6 is the place of the receiving terminal corresponding with Fig. 1 flows Manage flow.
Step 601:The scsi command that receiving device is sent by the FC links receiving end/sending end;Wherein, it is described Scsi command is that the transmitting terminal reflects the first subcommand part that file system addressing is directed in the command component in NAS data Penetrate what is obtained.
The process that the transmitting terminal obtains the scsi command according to the first subcommand part has in Fig. 1 flows Description, is seldom repeated herein.
The transmitting terminal can start to send the NAS after encapsulation after the NAS data are re-packaged into SAN data Data.Transmitting terminal described first can send the scsi command to the receiving terminal.
Step 602:The receiving device distributes the scattered concentration table SGL pages according to the scsi command, and passes through institute State transmitting terminal transmission described in FC chain road directions and be allocated successfully message.
The receiving terminal, can be according to the scsi command come the data for that will receive after the scsi command is received Distribute the SGL pages, after being assigned, the receiving terminal can generate it is described be allocated successfully message, and be distributed into described Work(message is sent to the transmitting terminal.
Step 603:The receiving device receives the transmitting terminal by the FC links and is receiving described be distributed into The scsi data sent after work(message, and the scsi data is write into the SGL pages;Wherein, the scsi data includes Remainder in the NAS data in addition to the first subcommand part, the NAS data include the command component And data division.
The transmitting terminal can send the scsi data after message is allocated successfully described in receiving to the receiving terminal, The scsi data can be write the SGL pages by the receiving terminal.
Optionally, in the embodiment of the present invention, the scsi data includes private data and the data division;Wherein, The private data includes the second subcommand part in the command component, and the private data is used to indicate the data portion Divide the particular location stored in the SGL pages, the command component is by the first subcommand part and second son Command component is formed.
Optionally, in the embodiment of the present invention, invalid data is also included in the scsi data;The invalid data is in institute The scattered concentration table SGL pages pointed by the first subcommand part can not be filled out by stating private data and the data division Full of when, for the data being filled to being not filled by full part.
Further, in the embodiment of the present invention, after the scsi data is write into the SGL pages, can also wrap Include:According to the private data, the data division is parsed from the scsi data for writing the SGL pages.
That is, after the scsi data is write into the SGL pages, the number can be parsed from the SGL pages According to part, using by the data convert of reception as the NAS data after handled.
Optionally, in the embodiment of the present invention, according to the private data, from the SCSI numbers for writing the SGL pages The data division is parsed in, can be included:The data division according to indicated by the private data is in the SGL Corresponding position in the page, parses the data division from the scsi data.
The private data indicates particular location of the data division in the SGL pages, then the receiving terminal The data division just can be found out from the SGL pages according to the instruction of the private data, and be reduced to described NAS data.In the embodiment of the present invention, the private data indicates specific position of the data division in the SGL pages Put, can refer to, the private data indicates page bias internal and/or page of the data division in the SGL pages The information such as data length in face.
Introduced below by way of a detailed flow in the embodiment of the present invention by the mistake of FC link transmission NAS data Journey.Refer to Fig. 7.
Step 701:Transmitting terminal prepares the page of private data;Here the page of the private data refers to the SGL pages.
Step 702:Second subcommand part of each NAS subdatas that the transmitting terminal will be completed in once transmitting is protected Exist in the private data, and make the data division of private data and the NAS data form scsi data.
Step 703:The transmitting terminal will not take the part of the page in the SGL pages pointed by corresponding each SGL nodes Filled with invalid data;That is, each SGL nodes are pointed to whole spaces of the corresponding SGL pages.So, the scsi data In just include the private data, the data division and the invalid data.
Step 704:The transmitting terminal is partially filled with scsi command according to first subcommand.The side of specific filling order Formula has been described in Fig. 1 flows.Wherein, can be performed in any order between step 701-703 and step 704.
Step 705:The transmitting terminal connects SGL nodes corresponding to each NAS subdatas according to sequencing, by institute The SGL nodes for stating private data are placed on finally.The embodiment is so that the private data to be placed on to the data division of NAS data and institute Exemplified by stating after invalid data.
Step 706:The transmitting terminal first passes through the FC links and sends the scsi command to reception according to SCSI protocol End.
Step 707:After the receiving terminal receives the scsi command, according to the total length of data of scsi command instruction The SGL pages are distributed, and transmitting terminal feedback allocation success message is given by the FC links.
Step 708:The transmitting terminal sends the scsi data to receiving terminal by the FC links.
Step 709:The receiving terminal stores the scsi data into the SGL pages of preparation, and passes through the SCSI Command analysis goes out private data length.
Step 7010:The receiving terminal parses each NAS subdatas according to the private data from the SGL pages.
Step 7011:The receiving terminal handles each NAS subdatas.
Step 7012:The receiving terminal responds the transmitting terminal by the FC links, and this is transmitted.
Step 7013:The transmitting terminal receives response, discharges related resource.
Fig. 8 is referred to, based on same inventive concept, the embodiment of the present invention provides one kind and passes through FC link transmission NAS data Device, described device is foregoing to send end device, i.e. described device can be specifically uniform storage device.Institute Mapping block 801 and sending module 802 can be included by stating device.
Mapping block 801 is used to that the first subcommand portion of file system addressing will to be directed in the command component in NAS data Point be mapped as small computer system interface scsi command, and will in the NAS data except the first subcommand part it Outer remainder is as scsi data;Wherein, the NAS data include the command component and data division;
Sending module 802 is used to send the scsi command by the FC chains road direction receiving terminal;
The receiving module that sending module 802 is additionally operable to include in said device receives the basis that the receiving terminal is replied When being allocated successfully message of the scsi command generation, the reception is sent to by the FC links by the scsi data End.
Optionally, in the embodiment of the present invention, mapping block 801 is used to that first subcommand will to be removed in the NAS data Remainder outside part is specially as scsi data:
The second subcommand part that the command component is included is as private data, and by the private data and institute Data division is stated as the scsi data;
Wherein, the private data is specific for indicating that the data division stores in the dispersed set table SGL pages Position, the command component are made up of the first subcommand part and the second subcommand part.
Optionally, in the embodiment of the present invention, mapping block 801 is specifically used for the private data and the data division As the scsi data, it is specially:
Using the private data, the data division and invalid data as the scsi data;
Wherein, the invalid data is can not be by first subcommand in the private data and the data division When SGL pages filling pointed by part is full, for the data being filled to being not filled by full part.
Optionally, in the embodiment of the present invention, mapping block 801 be specifically used for by the private data, the data division, And invalid data is specially as the scsi data:
As the scsi data before the private data is arranged on into the data division and the invalid data;Or
As the scsi data after the private data is arranged on into the data division and the invalid data.
Fig. 9 is referred to, based on same inventive concept, the embodiment of the present invention provides a kind of by FC links reception NAS data Device, described device is foregoing receiving end device, i.e. described device can be specifically uniform storage device.Institute Receiving module 901, distribute module 902 and operation module 903 can be included by stating device.
Receiving module 901 is used for the scsi command sent by the FC links receiving end/sending end;Wherein, the SCSI lives Make and obtaining the first subcommand part mapping that file system addressing is directed in the command component in NAS data for the transmitting terminal 's;
Distribute module 902 is used to distribute the scattered concentration table SGL pages according to the scsi command, and passes through the FC links Sent to the transmitting terminal and be allocated successfully message;
Operation module 903 is used to receive the transmitting terminal receiving by the FC links using receiving module 901 The scsi data for being allocated successfully and being sent after message is stated, and for the scsi data to be write into the SGL pages;Wherein, it is described Scsi data, which includes the remainder in addition to the first subcommand part, the NAS data in the NAS data, to be included The command component and data division.
Optionally, in the embodiment of the present invention, the scsi data includes private data and the data division;
Wherein, the private data includes the second subcommand part in the command component, and the private data is used for The particular location that the data division stores in the SGL pages is indicated, the command component is by the first subcommand portion Divide and the second subcommand part is formed.
Optionally, in the embodiment of the present invention, invalid data is also included in the scsi data;
The invalid data is can not be by the first subcommand part in the private data and the data division When pointed scattered concentration table SGL pages filling is full, for the data being filled to being not filled by full part;
Described device also includes parsing module, is used for:The scsi data is write described SGL pages in operation module 903 After face, according to the private data, the data division is parsed from the scsi data for writing the SGL pages.
Optionally, in the embodiment of the present invention, the parsing module is specifically used for:Institute according to indicated by the private data Data division corresponding position in the SGL pages is stated, the data division is parsed from the scsi data.
Figure 10 is referred to, based on same inventive concept, the embodiment of the present invention provides one kind and passes through FC link transmission NAS data Device, described device is foregoing to send end device, i.e. described device can be specifically uniform storage device.Institute Memory 1001, input equipment 1002, output equipment 1003 and processor 1004 can be included by stating device, wherein, memory 1001st, input equipment 1002 and output equipment 1003 are connected with processor 1004 respectively.Wherein, memory 1001, input equipment 1002 and output equipment 1003 can be connected respectively by connecting line with processor 1004, as shown in Figure 10, or, memory 1001st, input equipment 1002, output equipment 1003 and processor 1004 can be all connected to same bus.
Memory 1001 is used for store instruction;
Processor 1004, for performing the instruction, file system addressing will be directed in the command component in NAS data First subcommand part mapping is small computer system interface scsi command, and described first will be removed in the NAS data Remainder outside subcommand part is as scsi data;Wherein, the NAS data include the command component and data Part;
Output equipment 1003, for sending the scsi command by the FC chains road direction receiving terminal, and, in input equipment 1002 receive that the receiving terminal replys according to the scsi command generate when being allocated successfully message, pass through the FC links The scsi data is sent to the receiving terminal.
Input equipment 1002, for receiving being distributed into according to scsi command generation for the receiving terminal reply Work(message.
Optionally, in the embodiment of the present invention, processor 1004 is specifically used for that the described first son life will be removed in the NAS data The remainder outside part is made to be specially as scsi data:
The second subcommand part that the command component is included is as private data, and by the private data and institute Data division is stated as the scsi data;
Wherein, the private data is specific for indicating that the data division stores in the dispersed set table SGL pages Position, the command component are made up of the first subcommand part and the second subcommand part.
Optionally, in the embodiment of the present invention, processor 1004 is specifically used for the private data and the data division As the scsi data, it is specially:
Using the private data, the data division and invalid data as the scsi data;
Wherein, the invalid data is can not be by first subcommand in the private data and the data division When SGL pages filling pointed by part is full, for the data being filled to being not filled by full part.
Optionally, in the embodiment of the present invention, processor 1004 be specifically used for by the private data, the data division, And invalid data is specially as the scsi data:
As the scsi data before the private data is arranged on into the data division and the invalid data;Or
As the scsi data after the private data is arranged on into the data division and the invalid data.
Figure 11 is referred to, based on same inventive concept, the embodiment of the present invention provides a kind of by FC links reception NAS data Device, described device is foregoing receiving end device, i.e. described device can be specifically uniform storage device.Institute Memory 1101, input equipment 1102, output equipment 1103 and processor 1104 can be included by stating device, wherein, memory 1101st, input equipment 1102 and output equipment 1103 are connected with processor 1104 respectively.Wherein, memory 1101, input equipment 1102 and output equipment 1103 can be connected respectively by connecting line with processor 1104, as shown in figure 11, or, memory 1101st, input equipment 1102, output equipment 1103 and processor 1104 can be all connected to same bus.
Memory 1101 is used for store instruction;
Input equipment 1102, for the scsi command sent by the FC links receiving end/sending end;Wherein, the SCSI Order and obtain the first subcommand part mapping that file system addressing is directed in the command component in NAS data for the transmitting terminal Arrive;
Processor 1104, for performing the instruction, the scattered concentration table SGL pages are distributed according to the scsi command, and Sent using output equipment 1103 by transmitting terminal described in the FC chains road direction and be allocated successfully message;
Input equipment 1102, which is additionally operable to receive the transmitting terminal by the FC links, to disappear receiving described be allocated successfully The scsi data sent after breath;
Processor 1104 is additionally operable to perform the instruction, and the scsi data is write into the SGL pages;Wherein, it is described Scsi data, which includes the remainder in addition to the first subcommand part, the NAS data in the NAS data, to be included The command component and data division.
Optionally, in the embodiment of the present invention, the scsi data includes private data and the data division;
Wherein, the private data includes the second subcommand part in the command component, and the private data is used for The particular location that the data division stores in the SGL pages is indicated, the command component is by the first subcommand portion Divide and the second subcommand part is formed.
Optionally, in the embodiment of the present invention, invalid data is also included in the scsi data;
The invalid data is can not be by the first subcommand part in the private data and the data division When pointed scattered concentration table SGL pages filling is full, for the data being filled to being not filled by full part;
Processor 1104 is additionally operable to:The instruction is performed, after the scsi data is write into the SGL pages, root According to the private data, the data division is parsed from the scsi data for writing the SGL pages.
Optionally, in the embodiment of the present invention, processor 1104 is additionally operable to perform the instruction, according to the private data, The data division is parsed from the scsi data for writing the SGL pages, is specially:The instruction is performed, according to The data division indicated by the private data corresponding position in the SGL pages, is solved from the scsi data Separate out the data division.
The embodiment of the present invention provides a kind of method by FC link transmission NAS data, and methods described includes:Transmitting terminal is set It is minicomputer system for the first subcommand part mapping that will be addressed in the command component in NAS data for file system Interface scsi command, and, using the remainder in the NAS data in addition to the first subcommand part as SCSI numbers According to;Wherein, the NAS data include the command component and data division;The sending ending equipment passes through the FC links The scsi command is sent to receiving terminal;The sending ending equipment is receiving being ordered according to the SCSI for the receiving terminal reply When being allocated successfully message of order generation, the receiving terminal is sent to by the FC links by the scsi data.
It is scsi command by the first subcommand part mapping of the command component in NAS data in the embodiment of the present invention, with And be the equal of that NAS data are mapped as SAN data using the remainder in NAS data as scsi data, thus can be with NAS data are transmitted by the transmission link (i.e. FC links) of SAN system.For example, for SAN and NAS business be present simultaneously For unified storage array, directly transmitted as long as NAS data are mapped as into SAN data can using SAN transmission link NAS data, SAN transmission link need to be only established, without establishing transmission link respectively for SAN and NAS, save hardware money Source, cost is saved, also simplify link structure, reduce the probability of error.
Also, in general, the bandwidth of the special IP circuits of rental is limited, therefore, is entered on a wide area network based on IP agreement During row remote copy, there is larger time delay.And (Fibre Channel, the optical-fibre channel) links of FC used in SAN in bandwidth and Just there is more obvious advantage in time delay.But cause the excellent of FC links because FC links can not transmit NAS data in the prior art Gesture can not bring the lifting in performance to NAS subsystems, and the application of FC links is also narrower.Using in the embodiment of the present invention After technical scheme, NAS data are mapped as SAN data, are transmitted by FC links, FC link bandwidths compared with Width, time delay is smaller, and this advantage can also bring the lifting in performance to NAS subsystems, widen the application of FC links.
It is apparent to those skilled in the art that for convenience and simplicity of description, only with above-mentioned each function The division progress of module, can be as needed and by above-mentioned function distribution by different function moulds for example, in practical application Block is completed, i.e., the internal structure of device is divided into different functional modules, to complete all or part of work(described above Energy.The specific work process of the system, apparatus, and unit of foregoing description, it may be referred to corresponding in preceding method embodiment Journey, it will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the module or The division of unit, only a kind of division of logic function, can there are other dividing mode, such as multiple units when actually realizing Or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, institute Display or the mutual coupling discussed or direct-coupling or communication connection can be by some interfaces, device or unit INDIRECT COUPLING or communication connection, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, the technical scheme of the application is substantially The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer It is each that equipment (can be personal computer, server, or network equipment etc.) or processor (processor) perform the application The all or part of step of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage, Random access memory, magnetic disc or CD etc. are various can be with the medium of store program codes.
Described above, above example is implemented above only the technical scheme of the application to be described in detail The explanation of example is only intended to help the method and its core concept for understanding the present invention, should not be construed as limiting the invention.This Those skilled in the art the invention discloses technical scope in, the change or replacement that can readily occur in should all be covered Within protection scope of the present invention.

Claims (24)

  1. A kind of 1. method by Fibre Channel link transmission network attached storage NAS data, it is characterised in that including:
    The first subcommand part mapping that file system addressing is directed in command component in NAS data is small by sending ending equipment Type computer system interface scsi command, and by the remainder in the NAS data in addition to the first subcommand part It is allocated as scsi data;Wherein, the NAS data include the command component and data division;
    The sending ending equipment sends the scsi command by the FC chains road direction receiving terminal;
    The sending ending equipment is allocated successfully message receive that the receiving terminal replys according to what the scsi command generated When, the scsi data is sent to by the receiving terminal by the FC links.
  2. 2. the method as described in claim 1, it is characterised in that will in the NAS data except the first subcommand part it Outer remainder as scsi data, including:
    The second subcommand part that the command component is included is as private data, and by the private data and the number The scsi data is used as according to part;
    Wherein, the private data is used to indicate the particular location that the data division stores in the dispersed set table SGL pages, The command component is made up of the first subcommand part and the second subcommand part.
  3. 3. method as claimed in claim 2, it is characterised in that using the private data and the data division as described in Scsi data, including:
    Using the private data, the data division and invalid data as the scsi data;
    Wherein, the invalid data is can not be by the first subcommand part in the private data and the data division When pointed SGL pages filling is full, for the data being filled to being not filled by full part.
  4. 4. method as claimed in claim 3, it is characterised in that by the private data, the data division and invalid data As the scsi data, including:
    As the scsi data before the private data is arranged on into the data division and the invalid data;Or
    As the scsi data after the private data is arranged on into the data division and the invalid data.
  5. A kind of 5. method that network attached storage NAS data are received by Fibre Channel link, it is characterised in that including:
    The scsi command that receiving device is sent by the FC links receiving end/sending end;Wherein, the scsi command is described Transmitting terminal obtains the first subcommand part mapping that file system addressing is directed in the command component in NAS data;
    The receiving device distributes the scattered concentration table SGL pages according to the scsi command, and passes through the FC chains road direction institute State transmitting terminal transmission and be allocated successfully message;
    The receiving device is sent by the FC links reception transmitting terminal after message is allocated successfully described in receiving Scsi data, and the scsi data is write into the SGL pages;Wherein, the scsi data is included in the NAS data Remainder in addition to the first subcommand part, the NAS data include the command component and data division.
  6. 6. method as claimed in claim 5, it is characterised in that the scsi data includes private data and the data portion Point;
    Wherein, the private data includes the second subcommand part in the command component, and the private data is used to indicate The particular location that the data division stores in the SGL pages, the command component by the first subcommand part and The second subcommand part is formed.
  7. 7. method as claimed in claim 6, it is characterised in that also include invalid data in the scsi data;
    The invalid data is can not be signified by the first subcommand part in the private data and the data division To the filling of the scattered concentration table SGL pages it is full when, for the data being filled to being not filled by full part;
    After the scsi data is write into the SGL pages, in addition to:
    According to the private data, the data division is parsed from the scsi data for writing the SGL pages.
  8. 8. method as claimed in claim 7, it is characterised in that according to the private data, from the institute for writing the SGL pages State and the data division is parsed in scsi data, including:The data division according to indicated by the private data is in institute Corresponding position in the SGL pages is stated, the data division is parsed from the scsi data.
  9. A kind of 9. device by Fibre Channel link transmission network attached storage NAS data, it is characterised in that including:
    Mapping block, for the first subcommand part mapping of file system addressing will to be directed in the command component in NAS data For small computer system interface scsi command, and will be surplus in addition to the first subcommand part in the NAS data Remaining part is allocated as scsi data;Wherein, the NAS data include the command component and data division;
    Sending module, for sending the scsi command by the FC chains road direction receiving terminal;
    The sending module, it is additionally operable to receiving being allocated successfully according to what the scsi command generated for the receiving terminal reply During message, the scsi data is sent to by the receiving terminal by the FC links.
  10. 10. device as claimed in claim 9, it is characterised in that the mapping block is described for that will be removed in the NAS data Remainder outside first subcommand part is specially as scsi data:
    The second subcommand part that the command component is included is as private data, and by the private data and the number The scsi data is used as according to part;
    Wherein, the private data is used to indicate the particular location that the data division stores in the dispersed set table SGL pages, The command component is made up of the first subcommand part and the second subcommand part.
  11. 11. device as claimed in claim 10, it is characterised in that the mapping block be specifically used for the private data and The data division is specially as the scsi data:
    Using the private data, the data division and invalid data as the scsi data;
    Wherein, the invalid data is can not be by the first subcommand part in the private data and the data division When pointed SGL pages filling is full, for the data being filled to being not filled by full part.
  12. 12. device as claimed in claim 11, it is characterised in that the mapping block be specifically used for by the private data, The data division and invalid data are specially as the scsi data:
    As the scsi data before the private data is arranged on into the data division and the invalid data;Or
    As the scsi data after the private data is arranged on into the data division and the invalid data.
  13. A kind of 13. device that network attached storage NAS data are received by Fibre Channel link, it is characterised in that including:
    Receiving module, for the scsi command sent by the FC links receiving end/sending end;Wherein, the scsi command is institute State what transmitting terminal obtained the first subcommand part mapping that file system addressing is directed in the command component in NAS data;
    Distribute module, for distributing the scattered concentration table SGL pages according to the scsi command, and by described in the FC chains road direction Transmitting terminal sends and is allocated successfully message;
    Operation module, the distribution is being received for receiving the transmitting terminal by the FC links using the receiving module The scsi data sent after success message, and for the scsi data to be write into the SGL pages;Wherein, the SCSI numbers Include the life according to including the remainder in the NAS data in addition to the first subcommand part, the NAS data Order part and data division.
  14. 14. device as claimed in claim 13, it is characterised in that the scsi data includes private data and the data Part;
    Wherein, the private data includes the second subcommand part in the command component, and the private data is used to indicate The particular location that the data division stores in the SGL pages, the command component by the first subcommand part and The second subcommand part is formed.
  15. 15. device as claimed in claim 13, it is characterised in that also include invalid data in the scsi data;
    The invalid data is can not be signified by the first subcommand part in the private data and the data division To the filling of the scattered concentration table SGL pages it is full when, for the data being filled to being not filled by full part;
    Described device also includes parsing module, is used for:The operation module by the scsi data write the SGL pages it Afterwards, according to the private data, the data division is parsed from the scsi data for writing the SGL pages.
  16. 16. device as claimed in claim 15, it is characterised in that the parsing module is specifically used for:According to the privately owned number According to the indicated data division in the SGL pages corresponding position, the number is parsed from the scsi data According to part.
  17. 17. a kind of device by Fibre Channel link transmission network attached storage NAS data, it is characterised in that including depositing Reservoir, input equipment, output equipment and processor;The memory, the input equipment and the output equipment respectively with institute Processor connection is stated, wherein:
    The memory, for store instruction;
    The processor, for performing the instruction, the first of file system addressing will be directed in the command component in NAS data Subcommand part mapping is small computer system interface scsi command, and is ordered the described first son is removed in the NAS data The remainder outside part is made as scsi data;Wherein, the NAS data include the command component and data portion Point;
    The output equipment, for sending the scsi command by the FC chains road direction receiving terminal, and, in the input equipment Receive that the receiving terminal replys according to the scsi command generate when being allocated successfully message, by the FC links by institute State scsi data and be sent to the receiving terminal;
    The input equipment, disappear for receiving being allocated successfully according to scsi command generation for the receiving terminal reply Breath.
  18. 18. device as claimed in claim 17, it is characterised in that the processor is specifically used for remove in the NAS data Remainder outside the first subcommand part is specially as scsi data:
    The second subcommand part that the command component is included is as private data, and by the private data and the number The scsi data is used as according to part;
    Wherein, the private data is used to indicate the particular location that the data division stores in the dispersed set table SGL pages, The command component is made up of the first subcommand part and the second subcommand part.
  19. 19. device as claimed in claim 18, it is characterised in that the processor is specifically used for the private data and institute Data division is stated as the scsi data, is specially:
    Using the private data, the data division and invalid data as the scsi data;
    Wherein, the invalid data is can not be by the first subcommand part in the private data and the data division When pointed SGL pages filling is full, for the data being filled to being not filled by full part.
  20. 20. device as claimed in claim 19, it is characterised in that the processor is specifically used for the private data, institute Data division and invalid data are stated as the scsi data, is specially:
    As the scsi data before the private data is arranged on into the data division and the invalid data;Or
    As the scsi data after the private data is arranged on into the data division and the invalid data.
  21. A kind of 21. device that network attached storage NAS data are received by Fibre Channel link, it is characterised in that including:Deposit Reservoir, input equipment, output equipment and processor;The memory, the input equipment and the output equipment respectively with institute Processor connection is stated, wherein:
    The memory, for store instruction;
    The input equipment, for the scsi command sent by the FC links receiving end/sending end;Wherein, the scsi command The first subcommand part mapping that file system addressing is directed in the command component in NAS data is obtained for the transmitting terminal 's;
    The processor, for performing the instruction, the scattered concentration table SGL pages are distributed according to the scsi command, and utilize The output equipment is sent by transmitting terminal described in the FC chains road direction and is allocated successfully message;
    The input equipment is additionally operable to receive the transmitting terminal after message is allocated successfully described in receiving by the FC links The scsi data of transmission;
    The processor is additionally operable to perform the instruction, and the scsi data is write into the SGL pages;Wherein, the SCSI Data include the remainder in addition to the first subcommand part in the NAS data, and the NAS data include described Command component and data division.
  22. 22. device as claimed in claim 21, it is characterised in that the scsi data includes private data and the data Part;
    Wherein, the private data includes the second subcommand part in the command component, and the private data is used to indicate The particular location that the data division stores in the SGL pages, the command component by the first subcommand part and The second subcommand part is formed.
  23. 23. device as claimed in claim 22, it is characterised in that also include invalid data in the scsi data;
    The invalid data is can not be signified by the first subcommand part in the private data and the data division To the filling of the scattered concentration table SGL pages it is full when, for the data being filled to being not filled by full part;
    The processor is additionally operable to:The instruction is performed, after the scsi data is write into the SGL pages, according to institute Private data is stated, the data division is parsed from the scsi data for writing the SGL pages.
  24. 24. device as claimed in claim 23, it is characterised in that the processor is additionally operable to perform the instruction, according to institute Private data is stated, the data division is parsed from the scsi data for writing the SGL pages, is specially:Perform institute Instruction is stated, the corresponding position in the SGL pages of the data division according to indicated by the private data, from described The data division is parsed in scsi data.
CN201410583658.XA 2014-10-27 2014-10-27 It is a kind of to pass through FC link transmissions, the method and device of reception NAS data Active CN104363269B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410583658.XA CN104363269B (en) 2014-10-27 2014-10-27 It is a kind of to pass through FC link transmissions, the method and device of reception NAS data
PCT/CN2015/077215 WO2016065871A1 (en) 2014-10-27 2015-04-22 Methods and apparatuses for transmitting and receiving nas data through fc link

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410583658.XA CN104363269B (en) 2014-10-27 2014-10-27 It is a kind of to pass through FC link transmissions, the method and device of reception NAS data

Publications (2)

Publication Number Publication Date
CN104363269A CN104363269A (en) 2015-02-18
CN104363269B true CN104363269B (en) 2018-03-06

Family

ID=52530495

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410583658.XA Active CN104363269B (en) 2014-10-27 2014-10-27 It is a kind of to pass through FC link transmissions, the method and device of reception NAS data

Country Status (2)

Country Link
CN (1) CN104363269B (en)
WO (1) WO2016065871A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104363269B (en) * 2014-10-27 2018-03-06 华为技术有限公司 It is a kind of to pass through FC link transmissions, the method and device of reception NAS data
WO2020019173A1 (en) * 2018-07-24 2020-01-30 华为技术有限公司 Memory control circuit for object storage
CN115632706B (en) * 2022-12-01 2023-03-14 苏州浪潮智能科技有限公司 FC link management method, device, equipment and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102065071B (en) * 2009-11-17 2013-05-01 北京同有飞骥科技股份有限公司 Storage equipment supporting multi-transport protocol
CN102223409B (en) * 2011-06-13 2013-08-21 浪潮(北京)电子信息产业有限公司 Network storage resource application system and method
CN1954527B (en) * 2004-02-27 2014-10-08 思科技术公司 Encoding a TCP offload engine within FCP

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070022314A1 (en) * 2005-07-22 2007-01-25 Pranoop Erasani Architecture and method for configuring a simplified cluster over a network with fencing and quorum
CN104363269B (en) * 2014-10-27 2018-03-06 华为技术有限公司 It is a kind of to pass through FC link transmissions, the method and device of reception NAS data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1954527B (en) * 2004-02-27 2014-10-08 思科技术公司 Encoding a TCP offload engine within FCP
CN102065071B (en) * 2009-11-17 2013-05-01 北京同有飞骥科技股份有限公司 Storage equipment supporting multi-transport protocol
CN102223409B (en) * 2011-06-13 2013-08-21 浪潮(北京)电子信息产业有限公司 Network storage resource application system and method

Also Published As

Publication number Publication date
WO2016065871A1 (en) 2016-05-06
CN104363269A (en) 2015-02-18

Similar Documents

Publication Publication Date Title
CN103503414B (en) A kind of group system calculating storage and merge
CN103475682B (en) File transfer method and file transfer equipment
CN105556496B (en) Pass through the method and apparatus for the expansible direct inter-node communication that quick peripheral component interconnection high speed (Peripheral Component Interconnect-Express, PCIe) carries out
CN108701004A (en) A kind of system of data processing, method and corresponding intrument
CN109672714B (en) Data processing method of distributed storage system and distributed storage system
CN103473272B (en) Data processing method, apparatus and system
CN106933775A (en) Data handling system and the method for data processing
CN107229415A (en) A kind of data write method, data read method and relevant device, system
CN106164898B (en) Data processing method and device
CN106484322A (en) A kind of method of carry file system, device and equipment
CN104166628B (en) The methods, devices and systems of managing internal memory
CN106598692A (en) Method for creating mirror image file in logical volume and starting virtual machine, and server
CN104050248A (en) File storage system and storage method
CN105138281B (en) A kind of sharing method and device of physical disk
CN104363269B (en) It is a kind of to pass through FC link transmissions, the method and device of reception NAS data
CN102790812A (en) IP (internet protocol) address source tracing method, equipment and system based on mobile terminal
CN101741866B (en) On-line storage system and method
CN107547346A (en) A kind of message transmitting method and device
CN104038550B (en) Data communications method and its device, storage system
CN105379192A (en) Hardware management communication protocol
CN102882961A (en) Data verifying method and server
CN105515870A (en) Blade server and resource distribution method and system
CN105227661B (en) Sharing files method and system, server
CN109358820B (en) Data access method and device, electronic equipment and computer readable storage medium
CN105786732A (en) Data access method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant