CN108683659A - Multi-protocol data communication means and device - Google Patents
Multi-protocol data communication means and device Download PDFInfo
- Publication number
- CN108683659A CN108683659A CN201810450386.4A CN201810450386A CN108683659A CN 108683659 A CN108683659 A CN 108683659A CN 201810450386 A CN201810450386 A CN 201810450386A CN 108683659 A CN108683659 A CN 108683659A
- Authority
- CN
- China
- Prior art keywords
- port
- data communication
- virtual port
- protocol
- communication protocol
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/18—Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
Abstract
Multi-protocol data communication means and device provided by the embodiments of the present application, a physical port based on the storage device create the first virtual port for supporting the first data communication protocol and support the second virtual port of the second data communication protocol;First virtual port and the second virtual port are subjected to port registration on the interchanger, to realize that the physical port is based on the first data communication protocol and the second data communication protocol by the interchanger into row data communication.The above method supports two virtual ports of different agreement by being created on a physical port of storage device, and two virtual ports are registered on switches, to realize support of the single physical port to multiple and different agreements, the occupancy to physical port resource can be reduced, hardware resource is saved.Only a physical port is needed to participate in networking simultaneously, networking complexity can also be reduced.
Description
Technical field
This application involves data communication technology fields, in particular to a kind of multi-protocol data communication means and device.
Background technology
Storage device, because the communication protocol that subscriber's main station is supported is different, needs storage to set when providing service to the user
The standby communication protocol that these can be supported different, could arrive supporting the data transmitted by the host of different communication protocol all to store
In storage device.
In storage device and storage area network (English:Storage Area Network, referred to as:SAN the exchange in)
When machine carries out wire communication, communication protocol techniques are typically all that the data carried out as unit of the physical port of storage device are led to
Letter, i.e., single communication protocol is only supported in single physical port, for example, small computer system interface is only supported in single physical port
Agreement (English:Small Computer System Interface, referred to as:SCSI) or non-volatile memories agreement is (English:
Non-Volatile Memory express, referred to as:NVMe).Single physical port is not supported while running different agreement.If
It needs to support different agreement simultaneously, needs to distribute corresponding physical port for different agreements, increase hardware cost and networking is multiple
Miscellaneous degree.
Invention content
Embodiments herein describes a kind of multi-protocol data communication means and device.
In a first aspect, the embodiment of the present application provides a kind of multi-protocol data communication means, it is applied to storage device, it is described to deposit
Storage equipment includes the physical port for being connect with switch communication, the method includes:
A physical port based on the storage device, which creates, at least supports the first virtual of the first data communication protocol
Port and the second virtual port for supporting the second data communication protocol;
First virtual port and the second virtual port are subjected to port registration on the interchanger, passed through with realizing
First main-machine communication of the first virtual port and the first data communication protocol of support on the physical port, and by described
The second virtual port on physical port and the second main-machine communication for supporting the second data communication protocol, first host and the
Two hosts are connect with the switch communication.
The above method can create two virtual ports for supporting different agreement on a physical port, to realize list
Support of a physical port to multiple and different agreements, it is possible to reduce to the occupancy of physical port resource, save hardware resource, may be used also
To reduce networking complexity.
Optionally, in the present embodiment, the method can also include:
The connection request that first host or the second host are sent by the interchanger is received, is asked according to the connection
Protocol attribute in asking judges to send the data communication protocol that the host of the connection request is supported;
If the host for sending the connection request supports first data communication protocol, pass through first virtual port
Establish the communication connection between the storage device and first host;
If the host for sending the connection request supports second data communication protocol, pass through second virtual port
Establish the communication connection between the storage device and second host.
Optionally, in the present embodiment, the physical port establishment based on the storage device at least supports the
The step of second virtual port of the second data communication protocol of the first virtual port and support of one data communication protocol, including:
Using the physical port as the first virtual port, and is assigned for first virtual port and support first number
According to the protocol attribute of communication protocol;
The second virtual port is created based on the physical port, and is assigned for second virtual port and supports described second
The protocol attribute of data communication protocol.
Optionally, in the present embodiment, first virtual port is enterprising in the interchanger with the second virtual port
The step of row port is registered, including:
It is sent to the interchanger by first virtual port and exchanges registration request, be described the by the interchanger
One virtual port distributes port id, and the first data communication protocols of the first virtual port support are registered in the interchanger
The protocol attribute of view;
It sends to obtain to interchanger by second virtual port and exchanges oral business parameter request, be by the interchanger
Second virtual port distributes port id, and the second data of the second virtual port support are registered in the interchanger
The protocol attribute of communication protocol.
Optionally, in the present embodiment, first data communication protocol is SCSI protocol, the second data communication protocols
View is NVMe agreements;Or first data communication protocol is NVMe agreements, second data communication protocol is assisted for SCSI
View.
Second aspect, the embodiment of the present application provide a kind of multi-protocol data communication device, are applied to storage device, described to deposit
Storage equipment includes the physical port for being connect with switch communication, and described device includes:
Creation module at least supports the first data communication protocols for the physical port establishment based on the storage device
First virtual port of view and the second virtual port for supporting the second data communication protocol;
Registration module, for first virtual port and the second virtual port to be carried out port note on the interchanger
Volume is logical by the first host of the first virtual port and the first data communication protocol of support on the physical port to realize
Letter, and by the second virtual port on the physical port and the second main-machine communication for supporting the second data communication protocol,
First host and the second host are connect with the switch communication.
Optionally, in the present embodiment, described device further includes:
Judgment module, the connection request sent by the interchanger for receiving first host or the second host,
Judge the data communication protocol that the host of the transmission connection request is supported according to the protocol attribute in the connection request;
Module is established, if the host for sending the connection request supports first data communication protocol, passes through institute
It states the first virtual port and establishes communication connection between the storage device and first host;
It is described to establish module, if the host for being also used for sending the connection request supports second data communication protocol,
The communication connection between the storage device and second host is established by second virtual port.
Optionally, in the present embodiment, the creation module is specifically used for:
Using the physical port as the first virtual port, and is assigned for first virtual port and support first number
According to the protocol attribute of communication protocol;
The second virtual port is created based on the physical port, and is assigned for second virtual port and supports described second
The protocol attribute of data communication protocol.
Optionally, in the present embodiment, the registration module is specifically used for:
It is sent to the interchanger by first virtual port and exchanges registration request, be described the by the interchanger
One virtual port distributes port id, and the first data communication protocols of the first virtual port support are registered in the interchanger
The protocol attribute of view;
It sends to obtain to interchanger by second virtual port and exchanges oral business parameter request, be by the interchanger
Second virtual port distributes port id, and the second data of the second virtual port support are registered in the interchanger
The protocol attribute of communication protocol.
Optionally, in the present embodiment, first data communication protocol is SCSI protocol, the second data communication protocols
View is NVMe agreements;Or first data communication protocol is NVMe agreements, second data communication protocol is assisted for SCSI
View.
The third aspect, the embodiment of the present application also provide one in addition to the multi-protocol data communication means and device of above-mentioned offer
Kind of storage device, the storage device include processor and the nonvolatile memory for being stored with several computer instructions, described
When computer instruction is executed by the processor, the storage device executes the multi-protocol data communication means in first aspect.
Fourth aspect, the embodiment of the present application also provide one in addition to the multi-protocol data communication means and device of above-mentioned offer
Kind of storage device, the readable storage medium storing program for executing includes computer program, and when computer program operation controls described readable deposit
Storage device executes the multi-protocol data communication means in first aspect where storage media.
In terms of existing technologies, the application has the advantages that:
Multi-protocol data communication means and device provided by the embodiments of the present application, by a physics end of storage device
Two virtual ports for supporting different agreement are created on mouth, and two virtual ports are registered on switches, to real
Existing support of the single physical port to multiple and different agreements, it is possible to reduce to the occupancy of physical port resource, save hardware resource.
Only a physical port is needed to participate in networking simultaneously, networking complexity can also be reduced.
Description of the drawings
It, below will be to needed in the embodiment attached in order to illustrate more clearly of the technical solution of the embodiment of the present application
Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the operation networking diagram for the data-storage system that the prior art provides;
Fig. 2 is the operation networking diagram of data-storage system provided by the embodiments of the present application;
Fig. 3 is the structural schematic diagram of storage device provided by the embodiments of the present application;
Fig. 4 is a kind of flow diagram of multi-protocol data communication means provided by the embodiments of the present application;
Fig. 5 is another flow diagram of multi-protocol data communication means provided by the embodiments of the present application;
Fig. 6 is a kind of functional block diagram of multi-protocol data communication device provided by the embodiments of the present application;
Fig. 7 is another functional block diagram of multi-protocol data communication device provided by the embodiments of the present application.
Specific implementation mode
To keep the purpose, technical scheme and advantage of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, technical solutions in the embodiments of the present application is clearly and completely described, it is clear that described embodiment is
Some embodiments of the present application, instead of all the embodiments.The application being usually described and illustrated herein in the accompanying drawings is implemented
The component of example can be arranged and be designed with a variety of different configurations.
Therefore, below the detailed description of the embodiments herein to providing in the accompanying drawings be not intended to limit it is claimed
Scope of the present application, but be merely representative of the selected embodiment of the application.Based on the embodiment in the application, this field is common
The every other embodiment that technical staff is obtained without creative efforts belongs to the model of the application protection
It encloses.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined, then it further need not be defined and explained in subsequent attached drawing in a attached drawing.
In the description of the present application, it is also necessary to which explanation is unless specifically defined or limited otherwise, term " setting ",
" installation ", " connected ", " connection " shall be understood in a broad sense, for example, it may be fixedly connected, may be a detachable connection or one
Connect to body;It can be mechanical connection, can also be electrical connection;It can be directly connected, it can also be indirect by intermediary
It is connected, can is the connection inside two elements.For the ordinary skill in the art, on being understood with concrete condition
State the concrete meaning of term in this application.
In the prior art, single port only supports a kind of communication protocol (for example, NVMe agreements or SCSI protocol), does not support
Single physical port runs multiple communication protocols simultaneously.It is just introduced in the prior art by taking NVMe agreements or SCSI protocol as an example below
Data-storage system operation networking diagram, specifically please refer to Fig. 1, data-storage system 10 includes storage device 100, interchanger
200 and host 300, the storage device 100 realizes that data communicate by interchanger 200 with host 300.Host 300 in Fig. 1
Including the first host 310 (for example, SCSI protocol host) and the second host 320 (for example, NVMe protocol hosts).The storage is set
Standby 100 include the physical port 1 for supporting SCSI protocol and the physical port 2 for supporting NVMe agreements, the two physical ports pass through
Interchanger 200 is communicated to connect with the first host 310 and the second host 320 respectively.Wherein, the first host 310 can only be with support
The physical port 1 of SCSI protocol docks, and the second host 320 can only be docked with the physical port 2 of NVMe agreements is supported.
In the prior art, storage device 100 needs multiple and different physics ends when needing while supporting different agreement
Mouthful, the embodiment of the present application provides a kind of solution being compatible with multi-protocols on the single physical port.
Fig. 2 is please referred to, Fig. 2 is a kind of operation networking diagram of data-storage system 10 provided by the embodiments of the present application.With Fig. 1
Unlike, the storage device 100 in figure need to provide a physical port and can be realized.Specifically, in storage device 100
Multiple virtual ports for supporting different agreement are fictionalized on one physical port, or are with SCSI protocol and NVMe agreements
, the first virtual port for supporting SCSI protocol is fictionalized on physical port and supports the second virtual port of NVMe agreements.It should
Physical port passes through interchanger 200 and the first host 310 and the second host 320 and communicates to connect, wherein the first host 310 and the
One virtual port establishes data communication, and the second host 320 is established data with the second virtual port and communicated.
Fig. 3 is please referred to, Fig. 3 is the structural schematic diagram of storage device 100 in Fig. 2.The storage device 100 includes multi-protocols
Data communication equipment 110, memory 111, processor 112 and communication unit 113.
Each element of the memory 111, processor 112 and communication unit 113 is directly or indirectly electrical between each other
Connection, to realize the transmission or interaction of data.For example, these elements can pass through one or more communication bus or letter between each other
Number line, which is realized, to be electrically connected.
Wherein, the memory 111 may be, but not limited to, random access memory (English:Random Access
Memory, referred to as:RAM), read-only memory (English:Read Only Memory, referred to as:ROM), programmable read only memory
(English:Programmable Read-Only Memory, referred to as:PROM), erasable read-only memory (English:Erasable
Programmable Read-Only Memory, referred to as:EPROM), electricallyerasable ROM (EEROM) (English:Electric
Erasable Programmable Read-Only Memory, referred to as:EEPROM) etc..Wherein, memory 111 is for storing
Program, the processor 112 execute described program after receiving and executing instruction.The communication unit 113 is for passing through network
The communication connection between the storage device 100 and miscellaneous equipment (such as host 300) is established, and for passing through network into line number
According to send and receive.
Multi-protocol data communication device 110 can be stored in including at least one in the form of software or firmware (firmware)
In the memory 111 or be solidificated in the storage device 100 operating system (English:Operating System, referred to as:
OS the software function module in).The processor 112 is used to execute the executable module stored in the memory 111, such as
Software function module and computer program included by multi-protocol data communication device 110 etc..In the present embodiment, the multi-protocols
Data communication equipment 110 provides the multi-protocol data communication for different user terminals for storage device 100, and specific method exists
Subsequently it is described in detail.
It should be understood that structure shown in Fig. 3 is only to illustrate, the storage device 100 may also include than shown in Fig. 3
More either less components or with configurations different as shown in figure 3.Each component shown in Fig. 3 may be used hardware,
Software or combinations thereof is realized.
Fig. 4 is please referred to, Fig. 4 is that the multi-protocol data provided by the embodiments of the present application applied to storage device 100 in Fig. 3 is logical
The flow chart of letter method.Below to the method includes each step illustrated in detail.
Step S410, created based on physical port the first virtual port at least supporting the first data communication protocol and
Support the second virtual port of the second data communication protocol.
Using port virtualization (English:N_Port ID Virtualization, referred to as:NPIV) technology is in a physics
Two virtual ports, i.e. the first virtual port and the second virtual port are fictionalized on port, and are the first virtual port and second
Virtual port assigns different protocol attributes, so that the first virtual port supports different agreements from the second virtual port.
In the present embodiment, first data communication protocol is SCSI protocol, and second data communication protocol is
NVMe agreements;Or first data communication protocol is NVMe agreements, second data communication protocol is SCSI protocol.When
So it can be understood that data communication protocol can also be other agreements in addition to SCSI protocol and NVMe in this application.
The port virtualization that following two embodiments carry out single physical port may be used in the present embodiment.
The first embodiment using physical port as the first virtual port, and assigns branch for first virtual port
Hold the protocol attribute of the first data communication protocol.The second virtual port is created based on the physical port, and empty for described second
Quasi- port assigns the protocol attribute for supporting second data communication protocol.
Second of embodiment creates the first virtual port and the second virtual port based on physical port, and respectively the
One virtual port assigns the protocol attribute for supporting the first data communication protocol, is assigned for the second virtual port and supports second number
According to the protocol attribute of communication protocol.
Difference lies in the first embodiment is directly using physical port as the first virtual terminal for above two embodiment
Mouthful, and second of embodiment not by physical port directly as virtual port, two virtual ports of establishment are all based on
Physical port obtains.
First virtual port and the second virtual port are carried out port note by step S420 on the interchanger 200
Volume.
Virtual port carries out port registration on the interchanger 200, is that the physical port is communicated based on the first data
Agreement and the second data communication protocol, which are communicated by the interchanger 200 with host 300, prepares.
Before virtual port carries out port registration on the interchanger 200, need to establish storage device 100 and exchange
Communication connection between machine 200, in the present embodiment, storage device 100 and interchanger 200 by physical port wired connection,
Storage device 100 can complete rate consulation with interchanger 200 during establishing connection and topology is negotiated.Wherein, it completes
During rate consulation, storage device 100 and interchanger 200 can be according to minimum of the respective bandwidth selection between both
Bandwidth is communicated as storage device 100 with the rate of interchanger 200.During carrying out topological negotiation, storage device
100 and interchanger 200 pass through communication obtain opposite equip. relevant information, identify opposite equip..
Virtual port is fictionalized using different embodiments in step S410, in this step corresponding port registration
Flow can have difference.
When obtaining virtual port using the first embodiment in step S410, the corresponding port registration process of this step
It is as follows:
Physical port is sent to interchanger 200 exchanges registration (English:Fabric Login, referred to as:FLOGI it) asks,
It completes after exchanging registration, the NPIV characteristics of enable port.Storage device 100 is obtained by the response message that interchanger 200 is replied
Interchanger 200 is the port id of the first virtual port distribution.
Second virtual port, which sends to obtain to interchanger 200, exchanges mouth service parameter (English:Discover F_Port
Service Parameters, referred to as:FDISC it) asks, storage device 100 is obtained by the response message that interchanger 200 is replied
Interchanger 200 is the port id of the second virtual port distribution.
First virtual port and the second virtual port register the agreement category of the communication protocol of support in the switch 200 respectively
Property.Specifically, storage device 100 can register FC-4 attributes by the port id of the first virtual port or the second virtual port
(English:Register FC-4Features-Port Identifier, referred to as:RFF_ID), and by port id FC-4 is registered
Type (English:Register FC-4types-Port Identifier, referred to as:RFT_ID).Wherein, RFF_ID and RFT_ID
In the protocol type of virtual port support is described in corresponding field.
When using second of embodiment obtains virtual port in step S410, the corresponding port registration process of this step
It is as follows:
Physical port is sent to interchanger 200 exchanges registration (English:Fabric Login, referred to as:FLOGI it) asks.It deposits
Storage equipment obtains the port id that interchanger 200 is physical port distribution by the response message that interchanger 200 is replied.
First virtual port and the second virtual port, which send to obtain to interchanger 200, exchanges mouth service parameter (English:
Discover F_Port Service Parameters, referred to as:FDISC it) asks, storage device 100 is returned by interchanger 200
It is the port id that the first virtual port and the second virtual port distribute that multiple response message, which obtains interchanger,.
First virtual port and the second virtual port register the agreement category of the communication protocol of support in the switch 200 respectively
Property.Specifically, storage device 100 can register FC-4 attributes by the port id of the first virtual port or the second virtual port
(English:Register FC-4Features-Port Identifier, referred to as:RFF_ID), and by port id FC-4 is registered
Type (English:Register FC-4 types-Port Identifier, referred to as:RFT_ID).Wherein, RFF_ID and RFT_
The protocol type of virtual port support is described in ID in corresponding field.
By comparing it can be found that when step S410 carries out port virtual using the first embodiment, corresponding
Can be only that two virtual ports carry out port id distribution, and second of embodiment is used to carry out port virtual in step S420
When, can be three port assignment port ids in corresponding step S420, it is contemplated that it is practical only to use two ports,
To avoid port resource from wasting, it is preferred to use the first embodiment.
S410 and step S420 through the above steps, storage device 100 can pass through the first virtual terminal on physical port
Mouth is communicated with the first host 310 of the first data communication protocol is supported, and passes through the second virtual terminal on the physical port
Mouth is communicated with the second host 320 of the second data communication protocol is supported.
Fig. 5 is please referred to, in the present embodiment, the method can also include step S430 and step S440.
Step S430 receives the connection request that the first host 310 or the second host 320 are sent by the interchanger 200,
Judge the data communication protocol that the host 300 of the transmission connection request is supported according to the protocol attribute in the connection request.
Host 300 by interchanger 200 to storage device 100 send connection request during, host 300 first to
100 sending port of storage device registration (English:N_Port Login, referred to as:PLOGI it) asks, and transmission process registers (English
Text:Process Login, referred to as:PRLI) message wherein includes the protocol attribute that host 300 is supported in PRLI messages.
Judge the data communication protocol that the host 300 of the transmission connection request is supported according to the protocol attribute in PRLI messages.
In host 300 to before 100 sending port registration request of storage device, host 300 can also inquire the exchange
The port id of each virtual port registration and the protocol type of support in machine 200, and according to query result to corresponding virtual
Port sending port registration request.
Step S440, if the host 300 for sending the connection request supports first data communication protocol, by described
First virtual port establishes the communication connection between the storage device 100 and first host 310;If sending the connection to ask
The host 300 asked supports second data communication protocol, then establishes the storage device 100 by second virtual port
With the communication connection between second host 320.
After setting up the communication connection between host 300 and storage device 100, interchanger 120 can be according to distribution
The data correspondence that host 300 is sent is sent on corresponding virtual port to the ID of virtual port, realizes host 300 to storage
Data transmission between equipment 100.
It is understood that in the other embodiment of the application, a physical port can also be based on and create ratio two
The virtual port of more support different agreement, principle is identical as the principle that the application describes embodiment, herein just not
The quantity of virtual port is excessively explained, as long as the principle for providing technical solution using the application is real on single physical port
The operation of existing different agreement, is all considered as in the protection domain for dropping into the application.
The above method, it is virtual by two that create support different agreement on a physical port of storage device 100
Port, and two virtual ports are registered on interchanger 200, to realize single physical port to multiple and different agreements
Support, it is possible to reduce to the occupancy of physical port resource, save hardware resource.A physical port participation group is only needed simultaneously
Net can also reduce networking complexity.
The embodiment of the present application also provides a kind of multi-protocol data communication device 110, and unlike above example, this is more
Protocol data communication device 110 is to describe application scheme from the angle of virtual bench.It is understood that next to retouch
Specific step of the concrete function that each function module involved in the multi-protocol data communication device 110 stated executes in above example
It is had been noted above in rapid, the exhaustive of specific each function module can refer to above embodiment description, below only to assisting more
View data communication equipment 110 is briefly described.Fig. 6 is please referred to, multi-protocol data communication device 110 includes following functions mould
Block.
Creation module 1101 at least creates for a physical port based on the storage device 100 and supports the first data
First virtual port of communication protocol and the second virtual port for supporting the second data communication protocol.
In the present embodiment, the creation module 1101 is specifically used for:
Using the physical port as the first virtual port, and is assigned for first virtual port and support first number
According to the protocol attribute of communication protocol;
The second virtual port is created based on the physical port, and is assigned for second virtual port and supports described second
The protocol attribute of data communication protocol.
In the present embodiment, first data communication protocol is SCSI protocol, and second data communication protocol is
NVMe agreements;Or first data communication protocol is NVMe agreements, second data communication protocol is SCSI protocol.
Registration module 1102 on the interchanger 200 for carrying out first virtual port with the second virtual port
Port is registered, and virtual port carries out port registration on the interchanger 200, to realize through first on the physical port
Virtual port is communicated with the first host 310 of the first data communication protocol is supported, and passes through second on the physical port
Virtual port is communicated with the second host 320 of the second data communication protocol is supported, first host, 310 and second host 320
It is communicated to connect with the interchanger 200.
In the present embodiment, the registration module 1102 is specifically used for:
It is sent to the interchanger 200 by first virtual port and exchanges registration request, be by the interchanger 200
First virtual port distributes port id, and the first of the first virtual port support is registered in the interchanger 200
The protocol attribute of data communication protocol;
It sends to obtain to interchanger 200 by second virtual port and exchanges oral business parameter request, by the exchange
Machine 200 is that second virtual port distributes port id, and registers second virtual port in the interchanger 200 and support
The second data communication protocol protocol attribute.
Please refer to Fig. 7, the multi-protocol data communication device 110 can also include judgment module 1103 and establish module
1104。
Judgment module 1103 is sent for receiving first host, 310 or second host 320 by the interchanger 200
Connection request, the number supported of host 300 for sending the connection request is judged according to the protocol attribute in the connection request
According to communication protocol.
If establishing module 1104 for for sending the host 300 of the connection request and support the first data communication protocols
View, then establish the communication connection between the storage device 100 and first host 310 by first virtual port;
If the host 300 for sending the connection request supports second data communication protocol, established by second virtual port
Communication connection between the storage device 100 and second host 320.
It, can be with if above-mentioned function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer read/write memory medium.Based on this understanding, the technical solution of the application is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be expressed in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that the execution of storage device 100 the application is each
The all or part of step of a embodiment the method.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory
(English:Read-Only Memory, referred to as:ROM), random access memory (English:Random Access Memory, letter
Claim:RAM), the various media that can store program code such as magnetic disc or CD.
In conclusion multi-protocol data communication means provided by the embodiments of the present application and device, are based on the storage device
A physical port at least create support the first data communication protocol the first virtual port and support the second data communication protocols
Second virtual port of view;First virtual port and the second virtual port are subjected to port registration on the interchanger,
To realize that the physical port is based on the first data communication protocol and the second data communication protocol by the interchanger into line number
According to communication.The above method supports two virtual ports of different agreement by being created on a physical port of storage device,
And register two virtual ports on switches, to realize support of the single physical port to multiple and different agreements,
The occupancy to physical port resource can be reduced, hardware resource is saved.Only physical port is needed to participate in networking simultaneously, it can be with
Reduce networking complexity.
The above, the only specific implementation mode of the application, but the protection domain of the application is not limited thereto, it is any
Those familiar with the art can easily think of the change or the replacement in the technical scope that the application discloses, and should all contain
It covers within the protection domain of the application.Therefore, the protection domain of the application shall be subject to the protection scope of the claim.
Claims (10)
1. a kind of multi-protocol data communication means, which is characterized in that be applied to storage device, the storage device include for
The physical port of switch communication connection, the method includes:
A physical port based on the storage device creates the first virtual port at least supporting the first data communication protocol
And support the second virtual port of the second data communication protocol;
First virtual port and the second virtual port are subjected to port registration on the interchanger, to realize by described
First main-machine communication of the first virtual port and the first data communication protocol of support on physical port, and pass through the physics
Second main-machine communication of the second virtual port and the second data communication protocol of support on port, first host and the second master
Machine is connect with the switch communication.
2. the method as described in claim 1, which is characterized in that the method further includes:
The connection request that first host or the second host are sent by the interchanger is received, according in the connection request
Protocol attribute judge to send the data communication protocol supported of host of the connection request;
If the host for sending the connection request supports first data communication protocol, established by first virtual port
Communication connection between the storage device and first host;
If the host for sending the connection request supports second data communication protocol, established by second virtual port
Communication connection between the storage device and second host.
3. method as claimed in claim 2, which is characterized in that a physical port based on the storage device creates
It at least supports the first virtual port of the first data communication protocol and supports the second virtual port of the second data communication protocol
Step, including:
Using the physical port as the first virtual port, and is assigned for first virtual port and support that first data are logical
Believe the protocol attribute of agreement;
The second virtual port is created based on the physical port, and is assigned for second virtual port and supports second data
The protocol attribute of communication protocol.
4. method as claimed in claim 3, which is characterized in that by first virtual port with the second virtual port described
The step of port registration is carried out on interchanger, including:
It is sent to the interchanger by first virtual port and exchanges registration request, be described first empty by the interchanger
Quasi- port assignment port id, and register in the interchanger the first data communication protocol that first virtual port is supported
Protocol attribute;
It sends to obtain to interchanger by second virtual port and exchanges oral business parameter request, be described by the interchanger
Second virtual port distributes port id, and registers the second data that second virtual port is supported in the interchanger and communicate
The protocol attribute of agreement.
5. the method as described in claim 1-4 any one, which is characterized in that first data communication protocol is assisted for SCSI
View, second data communication protocol are NVMe agreements;Or first data communication protocol be NVMe agreements, described second
Data communication protocol is SCSI protocol.
6. a kind of multi-protocol data communication device, which is characterized in that be applied to storage device, the storage device include for
The physical port of switch communication connection, described device include:
Creation module at least supports the first data communication protocol for the physical port establishment based on the storage device
First virtual port and the second virtual port for supporting the second data communication protocol;
Registration module, for first virtual port and the second virtual port to be carried out port registration on the interchanger,
To realize the first main-machine communication by the first virtual port and the first data communication protocol of support on the physical port, with
And by the second virtual port on the physical port and the second main-machine communication for supporting the second data communication protocol, described the
One host and the second host are connect with the switch communication.
7. device as claimed in claim 6, which is characterized in that described device further includes:
Judgment module, the connection request sent by the interchanger for receiving first host or the second host, according to
Protocol attribute in the connection request judges to send the data communication protocol that the host of the connection request is supported;
Module is established, if the host for sending the connection request supports first data communication protocol, passes through described the
One virtual port establishes the communication connection between the storage device and first host;
It is described to establish module, if the host for being also used for sending the connection request supports second data communication protocol, pass through
Second virtual port establishes the communication connection between the storage device and second host.
8. device as claimed in claim 7, which is characterized in that the creation module is specifically used for:
Using the physical port as the first virtual port, and is assigned for first virtual port and support that first data are logical
Believe the protocol attribute of agreement;
The second virtual port is created based on the physical port, and is assigned for second virtual port and supports second data
The protocol attribute of communication protocol.
9. device as claimed in claim 8, which is characterized in that the registration module is specifically used for:
It is sent to the interchanger by first virtual port and exchanges registration request, be described first empty by the interchanger
Quasi- port assignment port id, and register in the interchanger the first data communication protocol that first virtual port is supported
Protocol attribute;
It sends to obtain to interchanger by second virtual port and exchanges oral business parameter request, be described by the interchanger
Second virtual port distributes port id, and registers the second data that second virtual port is supported in the interchanger and communicate
The protocol attribute of agreement.
10. the device as described in claim 6-9 any one, which is characterized in that first data communication protocol is SCSI
Agreement, second data communication protocol are NVMe agreements;Or first data communication protocol is NVMe agreements, described the
Two data communication protocols are SCSI protocol.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810450386.4A CN108683659A (en) | 2018-05-11 | 2018-05-11 | Multi-protocol data communication means and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810450386.4A CN108683659A (en) | 2018-05-11 | 2018-05-11 | Multi-protocol data communication means and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108683659A true CN108683659A (en) | 2018-10-19 |
Family
ID=63805983
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810450386.4A Pending CN108683659A (en) | 2018-05-11 | 2018-05-11 | Multi-protocol data communication means and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108683659A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109729102A (en) * | 2019-03-12 | 2019-05-07 | 天津芯海创科技有限公司 | A method of realizing heterogeneous protocol auto-negotiation |
CN109728984A (en) * | 2018-11-26 | 2019-05-07 | 华为技术有限公司 | A kind of access system, method and device |
CN110166291A (en) * | 2019-05-17 | 2019-08-23 | 贵州航天智慧农业有限公司 | A kind of multi-protocols device management method based on single port |
CN110380913A (en) * | 2019-08-19 | 2019-10-25 | 贵州航天智慧农业有限公司 | A kind of multi-protocols device management method and system based on single port |
CN111061670A (en) * | 2019-11-20 | 2020-04-24 | 福建北峰通信科技股份有限公司 | Method for optimizing terminal program space through virtual serial port protocol conversion |
CN111399771A (en) * | 2020-02-28 | 2020-07-10 | 苏州浪潮智能科技有限公司 | Protocol configuration method, device and equipment of MCS storage system |
WO2020181977A1 (en) * | 2019-03-13 | 2020-09-17 | 苏州库瀚信息科技有限公司 | System, method and apparatus for storage controller having multiple heterogeneous network interface ports |
CN112153129A (en) * | 2020-09-11 | 2020-12-29 | 苏州浪潮智能科技有限公司 | Improved dual-protocol path method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1992729A (en) * | 2005-12-27 | 2007-07-04 | 国际商业机器公司 | Data processing system and method |
US20120297379A1 (en) * | 2011-05-17 | 2012-11-22 | International Business Machines Corporation | Vendor-independent resource configuration interface for self-virtualizing input/output device |
CN104750427A (en) * | 2013-12-27 | 2015-07-01 | 伊姆西公司 | Storage device and method thereof |
CN106060012A (en) * | 2016-05-17 | 2016-10-26 | 北京神州绿盟信息安全科技股份有限公司 | Multiplexing method and apparatus |
US9747180B1 (en) * | 2015-03-31 | 2017-08-29 | EMC IP Holding Company LLC | Controlling virtual endpoint failover during administrative SCSI target port disable/enable |
CN107911247A (en) * | 2017-11-27 | 2018-04-13 | 郑州云海信息技术有限公司 | A kind of NPIV implementation methods based on more control MCS systems |
-
2018
- 2018-05-11 CN CN201810450386.4A patent/CN108683659A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1992729A (en) * | 2005-12-27 | 2007-07-04 | 国际商业机器公司 | Data processing system and method |
US20120297379A1 (en) * | 2011-05-17 | 2012-11-22 | International Business Machines Corporation | Vendor-independent resource configuration interface for self-virtualizing input/output device |
CN104750427A (en) * | 2013-12-27 | 2015-07-01 | 伊姆西公司 | Storage device and method thereof |
US9747180B1 (en) * | 2015-03-31 | 2017-08-29 | EMC IP Holding Company LLC | Controlling virtual endpoint failover during administrative SCSI target port disable/enable |
CN106060012A (en) * | 2016-05-17 | 2016-10-26 | 北京神州绿盟信息安全科技股份有限公司 | Multiplexing method and apparatus |
CN107911247A (en) * | 2017-11-27 | 2018-04-13 | 郑州云海信息技术有限公司 | A kind of NPIV implementation methods based on more control MCS systems |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109728984A (en) * | 2018-11-26 | 2019-05-07 | 华为技术有限公司 | A kind of access system, method and device |
CN109729102A (en) * | 2019-03-12 | 2019-05-07 | 天津芯海创科技有限公司 | A method of realizing heterogeneous protocol auto-negotiation |
CN109729102B (en) * | 2019-03-12 | 2021-08-27 | 天津芯海创科技有限公司 | Method for realizing self-negotiation of heterogeneous protocol |
WO2020181977A1 (en) * | 2019-03-13 | 2020-09-17 | 苏州库瀚信息科技有限公司 | System, method and apparatus for storage controller having multiple heterogeneous network interface ports |
US11368395B2 (en) | 2019-03-13 | 2022-06-21 | Suzhou Kuhan Information Technologies Co., Ltd. | System, method and apparatus for storage controller having multiple heterogeneous network interface ports |
CN110166291A (en) * | 2019-05-17 | 2019-08-23 | 贵州航天智慧农业有限公司 | A kind of multi-protocols device management method based on single port |
CN110380913A (en) * | 2019-08-19 | 2019-10-25 | 贵州航天智慧农业有限公司 | A kind of multi-protocols device management method and system based on single port |
CN111061670A (en) * | 2019-11-20 | 2020-04-24 | 福建北峰通信科技股份有限公司 | Method for optimizing terminal program space through virtual serial port protocol conversion |
CN111399771A (en) * | 2020-02-28 | 2020-07-10 | 苏州浪潮智能科技有限公司 | Protocol configuration method, device and equipment of MCS storage system |
CN111399771B (en) * | 2020-02-28 | 2023-01-10 | 苏州浪潮智能科技有限公司 | Protocol configuration method, device and equipment of MCS storage system |
CN112153129A (en) * | 2020-09-11 | 2020-12-29 | 苏州浪潮智能科技有限公司 | Improved dual-protocol path method and device |
CN112153129B (en) * | 2020-09-11 | 2023-02-24 | 苏州浪潮智能科技有限公司 | Improved dual-protocol path method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108683659A (en) | Multi-protocol data communication means and device | |
EP2525532A1 (en) | Method and apparatus of connectivity discovery between network switch and server based on vlan identifiers | |
CN106301829B (en) | A kind of method and apparatus of network service dilatation | |
US8495255B2 (en) | Discovery and configuration of device configurations | |
EP3905598B1 (en) | Message processing method and apparatus, control plane device, and computer storage medium | |
CN104753697B (en) | A kind of method, equipment and system controlling the automatic beginning of the network equipment | |
KR101454954B1 (en) | Storage area network configuration | |
WO2020057469A1 (en) | Data processing method, related device, and computer storage medium | |
CN104221331B (en) | The 2nd without look-up table layer packet switch for Ethernet switch | |
US9350655B2 (en) | Vertical converged framework | |
CN111880902A (en) | Pod creation method, device, equipment and readable storage medium | |
CN103828332B (en) | Data processing method, device, storage control and rack | |
CN106484327B (en) | A kind of data processing method and associated storage device | |
CN104133776B (en) | Storage array automatic configuration method, device and storage system | |
WO2018218977A1 (en) | Method for orchestrating software defined network, and sdn controller | |
CN111464622B (en) | Volume mapping processing method and device in distributed storage system | |
CN109495405A (en) | A kind of method and interchanger of bare metal server and cloud mainframe network intercommunication | |
US8923320B2 (en) | Systems and methods for automating virtual network interface controller configuration during workload provisioning | |
US11283804B2 (en) | Group zoning and access control over a network | |
CN111181821B (en) | Master-slave communication system and method for multiple communication groups | |
CN112689029A (en) | Method, device and equipment for acquiring IP address of group user | |
CN108462683A (en) | authentication method and device | |
CN111600795B (en) | Virtual edge device establishing method, controller and server | |
CN106100953B (en) | PCIe device shares the generation method of network, apparatus and system | |
CN108351802B (en) | Computer data processing system and method for communication traffic based optimization of virtual machine communication |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181019 |