CN104363269A - Methods and devices for transmitting and receiving NAS (network attached storage) data through FC (fiber channel) link - Google Patents

Methods and devices for transmitting and receiving NAS (network attached storage) data through FC (fiber channel) link Download PDF

Info

Publication number
CN104363269A
CN104363269A CN201410583658.XA CN201410583658A CN104363269A CN 104363269 A CN104363269 A CN 104363269A CN 201410583658 A CN201410583658 A CN 201410583658A CN 104363269 A CN104363269 A CN 104363269A
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.)
Granted
Application number
CN201410583658.XA
Other languages
Chinese (zh)
Other versions
CN104363269B (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 method for transmitting NAS (network attached storage) data through an FC (fiber channel) link with an aim to solve the technical problem that transmission links are respectively needed to be established for NAS and SAN (storage area network) resulting in complication of the links. The method includes that a file system addressing targeted first subcommand portion in command portions in the NAS data is mapped into an SCSI (small computer system interface) command through a transmitting end device, and the rest portions beyond the first subcommand portion in the NAS data are taken as SCSI data; the NAS data include the command portions and data portions; the transmitting end device transmits the SCSI command to a receiving end through the FC link; the transmitting end device transmits the SCSI data to the receiving end through the FC link when receiving a distribution success message generated according to the SCSI command and replied by the receiving end. The invention further discloses a corresponding receiving method and device.

Description

A kind of by FC link transmission, the method receiving NAS data and device
Technical field
The present invention relates to technical field of memory, particularly relate to a kind of by FC link transmission, the method receiving NAS data and device.
Background technology
SAN (Storage Area Network; storage area network) in data copy backup transmission be based on SCSI (Small Computer System Interface; small computer system interface) agreement; usually business transmission is carried out based on FCP/iSCSI (Fibre Channel Protocol/i Small Computer System Interface, fiber channel protocol/a kind of based on the memory technology under internet and SCSI-3 agreement) agreement.And the copy backup transmission of data adopts the proprietary protocol based on IP (Internet Protocol, Internet protocol) usually in NAS (Network Attached Storage, network attached storage).
The transmission means, addressing system etc. of SAN and NAS are all different, and therefore two kinds of storage modes cannot be compatible in set of system.So, for the unified storage array that there is SAN and NAS business simultaneously, if transmission means traditionally, need for SAN subsystem and NAS subsystem set up protocol channel respectively.Such transmission group net scheme has following shortcoming:
Be respectively NAS and SAN subsystem and set up respective transmission link, then at least need to set up two links, then consider the redundancy backup of link, then need to set up 4 links.Such as, if the standby system that redundancy is N will be set up, then need to set up 2N bar link, i.e. N bar SCSI link, and N bar NAS link.Obviously like this, can bring larger investment, cost is higher, and link is also comparatively complicated, all makes mistakes than being easier to when setting up or when using.
Summary of the invention
The embodiment of the present invention provides a kind of by FC link transmission, the method receiving NAS data and device, needs to be respectively NAS and SAN and sets up in order to solve the technical problem that respective transmission link causes link complexity.
A first aspect of the present invention, provides a kind of method by FC link transmission NAS data, comprising:
The first subcommand part mapping for file system addressing in command component in NAS data is small computer system interface scsi command by sending ending equipment, and using the remainder in described NAS data except described first subcommand part as scsi data; Wherein, described NAS data comprise described command component and data division;
Described sending ending equipment sends described scsi command by described FC chain road direction receiving terminal;
Described sending ending equipment receive described receiving terminal reply according to described scsi command generate be allocated successfully message time, by described FC link, described scsi data is sent to described receiving terminal.
In conjunction with first aspect, in the first possible implementation of first aspect, using the remainder in described NAS data except described first subcommand part as scsi data, comprising:
The second subcommand part that described command component is comprised as private data, and using described private data and described data division as described scsi data;
Wherein, described private data is used to indicate the particular location that described data division stores in the dispersed set table SGL page, and described command component is made up of described first subcommand part and described second subcommand part.
In conjunction with the first possible implementation of first aspect, in the implementation that the second of first aspect is possible, using described private data and described data division as described scsi data, comprising:
Using described private data, described data division and invalid data as described scsi data;
Wherein, described invalid data for when the SGL page pointed by described first subcommand part can not be filled full by described private data and described data division, for the data of not filling full part and filling.
In conjunction with the implementation that the second of first aspect is possible, in the third possible implementation of first aspect, using described private data, described data division and invalid data as described scsi data, comprising:
As described scsi data before described private data being arranged on described data division and described invalid data; Or
As described scsi data after described private data being arranged on described data division and described invalid data.
A second aspect of the present invention, is provided a kind of method being received NAS data by FC link, comprising:
The scsi command that receiving device is sent by described FC link receiving end/sending end; Wherein, described scsi command is that the first subcommand part mapping for file system addressing in the command component in NAS data obtains by described transmitting terminal;
Described receiving device distributes dispersion according to described scsi command and concentrates the table SGL page, and is allocated successfully message by transmitting terminal transmission described in described FC chain road direction;
Described receiving device receives by described FC link the scsi data that described transmitting terminal sends after being allocated successfully message described in receiving, and described scsi data is write the described SGL page; Wherein, described scsi data comprises the remainder in described NAS data except described first subcommand part, and described NAS data comprise described command component and data division.
In conjunction with second aspect, in the first possible implementation of second aspect, described scsi data comprises private data and described data division;
Wherein, described private data comprises the second subcommand part in described command component, described private data is used to indicate the particular location that described data division stores in the described SGL page, and described command component is made up of described first subcommand part and described second subcommand part.
In conjunction with the first possible implementation of second aspect, in the implementation that the second of second aspect is possible, in described scsi data, also comprise invalid data;
Described invalid data is for concentrating the table SGL page to fill full at described private data and described data division during by the dispersion pointed by described first subcommand part, for the data of not filling full part and filling;
After described scsi data is write the described SGL page, also comprise:
According to described private data, from the described scsi data of the described SGL page of write, parse described data division.
In conjunction with the implementation that the second of second aspect is possible, in the third possible implementation of second aspect, according to described private data, described data division is parsed from the described scsi data of the described SGL page of write, comprise: the position that the described data division indicated by described private data is corresponding in the described SGL page, from described scsi data, parse described data division.
A third aspect of the present invention, provides a kind of device by FC link transmission NAS data, comprising:
Mapping block, for being small computer system interface scsi command by the first subcommand part mapping for file system addressing in the command component in NAS data, and using the remainder in described NAS data except described first subcommand part as scsi data; Wherein, described NAS data comprise described command component and data division;
Sending module, for sending described scsi command by described FC chain road direction receiving terminal;
Described sending module, also for receive described receiving terminal reply according to described scsi command generate be allocated successfully message time, by described FC link, described scsi data is sent to described receiving terminal.
In conjunction with the third aspect, in the first possible implementation of the third aspect, described mapping block be used for using the remainder in described NAS data except described first subcommand part as scsi data, be specially:
The second subcommand part that described command component is comprised as private data, and using described private data and described data division as described scsi data;
Wherein, described private data is used to indicate the particular location that described data division stores in the dispersed set table SGL page, and described command component is made up of described first subcommand part and described second subcommand part.
In conjunction with the first possible implementation of the third aspect, in the implementation that the second of the third aspect is possible, described mapping block specifically for using described private data and described data division as described scsi data, be specially:
Using described private data, described data division and invalid data as described scsi data;
Wherein, described invalid data for when the SGL page pointed by described first subcommand part can not be filled full by described private data and described data division, for the data of not filling full part and filling.
In conjunction with the implementation that the second of the third aspect is possible, in the third possible implementation of the third aspect, described mapping block specifically for using described private data, described data division and invalid data as described scsi data, be specially:
As described scsi data before described private data being arranged on described data division and described invalid data; Or
As described scsi data after described private data being arranged on described data division and described invalid data.
A fourth aspect of the present invention, is provided a kind of device being received NAS data by FC link, comprising:
Receiver module, for the scsi command sent by described FC link receiving end/sending end; Wherein, described scsi command is that the first subcommand part mapping for file system addressing in the command component in NAS data obtains by described transmitting terminal;
Distribution module, concentrates the table SGL page for distributing dispersion according to described scsi command, and is allocated successfully message by transmitting terminal transmission described in described FC chain road direction;
Operational module, for utilizing described receiver module to receive by described FC link the scsi data that described transmitting terminal sends after being allocated successfully message described in receiving, and for described scsi data is write the described SGL page; Wherein, described scsi data comprises the remainder in described NAS data except described first subcommand part, and described NAS data comprise described command component and data division.
In conjunction with fourth aspect, in the first possible implementation of fourth aspect, described scsi data comprises private data and described data division;
Wherein, described private data comprises the second subcommand part in described command component, described private data is used to indicate the particular location that described data division stores in the described SGL page, and described command component is made up of described first subcommand part and described second subcommand part.
In conjunction with the first possible implementation of fourth aspect, in the implementation that the second of fourth aspect is possible, in described scsi data, also comprise invalid data;
Described invalid data is for concentrating the table SGL page to fill full at described private data and described data division during by the dispersion pointed by described first subcommand part, for the data of not filling full part and filling;
Described device also comprises parsing module, for: after described scsi data is write the described SGL page by described operational module, according to described private data, from the described scsi data of the described SGL page of write, parse described data division.
In conjunction with the implementation that the second of fourth aspect is possible, in the third possible implementation of fourth aspect, described parsing module, specifically for the position corresponding in the described SGL page of: the described data division indicated by described private data, parses described data division from described scsi data.
A fifth aspect of the present invention, provides a kind of device by FC link transmission NAS data, comprises memory, input equipment, output equipment and processor; Described memory, described input equipment are connected with described processor respectively with described output equipment, wherein:
Described memory, for storing instruction;
Described processor, for performing described instruction, be small computer system interface scsi command by the first subcommand part mapping for file system addressing in the command component in NAS data, and using the remainder in described NAS data except described first subcommand part as scsi data; Wherein, described NAS data comprise described command component and data division;
Described output equipment, for sending described scsi command by described FC chain road direction receiving terminal, and, described input equipment receive described receiving terminal reply according to described scsi command generate be allocated successfully message time, by described FC link, described scsi data is sent to described receiving terminal;
Described input equipment, for receive described receiving terminal reply generate according to described scsi command described in be allocated successfully message.
In conjunction with the 5th aspect, in the first the possible implementation in the 5th, described processor specifically for using the remainder in described NAS data except described first subcommand part as scsi data, be specially:
The second subcommand part that described command component is comprised as private data, and using described private data and described data division as described scsi data;
Wherein, described private data is used to indicate the particular location that described data division stores in the dispersed set table SGL page, and described command component is made up of described first subcommand part and described second subcommand part.
In conjunction with the first possible implementation of the 5th aspect, in the implementation that the second in the 5th is possible, described processor specifically for using described private data and described data division as described scsi data, be specially:
Using described private data, described data division and invalid data as described scsi data;
Wherein, described invalid data for when the SGL page pointed by described first subcommand part can not be filled full by described private data and described data division, for the data of not filling full part and filling.
In conjunction with the implementation that the second of the 5th aspect is possible, in the third the possible implementation in the 5th, described processor specifically for using described private data, described data division and invalid data as described scsi data, be specially:
As described scsi data before described private data being arranged on described data division and described invalid data; Or
As described scsi data after described private data being arranged on described data division and described invalid data.
A sixth aspect of the present invention, is provided a kind of device being received NAS data by FC link, comprising: memory, input equipment, output equipment and processor; Described memory, described input equipment are connected with described processor respectively with described output equipment, wherein:
Described memory, for storing instruction;
Described input equipment, for the scsi command sent by described FC link receiving end/sending end; Wherein, described scsi command is that the first subcommand part mapping for file system addressing in the command component in NAS data obtains by described transmitting terminal;
Described processor, for performing described instruction, distributing dispersion according to described scsi command and concentrating the table SGL page, and utilize described output equipment to be allocated successfully message by transmitting terminal transmission described in described FC chain road direction;
Described input equipment is also for receiving the scsi data that described transmitting terminal sends after being allocated successfully message described in receiving by described FC link;
Described scsi data, also for performing described instruction, is write the described SGL page by described processor; Wherein, described scsi data comprises the remainder in described NAS data except described first subcommand part, and described NAS data comprise described command component and data division.
In conjunction with the 6th aspect, in the first the possible implementation in the 6th, described scsi data comprises private data and described data division;
Wherein, described private data comprises the second subcommand part in described command component, described private data is used to indicate the particular location that described data division stores in the described SGL page, and described command component is made up of described first subcommand part and described second subcommand part.
In conjunction with the first possible implementation of the 6th aspect, in the implementation that the second in the 6th is possible, in described scsi data, also comprise invalid data;
Described invalid data is for concentrating the table SGL page to fill full at described private data and described data division during by the dispersion pointed by described first subcommand part, for the data of not filling full part and filling;
Described processor also for: perform described instruction, after described scsi data is write the described SGL page, according to described private data, from write the described SGL page described scsi data parse described data division.
In conjunction with the implementation that the second of the 6th aspect is possible, in the third possible implementation in the 6th, described processor is also for performing described instruction, according to described private data, described data division is parsed from the described scsi data of the described SGL page of write, be specially: perform described instruction, the position that the described data division indicated by described private data is corresponding in the described SGL page, from described scsi data, parse described data division.
In the embodiment of the present invention, be scsi command by the first subcommand part mapping of the command component in NAS data, and using the remainder in NAS data as scsi data, be the equal of be SAN data by NAS data-mapping, the transmission link of SAN system (i.e. FC link) so just can be utilized to transmit NAS data.Such as, for the unified storage array that there is SAN and NAS business simultaneously, as long as be that SAN data just can directly utilize the transmission link of SAN to transmit NAS data by NAS data-mapping, only need set up the transmission link of SAN, without the need to setting up transmission link respectively for SAN and NAS, saving hardware resource, providing cost savings, also simplify link structure, reduce the probability of makeing mistakes.
Further, in general, the limited bandwidth of the special I P circuit rented, therefore, when carrying out remote copy based on IP agreement on a wide area network, has larger time delay.And the FC that SAN uses (Fibre Channel, optical-fibre channel) link just has comparatively significantly advantage in bandwidth sum time delay.But because FC link can not transmit NAS data in prior art, cause the advantage of FC link cannot bring lifting in performance to NAS subsystem, the range of application of FC link is also narrower.After adopting the technical scheme in the embodiment of the present invention, being SAN data by NAS data-mapping, can be transmitted by FC link equally, FC link bandwidth is wider, time delay is less, and this advantage also can bring the lifting in performance to NAS subsystem, widened the range of application of FC link.
Accompanying drawing explanation
Figure 1A is the hardware structure schematic diagram in the embodiment of the present invention;
Figure 1B is the main method flow chart by FC link transmission NAS data in the embodiment of the present invention;
Fig. 2 is the corresponding relation schematic diagram of NAS subdata and file in the embodiment of the present invention;
Data are write the SGL page in the embodiment of the present invention and the schematic diagram of private data when rear by Fig. 3;
Fig. 4 will fill the schematic diagram of invalid data in the embodiment of the present invention in the SGL page;
Data are write rest in the SGL page, the SGL page to fill invalid data and the schematic diagram of private data when front by Fig. 5 in the embodiment of the present invention;
Fig. 6 is the main method flow chart being received NAS data in the embodiment of the present invention by FC link;
Fig. 7 is the citing flow chart by FC link transmission NAS data in the embodiment of the present invention;
Fig. 8 is the primary structure block diagram by the device of FC link transmission NAS data in the embodiment of the present invention;
Fig. 9 is the primary structure block diagram of the device being received NAS data in the embodiment of the present invention by FC link;
Figure 10 is the primary structure schematic diagram by the device of FC link transmission NAS data in the embodiment of the present invention;
Figure 11 is the primary structure schematic diagram by the device of 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, described method comprises: the first subcommand part mapping for file system addressing in the command component in NAS data is small computer system interface scsi command by sending ending equipment, and, using the remainder in described NAS data except described first subcommand part as scsi data; Wherein, described NAS data comprise described command component and data division; Described sending ending equipment sends described scsi command by described FC chain road direction receiving terminal; Described sending ending equipment receive described receiving terminal reply according to described scsi command generate be allocated successfully message time, by described FC link, described scsi data is sent to described receiving terminal.
In the embodiment of the present invention, be scsi command by the first subcommand part mapping of the command component in NAS data, and using the remainder in NAS data as scsi data, be the equal of be SAN data by NAS data-mapping, so just can transmit NAS data by the transmission link (i.e. FC link) of SAN system.Such as, for the unified storage array that there is SAN and NAS business simultaneously, as long as be that SAN data just can directly utilize the transmission link of SAN to transmit NAS data by NAS data-mapping, only need set up the transmission link of SAN, without the need to setting up transmission link respectively for SAN and NAS, saving hardware resource, providing cost savings, also simplify link structure, reduce the probability of makeing mistakes.
Further, in general, the limited bandwidth of the special I P circuit rented, therefore, when carrying out remote copy based on IP agreement on a wide area network, has larger time delay.And the FC that SAN uses (Fibre Channel, optical-fibre channel) link just has comparatively significantly advantage in bandwidth sum time delay.But because FC link can not transmit NAS data in prior art, cause the advantage of FC link cannot bring lifting in performance to NAS subsystem, the range of application of FC link is also narrower.After adopting the technical scheme in the embodiment of the present invention, being SAN data by NAS data-mapping, can be transmitted by FC link equally, FC link bandwidth is wider, time delay is less, and this advantage also can bring the lifting in performance to NAS subsystem, widened the range of application of FC link.
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In addition, term " system " and " network " are often used interchangeably in this article herein.Term "and/or" herein, being only a kind of incidence relation describing affiliated partner, can there are three kinds of relations in expression, and such as, A and/or B, can represent: individualism A, exists A and B simultaneously, these three kinds of situations of individualism B.In addition, character "/" herein, if no special instructions, general expression forward-backward correlation is to the relation liking a kind of "or".
In the embodiment of the present invention, sending ending equipment is a uniform storage device, and it had both had SAN function and has also had NAS function, that is, sending ending equipment both can data in treatment S AN system, also can process the data in NAS system.Same, receiving device is also a uniform storage device, and it is also both had SAN function also to have NAS function, that is, receiving device both can data in treatment S AN system, also can process the data in NAS system.Unified storage is in fact a storage architecture can supporting the networking of NAS and SAN, because it supports that different storage protocols provides data to store for host computer system, is therefore also referred to as multi-protocols and stores.
What connect sending ending equipment and receiving device is the FC link that SAN system is supported, that is, be no matter the data in SAN system, or the data in NAS system, all needs to be transmitted by FC link.Specifically refer to Figure 1A, the uniform storage device on Figure 1A left side is sending ending equipment, and the uniform storage device on the right is receiving device, and the direction pointed by arrow is the direction that data send.
In the embodiment of the present invention, transmitting terminal and sending ending equipment, refer to same equipment, same, and receiving terminal and receiving device also refer to same equipment.
Below in conjunction with Figure of description, the embodiment of the present invention is described in further detail.
Refer to Figure 1B, the embodiment of the present invention provides a kind of method by FC link transmission NAS data, and the main flow of described method is described below.
Step 101: the first subcommand part mapping for file system addressing in the command component in NAS data is small computer system interface scsi command by sending ending equipment, and, using the remainder in described NAS data except described first subcommand part as scsi data; Wherein, described NAS data comprise described command component and data division.
In the embodiment of the present invention, NAS data refer to the data packaged by protocol format supported according to NAS system, that is, NAS data transmission, storage etc. be based on the agreement that NAS system supports.
The structure of NAS data, can simply be interpreted as: NAS data can abstract be command component and data division, certainly can also include gauge outfit.
In the embodiment of the present invention, SAN data refer to the data packaged by protocol format supported according to SAN system, that is, SAN data transmission, storage etc. be based on the agreement that SAN system supports.
NAS data comprise described command component and described data division, described command component comprises described first subcommand part and the second subcommand part, described first subcommand part is used for for file system addressing, namely, determining which file described data division will be sent to by described first subcommand part, can be therefore described scsi command by described first subcommand part mapping." mapping " described in the embodiment of the present invention, just refers to process, is treated to described scsi command by described first subcommand part.
Optionally, described first subcommand part comprises the information such as target file system ID (Identity, authentication), private data length, data total length.Determine by described target file system ID the destination address that described NAS data send, described data total length shows the total length of described scsi data.
Described scsi command comprises CDB (Command Data Block, command data block) parameter and LunID (Logic Unit Number ID, logical block ID) parameter.Be described scsi command by described first subcommand part mapping, comprise and the Part I of described first subcommand part is mapped as CDB parameter, LunID parameter is mapped as with by the Part II of described first subcommand part, wherein, described first subcommand part is made up of described Part I and described Part II.
Such as, a kind of mapping mode is please respectively see table 1 and table 2, and table 1 is the LunID parameter be mapped to by described Part I, and table 2 is the CDB parameter be mapped to by Part II.Table 1 and table 2 for described target file system ID be 32, command word in CDB parameter is 0xDE.
Table 1
Table 2
Wherein, the unit of private data length and data total length can be unit according to sector.RESERVED in table 1 and table 2 is reserved place, and the PROTECT in table 2 is DIF (standard data integrity field) protection mark, can protect by the mode of SCSI standard definition to data.The definition of the CONTROL field in table 2 can with reference to SCSI consensus standard.
Or such as, another kind of mapping mode is please respectively see table 3 and table 4, and table 3 is the LunID parameter be mapped to by described Part I, and table 4 is the CDB parameter be mapped to by Part II.Table 3 and table 4 for described target file system ID be 64, command word in CDB parameter is 0xDF.
Table 3
Table 4
Wherein, the unit of private data length and data total length can be unit according to sector.RESERVED in table 3 and table 4 is reserved place, and the PROTECT in table 4 is DIF (standard data integrity field) protection mark, can protect by the mode of SCSI standard definition to data.The definition of the CONTROL field in table 4 can with reference to SCSI consensus standard.
Certainly, above can also have other mapping mode just for two examples, as long as can be that the mode of described scsi command is all within protection scope of the present invention by described first subcommand part mapping.
A part for described NAS data is mapped as described scsi command, using other parts of described NAS data as described scsi data, complete the format conversion of described NAS data, can be understood as described NAS data encapsulation in order to SAN data, thus the NAS data after carrying out format conversion can be transmitted in FC link, namely FC link transmission NAS data can be utilized, without the need to setting up transmission link respectively for SAN and NAS, save hardware resource, provide cost savings, also simplify link structure, reduce the probability of makeing mistakes.Further, be SAN data by NAS data-mapping, can be transmitted by FC link equally, FC link bandwidth be wider, and time delay is less, and this advantage also can bring the lifting in performance to NAS subsystem, widened the range of application of FC link.
Optionally, in the embodiment of the present invention, using the remainder in described NAS data except described first subcommand part as described scsi data, can comprise:
The described second subcommand part that described command component is comprised as private data, and using described private data and described data division as described scsi data;
Wherein, described private data is used to indicate described data division at SGL (Scatter-Gather-List, dispersed set table) particular location that stores in the page, described command component is made up of described first subcommand part and described second subcommand part.
That is, in described scsi data, described private data can as an independent part.Receiving terminal is after receiving described scsi data, can described scsi data be stored in the described SGL page, described private data is just used to indicate the particular location that described data division stores in the described SGL page, thus facilitates described receiving terminal to be parsed by described data division according to described private data.
In the embodiment of the present invention, in described NAS data, multiple NAS subdata may be included, that is, the NAS data described in the embodiment of the present invention, in fact can comprise multiple NAS data.Here in order to distinguish, just the NAS data once transmitted are regarded as total NAS data, each NAS data wherein comprised are called NAS subdata, and what each NAS subdata will be accessed may be different files.
Refer to Fig. 2, include three NAS subdatas for total NAS data, the subdata 1 namely in Fig. 2, subdata 2 and subdata 3.Order 1 in Fig. 2 and address 1 correspond to subdata 1, order 2 and address 2 correspond to subdata 2, order 3 and address 3 correspond to subdata 3, file 1 is the file that subdata 1 will be accessed, file 2 is the file that subdata 2 will be accessed, file 3 is the file that subdata 3 will be accessed, and file 4 is the file that described private data will be accessed.Part in Fig. 2 in dotted line frame is the part of adding described private data to, that is, the second subcommand part corresponding to each NAS subdata that total NAS data can be comprised all is added in described private data.
In the embodiment of the present invention, the described SGL page, can refer to a SGL page, or also can refer to multiple SGL page.
Further, consider what data were normally organized according to SGL mode in internal memory, namely with a chained list, discrete spatial cache is organized, for the data that buffer memory is relatively large, usual each SGL node points to one or more memory pages, a memory pages comprises 4096Bytes (byte), and real data buffer memory uses a page or multiple all or part of spaces.
Such as, refer to Fig. 3, include three NAS subdatas for total NAS data, the subdata 1 namely in Fig. 3, subdata 2 and subdata 3.Order 1 in Fig. 3 and address 1 correspond to subdata 1, order 2 and address 2 correspond to subdata 2, and order 3 and address 3 correspond to subdata 3, and file 1 is the file that subdata 1 will be accessed, file 2 is the file that subdata 2 will be accessed, and file 3 is the file that subdata 3 will be accessed.The SGL node of file 1 correspondence is the node 1 shown in Fig. 3, node 1 is to there being two SGL pages, namely two square frames after node 1 are positioned at, can see, subdata 1 needs to write respectively in these two SGL pages, writing in first SGL page is data a in subdata 1, and writing in second SGL page is data b in subdata 1.The SGL node of file 2 correspondence is the node 2 shown in Fig. 3, node 2, to there being a SGL page, being namely positioned at a square frame after node 2, can seeing, subdata 2 needs to write in this SGL page, and writing in this SGL page is the data h in subdata 2.The SGL node of file 3 correspondence is the node 3 shown in Fig. 3, node 3 is to there being three SGL pages, namely three square frames after node 3 are positioned at, can see, subdata 3 needs to write respectively in these three SGL pages, writing in first SGL page is data c in subdata 3, and writing in second SGL page is data d in subdata 3, and writing in the 3rd the SGL page is data e in subdata 3.Oblique line in Fig. 3 in square frame all represents the concrete deposit position of data in the SGL page.File 4 in Fig. 3 represents the file that described private data is corresponding, the SGL node of file 4 correspondence is the node 4 in Fig. 3, node 4 is to there being two SGL pages, namely two square frames after node 4 are positioned at, can see, described private data needs to write respectively in these two SGL pages, and writing in first SGL page is data f in described private data, and writing in second SGL page is data g in described private data.
In Fig. 3 the left side dotted line frame in part be the part of adding described private data to, that is, the second subcommand part corresponding to each NAS subdata that total NAS data can be comprised all is added in described private data.Part in dotted line frame on the right of in Fig. 3 is the SGL page corresponding to NAS data once transmitted.
Described data division is have recorded at the described SGL page in described private data, namely corresponding in memory pages particular location, but described private data is followed described data division and is sent to described receiving terminal together, described receiving terminal is after described scsi data is write the described SGL page, just can know the accurate location of described data division in the described SGL page, therefore, in order to described data division is stored into correct position, follow-uply also may can relate to moving of data, this adds the workload of receiving terminal beyond doubt, also comparatively bothers.
In order to avoid data moving on memory pages, can consider just data mode as required to be put in place when described receiving terminal receives data.
For solving this problem, optionally, in the embodiment of the present invention, using described private data and described data division as described scsi data, can comprise:
Using described private data, described data division and invalid data as described scsi data;
Wherein, described invalid data for when the SGL page pointed by described first subcommand part can not be filled full by described private data and described data division, for the data of not filling full part and filling.
Namely, transmitting terminal can described second subcommand part as described private data, then each for SGL node is pointed to whole spaces of each SGL page, namely the total data of each SGL page is sent when sending, instead of only sending the part inserting valid data, such transmitting terminal sends whole page, and data are also inserted whole page by receiving terminal, from described private data, read the position of described data division in the page more afterwards, just can obtain complete NAS data.Directly described data division can be stored into correct position like this, avoid follow-up data-moving, save follow-up operating procedure.
Such as, refer to Fig. 4, include three NAS subdatas for total NAS data, the subdata 1 namely in Fig. 4, subdata 2 and subdata 3.Order 1 in Fig. 4 and address 1 correspond to subdata 1, order 2 and address 2 correspond to subdata 2, and order 3 and address 3 correspond to subdata 3, and file 1 is the file that subdata 1 will be accessed, file 2 is the file that subdata 2 will be accessed, and file 3 is the file that subdata 3 will be accessed.The SGL node of file 1 correspondence is the node 1 shown in Fig. 4, node 1 is to there being two SGL pages, namely two square frames after node 1 are positioned at, can see, subdata 1 needs to write respectively in these two SGL pages, writing in first SGL page is data a in subdata 1, and writing in second SGL page is data b in subdata 1.The SGL node of file 2 correspondence is the node 2 shown in Fig. 4, node 2, to there being a SGL page, being namely positioned at a square frame after node 2, can seeing, subdata 2 needs to write in this SGL page, and writing in this SGL page is the data h in subdata 2.The SGL node of file 3 correspondence is the node 3 shown in Fig. 4, node 3 is to there being three SGL pages, namely three square frames after node 3 are positioned at, can see, subdata 3 needs to write respectively in these three SGL pages, writing in first SGL page is data c in subdata 3, and writing in second SGL page is data d in subdata 3, and writing in the 3rd the SGL page is data e in subdata 3.Oblique line in Fig. 4 in square frame all represents the concrete deposit position of data in the SGL page, and the horizontal line in square frame all represents the deposit position of described invalid data in the SGL page.File 4 in Fig. 4 represents the file that described private data is corresponding, the SGL node of file 4 correspondence is the node 4 in Fig. 4, node 4 is to there being two SGL pages, namely two square frames after node 4 are positioned at, can see, described private data needs to write respectively in these two SGL pages, and writing in first SGL page is data f in described private data, and writing in second SGL page is data g in described private data.
In Fig. 4 the left side dotted line frame in part be the part of adding described private data to, that is, the second subcommand part corresponding to each NAS subdata that total NAS data can be comprised all is added in described private data.Part in dotted line frame on the right of in Fig. 4 is the SGL page corresponding to NAS data once transmitted.
Optionally, in the embodiment of the present invention, the position of described private data in described scsi data can be any.Such as, using described private data, described data division and described invalid data as described scsi data, can comprise:
As described scsi data before described private data being arranged on described data division and described invalid data; Or
As described scsi data after described private data being arranged on described data division and described invalid data.
Such as, if before described private data is arranged on described data division and described invalid data, then described receiving terminal can continue to receive described data division and described invalid data after receiving described private data.And described receiving terminal is after receiving described private data, a memory pages can be set up another and deposit described data division and described invalid data.
Such as, refer to Fig. 5, include three NAS subdatas for total NAS data, the subdata 1 namely in Fig. 5, subdata 2 and subdata 3.Order 1 in Fig. 5 and address 1 correspond to subdata 1, order 2 and address 2 correspond to subdata 2, and order 3 and address 3 correspond to subdata 3, and file 1 is the file that subdata 1 will be accessed, file 2 is the file that subdata 2 will be accessed, and file 3 is the file that subdata 3 will be accessed.The SGL node of file 1 correspondence is the node 1 shown in Fig. 5, node 1 is to there being two SGL pages, namely two square frames after node 1 are positioned at, can see, subdata 1 needs to write respectively in these two SGL pages, writing in first SGL page is data a in subdata 1, and writing in second SGL page is data b in subdata 1.The SGL node of file 2 correspondence is the node 2 shown in Fig. 5, node 2, to there being a SGL page, being namely positioned at a square frame after node 2, can seeing, subdata 2 needs to write in this SGL page, and writing in this SGL page is the data h in subdata 2.The SGL node of file 3 correspondence is the node 3 shown in Fig. 5, node 3 is to there being three SGL pages, namely three square frames after node 3 are positioned at, can see, subdata 3 needs to write respectively in these three SGL pages, writing in first SGL page is data c in subdata 3, and writing in second SGL page is data d in subdata 3, and writing in the 3rd the SGL page is data e in subdata 3.Oblique line in Fig. 5 in square frame all represents the concrete deposit position of data in the SGL page, and the horizontal line in square frame all represents the deposit position of described invalid data in the SGL page.File 4 in Fig. 5 represents the file that described private data is corresponding, the SGL node of file 4 correspondence is the node 4 in Fig. 5, node 4 is to there being two SGL pages, namely two square frames after node 4 are positioned at, can see, described private data needs to write respectively in these two SGL pages, and writing in first SGL page is data f in described private data, and writing in second SGL page is data g in described private data.In Fig. 5, before namely described private data is placed on described data division and described invalid data, before the file corresponding to described private data is also located in described data division and the file corresponding to described invalid data.
In Fig. 5 the left side dotted line frame in part be the part of adding described private data to, that is, the second subcommand part corresponding to each NAS subdata that total NAS data can be comprised all is added in described private data.Part in dotted line frame on the right of in Fig. 5 is the SGL page corresponding to NAS data once transmitted.
Such as, if after described private data is arranged on described data division and described invalid data, then described receiving terminal can continue to receive described private data after receiving described data division and described invalid data.And described receiving terminal is after receiving described data division and described invalid data, a memory pages can be set up another and deposit described private data.Please still see Fig. 4, after namely described private data is placed on described data division and described invalid data, after the file corresponding to described private data is also located in described data division and the file corresponding to described invalid data.
Like this, be convenient to described private data and described data division and described invalid data to make a distinction, by described private data, receiving terminal will determine that the deposit position time ratio of described data division is easier to find described private data.
Step 102: described sending ending equipment sends described scsi command by described FC chain road direction receiving terminal.
Described transmitting terminal is after by described NAS data processing, first described scsi command is sent to described receiving terminal, described receiving terminal is after receiving described scsi command, and the information such as target file system ID, data total length of meeting indicated by described scsi command prepares the SGL page that will be used for storing data.
Step 103: described sending ending equipment receive described receiving terminal reply according to described scsi command generate be allocated successfully message time, by described FC link, described scsi data is sent to described receiving terminal.
Described receiving terminal, after the complete SGL page of data allocations for the instruction of described scsi command, is allocated successfully message described in returning to described transmitting terminal, certainly, described in be allocated successfully message also can by described FC link transmission.Described scsi data, after being allocated successfully message described in receiving, is sent to described receiving terminal by described transmitting terminal, then described scsi data writes in the ready SGL page by described receiving terminal.
Refer to Fig. 6, based on same inventive concept, the embodiment of the present invention provides a kind of method being received NAS data by FC link, and the main flow of described method is described below.Flow process shown in Fig. 6 is the handling process of the receiving terminal corresponding with Fig. 1 flow process.
Step 601: the scsi command that receiving device is sent by described FC link receiving end/sending end; Wherein, described scsi command is that the first subcommand part mapping for file system addressing in the command component in NAS data obtains by described transmitting terminal.
Described transmitting terminal obtains process existing description in Fig. 1 flow process of described scsi command according to described first subcommand part, seldom repeats herein.
Described transmitting terminal, after being SAN data by described NAS data Reseal, can start the NAS data after sending encapsulation.First described transmitting terminal can send described scsi command to described receiving terminal.
Step 602: described receiving device distributes dispersion according to described scsi command and concentrates the table SGL page, and is allocated successfully message by transmitting terminal transmission described in described FC chain road direction.
Described receiving terminal is after receiving described scsi command, can come for the SGL page described in the data allocations by reception according to described scsi command, after being assigned, described in described receiving terminal can generate, be allocated successfully message, and the described message that is allocated successfully is sent to described transmitting terminal.
Step 603: described receiving device receives by described FC link the scsi data that described transmitting terminal sends after being allocated successfully message described in receiving, and described scsi data is write the described SGL page; Wherein, described scsi data comprises the remainder in described NAS data except described first subcommand part, and described NAS data comprise described command component and data division.
Described transmitting terminal is after being allocated successfully message described in receiving, and can send described scsi data to described receiving terminal, described scsi data can be write the described SGL page by described receiving terminal.
Optionally, in the embodiment of the present invention, described scsi data comprises private data and described data division; Wherein, described private data comprises the second subcommand part in described command component, described private data is used to indicate the particular location that described data division stores in the described SGL page, and described command component is made up of described first subcommand part and described second subcommand part.
Optionally, in the embodiment of the present invention, in described scsi data, also comprise invalid data; Described invalid data is for concentrating the table SGL page to fill full at described private data and described data division during by the dispersion pointed by described first subcommand part, for the data of not filling full part and filling.
Further, in the embodiment of the present invention, after described scsi data is write the described SGL page, can also comprise: according to described private data, from the described scsi data of the described SGL page of write, parse described data division.
That is, after described scsi data is write the described SGL page, described data division can be parsed from the described SGL page, by the data convert of reception to be the laggard row relax of described NAS data.
Optionally, in the embodiment of the present invention, according to described private data, described data division is parsed from the described scsi data of the described SGL page of write, can comprise: the position that the described data division indicated by described private data is corresponding in the described SGL page, from described scsi data, parse described data division.
Described private data indicates the particular location of described data division in the described SGL page, then described receiving terminal just can find out described data division according to the instruction of described private data from the described SGL page, and is reduced to described NAS data.In the embodiment of the present invention, described private data indicates the particular location of described data division in the described SGL page, can refer to, described private data indicates the information such as page bias internal and/or data in page length of described data division in the described SGL page.
The process by FC link transmission NAS data in the embodiment of the present invention is introduced below by way of a detailed flow process.Refer to Fig. 7.
Step 701: transmitting terminal prepares the page of private data; The page of described private data here refers to the SGL page.
Step 702: the second subcommand part of each NAS subdata that described transmitting terminal will complete in once transmitting is kept in described private data, and the data division composition scsi data making described private data and NAS data.
Step 703: the part invalid data not taking the page in the SGL page pointed by each SGL node of correspondence is filled by described transmitting terminal; That is, by whole spaces of the SGL page corresponding to each SGL node sensing.Like this, described private data, described data division and described invalid data is just comprised in described scsi data.
Step 704: described transmitting terminal is partially filled scsi command according to described first subcommand.Concrete mode existing description in Fig. 1 flow process of filling order.Wherein, can perform according to random order between step 701-703 and step 704.
Step 705: SGL node corresponding for each NAS subdata couples together according to sequencing by described transmitting terminal, is placed on the SGL node of described private data finally.This embodiment is for after the data division that described private data is placed on NAS data and described invalid data.
Step 706: described transmitting terminal, according to SCSI agreement, first sends described scsi command to receiving terminal by described FC link.
Step 707: after described receiving terminal receives described scsi command, the data total length indicated according to described scsi command distributes the SGL page, and by described FC link to transmitting terminal feedback allocation success message.
Step 708: described transmitting terminal sends described scsi data to receiving terminal by described FC link.
Step 709: described scsi data is stored in the SGL page of preparation by described receiving terminal, and parse private data length by described scsi command.
Step 7010: described receiving terminal, according to described private data, parses each NAS subdata from the described SGL page.
Step 7011: each NAS subdata of described receiving terminal process.
Step 7012: described receiving terminal responds described transmitting terminal by described FC link, and this is transmitted.
Step 7013: described transmitting terminal receives response, release related resource.
Refer to Fig. 8, based on same inventive concept, the embodiment of the present invention provides a kind of device by FC link transmission NAS data, and described device is foregoing transmitting terminal device, that is, described device can be specifically uniform storage device.Described device can comprise mapping block 801 and sending module 802.
Mapping block 801 for being small computer system interface scsi command by the first subcommand part mapping for file system addressing in the command component in NAS data, and using the remainder in described NAS data except described first subcommand part as scsi data; Wherein, described NAS data comprise described command component and data division;
Sending module 802 is for sending described scsi command by described FC chain road direction receiving terminal;
The receiver module of sending module 802 also for comprising in said device receive described receiving terminal reply according to described scsi command generate be allocated successfully message time, by described FC link, described scsi data is sent to described receiving terminal.
Optionally, in the embodiment of the present invention, mapping block 801 for using the remainder in described NAS data except described first subcommand part as scsi data, be specially:
The second subcommand part that described command component is comprised as private data, and using described private data and described data division as described scsi data;
Wherein, described private data is used to indicate the particular location that described data division stores in the dispersed set table SGL page, and described command component is made up of described first subcommand part and described second subcommand part.
Optionally, in the embodiment of the present invention, mapping block 801 specifically for using described private data and described data division as described scsi data, be specially:
Using described private data, described data division and invalid data as described scsi data;
Wherein, described invalid data for when the SGL page pointed by described first subcommand part can not be filled full by described private data and described data division, for the data of not filling full part and filling.
Optionally, in the embodiment of the present invention, mapping block 801 specifically for using described private data, described data division and invalid data as described scsi data, be specially:
As described scsi data before described private data being arranged on described data division and described invalid data; Or
As described scsi data after described private data being arranged on described data division and described invalid data.
Refer to Fig. 9, based on same inventive concept, the embodiment of the present invention provides a kind of device being received NAS data by FC link, and described device is foregoing receiving end device, that is, described device can be specifically uniform storage device.Described device can comprise receiver module 901, distribution module 902 and operational module 903.
The scsi command of receiver module 901 for being sent by described FC link receiving end/sending end; Wherein, described scsi command is that the first subcommand part mapping for file system addressing in the command component in NAS data obtains by described transmitting terminal;
Distribution module 902 concentrates the table SGL page for distributing dispersion according to described scsi command, and is allocated successfully message by transmitting terminal transmission described in described FC chain road direction;
Operational module 903 receives by described FC link the scsi data that described transmitting terminal sends after being allocated successfully message described in receiving for utilizing receiver module 901, and for described scsi data is write the described SGL page; Wherein, described scsi data comprises the remainder in described NAS data except described first subcommand part, and described NAS data comprise described command component and data division.
Optionally, in the embodiment of the present invention, described scsi data comprises private data and described data division;
Wherein, described private data comprises the second subcommand part in described command component, described private data is used to indicate the particular location that described data division stores in the described SGL page, and described command component is made up of described first subcommand part and described second subcommand part.
Optionally, in the embodiment of the present invention, in described scsi data, also comprise invalid data;
Described invalid data is for concentrating the table SGL page to fill full at described private data and described data division during by the dispersion pointed by described first subcommand part, for the data of not filling full part and filling;
Described device also comprises parsing module, for: after described scsi data is write the described SGL page by operational module 903, according to described private data, from the described scsi data of the described SGL page of write, parse described data division.
Optionally, in the embodiment of the present invention, described parsing module, specifically for the position corresponding in the described SGL page of: the described data division indicated by described private data, parses described data division from described scsi data.
Refer to Figure 10, based on same inventive concept, the embodiment of the present invention provides a kind of device by FC link transmission NAS data, and described device is foregoing transmitting terminal device, that is, described device can be specifically uniform storage device.Described device can comprise memory 1001, input equipment 1002, output equipment 1003 and processor 1004, and wherein, memory 1001, input equipment 1002 are connected with processor 1004 respectively with output equipment 1003.Wherein, memory 1001, input equipment 1002 can be connected with processor 1004 respectively by connecting line with output equipment 1003, as shown in Figure 10, or memory 1001, input equipment 1002, output equipment 1003 and processor 1004 all can be connected to same bus.
Memory 1001 is for storing instruction;
Processor 1004, for performing described instruction, be small computer system interface scsi command by the first subcommand part mapping for file system addressing in the command component in NAS data, and using the remainder in described NAS data except described first subcommand part as scsi data; Wherein, described NAS data comprise described command component and data division;
Output equipment 1003, for sending described scsi command by described FC chain road direction receiving terminal, and, input equipment 1002 receive described receiving terminal reply according to described scsi command generate be allocated successfully message time, by described FC link, described scsi data is sent to described receiving terminal.
Input equipment 1002, for receive described receiving terminal reply generate according to described scsi command described in be allocated successfully message.
Optionally, in the embodiment of the present invention, processor 1004 specifically for using the remainder in described NAS data except described first subcommand part as scsi data, be specially:
The second subcommand part that described command component is comprised as private data, and using described private data and described data division as described scsi data;
Wherein, described private data is used to indicate the particular location that described data division stores in the dispersed set table SGL page, and described command component is made up of described first subcommand part and described second subcommand part.
Optionally, in the embodiment of the present invention, processor 1004 specifically for using described private data and described data division as described scsi data, be specially:
Using described private data, described data division and invalid data as described scsi data;
Wherein, described invalid data for when the SGL page pointed by described first subcommand part can not be filled full by described private data and described data division, for the data of not filling full part and filling.
Optionally, in the embodiment of the present invention, processor 1004 specifically for using described private data, described data division and invalid data as described scsi data, be specially:
As described scsi data before described private data being arranged on described data division and described invalid data; Or
As described scsi data after described private data being arranged on described data division and described invalid data.
Refer to Figure 11, based on same inventive concept, the embodiment of the present invention provides a kind of device being received NAS data by FC link, and described device is foregoing receiving end device, that is, described device can be specifically uniform storage device.Described device can comprise memory 1101, input equipment 1102, output equipment 1103 and processor 1104, and wherein, memory 1101, input equipment 1102 are connected with processor 1104 respectively with output equipment 1103.Wherein, memory 1101, input equipment 1102 can be connected with processor 1104 respectively by connecting line with output equipment 1103, as shown in figure 11, or memory 1101, input equipment 1102, output equipment 1103 and processor 1104 all can be connected to same bus.
Memory 1101 is for storing instruction;
Input equipment 1102, for the scsi command sent by described FC link receiving end/sending end; Wherein, described scsi command is that the first subcommand part mapping for file system addressing in the command component in NAS data obtains by described transmitting terminal;
Processor 1104, for performing described instruction, distributing dispersion according to described scsi command and concentrating the table SGL page, and utilize output equipment 1103 to be allocated successfully message by transmitting terminal transmission described in described FC chain road direction;
Input equipment 1102 is also for receiving the scsi data that described transmitting terminal sends after being allocated successfully message described in receiving by described FC link;
Described scsi data, also for performing described instruction, is write the described SGL page by processor 1104; Wherein, described scsi data comprises the remainder in described NAS data except described first subcommand part, and described NAS data comprise described command component and data division.
Optionally, in the embodiment of the present invention, described scsi data comprises private data and described data division;
Wherein, described private data comprises the second subcommand part in described command component, described private data is used to indicate the particular location that described data division stores in the described SGL page, and described command component is made up of described first subcommand part and described second subcommand part.
Optionally, in the embodiment of the present invention, in described scsi data, also comprise invalid data;
Described invalid data is for concentrating the table SGL page to fill full at described private data and described data division during by the dispersion pointed by described first subcommand part, for the data of not filling full part and filling;
Processor 1104 also for: perform described instruction, after described scsi data is write the described SGL page, according to described private data, from write the described SGL page described scsi data parse described data division.
Optionally, in the embodiment of the present invention, processor 1104 is also for performing described instruction, according to described private data, described data division is parsed from the described scsi data of the described SGL page of write, be specially: perform described instruction, the position that the described data division indicated by described private data is corresponding in the described SGL page, from described scsi data, parse described data division.
The embodiment of the present invention provides a kind of method by FC link transmission NAS data, described method comprises: the first subcommand part mapping for file system addressing in the command component in NAS data is small computer system interface scsi command by sending ending equipment, and, using the remainder in described NAS data except described first subcommand part as scsi data; Wherein, described NAS data comprise described command component and data division; Described sending ending equipment sends described scsi command by described FC chain road direction receiving terminal; Described sending ending equipment receive described receiving terminal reply according to described scsi command generate be allocated successfully message time, by described FC link, described scsi data is sent to described receiving terminal.
In the embodiment of the present invention, be scsi command by the first subcommand part mapping of the command component in NAS data, and using the remainder in NAS data as scsi data, be the equal of be SAN data by NAS data-mapping, so just can transmit NAS data by the transmission link (i.e. FC link) of SAN system.Such as, for the unified storage array that there is SAN and NAS business simultaneously, as long as be that SAN data just can directly utilize the transmission link of SAN to transmit NAS data by NAS data-mapping, only need set up the transmission link of SAN, without the need to setting up transmission link respectively for SAN and NAS, saving hardware resource, providing cost savings, also simplify link structure, reduce the probability of makeing mistakes.
Further, in general, the limited bandwidth of the special I P circuit rented, therefore, when carrying out remote copy based on IP agreement on a wide area network, has larger time delay.And the FC that SAN uses (Fibre Channel, optical-fibre channel) link just has comparatively significantly advantage in bandwidth sum time delay.But because FC link can not transmit NAS data in prior art, cause the advantage of FC link cannot bring lifting in performance to NAS subsystem, the range of application of FC link is also narrower.After adopting the technical scheme in the embodiment of the present invention, being SAN data by NAS data-mapping, can be transmitted by FC link equally, FC link bandwidth is wider, time delay is less, and this advantage also can bring the lifting in performance to NAS subsystem, widened the range of application of FC link.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by device is divided into different functional modules, to complete all or part of function described above.The system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described module or unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that the technical scheme of the application contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) perform all or part of step of method described in each embodiment of the application.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory, random access memory, magnetic disc or CD etc. various can be program code stored medium.
The above, above embodiment is only in order to be described in detail the technical scheme of the application, but the explanation of above embodiment just understands method of the present invention and core concept thereof for helping, and should not be construed as limitation of the present invention.Those skilled in the art are in the technical scope that the present invention discloses, and the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.

