"\n---------------------------------------\neNB receives UE Context Release Request from MME\n---------------------------------------" ) s1.receiveS1ap(target=True) igniteLogger.logger.info( "\n---------------------------------------\neNB sends UE Context Release Complete to MME\n---------------------------------------" ) s1.sendS1ap('ue_context_release_complete', uecontextrelease_complete, enbues1ap_id) time.sleep(1) proc_stat_af_detach = su.executeCommand(command, ssh_client) ue_count_after_detach = int( do.splitProcStats(proc_stat_af_detach, stats_type["subs_attached"])) icu.grpcValidation(ue_count_before_attach, ue_count_after_detach, "Number of Subs Attached After Detach") num_of_processed_ho_cancel_Afdetach = int( do.splitProcStats(proc_stat_af_detach, stats_type["ho_cancel"])) icu.grpcValidation(num_of_processed_ho_cancel + 1, num_of_processed_ho_cancel_Afdetach, "Number of Handover Cancel") print( "\n-------------------------------------\nIMSI Attach,HO Cancel Detach Execution Successful\n---------------------------------------" ) except Exception as e: print("**********\nEXCEPTION:" + e.__class__.__name__ + "\nError Details : " + str(e) + "\n**********") if e.__class__.__name__ != "ConnectionError":
gs.sendGtp('modify_bearer_response', modify_bearer_response, msg_hierarchy) igniteLogger.logger.info("\n---------------------------------------\neRAB Modification Confirm received from MME\n---------------------------------------") s1.receiveS1ap() time.sleep(2) mme_ue_S1AP_id , mme_ue_S1AP_id_present = icu.getKeyValueFromDict(init_ctxt_setup_req, "MME-UE-S1AP-ID") mob_ctxt_command = "export LD_LIBRARY_PATH=" + mme_lib_path + " && " + mme_grpc_client_path + "/mme-grpc-client mme-app show mobile-context "+str(mme_ue_S1AP_id) mob_ctxt_af_attach = su.executeCommand(mob_ctxt_command,ssh_client) icu.mobileContextValidation(str(imsi),mob_ctxt_af_attach) proc_stat_af_attach = su.executeCommand(command,ssh_client) ue_count_after_attach = int(do.splitProcStats(proc_stat_af_attach, stats_type["subs_attached"])) icu.grpcValidation(ue_count_before_attach + 1, ue_count_after_attach, "Number of Subs Attached") num_of_erab_mod_ind_af_attach = int(do.splitProcStats(proc_stat_af_attach, stats_type["erab_mod_ind"])) icu.grpcValidation(num_of_erab_mod_indication + 1, num_of_erab_mod_ind_af_attach, "Number of ERAB Modification Indication") num_of_erab_mod_conf_af_attach = int(do.splitProcStats(proc_stat_af_attach, stats_type["erab_mod_conf"])) icu.grpcValidation(num_of_erab_mod_confirmation + 1, num_of_erab_mod_conf_af_attach, "Number of ERAB Modification Confirmation") time.sleep(2) igniteLogger.logger.info("\n---------------------------------------\nSend Detach Request to MME\n---------------------------------------") s1.sendS1ap('detach_request', uplinknastransport_detach_request, enbues1ap_id, nas_detach_request) igniteLogger.logger.info("\n---------------------------------------\nPurge Request received from MME\n---------------------------------------") ds.receiveS6aMsg()
) time.sleep(2) mme_ue_S1AP_id, mme_ue_S1AP_id_present = icu.getKeyValueFromDict( init_ctxt_setup_req, "MME-UE-S1AP-ID") mob_ctxt_command = "export LD_LIBRARY_PATH=" + mme_lib_path + " && " + mme_grpc_client_path + "/mme-grpc-client mme-app show mobile-context " + str( mme_ue_S1AP_id) mob_ctxt_af_attach = su.executeCommand(mob_ctxt_command, ssh_client) icu.mobileContextValidation(str(imsi), mob_ctxt_af_attach) proc_stat_af_attach = su.executeCommand(command, ssh_client) ue_count_after_attach = int( do.splitProcStats(proc_stat_af_attach, stats_type["subs_attached"])) icu.grpcValidation(ue_count_before_attach + 1, ue_count_after_attach, "Number of Subs Attached") num_of_processed_aia_afattach = int( do.splitProcStats(proc_stat_af_attach, stats_type["processed_aia"])) icu.grpcValidation(num_of_processed_aia + 1, num_of_processed_aia_afattach, "Number of Processed AIA") num_of_processed_ula_afattach = int( do.splitProcStats(proc_stat_af_attach, stats_type["processed_ula"])) icu.grpcValidation(num_of_processed_ula + 1, num_of_processed_ula_afattach, "Number of Processed ULA") num_of_handled_esm_info_resp_afattach = int( do.splitProcStats(proc_stat_af_attach, stats_type["esm_info_resp"])) icu.grpcValidation(num_of_handled_esm_info_resp + 1, num_of_handled_esm_info_resp_afattach,
) time.sleep(2) mme_ue_S1AP_id, mme_ue_S1AP_id_present = icu.getKeyValueFromDict( init_ctxt_setup_req, "MME-UE-S1AP-ID") mob_ctxt_command = "export LD_LIBRARY_PATH=" + mme_lib_path + " && " + mme_grpc_client_path + "/mme-grpc-client mme-app show mobile-context " + str( mme_ue_S1AP_id) mob_ctxt_af_attach = su.executeCommand(mob_ctxt_command, ssh_client) icu.mobileContextValidation(str(imsi), mob_ctxt_af_attach) proc_stat_af_attach = su.executeCommand(command, ssh_client) ue_count_after_attach = int( do.splitProcStats(proc_stat_af_attach, stats_type["subs_attached"])) icu.grpcValidation(ue_count_before_attach + 1, ue_count_after_attach, "Number of Subs Attached") igniteLogger.logger.info( "\n---------------------------------------\nSend Detach Request to MME\n---------------------------------------" ) s1.sendS1ap('detach_request', uplinknastransport_detach_request, enbues1ap_id, nas_detach_request) igniteLogger.logger.info( "\n---------------------------------------\nPurge Request received from MME\n---------------------------------------" ) ds.receiveS6aMsg() igniteLogger.logger.info( "\n---------------------------------------\nDelete Session Request received from MME\n---------------------------------------" )
igniteLogger.logger.info( "\n---------------------------------------\nUE is Attached\n---------------------------------------" ) mme_ue_S1AP_id, mme_ue_S1AP_id_present = icu.getKeyValueFromDict( init_ctxt_setup_req, "MME-UE-S1AP-ID") mob_ctxt_command = "export LD_LIBRARY_PATH=" + mme_lib_path + " && " + mme_grpc_client_path + "/mme-grpc-client mme-app show mobile-context " + str( mme_ue_S1AP_id) mob_ctxt_af_attach = su.executeCommand(mob_ctxt_command, ssh_client) icu.mobileContextValidation(str(imsi), mob_ctxt_af_attach) proc_stat_af_attach = su.executeCommand(command, ssh_client) ue_count_after_attach = int( do.splitProcStats(proc_stat_af_attach, stats_type["subs_attached"])) icu.grpcValidation(ue_count_before_attach + 1, ue_count_after_attach, "Number of Subs Attached") time.sleep(2) igniteLogger.logger.info( "\n---------------------------------------\nSend eRAB Modification Indication to MME\n---------------------------------------" ) s1.sendS1ap('erab_modification_indication', erabmodification_indication, enbues1ap_id) igniteLogger.logger.info( "\n---------------------------------------\nModify Bearer Request received from MME\n---------------------------------------" ) gs.receiveGtp() igniteLogger.logger.info(
gs.sendGtp('delete_session_response', delete_session_response, msg_hierarchy) igniteLogger.logger.info("\n---------------------------------------\nMME send Detach Accept to UE\n---------------------------------------") s1.receiveS1ap(target=True) igniteLogger.logger.info("\n---------------------------------------\neNB receives UE Context Release Request from MME\n---------------------------------------") s1.receiveS1ap(target=True) igniteLogger.logger.info("\n---------------------------------------\neNB sends UE Context Release Complete to MME\n---------------------------------------") s1.sendS1ap('ue_context_release_complete', uecontextrelease_complete, enbues1ap_id) time.sleep(1) proc_stat_af_detach = su.executeCommand(command,ssh_client) ue_count_after_detach = int(do.splitProcStats(proc_stat_af_detach, stats_type["subs_attached"])) icu.grpcValidation(ue_count_before_attach, ue_count_after_detach, "Number of Subs Attached After Detach") num_of_processed_ho_failure_Afdetach = int(do.splitProcStats(proc_stat_af_detach, stats_type["ho_failure"])) icu.grpcValidation(num_of_processed_ho_failure + 1, num_of_processed_ho_failure_Afdetach, "Number of Handover Failure") num_of_processed_ho_prep_failure_Afdetach = int(do.splitProcStats(proc_stat_af_detach, stats_type["ho_prep_failure"])) icu.grpcValidation(num_of_processed_ho_prep_failure + 1, num_of_processed_ho_prep_failure_Afdetach, "Number of Handover Preparation Failure") print ("\n-------------------------------------\nIMSI Attach,HO Failure Detach Execution Successful\n---------------------------------------") except Exception as e: print("**********\nEXCEPTION:"+e.__class__.__name__+"\nError Details : "+str(e)+"\n**********") if e.__class__.__name__ != "ConnectionError": time.sleep(10) igniteLogger.logger.info("\n---------------------------------------\nClearing Buffer\n---------------------------------------") icu.clearBuffer()