How To
Summary
This document provides an overview on how to properly implement SMC-Rv2 on a z/OS environment.
Objective
- SMC-Rv2 requirements
- TCP/IP profile configuration
Environment
- IBM z15 or z16
- RDMA over Converged Ethernet (RoCE) Express2 or RoCE Express3*
- PNetIDs assigned
- OSA and RoCE PNetIDs must be configured and match
- PFIDs defined
- PNetIDs assigned
- Software: z/OS
- IBM z/OS V2R5
- Define at least one user-defined Enterprise ID in z/OS! (disabled by default)
- Environments: LPAR or z/VM guests
![A diagram showing two LPARS with a TCP data connection between ISM devices on each partner](/support/pages/system/files/inline-images/SMC-Rv2%20overview.jpg)
Steps
- Install and configure the “RoCE Express2” or “RoCE Express3” (z16) features in the hardware configuration definition (HCD).
- Assign PNetID values and configure the values in the HCD for both the “RoCE Express” ports and any OSA-Express devices that use the “RoCE Express2” or “RoCE Express3” ports for SMC-R communications.
- Configure Ethernet switches for RoCE Express features.
- Switch port must support jumbo frames if RoCE MTU size is configured at 2K or 4K
- Switch port must be configured in TRUNK mode and have all OSA VLAN in the access list.
- On the Primary Task Selection page window, select “Define configuration data”.
-
On the resulting panel, select “Processors”.
-
-
On the Processor List panel, select an eligible processor and action “Work with PCIe functions”.
-
-
Use PF20=Right to scroll to the partition assignments for the displayed PCIe functions, one panel for each defined channel subsystem
-
RoCE Adapter defined FID used by TCPIP config
-
-
Use F11=Add to define a new PCIe function
-
-
Set PCIe Adapter Type to ROCE-2
-
-
Function ID should match TCP/IP INTERFACE statement (for SMC-Rv2)
-
- Associate the RoCE Express Adapter to an OSA interface with same PNetID
- Each physical network ID entry correlates to a physical port on the adapter.
Sample RoCE IOCP / IOCDS declaration
z/OS TCP/IP profile configuration requirements
-
Configure GLOBALCONFIG SMCR statement.
-
Add EID on SMCGLOBAL statement.
-
Define SMCR, RoCEv2 IP address (SMCRIPADDR) and PFID (configured on OSA INTERFACE statement).
Start the interfaces (RNIC is automatically activated).
Here are the format of the definitions needed for the TCP/IP profile:
; ----------------------------------------------------------------------
; GLOBALCONFIG statements to enable SMC-Rv2
; ----------------------------------------------------------------------
GLOBALCONFIG SMCR
SMCGLOBAL SMCEID user_EID_values ENDSMCEID
; ----------------------------------------------------------------------
; INTERFACE statements for IPv4
; ----------------------------------------------------------------------
; For OSA-Express QDIO ethernet
INTERFACE intf_name
DEFINE IPAQENET
CHPIDTYPE OSD
PORTNAME port_name
IPADDR ipv4addr/num_mask_bits
SMCR PFID pfid
SMCRIPADDR ipv4addr
SMRMTU mtusize ; optional
Additional Information
z/OS TCP/IP profile configuration SYNTAXCHECK
- Can be used to validate SMCR profile changes before use
- Run against profile data set
Format:
V TCPIP,procname,SYNTAXCHECK,datasetname
Example:
V TCPIP,TCPIPB,SYNTAXCHECK,DSN=SYS1.TCPPARMS(PROFSYSB)
EZZ0060I PROCESSING COMMAND: VARY TCPIP,TCPIPB,SYNTAXCHECK,DSN=SYS1.TCPP
ARMS(PROFSYSB)
EZZ0061I VARY SYNTAXCHECK COMMAND BEGINNING
...
EZZ0316I PROFILE PROCESSING COMPLETE FOR FILE 'SYS1.TCPPARMS(PROFSYSB)'
EZZ0062I VARY SYNTAXCHECK FOUND NO ERRORS
EZZ0065I VARY SYNTAXCHECK COMMAND COMPLETE
SMC-R Monitoring - DISPLAY PCIE
- Activation of first SMC-R capable OSD causes PFIDs to be activated
- Use DISPLAY PCIE to display defined PFIDs
Format:
D PCIE
Example:
D PCIE
IQP022I 19.06.25 DISPLAY PCIE 545
PCIE 0013 ACTIVE
PFID | DEVICE TYPE NAME | STATUS | ASID | JOBNAME | CHID | VFN | PN |
00000111 | ISM | ALLC | 002A | NET | 07C2 | 0001 | |
00000011 | RoCE Express3 | ALLC | 002A | NET | 01D8 | 0001 | 1 |
00000021 | RoCE Express3 | ALLC | 01BC | 0001 | 1 |
If the devices are in standby, issue a system command "CF PFID(pfid),ONLINE".
Netstat Devlinks/-d for OSD report
- SMC V1 and V2 capabilities
- If V2 capable, displays configured PFID, SMCRIPADDR, and SMCRMTU
Format:
D TCPIP,procname,NETSTAT,DEVlinks
Example:
D TCPIP,TCPIPB,NETSTAT,DEVLINKS
…
IntfName: GIG3 IntfType: IPAQENET IntfStatus: Ready
PortName: GIG2E Datapath: OBE2 DatapathStatus: Ready
CHPIDType: OSD SMCR: Yes
PNetID: IBMTRUNKSET1 SMCD: Yes
...
SMCR Capability: V2
Associated Multi-subnet RNIC interface: EZARIUT10011
RoCE PFID: 0011 SMCRMTU: 1024
SMCRIPADDR: 9.82.24.157
Unassociated ISM interfaces: EZAISMU1
IntfName: EZARIUT10011 IntfType: RNIC IntfStatus: READY
Netstat CONFIG/-f report
- User-defined EIDs
- SMC exclude and permit lists
Format:
DTCPIP,procname,NETSTAT,CONFIG
Example:
D TCPIP,TCPIPB,NETSTAT,CONFIG
…
Global Configuration Information:
SMCGlobal:
AutoCache: YES AutoSMC: YES
SMCEID: IBM-COMMSERVER-MULTIPASS
SMC Exclude List: NONE
SMC Permit List: ALL
SMCR: YES
FixedMemory: 0000256M TcpKeepMinInt: 00000300
SMCD: YES
FixedMemory: 0000256M TcpKeepMinInt: 00000300
SMCDSYSEID: YES (IBM-SYSZ-ISMSEID0000000023B83931)
Netstat ALL/-a report
- Displays SMC version and EID
D TCPIP,TCPIPD,N,ALL,IPPORT=9.82.24.151+21
EZD0101I NETSTAT CS V2R4 TCPIPD 331
CLIENT NAME: FTPSERVE CLIENT ID: 00000CC2
LOCAL SOCKET: ::FFFF:9.82.24.153..21
FOREIGN SOCKET: ::FFFF:9.82.24.151..1242
…
SMC INFORMATION:
SMCDSTATUS: ACTIVE SMCDVERSION: 2
LOCALSMCLINKID: 02010001 REMOTESMCLINKID: 01010001
LOCALSMCRCVBUF: 64K REMOTESMCRCVBUF: 64K
SMCEID: IBM-SYSZ-ISMSEID0000000023B83931
Related Information
z/OS Communications Server: z/OS V2R5.0 Communications Server: IP Configuration…
z/OS 2.5 Hardware Configuration Definition User’s Guide
IBM Enterprise Networking Solutions – Shared Memory Communications version 2
IBM z/OS Shared Memory Communications Version 2 (SMCv2)
Configuring SMC-Dv2 for your z/OS environment
Accelerate Networking with Shared Memory Communications for Linux on IBM Z
Document Location
Worldwide
Product Synonym
Z; Z systems; z/OS; Communications Server
Was this topic helpful?
Document Information
Modified date:
02 May 2023
UID
ibm16985517