Claims (24)

1., by a method for Fibre Channel link transmission network attached storage NAS data, it is characterized in that, comprising:
The first subcommand part mapping for file system addressing in command component in NAS data is small computer system interface scsi command by sending ending equipment, and using the remainder in described NAS data except described first subcommand part as scsi data; Wherein, described NAS data comprise described command component and data division;
Described sending ending equipment sends described scsi command by described FC chain road direction receiving terminal;
Described sending ending equipment receive described receiving terminal reply according to described scsi command generate be allocated successfully message time, by described FC link, described scsi data is sent to described receiving terminal.
2. the method for claim 1, is characterized in that, using the remainder in described NAS data except described first subcommand part as scsi data, comprising:
The second subcommand part that described command component is comprised as private data, and using described private data and described data division as described scsi data;
Wherein, described private data is used to indicate the particular location that described data division stores in the dispersed set table SGL page, and described command component is made up of described first subcommand part and described second subcommand part.
3. method as claimed in claim 2, is characterized in that, using described private data and described data division as described scsi data, comprising:
Using described private data, described data division and invalid data as described scsi data;
Wherein, described invalid data for when the SGL page pointed by described first subcommand part can not be filled full by described private data and described data division, for the data of not filling full part and filling.
4. method as claimed in claim 3, is characterized in that, using described private data, described data division and invalid data as described scsi data, comprising:
As described scsi data before described private data being arranged on described data division and described invalid data; Or
As described scsi data after described private data being arranged on described data division and described invalid data.
5. received a method for network attached storage NAS data by Fibre Channel link, it is characterized in that, comprising:
The scsi command that receiving device is sent by described FC link receiving end/sending end; Wherein, described scsi command is that the first subcommand part mapping for file system addressing in the command component in NAS data obtains by described transmitting terminal;
Described receiving device distributes dispersion according to described scsi command and concentrates the table SGL page, and is allocated successfully message by transmitting terminal transmission described in described FC chain road direction;
Described receiving device receives by described FC link the scsi data that described transmitting terminal sends after being allocated successfully message described in receiving, and described scsi data is write the described SGL page; Wherein, described scsi data comprises the remainder in described NAS data except described first subcommand part, and described NAS data comprise described command component and data division.
6. method as claimed in claim 5, it is characterized in that, described scsi data comprises private data and described data division;
Wherein, described private data comprises the second subcommand part in described command component, described private data is used to indicate the particular location that described data division stores in the described SGL page, and described command component is made up of described first subcommand part and described second subcommand part.
7. method as claimed in claim 6, is characterized in that, also comprise invalid data in described scsi data;
Described invalid data is for concentrating the table SGL page to fill full at described private data and described data division during by the dispersion pointed by described first subcommand part, for the data of not filling full part and filling;
After described scsi data is write the described SGL page, also comprise:
According to described private data, from the described scsi data of the described SGL page of write, parse described data division.
8. method as claimed in claim 7, it is characterized in that, according to described private data, described data division is parsed from the described scsi data of the described SGL page of write, comprise: the position that the described data division indicated by described private data is corresponding in the described SGL page, from described scsi data, parse described data division.
9., by a device for Fibre Channel link transmission network attached storage NAS data, it is characterized in that, comprising:
Mapping block, for being small computer system interface scsi command by the first subcommand part mapping for file system addressing in the command component in NAS data, and using the remainder in described NAS data except described first subcommand part as scsi data; Wherein, described NAS data comprise described command component and data division;
Sending module, for sending described scsi command by described FC chain road direction receiving terminal;
Described sending module, also for receive described receiving terminal reply according to described scsi command generate be allocated successfully message time, by described FC link, described scsi data is sent to described receiving terminal.
10. device as claimed in claim 9, is characterized in that, described mapping block to be used for the remainder in described NAS data except described first subcommand part, as scsi data, being specially:
The second subcommand part that described command component is comprised as private data, and using described private data and described data division as described scsi data;
Wherein, described private data is used to indicate the particular location that described data division stores in the dispersed set table SGL page, and described command component is made up of described first subcommand part and described second subcommand part.
11. devices as claimed in claim 10, is characterized in that, described mapping block specifically for using described private data and described data division as described scsi data, be specially:
Using described private data, described data division and invalid data as described scsi data;
Wherein, described invalid data for when the SGL page pointed by described first subcommand part can not be filled full by described private data and described data division, for the data of not filling full part and filling.
12. devices as claimed in claim 11, is characterized in that, described mapping block specifically for using described private data, described data division and invalid data as described scsi data, be specially:
As described scsi data before described private data being arranged on described data division and described invalid data; Or
As described scsi data after described private data being arranged on described data division and described invalid data.
13. 1 kinds receive the device of network attached storage NAS data by Fibre Channel link, it is characterized in that, comprising:
Receiver module, for the scsi command sent by described FC link receiving end/sending end; Wherein, described scsi command is that the first subcommand part mapping for file system addressing in the command component in NAS data obtains by described transmitting terminal;
Distribution module, concentrates the table SGL page for distributing dispersion according to described scsi command, and is allocated successfully message by transmitting terminal transmission described in described FC chain road direction;
Operational module, for utilizing described receiver module to receive by described FC link the scsi data that described transmitting terminal sends after being allocated successfully message described in receiving, and for described scsi data is write the described SGL page; Wherein, described scsi data comprises the remainder in described NAS data except described first subcommand part, and described NAS data comprise described command component and data division.
14. devices as claimed in claim 13, it is characterized in that, described scsi data comprises private data and described data division;
Wherein, described private data comprises the second subcommand part in described command component, described private data is used to indicate the particular location that described data division stores in the described SGL page, and described command component is made up of described first subcommand part and described second subcommand part.
15. devices as claimed in claim 13, is characterized in that, also comprise invalid data in described scsi data;
Described invalid data is for concentrating the table SGL page to fill full at described private data and described data division during by the dispersion pointed by described first subcommand part, for the data of not filling full part and filling;
Described device also comprises parsing module, for: after described scsi data is write the described SGL page by described operational module, according to described private data, from the described scsi data of the described SGL page of write, parse described data division.
16. devices as claimed in claim 15, is characterized in that, described parsing module, specifically for the position corresponding in the described SGL page of: the described data division indicated by described private data, parses described data division from described scsi data.
17. 1 kinds, by the device of Fibre Channel link transmission network attached storage NAS data, is characterized in that, comprise memory, input equipment, output equipment and processor; Described memory, described input equipment are connected with described processor respectively with described output equipment, wherein:
Described memory, for storing instruction;
Described processor, for performing described instruction, be small computer system interface scsi command by the first subcommand part mapping for file system addressing in the command component in NAS data, and using the remainder in described NAS data except described first subcommand part as scsi data; Wherein, described NAS data comprise described command component and data division;
Described output equipment, for sending described scsi command by described FC chain road direction receiving terminal, and, described input equipment receive described receiving terminal reply according to described scsi command generate be allocated successfully message time, by described FC link, described scsi data is sent to described receiving terminal;
Described input equipment, for receive described receiving terminal reply generate according to described scsi command described in be allocated successfully message.
18. devices as claimed in claim 17, is characterized in that, described processor specifically for using the remainder in described NAS data except described first subcommand part as scsi data, be specially:
The second subcommand part that described command component is comprised as private data, and using described private data and described data division as described scsi data;
Wherein, described private data is used to indicate the particular location that described data division stores in the dispersed set table SGL page, and described command component is made up of described first subcommand part and described second subcommand part.
19. devices as claimed in claim 18, is characterized in that, described processor specifically for using described private data and described data division as described scsi data, be specially:
Using described private data, described data division and invalid data as described scsi data;
Wherein, described invalid data for when the SGL page pointed by described first subcommand part can not be filled full by described private data and described data division, for the data of not filling full part and filling.
20. devices as claimed in claim 19, is characterized in that, described processor specifically for using described private data, described data division and invalid data as described scsi data, be specially:
As described scsi data before described private data being arranged on described data division and described invalid data; Or
As described scsi data after described private data being arranged on described data division and described invalid data.
21. 1 kinds receive the device of network attached storage NAS data by Fibre Channel link, it is characterized in that, comprising: memory, input equipment, output equipment and processor; Described memory, described input equipment are connected with described processor respectively with described output equipment, wherein:
Described memory, for storing instruction;
Described input equipment, for the scsi command sent by described FC link receiving end/sending end; Wherein, described scsi command is that the first subcommand part mapping for file system addressing in the command component in NAS data obtains by described transmitting terminal;
Described processor, for performing described instruction, distributing dispersion according to described scsi command and concentrating the table SGL page, and utilize described output equipment to be allocated successfully message by transmitting terminal transmission described in described FC chain road direction;
Described input equipment is also for receiving the scsi data that described transmitting terminal sends after being allocated successfully message described in receiving by described FC link;
Described scsi data, also for performing described instruction, is write the described SGL page by described processor; Wherein, described scsi data comprises the remainder in described NAS data except described first subcommand part, and described NAS data comprise described command component and data division.
22. devices as claimed in claim 21, it is characterized in that, described scsi data comprises private data and described data division;
Wherein, described private data comprises the second subcommand part in described command component, described private data is used to indicate the particular location that described data division stores in the described SGL page, and described command component is made up of described first subcommand part and described second subcommand part.
23. devices as claimed in claim 22, is characterized in that, also comprise invalid data in described scsi data;
Described invalid data is for concentrating the table SGL page to fill full at described private data and described data division during by the dispersion pointed by described first subcommand part, for the data of not filling full part and filling;
Described processor also for: perform described instruction, after described scsi data is write the described SGL page, according to described private data, from write the described SGL page described scsi data parse described data division.
24. devices as claimed in claim 23, it is characterized in that, described processor is also for performing described instruction, according to described private data, described data division is parsed from the described scsi data of the described SGL page of write, be specially: perform described instruction, the position that the described data division indicated by described private data is corresponding in the described SGL page, from described scsi data, parse described data division.
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 true CN104363269A (en) 2015-02-18
CN104363269B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016065871A1 (en) * 2014-10-27 2016-05-06 华为技术有限公司 Methods and apparatuses for transmitting and receiving nas data through fc link
WO2020019173A1 (en) * 2018-07-24 2020-01-30 华为技术有限公司 Memory control circuit for object storage
CN115632706A (en) * 2022-12-01 2023-01-20 苏州浪潮智能科技有限公司 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
CN102223409A (en) * 2011-06-13 2011-10-19 浪潮(北京)电子信息产业有限公司 Network storage resource application system and method
CN102065071B (en) * 2009-11-17 2013-05-01 北京同有飞骥科技股份有限公司 Storage equipment supporting multi-transport protocol
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
CN102223409A (en) * 2011-06-13 2011-10-19 浪潮(北京)电子信息产业有限公司 Network storage resource application system and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016065871A1 (en) * 2014-10-27 2016-05-06 华为技术有限公司 Methods and apparatuses for transmitting and receiving nas data through fc link
WO2020019173A1 (en) * 2018-07-24 2020-01-30 华为技术有限公司 Memory control circuit for object storage
CN115632706A (en) * 2022-12-01 2023-01-20 苏州浪潮智能科技有限公司 FC link management method, device, equipment and readable storage medium

