Sunteți pe pagina 1din 3

Fibre Channel(FC) Login and SCSI-FCP Porcess Login The Fibre Channel Login process is a simple mechanism of an N_Port

(node port) discovering the entity it is attached to and sequentially requesting the owner of each entity to pass thru till it has established a session with another N_Port. 1. The Initiator Sends our an FLOGI (Fabric Login Request) 2. If the FLOGI response is LS_RJT, the initiator resends FLOGI (till the max retry count expires). 3. If the FLOGI response is ACCEPT, that indicates that the initiator has a link to a fabric/target. Initiator issues a PLOGI (Port Login Request). 4. If the PLOGI response is LS_RJT, the initiator resends PLOGI (till the max retry count expires). 5. If the PLOGI response is ACCEPT, this indicates that the initiator is now permitted to talk to the process (or service) that is being hosted on this port. So the initiator sends out a PRLI (Process Login Request). 6. If the PRLI response is LS_RJT, the initiator resends PRLI (till the max retry count expires). 7. If the PRLI response is ACCEPT, that indicates that the initiator is successfully connected to the target, and now SCSI FCP operations can be performed. This is like the full feature phase where the initiator can issue SCSI commands, send and receive data, and receive SCSI command response & status issued by the target device. Once the initiator is done, it can gracefully perform a logout as follows: 8. The initiator sends a PRLO (Process Logout Request) to the target. 9. If the PRLO response is LS_RJT, the initiator retries the Logout. 10. If the PRLO response is ACCEPT, the initiator sends our LOGO (Port logout Request). 11. If the LOGO response is LS_RJT, the initiator retries the Logout. 12. If the LOGO response is ACCEPT, the session ends. This is a simplified version of the login logout process, and doesnt take into consideration the operations that happen when the initiator is typically connected in a fabric environment (in which case the initiator logs into different fabric services like the management server, directory server and queries the fabric to get target information). Logins

There are three different types of login for Fibre Channel. These are: Fabric login Port login Process login Fabric login After the fabric capable Fibre Channel device is attached to a fabric switch, it will carry out a fabric login (FLOGI). Similar to port login, FLOGI is an extended link service command that sets up a session between two participants. With FLOGI a session is created between an N_Port or NL_Port and the switch. An N_Port will send a FLOGI frame that contains its Node Name, its N_Port Name, and service parameters to a well-known address of 0xFFFFFE. A public loop NL_Port first opens the destination AL_PA 0x00 before issuing the FLOGI request. In both cases the switch accepts the login and returns an accept (ACC) frame to the sender. If some of the service parameters requested by the N_Port or NL_Port are not supported, the switch will set the appropriate bits in the ACC frame to indicate this. When the N_Port logs in it uses a 24-bit port address of 0x000000. Because of this the fabric is allowed to assign the appropriate port address to that device, based on the DomainArea-Port address format. The newly assigned address is contained in the ACC response frame. When the NL_Port logs in a similar process starts, except that the least significant byte is used to assign AL_PA and the upper two bytes constitute a fabric loop identifier. Before an NL_Port logs in it will go through the LIP on the loop, which is started by the FL_Port, and from this process it has already derived an AL_PA. The switch then decides if it will accept this AL_PA for this device or not. If not a new AL_PA is assigned to the NL_Port, which then causes the start of another LIP. This ensures that the switch assigned AL_PA does not conflict with any previously selected AL_PAs on the loop. After the N_Port or public NL_Port gets its fabric address from FLOGI, it needs to register with the SNS. This is done with port login (PLOGI) at the address 0xFFFFFC. The device may register values for all or just some database objects, but the most useful are its 24-bit port address, 64-bit Port Name (WWPN), 64-bit Node Name (WWN), class of service parameters, FC-4 protocols supported, and port type, such as N_Port or NL_Port. Port login Port login is also known as PLOGI. Port login is used to establish a session between two N_Ports (devices) and is necessary before any upper level commands or operations can be performed. During the port login, two N_Ports (devices) swap service parameters and make themselves known to each other.

Process login Process login is also known as PRLI. Process login is used to set up the environment between related processes on an originating N_Port and a responding N_Port. A group of related processes is collectively known as an image pair. The processes involved can be system processes, system images, such as mainframe logical partitions, control unit images, and FC-4 processes. Use of process login is optional from the perspective of Fibre Channel FC-2 layer, but may be required by a specific upper-level protocol as in the case of SCSIFCP mapping.

S-ar putea să vă placă și