tokens: ['This', 'procedure', 'is', 'used', 'in', 'the', 'case', 'of', 'homerouted', 'roaming', 'scenarios', 'Figure', '', 'UE', 'or', 'network', 'requested', 'PDU', 'Session', 'Release', 'for', 'homerouted', 'roaming', '', 'The', 'procedure', 'is', 'triggered', 'by', 'one', 'of', 'the', 'following', 'events', 'a', 'UE', 'initiated', 'release', 'As', 'in', 'step', 'a', 'of', 'clause', '', 'with', 'the', 'addition', 'that', '', 'the', 'VSMF', 'initiates', 'N', 'Session', 'Modification', 'to', 'instruct', 'the', 'VUPF', 'to', 'stop', 'forwarding', 'uplink', 'traffic', 'and', '', 'the', 'VSMF', 'invokes', 'the', 'NsmfPDUSessionUpdate', 'Request', 'SM', 'Context', 'ID', 'information', 'from', 'the', 'SM', 'message', 'from', 'the', 'UE', 'eg', 'PCO', 'Trigger', 'PDU', 'Session', 'Release', 'indication', 'Timezone', 'User', 'Location', 'Information', 'service', 'operation', 'to', 'request', 'the', 'HSMF', 'to', 'release', 'the', 'PDU', 'Session', 'The', 'HSMF', 'responds', 'to', 'the', 'request', 'immediately', 'b', 'Serving', 'network', 'initiated', 'release', 'The', 'serving', 'network', 'initiates', 'the', 'PDU', 'Session', 'Release', 'during', 'UE', 'or', 'serving', 'network', 'initiated', 'Deregistration', 'procedure', 'as', 'specified', 'in', 'clause', '', 'There', 'is', 'no', 'NAS', 'SM', 'message', 'between', 'the', 'UE', 'and', 'the', 'VSMF', 'in', 'this', 'case', 'This', 'step', 'is', 'the', 'same', 'as', 'step', 'c', 'in', 'clause', '', 'with', 'the', 'addition', 'that', '', 'the', 'VSMF', 'initiates', 'N', 'Session', 'Modification', 'to', 'instruct', 'the', 'VUPF', 'to', 'stop', 'forwarding', 'uplink', 'traffic', 'and', '', 'the', 'VSMF', 'initiates', 'the', 'release', 'of', 'the', 'PDU', 'Session', 'at', 'the', 'HSMF', 'by', 'invoking', 'the', 'NsmfPDUSessionRelease', 'request', 'The', 'serving', 'network', 'also', 'initiates', 'the', 'PDU', 'Session', 'Release', 'where', 'neither', 'N', 'nor', 'N', 'SM', 'signalling', 'is', 'needed', 'before', 'releasing', 'the', 'SM', 'context', 'as', 'in', 'step', 'c', 'in', 'clause', '', 'if', 'eg', 'due', 'to', 'the', 'set', 'of', 'network', 'slices', 'for', 'a', 'UE', 'changes', 'where', 'a', 'network', 'slice', 'instance', 'is', 'no', 'longer', 'available', 'eg', 'as', 'described', 'in', 'clause', '', 'of', 'TS', '', 'System', 'architecture', 'for', 'the', 'G', 'System', 'GS', '', '', 'or', 'the', 'AAA', 'Server', 'triggered', 'Network', 'SliceSpecific', 'Reauthentication', 'and', 'Reauthorization', 'procedure', 'fails', 'as', 'specified', 'in', 'clause', '', 'or', 'the', 'AAA', 'Server', 'triggered', 'SliceSpecific', 'Authorization', 'Revocation', 'takes', 'place', 'as', 'specified', 'in', 'clause', '', 'c', 'HPLMN', 'initiated', 'release', 'This', 'step', 'is', 'the', 'same', 'as', 'step', 'b', 'in', 'clause', '', 'with', 'the', 'addition', 'that', '', 'the', 'HSMF', 'initiates', 'N', 'Session', 'Modification', 'to', 'instruct', 'the', 'HUPF', 'to', 'stop', 'forwarding', 'downlink', 'traffic', 'd', 'This', 'step', 'is', 'the', 'same', 'as', 'step', 'd', 'in', 'clause', '', 'with', 'the', 'addition', 'that', '', 'the', 'VSMF', 'initiates', 'N', 'Session', 'Modification', 'to', 'instruct', 'the', 'VUPF', 'to', 'stop', 'forwarding', 'uplink', 'traffic', 'and', '', 'the', 'VSMF', 'invokes', 'the', 'NsmfPDUSessionUpdate', 'Request', 'towards', 'HSMF', 'e', 'HPLMN', 'initiated', 'release', 'This', 'step', 'is', 'the', 'same', 'as', 'step', 'e', 'in', 'clause', '', 'with', 'the', 'addition', 'that', '', 'if', 'the', 'HSMF', 'is', 'notified', 'by', 'the', 'VSMF', 'that', 'the', 'HPLMN', 'SNSSAI', 'of', 'the', 'PDU', 'Session', 'with', 'SSC', 'mode', '', 'or', 'SSC', 'mode', '', 'is', 'to', 'be', 'replaced', 'with', 'Alternative', 'HPLMN', 'SNSSAI', 'and', 'if', 'the', 'HSMF', 'determines', 'that', 'a', 'new', 'PDU', 'Session', 'is', 'to', 'be', 'established', 'on', 'the', 'Alternative', 'HPLMN', 'SNSSAI', 'the', 'HSMF', 'initiates', 'release', 'of', 'the', 'PDU', 'Session', 'as', 'described', 'in', 'clause', '', 'of', 'TS', '', 'System', 'architecture', 'for', 'the', 'G', 'System', 'GS', '', '', '', 'the', 'HSMF', 'initiates', 'N', 'Session', 'Modification', 'to', 'instruct', 'the', 'HUPF', 'to', 'stop', 'forwarding', 'downlink', 'traffic', 'f', 'This', 'step', 'is', 'the', 'same', 'as', 'step', 'f', 'in', 'clause', '', 'with', 'the', 'addition', 'that', '', 'the', 'VSMF', 'initiates', 'N', 'Session', 'Modification', 'to', 'instruct', 'the', 'VUPF', 'to', 'stop', 'forwarding', 'uplink', 'traffic', 'and', '', 'the', 'VSMF', 'invokes', 'the', 'NsmfPDUSessionUpdate', 'Request', 'towards', 'HSMF', 'If', 'the', 'SMF', 'receives', 'one', 'of', 'the', 'triggers', 'in', 'step', 'a', 'c', 'e', 'or', 'f', 'the', 'HSMF', 'starts', 'PDU', 'Session', 'Release', 'procedure', 'When', 'a', 'SMF', 'above', 'initiates', 'N', 'Session', 'Modification', 'to', 'instruct', 'the', 'UPF', 'to', 'stop', 'forwarding', 'traffic', 'this', 'means', 'also', 'to', 'stop', 'taking', 'into', 'account', 'the', 'traffic', 'for', 'usage', 'monitoring', 'ab', 'UE', 'RAN', 'or', 'Serving', 'network', 'initiated', 'This', 'step', 'is', 'performed', 'in', 'case', 'the', 'PDU', 'Session', 'Release', 'is', 'triggered', 'by', 'a', 'message', 'from', 'VSMF', 'These', 'steps', 'are', 'the', 'same', 'as', 'steps', 'ab', 'in', 'clause', '', 'The', 'SMF', 'is', 'the', 'SMF', 'in', 'HPLMN', 'NOTE', '', 'This', 'step', 'ab', 'can', 'correspond', 'to', 'steps', 'a', 'b', 'd', 'f', 'a', 'UE', 'or', 'HPLMN', 'initiated', 'release', 'The', 'HSMF', 'prepares', 'the', 'SM', 'Release', 'PDU', 'Session', 'Command', 'message', 'and', 'initiates', 'the', 'PDU', 'Session', 'Release', 'towards', 'the', 'UE', 'by', 'invoking', 'the', 'NsmfPDUSessionUpdate', 'Request', 'service', 'operation', 'towards', 'the', 'VSMF', 'The', 'NsmfPDUSessionUpdate', 'Request', 'contains', 'necessary', 'information', 'to', 'build', 'the', 'SM', 'Release', 'PDU', 'Session', 'Command', 'by', 'the', 'VSMF', 'towards', 'the', 'UE', 'for', 'example', 'a', 'Release', 'Cause', 'or', 'PCO', 'For', 'network', 'slice', 'replacement', 'as', 'in', 'step', 'e', 'the', 'HSMF', 'includes', 'Alternative', 'HPLMN', 'SNSSAI', 'and', 'a', 'cause', 'value', 'indicating', 'that', 'a', 'new', 'PDU', 'Session', 'reestablishment', 'on', 'the', 'Alternative', 'HPLMN', 'SNSSAI', 'is', 'required', 'b', 'Serving', 'network', 'initiated', 'release', 'The', 'HSMF', 'responds', 'to', 'the', 'PDU', 'release', 'request', 'from', 'the', 'VSMF', 'with', 'a', 'NsmfPDUSessionRelease', 'response', 'If', 'the', 'UPF', 'included', 'Small', 'Data', 'Rate', 'Control', 'Status', 'in', 'step', '', 'then', 'the', 'SMF', 'includes', 'Small', 'Data', 'Rate', 'Control', 'Status', 'in', 'the', 'request', 'to', 'the', 'AMF', 'If', 'the', 'Control', 'Plane', 'CIoT', 'GS', 'Optimisation', 'is', 'enabled', 'for', 'this', 'PDU', 'Session', 'the', 'steps', 'a', 'and', 'b', 'are', 'skipped', 'ab', 'The', 'VSMF', 'releases', 'the', 'corresponding', 'User', 'Plane', 'resources', 'This', 'includes', 'the', 'same', 'procedure', 'in', 'step', '', 'but', 'controlled', 'from', 'the', 'SMF', 'in', 'VPLMN', '', 'These', 'steps', 'are', 'the', 'same', 'as', 'steps', '', 'in', 'clause', '', 'with', 'the', 'addition', 'that', '', 'In', 'step', 'c', 'for', 'network', 'slice', 'replacement', 'based', 'on', 'information', 'from', 'HSMF', 'the', 'PDU', 'Session', 'Release', 'Command', 'message', 'may', 'include', 'Alternative', 'HPLMN', 'SNSSAI', 'andor', 'Alternative', 'VPLMN', 'SNSSAI', 'and', 'a', 'cause', 'value', 'indicating', 'that', 'a', 'PDU', 'Session', 'reestablishment', 'on', 'the', 'Alternative', 'HPLMN', 'SNSSAI', 'andor', 'Alternative', 'VPLMN', 'SNSSAI', 'is', 'required', '', 'UE', 'or', 'HPLMN', 'initiated', 'release', 'The', 'VSMF', 'responds', 'to', 'the', 'NsmfPDUSessionUpdate', 'Request', 'invoked', 'at', 'step', 'a', 'and', 'confirms', 'the', 'PDU', 'Session', 'Release', 'The', 'NsmfPDUSessionUpdate', 'response', 'may', 'carry', 'information', 'such', 'as', 'PCO', 'received', 'from', 'the', 'UE', 'in', 'SM', 'PDU', 'Session', 'Release', 'Accept', 'as', 'well', 'as', 'User', 'Location', 'Information', 'Time', 'Zone', 'and', 'Secondary', 'RAT', 'Usage', 'Data', 'a', 'UE', 'or', 'HPLMN', 'or', 'Serving', 'network', 'initiated', 'release', 'The', 'HSMF', 'releases', 'the', 'SM', 'policy', 'control', 'association', 'with', 'the', 'PCF', 'by', 'invoking', 'the', 'SM', 'Policy', 'Association', 'Termination', 'procedure', 'defined', 'in', 'clause', '', 'For', 'serving', 'network', 'initiated', 'PDU', 'Session', 'Release', 'case', 'this', 'step', 'happens', 'between', 'step', 'b', 'and', 'step', 'b', 'bc', 'HPLMN', 'initiated', 'release', 'In', 'case', 'the', 'PDU', 'Session', 'Release', 'is', 'HPLMNinitiated', 'ie', 'triggers', 'in', 'c', 'e', 'the', 'HSMF', 'releases', 'the', 'corresponding', 'User', 'Plane', 'resources', 'This', 'includes', 'the', 'same', 'procedure', 'as', 'in', 'step', '', 'd', 'As', 'in', 'step', '', 'of', 'clause', '', 'the', 'SMF', 'invokes', 'the', 'NudmUECMDeregistration', 'service', 'operation', 'NOTE', '', 'Step', 'd', 'does', 'not', 'necessarily', 'take', 'place', 'after', 'step', 'c', '', 'UE', 'or', 'HPLMN', 'initiated', 'release', 'The', 'HSMF', 'shall', 'remove', 'all', 'contexts', 'associated', 'with', 'the', 'PDU', 'Session', 'a', 'The', 'HSMF', 'requests', 'the', 'VSMF', 'to', 'release', 'all', 'contexts', 'associated', 'with', 'the', 'PDU', 'Session', 'by', 'invoking', 'the', 'NsmfPDUSessionStatusNotify', 'Release', 'operation', 'b', 'The', 'VSMF', 'requests', 'the', 'AMF', 'to', 'release', 'all', 'contexts', 'associated', 'with', 'the', 'PDU', 'Session', 'by', 'invoking', 'the', 'NsmfPDUSessionSMContexStatusNotify', 'Release', 'The', 'AMF', 'releases', 'the', 'association', 'between', 'the', 'SMF', 'ID', 'and', 'the', 'PDU', 'Session', 'ID']