Analyis of GlobalSAN iscsi Initiator trying to connect to the OpenSolaris iscsi target by Nigel Smith http://www.nwsmith.net/solaris/ http://nwsmith.blogspot.com/ :---------------------------------------: GlobalSAN Initiator is 192.168.1.5 Solaris Target is 192.168.1.1 ### Initiator Login (packet #6) SessionType=Normal InitialR2T=No HeaderDigest=None DataDigest=None MaxConnections=1 ImmediateData=Yes MaxOutstandingR2T=4 DataPDUInOrder=Yes DataSequenceInOrder=Yes ErrorRecoveryLevel=0.TargetName=iqn.1986-03.com.sun:02:15665ce1-a3a0-e5bd-e9dd-d78783dec173.media InitiatorName=iqn.2005-03.com.studionetworksolutions:mac-1093623522 ### Target Response - Success (packet #8+9+10) InitialR2T=Yes HeaderDigest=None DataDigest=None MaxConnections=1 ImmediateData=Yes MaxOutstandingR2T=4 DataPDUInOrder=Yes DataSequenceInOrder=Yes ErrorRecoveryLevel=0 TargetAlias=media TargetPortalGroupTag=1 Init->Tgt (packet#14) SCSI: Test Unit Ready LUN: 0x00 Tgt->Init (packet#16) SCSI: Response LUN: 0x00 (Good) Init->Tgt (packet#19) SCSI: Inquiry LUN: 0x00 - (EVPD=0, Allocation Length=6) Tgt->Init (packet#20-23) SCSI: Data In LUN: 0x00 (Inquiry Response) SCSI: Response LUN: 0x00 (Good) Init->Tgt (packet#27) SCSI: Inquiry LUN: 0x00 - (EVPD=0, Allocation Length: 49) Tgt->Init (packet#28-30) SCSI: Data In LUN: 0x00 (Inquiry Response) SCSI: Response LUN: 0x00 (Good) Init->Tgt (packet#35) SCSI: Inquiry LUN: 0x00 - (EVPD=1 & Page Code 0x00, Allocation Length=4) Tgt->Init (packet#36-37) SCSI: Data In LUN: 0x00 (Inquiry Response) SCSI: Response LUN: 0x00 (Good) Init->Tgt (packet#41) SCSI: Inquiry LUN: 0x00 - (EVPD=1 & Page Code 0x00, Allocation Length: 8) Tgt->Init (packet#42-43) SCSI: Data In LUN: 0x00 (Inquiry Response) SCSI: Response LUN: 0x00 (Good) Init->Tgt (packet#47) SCSI: Inquiry LUN: 0x00 - (EVPD=1 & Page Code 0x80, Allocation Length=4) Tgt->Init (packet#48-49) SCSI: Data In LUN: 0x00 (Inquiry Response) SCSI: Response LUN: 0x00 (Good) Init->Tgt (packet#53) SCSI: Inquiry LUN: 0x00 - (EVPD=1 & Page Code 0x80, Allocation Length: 8) Tgt->Init (packet#54-55) SCSI: Data In LUN: 0x00 (Inquiry Response) SCSI: Response LUN: 0x00 (Good) Init->Tgt (packet#59) SCSI: Inquiry LUN: 0x00 - (EVPD=1 & Page Code 0x83, Allocation Length=4) Tgt->Init (packet#60-61) SCSI: Data In LUN: 0x00 (Inquiry Response) SCSI: Response LUN: 0x00 (Good) Init->Tgt (packet#65) SCSI: Inquiry LUN: 0x00 - (EVPD=1 & Page Code 0x83, Allocation Length: 152) Tgt->Init (packet#66-67) SCSI: Data In LUN: 0x00 (Inquiry Response) SCSI: Response LUN: 0x00 (Good) {Now, for some unknown reason, it repeats those inquiries!} Init->Tgt (packet#71) SCSI: Test Unit Ready LUN: 0x00 Tgt->Init (packet#72) SCSI: Response LUN: 0x00 (Good) Init->Tgt (packet#75) SCSI: Inquiry LUN: 0x00 - (EVPD=1 & Page Code 0x00, Allocation Length=4) Tgt->Init (packet#76-77) SCSI: Data In LUN: 0x00 (Inquiry Response) SCSI: Response LUN: 0x00 (Good) Init->Tgt (packet#81) SCSI: Inquiry LUN: 0x00 - (EVPD=1 & Page Code 0x00, Allocation Length: 8) Tgt->Init (packet#82-83) SCSI: Data In LUN: 0x00 (Inquiry Response) SCSI: Response LUN: 0x00 (Good) Init->Tgt (packet#87) SCSI: Inquiry LUN: 0x00 - (EVPD=1 & Page Code 0x80, Allocation Length=4) Tgt->Init (packet#88-89) SCSI: Data In LUN: 0x00 (Inquiry Response) SCSI: Response LUN: 0x00 (Good) Init->Tgt (packet#92) SCSI: Inquiry LUN: 0x00 - (EVPD=1 & Page Code 0x80, Allocation Length: 8) Tgt->Init (packet#93-94) SCSI: Data In LUN: 0x00 (Inquiry Response) SCSI: Response LUN: 0x00 (Good) Init->Tgt (packet#98) SCSI: Inquiry LUN: 0x00 - (EVPD=1 & Page Code 0x83, Allocation Length=4) Tgt->Init (packet#99-100) SCSI: Data In LUN: 0x00 (Inquiry Response) SCSI: Response LUN: 0x00 (Good) Init->Tgt (packet#103) SCSI: Inquiry LUN: 0x00 - (EVPD=1 & Page Code 0x83, Allocation Length: 152) Tgt->Init (packet#104-105)SCSI: Data In LUN: 0x00 (Inquiry Response) SCSI: Response LUN: 0x00 (Good) {Then it does the EVPD=0 inquiry again!} Init->Tgt (packet#103) SCSI: Test Unit Ready LUN: 0x00 Tgt->Init (packet#104) SCSI: Response LUN: 0x00 (Good) Init->Tgt (packet#113) SCSI: Inquiry LUN: 0x00 - (EVPD=0, Allocation Length=36) Tgt->Init (packet#114-115)SCSI: Data In LUN: 0x00 (Inquiry Response) SCSI: Response LUN: 0x00 (Good) Init->Tgt (packet#119) SCSI: Report LUNs LUN: 0x00 - (Select All LUNs, Allocation Length=16) Tgt->Init (packet#120-121)SCSI: Data In LUN: 0x00 (Report LUNs Response) SCSI: Response LUN: 0x00 (Good) Init->Tgt (packet#124) SCSI: Report LUNs LUN: 0x00 - (Select All LUNs, Allocation Length=16) Tgt->Init (packet#125-126)SCSI: Data In LUN: 0x00 (Report LUNs Response) SCSI: Response LUN: 0x00 (Good) {Then again it repeats things it has already done!} Init->Tgt (packet#129) SCSI: Inquiry LUN: 0x00 - (EVPD=1 & Page Code 0x83, Allocation Length=4) Tgt->Init (packet#130-131)SCSI: Data In LUN: 0x00 (Inquiry Response) SCSI: Response LUN: 0x00 (Good) Init->Tgt (packet#134) SCSI: Inquiry LUN: 0x00 - (EVPD=1 & Page Code 0x83, Allocation Length: 152) Tgt->Init (packet#135-136)SCSI: Data In LUN: 0x00 (Inquiry Response) SCSI: Response LUN: 0x00 (Good) Init->Tgt (packet#139) SCSI: Test Unit Ready LUN: 0x00 Tgt->Init (packet#140) SCSI: Response LUN: 0x00 (Good) Init->Tgt (packet#143) SCSI: Inquiry LUN: 0x00 - (EVPD=0, Allocation Length=36) Tgt->Init (packet#144-145)SCSI: Data In LUN: 0x00 (Inquiry Response) SCSI: Response LUN: 0x00 (Good) Init->Tgt (packet#149) SCSI: Mode Sense(6) LUN: 0x00 - (SBC-2 Page Code 0x08 [Caching], Allocation Length=4) Tgt->Init (packet#150-151)SCSI: Data In LUN: 0x00 (Mode Sense(6) Response) Init->Tgt (packet#155) SCSI: Mode Sense(6) LUN: 0x00 - (SBC-2 Page Code 0x08 [Caching], Allocation Length=32) Tgt->Init (packet#156-157)SCSI: Data In LUN: 0x00 (Mode Sense(6) Response) {And again..} Init->Tgt (packet#161) SCSI: Mode Sense(6) LUN: 0x00 - (SBC-2 Page Code 0x08 [Caching], Allocation Length=4) Tgt->Init (packet#162-163)SCSI: Data In LUN: 0x00 (Mode Sense(6) Response) Init->Tgt (packet#167) SCSI: Mode Sense(6) LUN: 0x00 - (SBC-2 Page Code 0x08 [Caching], Allocation Length=32) Tgt->Init (packet#168-169)SCSI: Data In LUN: 0x00 (Mode Sense(6) Response) Init->Tgt (packet#173) SCSI: Mode Select(6) LUN: 0x00 SCSI: Data Out LUN: 0x00 (Mode Select(6) Request) Tgt->Init (packet#174-176)SCSI Response (Check Condition) Init->Tgt (packet#181) SCSI: Test Unit Ready LUN: 0x00 Tgt->Init (packet#182) SCSI: Response LUN: 0x00 (Good) Init->Tgt (packet#185) SCSI: SCSI: Read Capacity(10) LUN: 0x00 Tgt->Init (packet#186-187)SCSI: Data In LUN: 0x00 (Read Capacity(10) Response) Init->Tgt (packet#191) SCSI: Mode Sense(10) LUN: 0x00 - (DBD=8, SBC-2 Page Code 0x03 [Format Device], Allocation Length=8) Tgt->Init (packet#192-194)SCSI Response (Check Condition) Init->Tgt (packet#199) SCSI: Mode Sense(10) LUN: 0x00 - (DBD=0, SBC-2 Page Code 0x03 [Format Device], Allocation Length=8) Tgt->Init (packet#200-202)SCSI Response (Check Condition) Init->Tgt (packet#207) SCSI: Mode Sense(6) LUN: 0x00 - (DBD=8, SBC-2 Page Code 0x03 [Format Device], Allocation Length=8) Tgt->Init (packet#208-209)SCSI: Data In LUN: 0x00 (Mode Sense(6) Response) Init->Tgt (packet#213) SCSI: Mode Sense(6) LUN: 0x00 - (DBD=8, SBC-2 Page Code 0x03 [Format Device], Allocation Length=28) Tgt->Init (packet#214-215)SCSI: Data In LUN: 0x00 (Mode Sense(6) Response) Init->Tgt (packet#219) SCSI: Mode Sense(6) LUN: 0x00 - (DBD=8,SBC-2 Page Code 0x04 [Rigid Disk Geometry], Allocation Length=8) Tgt->Init (packet#220-221)SCSI: Data In LUN: 0x00 (Mode Sense(6) Response) Init->Tgt (packet#225) SCSI: Mode Sense(6) LUN: 0x00 - (DBD=8,SBC-2 Page Code 0x04 [Rigid Disk Geometry], Allocation Length=28) Tgt->Init (packet#226-227)SCSI: Data In LUN: 0x00 (Mode Sense(6) Response) Init->Tgt (packet#231) SCSI: Mode Sense(6) LUN: 0x00 - (DBD = 0,SPC-2 Page Code 0x3f [Return All Mode Pages], Allocation Length=4) Tgt->Init (packet#232-233)SCSI: Data In LUN: 0x00 (Mode Sense(6) Response) Init->Tgt (packet#237) SCSI: Read(10) LUN: 0x00 (LBA: 0x00000000, Len: 48) The Target ACK's this packet, then does nothing further. After 4 seconds, the Initiator tries: Init->Tgt (packet#239) SCSI: Test Unit Ready LUN: 0x00 Again, the Target ACK's this packet, then does nothing further. In packet#241 the initiator FIN's the TCP session. EVPD Page Code: 0x00 - Supported Vital Product Data Pages 0x80 - Unit Serial Number Page 0x83 - Device Identification Page