InfiniBand Test Specification  1.0.38
Public Member Functions | Protected Member Functions | List of all members
C15_0_1_012_15

Inherits C15_0_1_012.

Public Member Functions

 C15_0_1_012_15 ()
 
boolean execute () throws TestException
 

Protected Member Functions

boolean initialize () throws TestException
 

Detailed Description

25.2.5.15.1 SA SERVICE RECORD- PART 1

25.2.5.15 V1C15-0.1.012 SERVICE RECORD

Abstract: This test verifies that an SA Service Record can be added, queried and deleted from the SA database

Coverage: v1c15-0.1.012

Topology Configuration: SimpleLink: Tester=MADTester, Width=1X, 2X, 4X, or 12X, DUT= SM/SA Node DUT Qualifiers: DUT must have SM/SA functionality

Notes: None.

Test Case Description

◆ C15_0_1_012_15()

25.2.5.15.1 SA SERVICE RECORD- PART 1

Assertions: v1c15-0.1.012#15.01, v1c15-0.1.012#15.03, v1c15-0.1.012#15.04, v1c15-0.1.012#15.05, v1c15-0.1.012#15.06, v1c15-0.1.012#15.09, v1c15-0.1.012#15.10, v1c15-0.1.012#15.11, v1c15-0.1.012#15.12, v1c15-0.1.012#15.13, v1c15-0.1.012#15.15, v1c15-0.1.012#15.16

Notes:

  1. This TD part will verify that SA can correctly set, query and delete a service record. The algorithm is:
    • Tester creates a service record
    • Tester verifies it can query the service record
    • Tester deletes the service record
    • Tester verifies that the service record was deleted (query of this service record should fail)
  2. This TD assumes that SM has minimally discovered the network, assigned LIDs to all the endnodes and created paths among all endnodes.
  3. This TD assumes that the partition table has not been modified.
  4. This TD assumes that no {ServiceName, ServiceKey} association exists

Developer: Kevin King

Test Procedure

◆ initialize()

boolean initialize ( ) throws TestException
protected

Initialization:

  1. PortInfo:PortState is initialized to ACTIVE for both MADTester and DUT.
  2. GMP_DATA, MAD_DATA variable of type MadPacketSpec

◆ execute()

boolean execute ( ) throws TestException