Also Published As

Publication number Publication date
CN104363269B (en) 2018-03-06
WO2016065871A1 (en) 2016-05-06

Similar Documents

Publication Publication Date Title
US9678918B2 (en) Data processing system and data processing method
CN108701004A (en) A kind of system of data processing, method and corresponding intrument
CN102918509B (en) Data reading and writing method, device and storage system
CN102609215B (en) Data processing method and device
US10116746B2 (en) Data storage method and network interface card
CN105556930A (en) NVM EXPRESS controller for remote memory access
CN103475682A (en) File transfer method and file transfer equipment
CN103828332A (en) Data processing method, device, storage controller, and cabinet
US7460531B2 (en) Method, system, and program for constructing a packet
CN104750428A (en) Block storage access and gateway module, storage system and method, and content delivery apparatus
CN101645058B (en) Command processing method, command sending method, device and system
US9641616B2 (en) Self-steering point-to-point storage protocol
CN104363269A (en) Methods and devices for transmitting and receiving NAS (network attached storage) data through FC (fiber channel) link
CN105765484A (en) Input output data alignment
CN109478171A (en) Improve the handling capacity in OPENFABRICS environment
CN101437046A (en) Method for processing data of solid-state hard disk, solid-state hard disk and network appliance
US10200462B2 (en) Memory system including plurality of server nodes sharing storage array and operating method of memory system
US9923669B2 (en) Distributed Reed-Solomon codes for simple multiple access networks
CN104038550A (en) Data communication method and data communication device and storage system
CN103973534A (en) Method and device for simulating sharing of USB flash disk
CN102480516A (en) Analytical method of data unit of small computer interface of Internet
WO2018099241A1 (en) Disk array controller, and data processing method and device thereof
CN105765542A (en) Method for accessing files, distributed storage system and storage node
CN103858091A (en) Management method and equipment for storage equipment
US20210377187A1 (en) Encapsulated ficon communication

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