Test Procedure:

  1. MAD_DATA is a legal GMP:
    • MAD_DATA:BTH:DestQP = 1
    • MADHeader:MgmtClass = 0x3
    • MADHeader:ClassVersion = 0x2
    • MADHeader:Method = 0x2 // SubnAdmSet
    • MADHeader:AttributeID = 0x31
    • SAHeader:SM_Key = 0
    • SAHeader:AttributeOffset = 0
    • SAHeader:ComponentMask = 0x1FFFFFFFD7
    • Remark: This specifies all SR 37 fields except for Reserved field and ServiceKey.
    • ServiceRecord:ServiceID = 0x1234567812345678
    • ServiceRecord:ServiceGID = GID of the tester
    • ServiceRecord:ServiceP_Key = 0xFFFF
    • ServiceRecord:ServiceLease = 0xFFFFFFFF
    • ServiceRecord:ServiceName = "CIWG MANAGEMENT SERVICE RECORD TEST"
    • ServiceRecord:ServiceData8.1 = 01
    • ServiceRecord:ServiceData8.2 = 23
    • ServiceRecord:ServiceData8.3 = 45
    • ServiceRecord:ServiceData8.4 = 67
    • ServiceRecord:ServiceData8.5 = 89
    • ServiceRecord:ServiceData8.6 = AB
    • ServiceRecord:ServiceData8.7 = CD
    • ServiceRecord:ServiceData8.8 = EF
    • ServiceRecord:ServiceData8.9 = 12
    • ServiceRecord:ServiceData8.10 = 34
    • ServiceRecord:ServiceData8.11 = 56
    • ServiceRecord:ServiceData8.12 = 78
    • ServiceRecord:ServiceData8.13 = 9A
    • ServiceRecord:ServiceData8.14 = BC
    • ServiceRecord:ServiceData8.15 = DE
    • ServiceRecord:ServiceData8.16 = F0
    • ServiceRecord:ServiceData16.1 = 1234
    • ServiceRecord:ServiceData16.2 = 5678
    • ServiceRecord:ServiceData16.3 = 9ABC
    • ServiceRecord:ServiceData16.4 = DEF0
    • ServiceRecord:ServiceData16.5 = FEDC
    • ServiceRecord:ServiceData16.6 = BA98
    • ServiceRecord:ServiceData16.7 = 7654
    • ServiceRecord:ServiceData16.8 = 3210
    • ServiceRecord:ServiceData32.1 = 12345678
    • ServiceRecord:ServiceData32.2 = 9ABCDEF0
    • ServiceRecord:ServiceData32.3 = 76543210
    • ServiceRecord:ServiceData32.4 = FEDCBA98
    • ServiceRecord:ServiceData64.1 = 0123456789ABCDEF
    • ServiceRecord:ServiceData64.2 = ABCDEF0123456789
  2. SendMad(SubnAdmSet(ServiceRecord))
  3. GMP_DATA= ReceiveMad (SubnAdmGetResp(ServiceRecord))
  4. Verify the following: // v1c15-0.1.012#15.03 :

    • GMP_DATA:MADHeader:Status.Code == 0
    • MADHeader:Method = 0x81
    • MADHeader:AttributeID = 0x31
    • ServiceRecord:ServiceID = 0x1234567812345678
    • ServiceRecord:ServiceGID = GID of the tester
    • ServiceRecord:ServiceP_Key = 0xFFFF
    • ServiceRecord:ServiceLease = 0xFFFFFFFF
    • ServiceRecord:ServiceName = "CIWG MANAGEMENT SERVICE RECORD TEST"
    • ServiceRecord:ServiceData8.1 = 01
    • ServiceRecord:ServiceData8.2 = 23
    • ServiceRecord:ServiceData8.3 = 45
    • ServiceRecord:ServiceData8.4 = 67
    • ServiceRecord:ServiceData8.5 = 89
    • ServiceRecord:ServiceData8.6 = AB
    • ServiceRecord:ServiceData8.7 = CD
    • ServiceRecord:ServiceData8.8 = EF
    • ServiceRecord:ServiceData8.9 = 12
    • ServiceRecord:ServiceData8.10 = 34
    • ServiceRecord:ServiceData8.11 = 56
    • ServiceRecord:ServiceData8.12 = 78
    • ServiceRecord:ServiceData8.13 = 9A
    • ServiceRecord:ServiceData8.14 = BC
    • ServiceRecord:ServiceData8.15 = DE
    • ServiceRecord:ServiceData8.16 = F0
    • ServiceRecord:ServiceData16.1 = 1234
    • ServiceRecord:ServiceData16.2 = 5678
    • ServiceRecord:ServiceData16.3 = 9ABC
    • ServiceRecord:ServiceData16.4 = DEF0
    • ServiceRecord:ServiceData16.5 = FEDC
    • ServiceRecord:ServiceData16.6 = BA98
    • ServiceRecord:ServiceData16.7 = 7654
    • ServiceRecord:ServiceData16.8 = 3210
    • ServiceRecord:ServiceData32.1 = 12345678
    • ServiceRecord:ServiceData32.2 = 9ABCDEF0
    • ServiceRecord:ServiceData32.3 = 76543210
    • ServiceRecord:ServiceData32.4 = FEDCBA98
    • ServiceRecord:ServiceData64.1 = 0123456789ABCDEF
    • ServiceRecord:ServiceData64.2 = ABCDEF0123456789

  5. MAD_DATA is a legal GMP:
    • MAD_DATA:BTH:DestQP = 1
    • MADHeader:MgmtClass = 0x3
    • MADHeader:ClassVersion = 0x2
    • MADHeader:Method = 0x1
    • MADHeader:AttributeID = 0x31
    • SAHeader:SM_Key = 0
    • SAHeader:AttributeOffset = 0
    • SAHeader:ComponentMask = 0x7
    • ServiceRecord:ServiceID = 0x1234567812345678
    • ServiceRecord:ServiceGID = GID of the tester
    • ServiceRecord:ServiceP_Key = 0xFFFF
  6. SendMad(SubnAdmGet(ServiceRecord))
  7. GMP_DATA= ReceiveMad (SubnAdmGetResp(ServiceRecord))
  8. Verify the following:

    • GMP_DATA:MADHeader:Status.Code == 0 // v1c15-0.1.012#15.01
    • MADHeader:Method = 0x81
    • MADHeader:AttributeID = 0x31
    • ServiceRecord:ServiceID = 0x1234567812345678 // v1c15-0.1.012#15.05
    • ServiceRecord:ServiceGID = GID of the tester // v1c15-0.1.012#15.05
    • ServiceRecord:ServiceP_Key = 0xFFFF // v1c15-0.1.012#15.05
    • ServiceRecord:ServiceLease = 0xFFFFFFFF // v1c15-0.1.012#15.06
    • ServiceRecord:ServiceKey = 0 // v1c15-0.1.012#15.15
    • ServiceRecord:ServiceName = "CIWG MANAGEMENT SERVICE RECORD TEST" // v1c15-0.1.012#15.09
    • ServiceRecord:ServiceData8.1 = 01 // v1c15-0.1.012#15.10
    • ServiceRecord:ServiceData8.2 = 23 // v1c15-0.1.012#15.10
    • ServiceRecord:ServiceData8.3 = 45 // v1c15-0.1.012#15.10
    • ServiceRecord:ServiceData8.4 = 67 // v1c15-0.1.012#15.10
    • ServiceRecord:ServiceData8.5 = 89 // v1c15-0.1.012#15.10
    • ServiceRecord:ServiceData8.6 = AB // v1c15-0.1.012#15.10
    • ServiceRecord:ServiceData8.7 = CD // v1c15-0.1.012#15.10
    • ServiceRecord:ServiceData8.8 = EF // v1c15-0.1.012#15.10
    • ServiceRecord:ServiceData8.9 = 12 // v1c15-0.1.012#15.10
    • ServiceRecord:ServiceData8.10 = 34 // v1c15-0.1.012#15.10
    • ServiceRecord:ServiceData8.11 = 56 // v1c15-0.1.012#15.10
    • ServiceRecord:ServiceData8.12 = 78 // v1c15-0.1.012#15.10
    • ServiceRecord:ServiceData8.13 = 9A // v1c15-0.1.012#15.10
    • ServiceRecord:ServiceData8.14 = BC // v1c15-0.1.012#15.10
    • ServiceRecord:ServiceData8.15 = DE // v1c15-0.1.012#15.10
    • ServiceRecord:ServiceData8.16 = F0 // v1c15-0.1.012#15.10
    • ServiceRecord:ServiceData16.1 = 1234 // v1c15-0.1.012#15.11
    • ServiceRecord:ServiceData16.2 = 5678 // v1c15-0.1.012#15.11
    • ServiceRecord:ServiceData16.3 = 9ABC // v1c15-0.1.012#15.11
    • ServiceRecord:ServiceData16.4 = DEF0 // v1c15-0.1.012#15.11
    • ServiceRecord:ServiceData16.5 = FEDC // v1c15-0.1.012#15.11
    • ServiceRecord:ServiceData16.6 = BA98 // v1c15-0.1.012#15.11
    • ServiceRecord:ServiceData16.7 = 7654 // v1c15-0.1.012#15.11
    • ServiceRecord:ServiceData16.8 = 3210 // v1c15-0.1.012#15.11
    • ServiceRecord:ServiceData32.1 = 12345678 // v1c15-0.1.012#15.12
    • ServiceRecord:ServiceData32.2 = 9ABCDEF0 // v1c15-0.1.012#15.12
    • ServiceRecord:ServiceData32.3 = 76543210 // v1c15-0.1.012#15.12
    • ServiceRecord:ServiceData32.4 = FEDCBA98 // v1c15-0.1.012#15.12
    • ServiceRecord:ServiceData64.1 = 0123456789ABCDEF // v1c15-0.1.012#15.13
    • ServiceRecord:ServiceData64.2 = ABCDEF0123456789 // v1c15-0.1.012#15.13

  9. MAD_DATA is a legal GMP:
    • MAD_DATA:BTH:DestQP = 1
    • MADHeader:MgmtClass = 0x3
    • MADHeader:ClassVersion = 0x2
    • MADHeader:Method = 0x1
    • MADHeader:AttributeID = 0x31
    • SAHeader:SM_Key = 0
    • SAHeader:AttributeOffset = 0
    • SAHeader:ComponentMask = 0x1
    • ServiceRecord:ServiceID = 0x1234567812345678
  10. SendMad(SubnAdmGet(ServiceRecord))
  11. GMP_DATA= ReceiveMad (SubnAdmGetResp(ServiceRecord))
  12. Verify the following:

    • GMP_DATA:MADHeader:Status.Code == 0 // v1c15-0.1.012#15.01
    • MADHeader:Method = 0x81
    • MADHeader:AttributeID = 0x31
    • ServiceRecord:ServiceID = 0x1234567812345678 // v1c15-0.1.012#15.05

  13. MAD_DATA is a legal GMP:
    • MAD_DATA:BTH:DestQP = 1
    • MADHeader:MgmtClass = 0x3
    • MADHeader:ClassVersion = 0x2
    • MADHeader:Method = 0x15
    • MADHeader:AttributeID = 0x31
    • SAHeader:SM_Key = 0
    • SAHeader:AttributeOffset = 0
    • SAHeader:ComponentMask = 0x7
    • ServiceRecord:ServiceID = 0x1234567812345678
    • ServiceRecord:ServiceGID = GID of the tester
    • ServiceRecord:ServiceP_Key = 0xFFFF
  14. SendMad(SubnAdmDelete(ServiceRecord))
  15. GMP_DATA= ReceiveMad (SubnAdmDeleteResp(ServiceRecord))
  16. Verify the following: // v1c15-0.1.012#15.04

    • GMP_DATA:MADHeader:Status.Code == 0
    • MADHeader:Method = 0x95
    • MADHeader:AttributeID = 0x31
    • ServiceRecord:ServiceID = 0x1234567812345678
    • ServiceRecord:ServiceGID = GID of the tester
    • ServiceRecord:ServiceP_Key = 0xFFFF
    • ServiceRecord:ServiceLease = 0xFFFFFFFF
    • ServiceRecord:ServiceName = "CIWG MANAGEMENT SERVICE RECORD TEST"
    • ServiceRecord:ServiceData8.1 = 01
    • ServiceRecord:ServiceData8.2 = 23
    • ServiceRecord:ServiceData8.3 = 45
    • ServiceRecord:ServiceData8.4 = 67
    • ServiceRecord:ServiceData8.5 = 89
    • ServiceRecord:ServiceData8.6 = AB
    • ServiceRecord:ServiceData8.7 = CD
    • ServiceRecord:ServiceData8.8 = EF
    • ServiceRecord:ServiceData8.9 = 12
    • ServiceRecord:ServiceData8.10 = 34
    • ServiceRecord:ServiceData8.11 = 56
    • ServiceRecord:ServiceData8.12 = 78
    • ServiceRecord:ServiceData8.13 = 9A
    • ServiceRecord:ServiceData8.14 = BC
    • ServiceRecord:ServiceData8.15 = DE
    • ServiceRecord:ServiceData8.16 = F0
    • ServiceRecord:ServiceData16.1 = 1234
    • ServiceRecord:ServiceData16.2 = 5678
    • ServiceRecord:ServiceData16.3 = 9ABC
    • ServiceRecord:ServiceData16.4 = DEF0
    • ServiceRecord:ServiceData16.5 = FEDC
    • ServiceRecord:ServiceData16.6 = BA98
    • ServiceRecord:ServiceData16.7 = 7654
    • ServiceRecord:ServiceData16.8 = 3210
    • ServiceRecord:ServiceData32.1 = 12345678
    • ServiceRecord:ServiceData32.2 = 9ABCDEF0
    • ServiceRecord:ServiceData32.3 = 76543210
    • ServiceRecord:ServiceData32.4 = FEDCBA98
    • ServiceRecord:ServiceData64.1 = 0123456789ABCDEF
    • ServiceRecord:ServiceData64.2 = ABCDEF0123456789
    • ServiceRecord:ServiceData16.6 = BA98
    • ServiceRecord:ServiceData16.7 = 7654
    • ServiceRecord:ServiceData16.8 = 3210
    • ServiceRecord:ServiceData32.1 = 12345678
    • ServiceRecord:ServiceData32.2 = 9ABCDEF0
    • ServiceRecord:ServiceData32.3 = 76543210
    • ServiceRecord:ServiceData32.4 = FEDCBA98
    • ServiceRecord:ServiceData64.1 = 0123456789ABCDEF
    • ServiceRecord:ServiceData64.2 = ABCDEF0123456789

  17. MAD_DATA is a legal GMP:
    • MAD_DATA:BTH:DestQP = 1
    • MADHeader:MgmtClass = 0x3
    • MADHeader:ClassVersion = 0x2
    • MADHeader:Method = 0x1
    • MADHeader:AttributeID = 0x31
    • SAHeader:SM_Key = 0
    • SAHeader:AttributeOffset = 0
    • SAHeader:ComponentMask = 0x7
    • ServiceRecord:ServiceID = 0x1234567812345678
    • ServiceRecord:ServiceGID = GID of the tester
    • ServiceRecord:ServiceP_Key = 0xFFFF
  18. SendMad(SubnAdmGet(ServiceRecord))
  19. GMP_DATA= ReceiveMad (SubnAdmGetResp(ServiceRecord))
  20. Verify the following: // - v1c15-0.1.012#15.16

    • GMP_DATA:MADHeader:Status.Code == 3
    • MADHeader:Method = 0x81
    • MADHeader:AttributeID = 0x31

  21. Reset the DUT back to its original state.


The documentation for this class was generated from the following file: