All the *.c *.h and *.cpp files that have a eurecom copyright at the head have been processed. All other files (ie. those with other extensions) have not been touched. Changes to be committed: modified: common/utils/asn1_conversions.h modified: common/utils/assertions.h modified: common/utils/collection/hashtable/hashtable.c modified: common/utils/collection/hashtable/hashtable.h modified: common/utils/collection/hashtable/obj_hashtable.c modified: common/utils/collection/hashtable/obj_hashtable.h modified: common/utils/itti/assertions.h modified: common/utils/itti/backtrace.c modified: common/utils/itti/backtrace.h modified: common/utils/itti/intertask_interface.c modified: common/utils/itti/intertask_interface.h modified: common/utils/itti/intertask_interface_dump.c modified: common/utils/itti/intertask_interface_dump.h modified: common/utils/itti/intertask_interface_init.h modified: common/utils/itti/intertask_interface_types.h modified: common/utils/itti/intertask_messages_def.h modified: common/utils/itti/intertask_messages_types.h modified: common/utils/itti/itti_types.h modified: common/utils/itti/memory_pools.c modified: common/utils/itti/memory_pools.h modified: common/utils/itti/messages_def.h modified: common/utils/itti/messages_types.h modified: common/utils/itti/signals.c modified: common/utils/itti/signals.h modified: common/utils/itti/tasks_def.h modified: common/utils/itti/timer.c modified: common/utils/itti/timer.h modified: common/utils/itti/timer_messages_def.h modified: common/utils/itti/timer_messages_types.h modified: common/utils/itti_analyzer/common/itti_types.h modified: common/utils/itti_analyzer/common/logs.h modified: common/utils/itti_analyzer/common/rc.h modified: common/utils/itti_analyzer/itti_analyzer.c modified: common/utils/itti_analyzer/libbuffers/buffers.c modified: common/utils/itti_analyzer/libbuffers/buffers.h modified: common/utils/itti_analyzer/libbuffers/file.c modified: common/utils/itti_analyzer/libbuffers/file.h modified: common/utils/itti_analyzer/libbuffers/socket.c modified: common/utils/itti_analyzer/libbuffers/socket.h modified: common/utils/itti_analyzer/libparser/array_type.c modified: common/utils/itti_analyzer/libparser/array_type.h modified: common/utils/itti_analyzer/libparser/enum_type.c modified: common/utils/itti_analyzer/libparser/enum_type.h modified: common/utils/itti_analyzer/libparser/enum_value_type.c modified: common/utils/itti_analyzer/libparser/enum_value_type.h modified: common/utils/itti_analyzer/libparser/field_type.c modified: common/utils/itti_analyzer/libparser/field_type.h modified: common/utils/itti_analyzer/libparser/file_type.c modified: common/utils/itti_analyzer/libparser/file_type.h modified: common/utils/itti_analyzer/libparser/fundamental_type.c modified: common/utils/itti_analyzer/libparser/fundamental_type.h modified: common/utils/itti_analyzer/libparser/intertask_contexts.h modified: common/utils/itti_analyzer/libparser/pointer_type.c modified: common/utils/itti_analyzer/libparser/pointer_type.h modified: common/utils/itti_analyzer/libparser/reference_type.c modified: common/utils/itti_analyzer/libparser/reference_type.h modified: common/utils/itti_analyzer/libparser/struct_type.c modified: common/utils/itti_analyzer/libparser/struct_type.h modified: common/utils/itti_analyzer/libparser/typedef_type.c modified: common/utils/itti_analyzer/libparser/typedef_type.h modified: common/utils/itti_analyzer/libparser/types.c modified: common/utils/itti_analyzer/libparser/types.h modified: common/utils/itti_analyzer/libparser/union_type.c modified: common/utils/itti_analyzer/libparser/union_type.h modified: common/utils/itti_analyzer/libparser/xml_parse.c modified: common/utils/itti_analyzer/libparser/xml_parse.h modified: common/utils/itti_analyzer/libresolver/locate_root.c modified: common/utils/itti_analyzer/libresolver/locate_root.h modified: common/utils/itti_analyzer/libresolver/resolvers.c modified: common/utils/itti_analyzer/libresolver/resolvers.h modified: common/utils/itti_analyzer/libui/ui_callbacks.c modified: common/utils/itti_analyzer/libui/ui_callbacks.h modified: common/utils/itti_analyzer/libui/ui_filters.c modified: common/utils/itti_analyzer/libui/ui_filters.h modified: common/utils/itti_analyzer/libui/ui_interface.c modified: common/utils/itti_analyzer/libui/ui_interface.h modified: common/utils/itti_analyzer/libui/ui_main_screen.c modified: common/utils/itti_analyzer/libui/ui_main_screen.h modified: common/utils/itti_analyzer/libui/ui_menu_bar.c modified: common/utils/itti_analyzer/libui/ui_menu_bar.h modified: common/utils/itti_analyzer/libui/ui_notebook.c modified: common/utils/itti_analyzer/libui/ui_notebook.h modified: common/utils/itti_analyzer/libui/ui_notif_dlg.c modified: common/utils/itti_analyzer/libui/ui_notif_dlg.h modified: common/utils/itti_analyzer/libui/ui_notifications.c modified: common/utils/itti_analyzer/libui/ui_notifications.h modified: common/utils/itti_analyzer/libui/ui_signal_dissect_view.c modified: common/utils/itti_analyzer/libui/ui_signal_dissect_view.h modified: common/utils/itti_analyzer/libui/ui_tree_view.c modified: common/utils/itti_analyzer/libui/ui_tree_view.h modified: common/utils/msc/msc.c modified: common/utils/msc/msc.h modified: openair1/PHY/CODING/3gpplte.c modified: openair1/PHY/CODING/3gpplte_sse.c modified: openair1/PHY/CODING/3gpplte_turbo_decoder.c modified: openair1/PHY/CODING/3gpplte_turbo_decoder_avx2_16bit.c modified: openair1/PHY/CODING/3gpplte_turbo_decoder_sse.c modified: openair1/PHY/CODING/3gpplte_turbo_decoder_sse_16bit.c modified: openair1/PHY/CODING/3gpplte_turbo_decoder_sse_8bit.c modified: openair1/PHY/CODING/TESTBENCH/ltetest.c modified: openair1/PHY/CODING/TESTBENCH/pdcch_test.c modified: openair1/PHY/CODING/TESTBENCH/viterbi_test.c modified: openair1/PHY/CODING/ccoding_byte.c modified: openair1/PHY/CODING/ccoding_byte_lte.c modified: openair1/PHY/CODING/crc_byte.c modified: openair1/PHY/CODING/defs.h modified: openair1/PHY/CODING/extern.h modified: openair1/PHY/CODING/extern_3GPPinterleaver.h modified: openair1/PHY/CODING/lte_interleaver.h modified: openair1/PHY/CODING/lte_interleaver2.h modified: openair1/PHY/CODING/lte_interleaver_inline.h modified: openair1/PHY/CODING/lte_rate_matching.c modified: openair1/PHY/CODING/lte_segmentation.c modified: openair1/PHY/CODING/rate_matching.c modified: openair1/PHY/CODING/scrambler.h modified: openair1/PHY/CODING/vars.h modified: openair1/PHY/CODING/viterbi.c modified: openair1/PHY/CODING/viterbi_lte.c modified: openair1/PHY/INIT/defs.h modified: openair1/PHY/INIT/extern.h modified: openair1/PHY/INIT/init_top.c modified: openair1/PHY/INIT/lte_init.c modified: openair1/PHY/INIT/lte_parms.c modified: openair1/PHY/INIT/vars.h modified: openair1/PHY/LTE_ESTIMATION/adjust_gain.c modified: openair1/PHY/LTE_ESTIMATION/defs.h modified: openair1/PHY/LTE_ESTIMATION/extern.h modified: openair1/PHY/LTE_ESTIMATION/filt96_32.h modified: openair1/PHY/LTE_ESTIMATION/freq_equalization.c modified: openair1/PHY/LTE_ESTIMATION/lte_adjust_sync.c modified: openair1/PHY/LTE_ESTIMATION/lte_dl_channel_estimation.c modified: openair1/PHY/LTE_ESTIMATION/lte_dl_channel_estimation_emos.c modified: openair1/PHY/LTE_ESTIMATION/lte_dl_mbsfn_channel_estimation.c modified: openair1/PHY/LTE_ESTIMATION/lte_eNB_measurements.c modified: openair1/PHY/LTE_ESTIMATION/lte_est_freq_offset.c modified: openair1/PHY/LTE_ESTIMATION/lte_sync_time.c modified: openair1/PHY/LTE_ESTIMATION/lte_sync_timefreq.c modified: openair1/PHY/LTE_ESTIMATION/lte_ue_measurements.c modified: openair1/PHY/LTE_ESTIMATION/lte_ul_channel_estimation.c modified: openair1/PHY/LTE_ESTIMATION/pss6144.h modified: openair1/PHY/LTE_ESTIMATION/vars.h modified: openair1/PHY/LTE_REFSIG/defs.h modified: openair1/PHY/LTE_REFSIG/lte_dl_cell_spec.c modified: openair1/PHY/LTE_REFSIG/lte_dl_mbsfn.c modified: openair1/PHY/LTE_REFSIG/lte_dl_uespec.c modified: openair1/PHY/LTE_REFSIG/lte_gold.c modified: openair1/PHY/LTE_REFSIG/lte_gold_mbsfn.c modified: openair1/PHY/LTE_REFSIG/lte_ul_ref.c modified: openair1/PHY/LTE_REFSIG/mod_table.h modified: openair1/PHY/LTE_TRANSPORT/dci.c modified: openair1/PHY/LTE_TRANSPORT/dci.h modified: openair1/PHY/LTE_TRANSPORT/dci_tools.c modified: openair1/PHY/LTE_TRANSPORT/defs.h modified: openair1/PHY/LTE_TRANSPORT/dlsch_coding.c modified: openair1/PHY/LTE_TRANSPORT/dlsch_decoding.c modified: openair1/PHY/LTE_TRANSPORT/dlsch_demodulation.c modified: openair1/PHY/LTE_TRANSPORT/dlsch_llr_computation.c modified: openair1/PHY/LTE_TRANSPORT/dlsch_modulation.c modified: openair1/PHY/LTE_TRANSPORT/dlsch_scrambling.c modified: openair1/PHY/LTE_TRANSPORT/dlsch_tbs.h modified: openair1/PHY/LTE_TRANSPORT/dlsch_tbs_full.h modified: openair1/PHY/LTE_TRANSPORT/drs_modulation.c modified: openair1/PHY/LTE_TRANSPORT/extern.h modified: openair1/PHY/LTE_TRANSPORT/group_hopping.c modified: openair1/PHY/LTE_TRANSPORT/initial_sync.c modified: openair1/PHY/LTE_TRANSPORT/lte_mcs.c modified: openair1/PHY/LTE_TRANSPORT/mcs_tbs_tools.h modified: openair1/PHY/LTE_TRANSPORT/pbch.c modified: openair1/PHY/LTE_TRANSPORT/pcfich.c modified: openair1/PHY/LTE_TRANSPORT/phich.c modified: openair1/PHY/LTE_TRANSPORT/pilots.c modified: openair1/PHY/LTE_TRANSPORT/pilots_mbsfn.c modified: openair1/PHY/LTE_TRANSPORT/pmch.c modified: openair1/PHY/LTE_TRANSPORT/power_control.c modified: openair1/PHY/LTE_TRANSPORT/prach.c modified: openair1/PHY/LTE_TRANSPORT/prach.h modified: openair1/PHY/LTE_TRANSPORT/print_stats.c modified: openair1/PHY/LTE_TRANSPORT/proto.h modified: openair1/PHY/LTE_TRANSPORT/pss.c modified: openair1/PHY/LTE_TRANSPORT/pucch.c modified: openair1/PHY/LTE_TRANSPORT/rar_tools.c modified: openair1/PHY/LTE_TRANSPORT/srs_modulation.c modified: openair1/PHY/LTE_TRANSPORT/sss.c modified: openair1/PHY/LTE_TRANSPORT/sss.h modified: openair1/PHY/LTE_TRANSPORT/uci.h modified: openair1/PHY/LTE_TRANSPORT/uci_tools.c modified: openair1/PHY/LTE_TRANSPORT/ulsch_coding.c modified: openair1/PHY/LTE_TRANSPORT/ulsch_decoding.c modified: openair1/PHY/LTE_TRANSPORT/ulsch_demodulation.c modified: openair1/PHY/LTE_TRANSPORT/ulsch_modulation.c modified: openair1/PHY/LTE_TRANSPORT/vars.h modified: openair1/PHY/MODULATION/defs.h modified: openair1/PHY/MODULATION/extern.h modified: openair1/PHY/MODULATION/kHz_7_5.h modified: openair1/PHY/MODULATION/ofdm_mod.c modified: openair1/PHY/MODULATION/prach625Hz.h modified: openair1/PHY/MODULATION/slot_fep.c modified: openair1/PHY/MODULATION/slot_fep_mbsfn.c modified: openair1/PHY/MODULATION/slot_fep_ul.c modified: openair1/PHY/MODULATION/ul_7_5_kHz.c modified: openair1/PHY/MODULATION/vars.h modified: openair1/PHY/TOOLS/8bit_rxdemux.c modified: openair1/PHY/TOOLS/8bit_txmux.c modified: openair1/PHY/TOOLS/angle.c modified: openair1/PHY/TOOLS/cadd_sv.c modified: openair1/PHY/TOOLS/cadd_vv.c modified: openair1/PHY/TOOLS/cdot_prod.c modified: openair1/PHY/TOOLS/cmult_sv.c modified: openair1/PHY/TOOLS/cmult_vv.c modified: openair1/PHY/TOOLS/costable.h modified: openair1/PHY/TOOLS/dB_routines.c modified: openair1/PHY/TOOLS/dB_routines.h modified: openair1/PHY/TOOLS/defs.h modified: openair1/PHY/TOOLS/extern.h modified: openair1/PHY/TOOLS/file_output.c modified: openair1/PHY/TOOLS/invSqrt.c modified: openair1/PHY/TOOLS/log2_approx.c modified: openair1/PHY/TOOLS/lte_dfts.c modified: openair1/PHY/TOOLS/lte_phy_scope.c modified: openair1/PHY/TOOLS/lte_phy_scope.h modified: openair1/PHY/TOOLS/lut.c modified: openair1/PHY/TOOLS/memory_routines.c modified: openair1/PHY/TOOLS/signal_energy.c modified: openair1/PHY/TOOLS/smbv.c modified: openair1/PHY/TOOLS/smbv.h modified: openair1/PHY/TOOLS/sqrt.c modified: openair1/PHY/TOOLS/time_meas.c modified: openair1/PHY/TOOLS/time_meas.h modified: openair1/PHY/TOOLS/twiddle12288.h modified: openair1/PHY/TOOLS/twiddle1536.h modified: openair1/PHY/TOOLS/twiddle24576.h modified: openair1/PHY/TOOLS/twiddle6144.h modified: openair1/PHY/TOOLS/vars.h modified: openair1/PHY/defs.h modified: openair1/PHY/extern.h modified: openair1/PHY/impl_defs_lte.h modified: openair1/PHY/impl_defs_top.h modified: openair1/PHY/sse_intrin.h modified: openair1/PHY/types.h modified: openair1/PHY/vars.h modified: openair1/SCHED/defs.h modified: openair1/SCHED/extern.h modified: openair1/SCHED/phy_mac_stub.c modified: openair1/SCHED/phy_procedures_emos.h modified: openair1/SCHED/phy_procedures_lte_common.c modified: openair1/SCHED/phy_procedures_lte_eNb.c modified: openair1/SCHED/phy_procedures_lte_ue.c modified: openair1/SCHED/pucch_pc.c modified: openair1/SCHED/pusch_pc.c modified: openair1/SCHED/rt_compat.h modified: openair1/SCHED/vars.h modified: openair1/SIMULATION/ETH_TRANSPORT/bypass_session_layer.c modified: openair1/SIMULATION/ETH_TRANSPORT/defs.h modified: openair1/SIMULATION/ETH_TRANSPORT/emu_transport.c modified: openair1/SIMULATION/ETH_TRANSPORT/extern.h modified: openair1/SIMULATION/ETH_TRANSPORT/multicast_link.c modified: openair1/SIMULATION/ETH_TRANSPORT/multicast_link.h modified: openair1/SIMULATION/ETH_TRANSPORT/netlink_init.c modified: openair1/SIMULATION/ETH_TRANSPORT/pgm_link.c modified: openair1/SIMULATION/ETH_TRANSPORT/pgm_link.h modified: openair1/SIMULATION/ETH_TRANSPORT/proto.h modified: openair1/SIMULATION/ETH_TRANSPORT/socket.c modified: openair1/SIMULATION/ETH_TRANSPORT/socket.h modified: openair1/SIMULATION/ETH_TRANSPORT/vars.h modified: openair1/SIMULATION/LTE_PHY/LTE_Configuration.c modified: openair1/SIMULATION/LTE_PHY/LTE_Configuration.h modified: openair1/SIMULATION/LTE_PHY/dlsim.c modified: openair1/SIMULATION/LTE_PHY/framegen.c modified: openair1/SIMULATION/LTE_PHY/gpib_send.c modified: openair1/SIMULATION/LTE_PHY/gpib_send.h modified: openair1/SIMULATION/LTE_PHY/mbmssim.c modified: openair1/SIMULATION/LTE_PHY/pbchsim.c modified: openair1/SIMULATION/LTE_PHY/pdcchsim.c modified: openair1/SIMULATION/LTE_PHY/prachsim.c modified: openair1/SIMULATION/LTE_PHY/pucchsignalgegerator.h modified: openair1/SIMULATION/LTE_PHY/pucchsignalgenerator.c modified: openair1/SIMULATION/LTE_PHY/pucchsim.c modified: openair1/SIMULATION/LTE_PHY/scansim.c modified: openair1/SIMULATION/LTE_PHY/signalanalyzer.c modified: openair1/SIMULATION/LTE_PHY/signalanalyzer.h modified: openair1/SIMULATION/LTE_PHY/syncsim.c modified: openair1/SIMULATION/LTE_PHY/test.c modified: openair1/SIMULATION/LTE_PHY/ulsignalgenerator.c modified: openair1/SIMULATION/LTE_PHY/ulsignalgenerator.h modified: openair1/SIMULATION/LTE_PHY/ulsim.c modified: openair1/SIMULATION/LTE_PHY/ulsim2.c modified: openair1/SIMULATION/RF/adc.c modified: openair1/SIMULATION/RF/dac.c modified: openair1/SIMULATION/RF/defs.h modified: openair1/SIMULATION/RF/rf.c modified: openair1/SIMULATION/TOOLS/abstraction.c modified: openair1/SIMULATION/TOOLS/ch_desc_proto.c modified: openair1/SIMULATION/TOOLS/defs.h modified: openair1/SIMULATION/TOOLS/gauss.c modified: openair1/SIMULATION/TOOLS/llr_quantization.c modified: openair1/SIMULATION/TOOLS/multipath_channel.c modified: openair1/SIMULATION/TOOLS/multipath_tv_channel.c modified: openair1/SIMULATION/TOOLS/random_channel.c modified: openair1/SIMULATION/TOOLS/rangen_double.c modified: openair1/SIMULATION/TOOLS/scm_corrmat.h modified: openair1/SIMULATION/TOOLS/taus.c modified: openair2/COMMON/as_message.h modified: openair2/COMMON/commonDef.h modified: openair2/COMMON/gtpv1_u_messages_def.h modified: openair2/COMMON/gtpv1_u_messages_types.h modified: openair2/COMMON/intertask_interface_conf.h modified: openair2/COMMON/mac_messages_def.h modified: openair2/COMMON/mac_messages_types.h modified: openair2/COMMON/mac_primitives.h modified: openair2/COMMON/mac_rlc_primitives.h modified: openair2/COMMON/mac_rrc_primitives.h modified: openair2/COMMON/messages_def.h modified: openair2/COMMON/messages_types.h modified: openair2/COMMON/nas_messages_def.h modified: openair2/COMMON/nas_messages_types.h modified: openair2/COMMON/networkDef.h modified: openair2/COMMON/openair_defs.h modified: openair2/COMMON/openair_types.h modified: openair2/COMMON/pdcp_messages_def.h modified: openair2/COMMON/pdcp_messages_types.h modified: openair2/COMMON/phy_messages_def.h modified: openair2/COMMON/phy_messages_types.h modified: openair2/COMMON/platform_constants.h modified: openair2/COMMON/platform_types.h modified: openair2/COMMON/ral_messages_def.h modified: openair2/COMMON/ral_messages_types.h modified: openair2/COMMON/rlc_messages_def.h modified: openair2/COMMON/rlc_messages_types.h modified: openair2/COMMON/rrc_messages_def.h modified: openair2/COMMON/rrc_messages_types.h modified: openair2/COMMON/rrm_config_structs.h modified: openair2/COMMON/rrm_constants.h modified: openair2/COMMON/rtos_header.h modified: openair2/COMMON/s1ap_messages_def.h modified: openair2/COMMON/s1ap_messages_types.h modified: openair2/COMMON/sctp_messages_def.h modified: openair2/COMMON/sctp_messages_types.h modified: openair2/COMMON/tasks_def.h modified: openair2/COMMON/udp_messages_def.h modified: openair2/COMMON/udp_messages_types.h modified: openair2/COMMON/x2ap_messages_def.h modified: openair2/COMMON/x2ap_messages_types.h modified: openair2/DOCS/TEMPLATES/CODE/example_doxy.h modified: openair2/ENB_APP/enb_app.c modified: openair2/ENB_APP/enb_app.h modified: openair2/ENB_APP/enb_config.c modified: openair2/ENB_APP/enb_config.h modified: openair2/LAYER2/MAC/config.c modified: openair2/LAYER2/MAC/defs.h modified: openair2/LAYER2/MAC/eNB_scheduler.c modified: openair2/LAYER2/MAC/eNB_scheduler_RA.c modified: openair2/LAYER2/MAC/eNB_scheduler_bch.c modified: openair2/LAYER2/MAC/eNB_scheduler_dlsch.c modified: openair2/LAYER2/MAC/eNB_scheduler_mch.c modified: openair2/LAYER2/MAC/eNB_scheduler_primitives.c modified: openair2/LAYER2/MAC/eNB_scheduler_ulsch.c modified: openair2/LAYER2/MAC/extern.h modified: openair2/LAYER2/MAC/l1_helpers.c modified: openair2/LAYER2/MAC/lte_transport_init.c modified: openair2/LAYER2/MAC/main.c modified: openair2/LAYER2/MAC/openair2_proc.c modified: openair2/LAYER2/MAC/pre_processor.c modified: openair2/LAYER2/MAC/proto.h modified: openair2/LAYER2/MAC/ra_procedures.c modified: openair2/LAYER2/MAC/rar_tools.c modified: openair2/LAYER2/MAC/ue_procedures.c modified: openair2/LAYER2/MAC/vars.h modified: openair2/LAYER2/PDCP_v10.1.0/pdcp.c modified: openair2/LAYER2/PDCP_v10.1.0/pdcp.h modified: openair2/LAYER2/PDCP_v10.1.0/pdcp_control_primitive.c modified: openair2/LAYER2/PDCP_v10.1.0/pdcp_control_primitives_proto_extern.h modified: openair2/LAYER2/PDCP_v10.1.0/pdcp_fifo.c modified: openair2/LAYER2/PDCP_v10.1.0/pdcp_netlink.c modified: openair2/LAYER2/PDCP_v10.1.0/pdcp_primitives.c modified: openair2/LAYER2/PDCP_v10.1.0/pdcp_primitives.h modified: openair2/LAYER2/PDCP_v10.1.0/pdcp_proto_extern.h modified: openair2/LAYER2/PDCP_v10.1.0/pdcp_security.c modified: openair2/LAYER2/PDCP_v10.1.0/pdcp_sequence_manager.c modified: openair2/LAYER2/PDCP_v10.1.0/pdcp_sequence_manager.h modified: openair2/LAYER2/PDCP_v10.1.0/pdcp_thread.c modified: openair2/LAYER2/PDCP_v10.1.0/pdcp_util.c modified: openair2/LAYER2/PDCP_v10.1.0/pdcp_util.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_constants.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_entity.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_in_sdu.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_in_sdu.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_init.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_init.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_proto_extern.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_reassembly.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_reassembly.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_receiver.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_receiver.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_retransmit.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_retransmit.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_rx_list.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_rx_list.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_segment.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_segment.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_segments_holes.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_segments_holes.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_status_report.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_status_report.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_structs.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_test.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_test.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_timer_poll_retransmit.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_timer_poll_retransmit.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_timer_reordering.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_timer_reordering.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_timer_status_prohibit.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_timer_status_prohibit.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_windows.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_windows.h modified: openair2/LAYER2/RLC/TM_v9.3.0/rlc_tm.c modified: openair2/LAYER2/RLC/TM_v9.3.0/rlc_tm.h modified: openair2/LAYER2/RLC/TM_v9.3.0/rlc_tm_entity.h modified: openair2/LAYER2/RLC/TM_v9.3.0/rlc_tm_init.c modified: openair2/LAYER2/RLC/TM_v9.3.0/rlc_tm_init.h modified: openair2/LAYER2/RLC/TM_v9.3.0/rlc_tm_structs.h modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um.c modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um.h modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_constants.h modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_control_primitives.c modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_control_primitives.h modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_dar.c modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_dar.h modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_entity.h modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_fsm.c modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_fsm.h modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_reassembly.c modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_reassembly.h modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_receiver.c modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_receiver.h modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_segment.c modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_segment.h modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_structs.h modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_test.c modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_test.h modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_very_simple_test.c modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_very_simple_test.h modified: openair2/LAYER2/RLC/rlc.c modified: openair2/LAYER2/RLC/rlc.h modified: openair2/LAYER2/RLC/rlc_def.h modified: openair2/LAYER2/RLC/rlc_def_lte.h modified: openair2/LAYER2/RLC/rlc_mac.c modified: openair2/LAYER2/RLC/rlc_mpls.c modified: openair2/LAYER2/RLC/rlc_primitives.h modified: openair2/LAYER2/RLC/rlc_rrc.c modified: openair2/LAYER2/layer2_top.c modified: openair2/LAYER2/openair2_proc.c modified: openair2/LAYER2/register.c modified: openair2/LAYER2/register.h modified: openair2/NAS/DRIVER/CELLULAR/CTL_TOOL/nascell_ioctl.c modified: openair2/NAS/DRIVER/CELLULAR/CTL_TOOL/nascell_ioctl.h modified: openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_ascontrol.c modified: openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_classifier.c modified: openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_common.c modified: openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_constant.h modified: openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_device.c modified: openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_iocontrol.c modified: openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_iocontrol.h modified: openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_netlink.c modified: openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_proto.h modified: openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_sap.h modified: openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_tool.c modified: openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_variables.h modified: openair2/NAS/DRIVER/CELLULAR/NASRG/nasrg_ascontrol.c modified: openair2/NAS/DRIVER/CELLULAR/NASRG/nasrg_classifier.c modified: openair2/NAS/DRIVER/CELLULAR/NASRG/nasrg_common.c modified: openair2/NAS/DRIVER/CELLULAR/NASRG/nasrg_constant.h modified: openair2/NAS/DRIVER/CELLULAR/NASRG/nasrg_device.c modified: openair2/NAS/DRIVER/CELLULAR/NASRG/nasrg_iocontrol.c modified: openair2/NAS/DRIVER/CELLULAR/NASRG/nasrg_iocontrol.h modified: openair2/NAS/DRIVER/CELLULAR/NASRG/nasrg_netlink.c modified: openair2/NAS/DRIVER/CELLULAR/NASRG/nasrg_proto.h modified: openair2/NAS/DRIVER/CELLULAR/NASRG/nasrg_sap.h modified: openair2/NAS/DRIVER/CELLULAR/NASRG/nasrg_tool.c modified: openair2/NAS/DRIVER/CELLULAR/NASRG/nasrg_variables.h modified: openair2/NAS/DRIVER/CELLULAR/NETLTEST/netltest.c modified: openair2/NAS/SIMU_CELLULAR/nas_simu_proto.h modified: openair2/NAS/SIMU_CELLULAR/nasrg_simu_meas.c modified: openair2/NAS/SIMU_CELLULAR/rrm_fifo_standalone.c modified: openair2/NAS/nas_ue_task.h modified: openair2/NETWORK_DRIVER/LITE/RB_TOOL/rb_tool.c modified: openair2/NETWORK_DRIVER/LITE/classifier.c modified: openair2/NETWORK_DRIVER/LITE/common.c modified: openair2/NETWORK_DRIVER/LITE/constant.h modified: openair2/NETWORK_DRIVER/LITE/device.c modified: openair2/NETWORK_DRIVER/LITE/ioctl.c modified: openair2/NETWORK_DRIVER/LITE/ioctl.h modified: openair2/NETWORK_DRIVER/LITE/local.h modified: openair2/NETWORK_DRIVER/LITE/netlink.c modified: openair2/NETWORK_DRIVER/LITE/proto_extern.h modified: openair2/NETWORK_DRIVER/LITE/sap.h modified: openair2/NETWORK_DRIVER/LITE/tool.c modified: openair2/NETWORK_DRIVER/MESH/RB_TOOL/rb_tool.c modified: openair2/NETWORK_DRIVER/MESH/classifier.c modified: openair2/NETWORK_DRIVER/MESH/common.c modified: openair2/NETWORK_DRIVER/MESH/constant.h modified: openair2/NETWORK_DRIVER/MESH/device.c modified: openair2/NETWORK_DRIVER/MESH/ioctl.c modified: openair2/NETWORK_DRIVER/MESH/ioctl.h modified: openair2/NETWORK_DRIVER/MESH/local.h modified: openair2/NETWORK_DRIVER/MESH/mesh.c modified: openair2/NETWORK_DRIVER/MESH/netlink.c modified: openair2/NETWORK_DRIVER/MESH/proto_extern.h modified: openair2/NETWORK_DRIVER/MESH/rrc_nas_primitives.h modified: openair2/NETWORK_DRIVER/MESH/sap.h modified: openair2/NETWORK_DRIVER/MESH/tool.c modified: openair2/NETWORK_DRIVER/UE_IP/common.c modified: openair2/NETWORK_DRIVER/UE_IP/constant.h modified: openair2/NETWORK_DRIVER/UE_IP/device.c modified: openair2/NETWORK_DRIVER/UE_IP/local.h modified: openair2/NETWORK_DRIVER/UE_IP/netlink.c modified: openair2/NETWORK_DRIVER/UE_IP/proto_extern.h modified: openair2/NETWORK_DRIVER/UE_IP/sap.h modified: openair2/PHY_INTERFACE/defs.h modified: openair2/PHY_INTERFACE/extern.h modified: openair2/PHY_INTERFACE/mac_phy_primitives.c modified: openair2/PHY_INTERFACE/mac_phy_primitives.h modified: openair2/PHY_INTERFACE/vars.h modified: openair2/RRC/L2_INTERFACE/openair_rrc_L2_interface.c modified: openair2/RRC/L2_INTERFACE/openair_rrc_L2_interface.h modified: openair2/RRC/LITE/L2_interface.c modified: openair2/RRC/LITE/MESSAGES/asn1_msg.c modified: openair2/RRC/LITE/MESSAGES/asn1_msg.h modified: openair2/RRC/LITE/defs.h modified: openair2/RRC/LITE/extern.h modified: openair2/RRC/LITE/proto.h modified: openair2/RRC/LITE/rrc_2_rrm_msg.c modified: openair2/RRC/LITE/rrc_UE.c modified: openair2/RRC/LITE/rrc_UE_ral.c modified: openair2/RRC/LITE/rrc_UE_ral.h modified: openair2/RRC/LITE/rrc_common.c modified: openair2/RRC/LITE/rrc_config.c modified: openair2/RRC/LITE/rrc_eNB.c modified: openair2/RRC/LITE/rrc_eNB_GTPV1U.c modified: openair2/RRC/LITE/rrc_eNB_GTPV1U.h modified: openair2/RRC/LITE/rrc_eNB_S1AP.c modified: openair2/RRC/LITE/rrc_eNB_S1AP.h modified: openair2/RRC/LITE/rrc_eNB_UE_context.c modified: openair2/RRC/LITE/rrc_eNB_UE_context.h modified: openair2/RRC/LITE/rrc_eNB_ral.c modified: openair2/RRC/LITE/rrc_eNB_ral.h modified: openair2/RRC/LITE/rrc_rrm_interface.c modified: openair2/RRC/LITE/rrc_rrm_interface.h modified: openair2/RRC/LITE/rrc_types.h modified: openair2/RRC/LITE/rrm_2_rrc_msg.c modified: openair2/RRC/LITE/utils.c modified: openair2/RRC/LITE/vars.h modified: openair2/RRC/NAS/nas_config.c modified: openair2/RRC/NAS/nas_config.h modified: openair2/RRC/NAS/rb_config.c modified: openair2/RRC/NAS/rb_config.h modified: openair2/RRM_4_RRC_LITE/src/platform.h modified: openair2/RRM_4_RRC_LITE/src/platform_constants.h modified: openair2/RRM_4_RRC_LITE/src/platform_defines.h modified: openair2/RRM_4_RRC_LITE/src/radio_resources/Asn1Utils.cpp modified: openair2/RRM_4_RRC_LITE/src/radio_resources/Asn1Utils.h modified: openair2/RRM_4_RRC_LITE/src/radio_resources/Command.cpp modified: openair2/RRM_4_RRC_LITE/src/radio_resources/Command.h modified: openair2/RRM_4_RRC_LITE/src/radio_resources/DataRadioBearer.cpp modified: openair2/RRM_4_RRC_LITE/src/radio_resources/DataRadioBearer.h modified: openair2/RRM_4_RRC_LITE/src/radio_resources/ENodeB.cpp modified: openair2/RRM_4_RRC_LITE/src/radio_resources/ENodeB.h modified: openair2/RRM_4_RRC_LITE/src/radio_resources/Exceptions.h modified: openair2/RRM_4_RRC_LITE/src/radio_resources/LogicalChannel.cpp modified: openair2/RRM_4_RRC_LITE/src/radio_resources/LogicalChannel.h modified: openair2/RRM_4_RRC_LITE/src/radio_resources/Mobile.cpp modified: openair2/RRM_4_RRC_LITE/src/radio_resources/Mobile.h modified: openair2/RRM_4_RRC_LITE/src/radio_resources/RadioBearer.cpp modified: openair2/RRM_4_RRC_LITE/src/radio_resources/RadioBearer.h modified: openair2/RRM_4_RRC_LITE/src/radio_resources/RadioResources.cpp modified: openair2/RRM_4_RRC_LITE/src/radio_resources/RadioResources.h modified: openair2/RRM_4_RRC_LITE/src/radio_resources/SignallingRadioBearer.cpp modified: openair2/RRM_4_RRC_LITE/src/radio_resources/SignallingRadioBearer.h modified: openair2/RRM_4_RRC_LITE/src/radio_resources/Transaction.cpp modified: openair2/RRM_4_RRC_LITE/src/radio_resources/Transaction.h modified: openair2/RRM_4_RRC_LITE/src/radio_resources/Transactions.cpp modified: openair2/RRM_4_RRC_LITE/src/radio_resources/Transactions.h modified: openair2/RRM_4_RRC_LITE/src/rrm.cpp modified: openair2/UTIL/AT_COMMANDS/parser.c modified: openair2/UTIL/AT_COMMANDS/parser.h modified: openair2/UTIL/BIGPHYS/bigphys.c modified: openair2/UTIL/BIGPHYS/defs.h modified: openair2/UTIL/CLI/cli.c modified: openair2/UTIL/CLI/cli.h modified: openair2/UTIL/CLI/cli_cmd.c modified: openair2/UTIL/CLI/cli_if.h modified: openair2/UTIL/CLI/cli_server.c modified: openair2/UTIL/FIFO/pad_list.c modified: openair2/UTIL/FIFO/pad_list.h modified: openair2/UTIL/FIFO/types.h modified: openair2/UTIL/LISTS/list.c modified: openair2/UTIL/LOG/log.c modified: openair2/UTIL/LOG/log.h modified: openair2/UTIL/LOG/log_extern.h modified: openair2/UTIL/LOG/log_if.h modified: openair2/UTIL/LOG/vcd_signal_dumper.c modified: openair2/UTIL/LOG/vcd_signal_dumper.h modified: openair2/UTIL/MATH/crc_byte.c modified: openair2/UTIL/MATH/oml.c modified: openair2/UTIL/MATH/oml.h modified: openair2/UTIL/MATH/random.c modified: openair2/UTIL/MATH/random_proto_extern.h modified: openair2/UTIL/MATH/taus.c modified: openair2/UTIL/MEM/mem_block.c modified: openair2/UTIL/MEM/mem_block.h modified: openair2/UTIL/MEM/mem_mngt.c modified: openair2/UTIL/MEM/mem_mngt_proto_extern.h modified: openair2/UTIL/MEM/mem_pool.h modified: openair2/UTIL/OCG/OCG.c modified: openair2/UTIL/OCG/OCG.h modified: openair2/UTIL/OCG/OCG_call_emu.h modified: openair2/UTIL/OCG/OCG_config_mobi.c modified: openair2/UTIL/OCG/OCG_config_mobi.h modified: openair2/UTIL/OCG/OCG_create_dir.c modified: openair2/UTIL/OCG/OCG_create_dir.h modified: openair2/UTIL/OCG/OCG_detect_file.c modified: openair2/UTIL/OCG/OCG_detect_file.h modified: openair2/UTIL/OCG/OCG_extern.h modified: openair2/UTIL/OCG/OCG_generate_report.c modified: openair2/UTIL/OCG/OCG_generate_report.h modified: openair2/UTIL/OCG/OCG_get_opt.c modified: openair2/UTIL/OCG/OCG_get_opt.h modified: openair2/UTIL/OCG/OCG_if.h modified: openair2/UTIL/OCG/OCG_parse_XML.c modified: openair2/UTIL/OCG/OCG_parse_XML.h modified: openair2/UTIL/OCG/OCG_parse_filename.c modified: openair2/UTIL/OCG/OCG_parse_filename.h modified: openair2/UTIL/OCG/OCG_save_XML.c modified: openair2/UTIL/OCG/OCG_save_XML.h modified: openair2/UTIL/OCG/OCG_vars.h modified: openair2/UTIL/OMG/TraCIConstants.h modified: openair2/UTIL/OMG/client_traci_OMG.c modified: openair2/UTIL/OMG/client_traci_OMG.h modified: openair2/UTIL/OMG/common.c modified: openair2/UTIL/OMG/defs.h modified: openair2/UTIL/OMG/grid.c modified: openair2/UTIL/OMG/grid.h modified: openair2/UTIL/OMG/id_manager.c modified: openair2/UTIL/OMG/id_manager.h modified: openair2/UTIL/OMG/job.c modified: openair2/UTIL/OMG/mobility_parser.c modified: openair2/UTIL/OMG/mobility_parser.h modified: openair2/UTIL/OMG/omg.c modified: openair2/UTIL/OMG/omg.h modified: openair2/UTIL/OMG/omg_constants.h modified: openair2/UTIL/OMG/omg_hashtable.c modified: openair2/UTIL/OMG/omg_hashtable.h modified: openair2/UTIL/OMG/omg_vars.h modified: openair2/UTIL/OMG/rwalk.c modified: openair2/UTIL/OMG/rwalk.h modified: openair2/UTIL/OMG/rwp.c modified: openair2/UTIL/OMG/rwp.h modified: openair2/UTIL/OMG/socket_traci_OMG.c modified: openair2/UTIL/OMG/socket_traci_OMG.h modified: openair2/UTIL/OMG/static.c modified: openair2/UTIL/OMG/static.h modified: openair2/UTIL/OMG/steadystaterwp.c modified: openair2/UTIL/OMG/steadystaterwp.h modified: openair2/UTIL/OMG/storage_traci_OMG.c modified: openair2/UTIL/OMG/storage_traci_OMG.h modified: openair2/UTIL/OMG/sumo.c modified: openair2/UTIL/OMG/sumo.h modified: openair2/UTIL/OMG/trace.c modified: openair2/UTIL/OMG/trace.h modified: openair2/UTIL/OMG/trace_hashtable.c modified: openair2/UTIL/OMG/trace_hashtable.h modified: openair2/UTIL/OMV/communicationthread.cpp modified: openair2/UTIL/OMV/communicationthread.h modified: openair2/UTIL/OMV/mywindow.cpp modified: openair2/UTIL/OMV/mywindow.h modified: openair2/UTIL/OMV/omv.cpp modified: openair2/UTIL/OMV/openglwidget.cpp modified: openair2/UTIL/OMV/openglwidget.h modified: openair2/UTIL/OMV/structures.h modified: openair2/UTIL/OPT/mac_pcap.h modified: openair2/UTIL/OPT/opt.h modified: openair2/UTIL/OPT/socket_sender.c modified: openair2/UTIL/OPT/vars.h modified: openair2/UTIL/OSA/osa_defs.h modified: openair2/UTIL/OSA/osa_internal.h modified: openair2/UTIL/OSA/osa_key_deriver.c modified: openair2/UTIL/OSA/osa_snow3g.h modified: openair2/UTIL/OSA/osa_stream_eea.c modified: openair2/UTIL/OSA/osa_stream_eia.c modified: openair2/UTIL/OTG/main.c modified: openair2/UTIL/OTG/otg.c modified: openair2/UTIL/OTG/otg.h modified: openair2/UTIL/OTG/otg_config.h modified: openair2/UTIL/OTG/otg_defs.h modified: openair2/UTIL/OTG/otg_externs.h modified: openair2/UTIL/OTG/otg_form.c modified: openair2/UTIL/OTG/otg_form.h modified: openair2/UTIL/OTG/otg_kpi.c modified: openair2/UTIL/OTG/otg_kpi.h modified: openair2/UTIL/OTG/otg_models.c modified: openair2/UTIL/OTG/otg_models.h modified: openair2/UTIL/OTG/otg_rx.c modified: openair2/UTIL/OTG/otg_rx.h modified: openair2/UTIL/OTG/otg_rx_socket.c modified: openair2/UTIL/OTG/otg_rx_socket.h modified: openair2/UTIL/OTG/otg_tx.c modified: openair2/UTIL/OTG/otg_tx.h modified: openair2/UTIL/OTG/otg_tx_socket.c modified: openair2/UTIL/OTG/otg_tx_socket.h modified: openair2/UTIL/OTG/otg_vars.h modified: openair2/UTIL/OTG/traffic_config.h modified: openair2/UTIL/TIMER/umts_timer.c modified: openair2/UTIL/TIMER/umts_timer.h modified: openair2/UTIL/TIMER/umts_timer_proto_extern.h modified: openair2/UTIL/TIMER/umts_timer_struct.h modified: openair2/UTIL/TRACE/fifo_printf.c modified: openair2/UTIL/TRACE/fifo_printf.h modified: openair2/UTIL/TRACE/fifo_printf_proto_extern.h modified: openair2/UTIL/TRACE/print.h modified: openair2/X2AP/x2ap.c modified: openair2/X2AP/x2ap.h modified: openair2/X2AP/x2ap_common.c modified: openair2/X2AP/x2ap_common.h modified: openair3/COMMON/common_types.h modified: openair3/COMMON/gtpv1_u_messages_def.h modified: openair3/COMMON/gtpv1_u_messages_types.h modified: openair3/COMMON/intertask_interface_conf.h modified: openair3/COMMON/messages_def.h modified: openair3/COMMON/messages_types.h modified: openair3/COMMON/nas_messages_def.h modified: openair3/COMMON/nas_messages_types.h modified: openair3/COMMON/s1ap_messages_def.h modified: openair3/COMMON/s1ap_messages_types.h modified: openair3/COMMON/sctp_messages_def.h modified: openair3/COMMON/sctp_messages_types.h modified: openair3/COMMON/security_types.h modified: openair3/COMMON/tasks_def.h modified: openair3/COMMON/udp_messages_def.h modified: openair3/COMMON/udp_messages_types.h modified: openair3/GTPV1-U/gtpv1u.h modified: openair3/GTPV1-U/gtpv1u_eNB.c modified: openair3/GTPV1-U/gtpv1u_eNB_defs.h modified: openair3/GTPV1-U/gtpv1u_eNB_task.h modified: openair3/GTPV1-U/gtpv1u_sgw_defs.h modified: openair3/GTPV1-U/gtpv1u_task.c modified: openair3/GTPV1-U/gtpv1u_teid_pool.c modified: openair3/NAS/COMMON/API/NETWORK/as_message.c modified: openair3/NAS/COMMON/API/NETWORK/l2_message.h modified: openair3/NAS/COMMON/API/NETWORK/nas_message.c modified: openair3/NAS/COMMON/API/NETWORK/nas_message.h modified: openair3/NAS/COMMON/API/NETWORK/network_api.c modified: openair3/NAS/COMMON/API/NETWORK/network_api.h modified: openair3/NAS/COMMON/EMM/MSG/AttachAccept.c modified: openair3/NAS/COMMON/EMM/MSG/AttachAccept.h modified: openair3/NAS/COMMON/EMM/MSG/AttachComplete.c modified: openair3/NAS/COMMON/EMM/MSG/AttachComplete.h modified: openair3/NAS/COMMON/EMM/MSG/AttachReject.c modified: openair3/NAS/COMMON/EMM/MSG/AttachReject.h modified: openair3/NAS/COMMON/EMM/MSG/AttachRequest.c modified: openair3/NAS/COMMON/EMM/MSG/AttachRequest.h modified: openair3/NAS/COMMON/EMM/MSG/AuthenticationFailure.c modified: openair3/NAS/COMMON/EMM/MSG/AuthenticationFailure.h modified: openair3/NAS/COMMON/EMM/MSG/AuthenticationReject.c modified: openair3/NAS/COMMON/EMM/MSG/AuthenticationReject.h modified: openair3/NAS/COMMON/EMM/MSG/AuthenticationRequest.c modified: openair3/NAS/COMMON/EMM/MSG/AuthenticationRequest.h modified: openair3/NAS/COMMON/EMM/MSG/AuthenticationResponse.c modified: openair3/NAS/COMMON/EMM/MSG/AuthenticationResponse.h modified: openair3/NAS/COMMON/EMM/MSG/CsServiceNotification.c modified: openair3/NAS/COMMON/EMM/MSG/CsServiceNotification.h modified: openair3/NAS/COMMON/EMM/MSG/DetachAccept.c modified: openair3/NAS/COMMON/EMM/MSG/DetachAccept.h modified: openair3/NAS/COMMON/EMM/MSG/DetachRequest.c modified: openair3/NAS/COMMON/EMM/MSG/DetachRequest.h modified: openair3/NAS/COMMON/EMM/MSG/DownlinkNasTransport.c modified: openair3/NAS/COMMON/EMM/MSG/DownlinkNasTransport.h modified: openair3/NAS/COMMON/EMM/MSG/EmmInformation.c modified: openair3/NAS/COMMON/EMM/MSG/EmmInformation.h modified: openair3/NAS/COMMON/EMM/MSG/EmmStatus.c modified: openair3/NAS/COMMON/EMM/MSG/EmmStatus.h modified: openair3/NAS/COMMON/EMM/MSG/ExtendedServiceRequest.c modified: openair3/NAS/COMMON/EMM/MSG/ExtendedServiceRequest.h modified: openair3/NAS/COMMON/EMM/MSG/GutiReallocationCommand.c modified: openair3/NAS/COMMON/EMM/MSG/GutiReallocationCommand.h modified: openair3/NAS/COMMON/EMM/MSG/GutiReallocationComplete.c modified: openair3/NAS/COMMON/EMM/MSG/GutiReallocationComplete.h modified: openair3/NAS/COMMON/EMM/MSG/IdentityRequest.c modified: openair3/NAS/COMMON/EMM/MSG/IdentityRequest.h modified: openair3/NAS/COMMON/EMM/MSG/IdentityResponse.c modified: openair3/NAS/COMMON/EMM/MSG/IdentityResponse.h modified: openair3/NAS/COMMON/EMM/MSG/NASSecurityModeCommand.h modified: openair3/NAS/COMMON/EMM/MSG/NASSecurityModeComplete.h modified: openair3/NAS/COMMON/EMM/MSG/SecurityModeCommand.c modified: openair3/NAS/COMMON/EMM/MSG/SecurityModeComplete.c modified: openair3/NAS/COMMON/EMM/MSG/SecurityModeReject.c modified: openair3/NAS/COMMON/EMM/MSG/SecurityModeReject.h modified: openair3/NAS/COMMON/EMM/MSG/ServiceReject.c modified: openair3/NAS/COMMON/EMM/MSG/ServiceReject.h modified: openair3/NAS/COMMON/EMM/MSG/ServiceRequest.c modified: openair3/NAS/COMMON/EMM/MSG/ServiceRequest.h modified: openair3/NAS/COMMON/EMM/MSG/TrackingAreaUpdateAccept.c modified: openair3/NAS/COMMON/EMM/MSG/TrackingAreaUpdateAccept.h modified: openair3/NAS/COMMON/EMM/MSG/TrackingAreaUpdateComplete.c modified: openair3/NAS/COMMON/EMM/MSG/TrackingAreaUpdateComplete.h modified: openair3/NAS/COMMON/EMM/MSG/TrackingAreaUpdateReject.c modified: openair3/NAS/COMMON/EMM/MSG/TrackingAreaUpdateReject.h modified: openair3/NAS/COMMON/EMM/MSG/TrackingAreaUpdateRequest.c modified: openair3/NAS/COMMON/EMM/MSG/TrackingAreaUpdateRequest.h modified: openair3/NAS/COMMON/EMM/MSG/UplinkNasTransport.c modified: openair3/NAS/COMMON/EMM/MSG/UplinkNasTransport.h modified: openair3/NAS/COMMON/EMM/MSG/emm_cause.h modified: openair3/NAS/COMMON/EMM/MSG/emm_msg.c modified: openair3/NAS/COMMON/EMM/MSG/emm_msg.h modified: openair3/NAS/COMMON/EMM/MSG/emm_msgDef.h modified: openair3/NAS/COMMON/ESM/MSG/ActivateDedicatedEpsBearerContextAccept.c modified: openair3/NAS/COMMON/ESM/MSG/ActivateDedicatedEpsBearerContextAccept.h modified: openair3/NAS/COMMON/ESM/MSG/ActivateDedicatedEpsBearerContextReject.c modified: openair3/NAS/COMMON/ESM/MSG/ActivateDedicatedEpsBearerContextReject.h modified: openair3/NAS/COMMON/ESM/MSG/ActivateDedicatedEpsBearerContextRequest.c modified: openair3/NAS/COMMON/ESM/MSG/ActivateDedicatedEpsBearerContextRequest.h modified: openair3/NAS/COMMON/ESM/MSG/ActivateDefaultEpsBearerContextAccept.c modified: openair3/NAS/COMMON/ESM/MSG/ActivateDefaultEpsBearerContextAccept.h modified: openair3/NAS/COMMON/ESM/MSG/ActivateDefaultEpsBearerContextReject.c modified: openair3/NAS/COMMON/ESM/MSG/ActivateDefaultEpsBearerContextReject.h modified: openair3/NAS/COMMON/ESM/MSG/ActivateDefaultEpsBearerContextRequest.c modified: openair3/NAS/COMMON/ESM/MSG/ActivateDefaultEpsBearerContextRequest.h modified: openair3/NAS/COMMON/ESM/MSG/BearerResourceAllocationReject.c modified: openair3/NAS/COMMON/ESM/MSG/BearerResourceAllocationReject.h modified: openair3/NAS/COMMON/ESM/MSG/BearerResourceAllocationRequest.c modified: openair3/NAS/COMMON/ESM/MSG/BearerResourceAllocationRequest.h modified: openair3/NAS/COMMON/ESM/MSG/BearerResourceModificationReject.c modified: openair3/NAS/COMMON/ESM/MSG/BearerResourceModificationReject.h modified: openair3/NAS/COMMON/ESM/MSG/BearerResourceModificationRequest.c modified: openair3/NAS/COMMON/ESM/MSG/BearerResourceModificationRequest.h modified: openair3/NAS/COMMON/ESM/MSG/DeactivateEpsBearerContextAccept.c modified: openair3/NAS/COMMON/ESM/MSG/DeactivateEpsBearerContextAccept.h modified: openair3/NAS/COMMON/ESM/MSG/DeactivateEpsBearerContextRequest.c modified: openair3/NAS/COMMON/ESM/MSG/DeactivateEpsBearerContextRequest.h modified: openair3/NAS/COMMON/ESM/MSG/EsmInformationRequest.c modified: openair3/NAS/COMMON/ESM/MSG/EsmInformationRequest.h modified: openair3/NAS/COMMON/ESM/MSG/EsmInformationResponse.c modified: openair3/NAS/COMMON/ESM/MSG/EsmInformationResponse.h modified: openair3/NAS/COMMON/ESM/MSG/EsmStatus.c modified: openair3/NAS/COMMON/ESM/MSG/EsmStatus.h modified: openair3/NAS/COMMON/ESM/MSG/ModifyEpsBearerContextAccept.c modified: openair3/NAS/COMMON/ESM/MSG/ModifyEpsBearerContextAccept.h modified: openair3/NAS/COMMON/ESM/MSG/ModifyEpsBearerContextReject.c modified: openair3/NAS/COMMON/ESM/MSG/ModifyEpsBearerContextReject.h modified: openair3/NAS/COMMON/ESM/MSG/ModifyEpsBearerContextRequest.c modified: openair3/NAS/COMMON/ESM/MSG/ModifyEpsBearerContextRequest.h modified: openair3/NAS/COMMON/ESM/MSG/PdnConnectivityReject.c modified: openair3/NAS/COMMON/ESM/MSG/PdnConnectivityReject.h modified: openair3/NAS/COMMON/ESM/MSG/PdnConnectivityRequest.c modified: openair3/NAS/COMMON/ESM/MSG/PdnConnectivityRequest.h modified: openair3/NAS/COMMON/ESM/MSG/PdnDisconnectReject.c modified: openair3/NAS/COMMON/ESM/MSG/PdnDisconnectReject.h modified: openair3/NAS/COMMON/ESM/MSG/PdnDisconnectRequest.c modified: openair3/NAS/COMMON/ESM/MSG/PdnDisconnectRequest.h modified: openair3/NAS/COMMON/ESM/MSG/esm_cause.h modified: openair3/NAS/COMMON/ESM/MSG/esm_msg.c modified: openair3/NAS/COMMON/ESM/MSG/esm_msg.h modified: openair3/NAS/COMMON/ESM/MSG/esm_msgDef.h modified: openair3/NAS/COMMON/IES/AccessPointName.c modified: openair3/NAS/COMMON/IES/AccessPointName.h modified: openair3/NAS/COMMON/IES/AdditionalUpdateResult.c modified: openair3/NAS/COMMON/IES/AdditionalUpdateResult.h modified: openair3/NAS/COMMON/IES/AdditionalUpdateType.c modified: openair3/NAS/COMMON/IES/AdditionalUpdateType.h modified: openair3/NAS/COMMON/IES/ApnAggregateMaximumBitRate.c modified: openair3/NAS/COMMON/IES/ApnAggregateMaximumBitRate.h modified: openair3/NAS/COMMON/IES/AuthenticationFailureParameter.c modified: openair3/NAS/COMMON/IES/AuthenticationFailureParameter.h modified: openair3/NAS/COMMON/IES/AuthenticationParameterAutn.c modified: openair3/NAS/COMMON/IES/AuthenticationParameterAutn.h modified: openair3/NAS/COMMON/IES/AuthenticationParameterRand.c modified: openair3/NAS/COMMON/IES/AuthenticationParameterRand.h modified: openair3/NAS/COMMON/IES/AuthenticationResponseParameter.c modified: openair3/NAS/COMMON/IES/AuthenticationResponseParameter.h modified: openair3/NAS/COMMON/IES/CipheringKeySequenceNumber.c modified: openair3/NAS/COMMON/IES/CipheringKeySequenceNumber.h modified: openair3/NAS/COMMON/IES/Cli.c modified: openair3/NAS/COMMON/IES/Cli.h modified: openair3/NAS/COMMON/IES/CsfbResponse.c modified: openair3/NAS/COMMON/IES/CsfbResponse.h modified: openair3/NAS/COMMON/IES/DaylightSavingTime.c modified: openair3/NAS/COMMON/IES/DaylightSavingTime.h modified: openair3/NAS/COMMON/IES/DetachType.c modified: openair3/NAS/COMMON/IES/DetachType.h modified: openair3/NAS/COMMON/IES/DrxParameter.c modified: openair3/NAS/COMMON/IES/DrxParameter.h modified: openair3/NAS/COMMON/IES/EmergencyNumberList.c modified: openair3/NAS/COMMON/IES/EmergencyNumberList.h modified: openair3/NAS/COMMON/IES/EmmCause.c modified: openair3/NAS/COMMON/IES/EmmCause.h modified: openair3/NAS/COMMON/IES/EpsAttachResult.c modified: openair3/NAS/COMMON/IES/EpsAttachResult.h modified: openair3/NAS/COMMON/IES/EpsAttachType.c modified: openair3/NAS/COMMON/IES/EpsAttachType.h modified: openair3/NAS/COMMON/IES/EpsBearerContextStatus.c modified: openair3/NAS/COMMON/IES/EpsBearerContextStatus.h modified: openair3/NAS/COMMON/IES/EpsBearerIdentity.c modified: openair3/NAS/COMMON/IES/EpsBearerIdentity.h modified: openair3/NAS/COMMON/IES/EpsMobileIdentity.c modified: openair3/NAS/COMMON/IES/EpsMobileIdentity.h modified: openair3/NAS/COMMON/IES/EpsNetworkFeatureSupport.c modified: openair3/NAS/COMMON/IES/EpsNetworkFeatureSupport.h modified: openair3/NAS/COMMON/IES/EpsQualityOfService.c modified: openair3/NAS/COMMON/IES/EpsQualityOfService.h modified: openair3/NAS/COMMON/IES/EpsUpdateResult.c modified: openair3/NAS/COMMON/IES/EpsUpdateResult.h modified: openair3/NAS/COMMON/IES/EpsUpdateType.c modified: openair3/NAS/COMMON/IES/EpsUpdateType.h modified: openair3/NAS/COMMON/IES/EsmCause.c modified: openair3/NAS/COMMON/IES/EsmCause.h modified: openair3/NAS/COMMON/IES/EsmInformationTransferFlag.c modified: openair3/NAS/COMMON/IES/EsmInformationTransferFlag.h modified: openair3/NAS/COMMON/IES/EsmMessageContainer.c modified: openair3/NAS/COMMON/IES/EsmMessageContainer.h modified: openair3/NAS/COMMON/IES/GprsTimer.c modified: openair3/NAS/COMMON/IES/GprsTimer.h modified: openair3/NAS/COMMON/IES/GutiType.c modified: openair3/NAS/COMMON/IES/GutiType.h modified: openair3/NAS/COMMON/IES/IdentityType2.c modified: openair3/NAS/COMMON/IES/IdentityType2.h modified: openair3/NAS/COMMON/IES/ImeisvRequest.c modified: openair3/NAS/COMMON/IES/ImeisvRequest.h modified: openair3/NAS/COMMON/IES/KsiAndSequenceNumber.c modified: openair3/NAS/COMMON/IES/KsiAndSequenceNumber.h modified: openair3/NAS/COMMON/IES/LcsClientIdentity.c modified: openair3/NAS/COMMON/IES/LcsClientIdentity.h modified: openair3/NAS/COMMON/IES/LcsIndicator.c modified: openair3/NAS/COMMON/IES/LcsIndicator.h modified: openair3/NAS/COMMON/IES/LinkedEpsBearerIdentity.c modified: openair3/NAS/COMMON/IES/LinkedEpsBearerIdentity.h modified: openair3/NAS/COMMON/IES/LlcServiceAccessPointIdentifier.c modified: openair3/NAS/COMMON/IES/LlcServiceAccessPointIdentifier.h modified: openair3/NAS/COMMON/IES/LocationAreaIdentification.c modified: openair3/NAS/COMMON/IES/LocationAreaIdentification.h modified: openair3/NAS/COMMON/IES/MessageType.c modified: openair3/NAS/COMMON/IES/MessageType.h modified: openair3/NAS/COMMON/IES/MobileIdentity.c modified: openair3/NAS/COMMON/IES/MobileIdentity.h modified: openair3/NAS/COMMON/IES/MobileStationClassmark2.c modified: openair3/NAS/COMMON/IES/MobileStationClassmark2.h modified: openair3/NAS/COMMON/IES/MobileStationClassmark3.c modified: openair3/NAS/COMMON/IES/MobileStationClassmark3.h modified: openair3/NAS/COMMON/IES/MsNetworkCapability.c modified: openair3/NAS/COMMON/IES/MsNetworkCapability.h modified: openair3/NAS/COMMON/IES/MsNetworkFeatureSupport.c modified: openair3/NAS/COMMON/IES/MsNetworkFeatureSupport.h modified: openair3/NAS/COMMON/IES/NasKeySetIdentifier.c modified: openair3/NAS/COMMON/IES/NasKeySetIdentifier.h modified: openair3/NAS/COMMON/IES/NasMessageContainer.c modified: openair3/NAS/COMMON/IES/NasMessageContainer.h modified: openair3/NAS/COMMON/IES/NasRequestType.c modified: openair3/NAS/COMMON/IES/NasRequestType.h modified: openair3/NAS/COMMON/IES/NasSecurityAlgorithms.c modified: openair3/NAS/COMMON/IES/NasSecurityAlgorithms.h modified: openair3/NAS/COMMON/IES/NetworkName.c modified: openair3/NAS/COMMON/IES/NetworkName.h modified: openair3/NAS/COMMON/IES/Nonce.c modified: openair3/NAS/COMMON/IES/Nonce.h modified: openair3/NAS/COMMON/IES/PTmsiSignature.c modified: openair3/NAS/COMMON/IES/PTmsiSignature.h modified: openair3/NAS/COMMON/IES/PacketFlowIdentifier.c modified: openair3/NAS/COMMON/IES/PacketFlowIdentifier.h modified: openair3/NAS/COMMON/IES/PagingIdentity.c modified: openair3/NAS/COMMON/IES/PagingIdentity.h modified: openair3/NAS/COMMON/IES/PdnAddress.c modified: openair3/NAS/COMMON/IES/PdnAddress.h modified: openair3/NAS/COMMON/IES/PdnType.c modified: openair3/NAS/COMMON/IES/PdnType.h modified: openair3/NAS/COMMON/IES/PlmnList.c modified: openair3/NAS/COMMON/IES/PlmnList.h modified: openair3/NAS/COMMON/IES/ProcedureTransactionIdentity.c modified: openair3/NAS/COMMON/IES/ProcedureTransactionIdentity.h modified: openair3/NAS/COMMON/IES/ProtocolConfigurationOptions.c modified: openair3/NAS/COMMON/IES/ProtocolConfigurationOptions.h modified: openair3/NAS/COMMON/IES/ProtocolDiscriminator.c modified: openair3/NAS/COMMON/IES/ProtocolDiscriminator.h modified: openair3/NAS/COMMON/IES/QualityOfService.c modified: openair3/NAS/COMMON/IES/QualityOfService.h modified: openair3/NAS/COMMON/IES/RadioPriority.c modified: openair3/NAS/COMMON/IES/RadioPriority.h modified: openair3/NAS/COMMON/IES/SecurityHeaderType.c modified: openair3/NAS/COMMON/IES/SecurityHeaderType.h modified: openair3/NAS/COMMON/IES/ServiceType.c modified: openair3/NAS/COMMON/IES/ServiceType.h modified: openair3/NAS/COMMON/IES/ShortMac.c modified: openair3/NAS/COMMON/IES/ShortMac.h modified: openair3/NAS/COMMON/IES/SsCode.c modified: openair3/NAS/COMMON/IES/SsCode.h modified: openair3/NAS/COMMON/IES/SupportedCodecList.c modified: openair3/NAS/COMMON/IES/SupportedCodecList.h modified: openair3/NAS/COMMON/IES/TimeZone.c modified: openair3/NAS/COMMON/IES/TimeZone.h modified: openair3/NAS/COMMON/IES/TimeZoneAndTime.c modified: openair3/NAS/COMMON/IES/TimeZoneAndTime.h modified: openair3/NAS/COMMON/IES/TmsiStatus.c modified: openair3/NAS/COMMON/IES/TmsiStatus.h modified: openair3/NAS/COMMON/IES/TrackingAreaIdentity.c modified: openair3/NAS/COMMON/IES/TrackingAreaIdentity.h modified: openair3/NAS/COMMON/IES/TrackingAreaIdentityList.c modified: openair3/NAS/COMMON/IES/TrackingAreaIdentityList.h modified: openair3/NAS/COMMON/IES/TrafficFlowAggregateDescription.c modified: openair3/NAS/COMMON/IES/TrafficFlowAggregateDescription.h modified: openair3/NAS/COMMON/IES/TrafficFlowTemplate.c modified: openair3/NAS/COMMON/IES/TrafficFlowTemplate.h modified: openair3/NAS/COMMON/IES/TransactionIdentifier.c modified: openair3/NAS/COMMON/IES/TransactionIdentifier.h modified: openair3/NAS/COMMON/IES/UeNetworkCapability.c modified: openair3/NAS/COMMON/IES/UeNetworkCapability.h modified: openair3/NAS/COMMON/IES/UeRadioCapabilityInformationUpdateNeeded.c modified: openair3/NAS/COMMON/IES/UeRadioCapabilityInformationUpdateNeeded.h modified: openair3/NAS/COMMON/IES/UeSecurityCapability.c modified: openair3/NAS/COMMON/IES/UeSecurityCapability.h modified: openair3/NAS/COMMON/IES/VoiceDomainPreferenceAndUeUsageSetting.c modified: openair3/NAS/COMMON/IES/VoiceDomainPreferenceAndUeUsageSetting.h modified: openair3/NAS/COMMON/UTIL/OctetString.c modified: openair3/NAS/COMMON/UTIL/OctetString.h modified: openair3/NAS/COMMON/UTIL/TLVDecoder.c modified: openair3/NAS/COMMON/UTIL/TLVDecoder.h modified: openair3/NAS/COMMON/UTIL/TLVEncoder.c modified: openair3/NAS/COMMON/UTIL/TLVEncoder.h modified: openair3/NAS/COMMON/UTIL/device.c modified: openair3/NAS/COMMON/UTIL/device.h modified: openair3/NAS/COMMON/UTIL/memory.c modified: openair3/NAS/COMMON/UTIL/memory.h modified: openair3/NAS/COMMON/UTIL/nas_log.c modified: openair3/NAS/COMMON/UTIL/nas_log.h modified: openair3/NAS/COMMON/UTIL/nas_timer.c modified: openair3/NAS/COMMON/UTIL/nas_timer.h modified: openair3/NAS/COMMON/UTIL/parser.c modified: openair3/NAS/COMMON/UTIL/parser.h modified: openair3/NAS/COMMON/UTIL/socket.c modified: openair3/NAS/COMMON/UTIL/socket.h modified: openair3/NAS/COMMON/UTIL/stty.c modified: openair3/NAS/COMMON/UTIL/tst/timer.c modified: openair3/NAS/COMMON/securityDef.h modified: openair3/NAS/COMMON/userDef.h modified: openair3/NAS/TOOLS/network.h modified: openair3/NAS/TOOLS/ue_data.c modified: openair3/NAS/TOOLS/usim_data.c modified: openair3/NAS/UE/API/USER/at_command.c modified: openair3/NAS/UE/API/USER/at_command.h modified: openair3/NAS/UE/API/USER/at_error.c modified: openair3/NAS/UE/API/USER/at_error.h modified: openair3/NAS/UE/API/USER/at_response.c modified: openair3/NAS/UE/API/USER/at_response.h modified: openair3/NAS/UE/API/USER/tst/at_parser.c modified: openair3/NAS/UE/API/USER/user_api.c modified: openair3/NAS/UE/API/USER/user_api.h modified: openair3/NAS/UE/API/USER/user_indication.c modified: openair3/NAS/UE/API/USER/user_indication.h modified: openair3/NAS/UE/API/USIM/aka_functions.h modified: openair3/NAS/UE/API/USIM/usim_api.c modified: openair3/NAS/UE/API/USIM/usim_api.h modified: openair3/NAS/UE/EMM/Attach.c modified: openair3/NAS/UE/EMM/Authentication.c modified: openair3/NAS/UE/EMM/Detach.c modified: openair3/NAS/UE/EMM/EmmStatusHdl.c modified: openair3/NAS/UE/EMM/Identification.c modified: openair3/NAS/UE/EMM/IdleMode.c modified: openair3/NAS/UE/EMM/IdleMode.h modified: openair3/NAS/UE/EMM/LowerLayer.c modified: openair3/NAS/UE/EMM/LowerLayer.h modified: openair3/NAS/UE/EMM/SAP/EmmDeregistered.c modified: openair3/NAS/UE/EMM/SAP/EmmDeregisteredAttachNeeded.c modified: openair3/NAS/UE/EMM/SAP/EmmDeregisteredAttemptingToAttach.c modified: openair3/NAS/UE/EMM/SAP/EmmDeregisteredInitiated.c modified: openair3/NAS/UE/EMM/SAP/EmmDeregisteredLimitedService.c modified: openair3/NAS/UE/EMM/SAP/EmmDeregisteredNoCellAvailable.c modified: openair3/NAS/UE/EMM/SAP/EmmDeregisteredNoImsi.c modified: openair3/NAS/UE/EMM/SAP/EmmDeregisteredNormalService.c modified: openair3/NAS/UE/EMM/SAP/EmmDeregisteredPlmnSearch.c modified: openair3/NAS/UE/EMM/SAP/EmmNull.c modified: openair3/NAS/UE/EMM/SAP/EmmRegistered.c modified: openair3/NAS/UE/EMM/SAP/EmmRegisteredAttemptingToUpdate.c modified: openair3/NAS/UE/EMM/SAP/EmmRegisteredImsiDetachInitiated.c modified: openair3/NAS/UE/EMM/SAP/EmmRegisteredInitiated.c modified: openair3/NAS/UE/EMM/SAP/EmmRegisteredLimitedService.c modified: openair3/NAS/UE/EMM/SAP/EmmRegisteredNoCellAvailable.c modified: openair3/NAS/UE/EMM/SAP/EmmRegisteredNormalService.c modified: openair3/NAS/UE/EMM/SAP/EmmRegisteredPlmnSearch.c modified: openair3/NAS/UE/EMM/SAP/EmmRegisteredUpdateNeeded.c modified: openair3/NAS/UE/EMM/SAP/EmmServiceRequestInitiated.c modified: openair3/NAS/UE/EMM/SAP/EmmTrackingAreaUpdatingInitiated.c modified: openair3/NAS/UE/EMM/SAP/emm_as.c modified: openair3/NAS/UE/EMM/SAP/emm_as.h modified: openair3/NAS/UE/EMM/SAP/emm_asDef.h modified: openair3/NAS/UE/EMM/SAP/emm_esm.c modified: openair3/NAS/UE/EMM/SAP/emm_esm.h modified: openair3/NAS/UE/EMM/SAP/emm_esmDef.h modified: openair3/NAS/UE/EMM/SAP/emm_fsm.c modified: openair3/NAS/UE/EMM/SAP/emm_fsm.h modified: openair3/NAS/UE/EMM/SAP/emm_recv.c modified: openair3/NAS/UE/EMM/SAP/emm_recv.h modified: openair3/NAS/UE/EMM/SAP/emm_reg.c modified: openair3/NAS/UE/EMM/SAP/emm_reg.h modified: openair3/NAS/UE/EMM/SAP/emm_regDef.h modified: openair3/NAS/UE/EMM/SAP/emm_sap.c modified: openair3/NAS/UE/EMM/SAP/emm_sap.h modified: openair3/NAS/UE/EMM/SAP/emm_send.c modified: openair3/NAS/UE/EMM/SAP/emm_send.h modified: openair3/NAS/UE/EMM/SecurityModeControl.c modified: openair3/NAS/UE/EMM/ServiceRequestHdl.c modified: openair3/NAS/UE/EMM/TrackingAreaUpdate.c modified: openair3/NAS/UE/EMM/emmData.h modified: openair3/NAS/UE/EMM/emm_main.c modified: openair3/NAS/UE/EMM/emm_main.h modified: openair3/NAS/UE/EMM/emm_proc.h modified: openair3/NAS/UE/ESM/DedicatedEpsBearerContextActivation.c modified: openair3/NAS/UE/ESM/DefaultEpsBearerContextActivation.c modified: openair3/NAS/UE/ESM/EpsBearerContextDeactivation.c modified: openair3/NAS/UE/ESM/EsmStatusHdl.c modified: openair3/NAS/UE/ESM/PdnConnectivity.c modified: openair3/NAS/UE/ESM/PdnDisconnect.c modified: openair3/NAS/UE/ESM/SAP/esm_recv.c modified: openair3/NAS/UE/ESM/SAP/esm_recv.h modified: openair3/NAS/UE/ESM/SAP/esm_sap.c modified: openair3/NAS/UE/ESM/SAP/esm_sap.h modified: openair3/NAS/UE/ESM/SAP/esm_sapDef.h modified: openair3/NAS/UE/ESM/SAP/esm_send.c modified: openair3/NAS/UE/ESM/SAP/esm_send.h modified: openair3/NAS/UE/ESM/esmData.h modified: openair3/NAS/UE/ESM/esm_ebr.c modified: openair3/NAS/UE/ESM/esm_ebr.h modified: openair3/NAS/UE/ESM/esm_ebr_context.c modified: openair3/NAS/UE/ESM/esm_ebr_context.h modified: openair3/NAS/UE/ESM/esm_ip.c modified: openair3/NAS/UE/ESM/esm_main.c modified: openair3/NAS/UE/ESM/esm_main.h modified: openair3/NAS/UE/ESM/esm_proc.h modified: openair3/NAS/UE/ESM/esm_pt.c modified: openair3/NAS/UE/ESM/esm_pt.h modified: openair3/NAS/UE/UEprocess.c modified: openair3/NAS/UE/nas_itti_messaging.c modified: openair3/NAS/UE/nas_itti_messaging.h modified: openair3/NAS/UE/nas_network.c modified: openair3/NAS/UE/nas_network.h modified: openair3/NAS/UE/nas_parser.c modified: openair3/NAS/UE/nas_parser.h modified: openair3/NAS/UE/nas_proc.c modified: openair3/NAS/UE/nas_proc.h modified: openair3/NAS/UE/nas_ue_task.c modified: openair3/NAS/UE/nas_user.c modified: openair3/NAS/UE/nas_user.h modified: openair3/S1AP/s1ap_common.c modified: openair3/S1AP/s1ap_common.h modified: openair3/S1AP/s1ap_eNB.c modified: openair3/S1AP/s1ap_eNB.h modified: openair3/S1AP/s1ap_eNB_context_management_procedures.c modified: openair3/S1AP/s1ap_eNB_context_management_procedures.h modified: openair3/S1AP/s1ap_eNB_decoder.c modified: openair3/S1AP/s1ap_eNB_decoder.h modified: openair3/S1AP/s1ap_eNB_default_values.h modified: openair3/S1AP/s1ap_eNB_defs.h modified: openair3/S1AP/s1ap_eNB_encoder.c modified: openair3/S1AP/s1ap_eNB_encoder.h modified: openair3/S1AP/s1ap_eNB_handlers.c modified: openair3/S1AP/s1ap_eNB_handlers.h modified: openair3/S1AP/s1ap_eNB_itti_messaging.c modified: openair3/S1AP/s1ap_eNB_itti_messaging.h modified: openair3/S1AP/s1ap_eNB_management_procedures.c modified: openair3/S1AP/s1ap_eNB_management_procedures.h modified: openair3/S1AP/s1ap_eNB_nas_procedures.c modified: openair3/S1AP/s1ap_eNB_nas_procedures.h modified: openair3/S1AP/s1ap_eNB_nnsf.c modified: openair3/S1AP/s1ap_eNB_nnsf.h modified: openair3/S1AP/s1ap_eNB_overload.c modified: openair3/S1AP/s1ap_eNB_overload.h modified: openair3/S1AP/s1ap_eNB_trace.c modified: openair3/S1AP/s1ap_eNB_trace.h modified: openair3/S1AP/s1ap_eNB_ue_context.c modified: openair3/S1AP/s1ap_eNB_ue_context.h modified: openair3/SCTP/sctp_common.c modified: openair3/SCTP/sctp_common.h modified: openair3/SCTP/sctp_default_values.h modified: openair3/SCTP/sctp_eNB_defs.h modified: openair3/SCTP/sctp_eNB_itti_messaging.c modified: openair3/SCTP/sctp_eNB_itti_messaging.h modified: openair3/SCTP/sctp_eNB_task.c modified: openair3/SCTP/sctp_eNB_task.h modified: openair3/SCTP/sctp_primitives_client.c modified: openair3/SCTP/sctp_primitives_client.h modified: openair3/SECU/kdf.c modified: openair3/SECU/key_nas_deriver.c modified: openair3/SECU/key_nas_encryption.c modified: openair3/SECU/nas_stream_eea1.c modified: openair3/SECU/nas_stream_eea2.c modified: openair3/SECU/nas_stream_eia1.c modified: openair3/SECU/nas_stream_eia2.c modified: openair3/SECU/rijndael.h modified: openair3/SECU/secu_defs.h modified: openair3/SECU/snow3g.c modified: openair3/SECU/snow3g.h modified: openair3/TEST/EPC_TEST/generate_scenario.c modified: openair3/TEST/EPC_TEST/generate_scenario.h modified: openair3/TEST/EPC_TEST/play_scenario.c modified: openair3/TEST/EPC_TEST/play_scenario.h modified: openair3/TEST/EPC_TEST/play_scenario_decode.c modified: openair3/TEST/EPC_TEST/play_scenario_display.c modified: openair3/TEST/EPC_TEST/play_scenario_fsm.c modified: openair3/TEST/EPC_TEST/play_scenario_parse.c modified: openair3/TEST/EPC_TEST/play_scenario_s1ap.c modified: openair3/TEST/EPC_TEST/play_scenario_s1ap_compare_ie.c modified: openair3/TEST/EPC_TEST/play_scenario_s1ap_eNB_defs.h modified: openair3/TEST/EPC_TEST/play_scenario_sctp.c modified: openair3/TEST/oaisim_mme_client_test.c modified: openair3/TEST/oaisim_mme_itti_test.c modified: openair3/TEST/oaisim_mme_list_benchmark.c modified: openair3/TEST/oaisim_mme_s1ap_test.c modified: openair3/TEST/oaisim_mme_sctp_test.c modified: openair3/TEST/oaisim_mme_test_s1c.c modified: openair3/TEST/oaisim_mme_test_s1c.h modified: openair3/TEST/oaisim_mme_test_s1c_s1ap.c modified: openair3/TEST/oaisim_mme_test_s1c_s1ap.h modified: openair3/TEST/oaisim_mme_test_s1c_scenario.c modified: openair3/TEST/oaisim_mme_test_s1c_scenario.h modified: openair3/TEST/oaisim_mme_test_s1c_scenario1.c modified: openair3/TEST/test_aes128_cmac_encrypt.c modified: openair3/TEST/test_aes128_ctr_decrypt.c modified: openair3/TEST/test_aes128_ctr_encrypt.c modified: openair3/TEST/test_kdf.c modified: openair3/TEST/test_s1ap.c modified: openair3/TEST/test_secu.c modified: openair3/TEST/test_secu_kenb.c modified: openair3/TEST/test_secu_knas.c modified: openair3/TEST/test_secu_knas_encrypt_eea1.c modified: openair3/TEST/test_secu_knas_encrypt_eea2.c modified: openair3/TEST/test_secu_knas_encrypt_eia1.c modified: openair3/TEST/test_secu_knas_encrypt_eia2.c modified: openair3/TEST/test_secu_knas_stream_int.c modified: openair3/UDP/udp_eNB_task.c modified: openair3/UDP/udp_eNB_task.h modified: openair3/UTILS/HASHTABLE/hashtable.c modified: openair3/UTILS/HASHTABLE/hashtable.h modified: openair3/UTILS/HASHTABLE/obj_hashtable.c modified: openair3/UTILS/HASHTABLE/obj_hashtable.h modified: openair3/UTILS/conversions.c modified: openair3/UTILS/conversions.h modified: openair3/UTILS/enum_string.c modified: openair3/UTILS/enum_string.h modified: openair3/UTILS/log.c modified: openair3/UTILS/log.h modified: openair3/UTILS/mcc_mnc_itu.c modified: openair3/UTILS/mcc_mnc_itu.h modified: openair3/UTILS/mme_config.c modified: openair3/UTILS/mme_config.h modified: openair3/UTILS/mme_default_values.h modified: targets/ARCH/BLADERF/USERSPACE/LIB/bladerf_lib.c modified: targets/ARCH/BLADERF/USERSPACE/LIB/bladerf_lib.h modified: targets/ARCH/COMMON/common_lib.c modified: targets/ARCH/COMMON/common_lib.h modified: targets/ARCH/ETHERNET/USERSPACE/LIB/eth_raw.c modified: targets/ARCH/ETHERNET/USERSPACE/LIB/eth_udp.c modified: targets/ARCH/ETHERNET/USERSPACE/LIB/ethernet_lib.c modified: targets/ARCH/ETHERNET/USERSPACE/LIB/ethernet_lib.h modified: targets/ARCH/EXMIMO/DEFS/openair_device.h modified: targets/ARCH/EXMIMO/DEFS/pcie_interface.h modified: targets/ARCH/EXMIMO/DRIVER/eurecom/defs.h modified: targets/ARCH/EXMIMO/DRIVER/eurecom/exmimo_fw.c modified: targets/ARCH/EXMIMO/DRIVER/eurecom/extern.h modified: targets/ARCH/EXMIMO/DRIVER/eurecom/fileops.c modified: targets/ARCH/EXMIMO/DRIVER/eurecom/irq.c modified: targets/ARCH/EXMIMO/DRIVER/eurecom/module_main.c modified: targets/ARCH/EXMIMO/DRIVER/eurecom/vars.h modified: targets/ARCH/EXMIMO/DRIVER/exmimo3/defs.h modified: targets/ARCH/EXMIMO/DRIVER/exmimo3/exmimo_fw.c modified: targets/ARCH/EXMIMO/DRIVER/exmimo3/extern.h modified: targets/ARCH/EXMIMO/DRIVER/exmimo3/fileops.c modified: targets/ARCH/EXMIMO/DRIVER/exmimo3/irq.c modified: targets/ARCH/EXMIMO/DRIVER/exmimo3/module_main.c modified: targets/ARCH/EXMIMO/DRIVER/exmimo3/vars.h modified: targets/ARCH/EXMIMO/DRIVER/telecomparistech/em1_dev.c modified: targets/ARCH/EXMIMO/DRIVER/telecomparistech/em1_drv.c modified: targets/ARCH/EXMIMO/DRIVER/telecomparistech/em1_drv.h modified: targets/ARCH/EXMIMO/DRIVER/telecomparistech/em1_fifos.c modified: targets/ARCH/EXMIMO/DRIVER/telecomparistech/em1_ioctl.c modified: targets/ARCH/EXMIMO/DRIVER/telecomparistech/em1_mmap.c modified: targets/ARCH/EXMIMO/DRIVER/telecomparistech/em1_rw.c modified: targets/ARCH/EXMIMO/USERSPACE/LIB/example.c modified: targets/ARCH/EXMIMO/USERSPACE/LIB/gain_control.c modified: targets/ARCH/EXMIMO/USERSPACE/LIB/gain_control.h modified: targets/ARCH/EXMIMO/USERSPACE/LIB/openair0_lib.c modified: targets/ARCH/EXMIMO/USERSPACE/LIB/openair0_lib.h modified: targets/ARCH/EXMIMO/USERSPACE/OAI_FW_INIT/elf.h modified: targets/ARCH/EXMIMO/USERSPACE/OAI_FW_INIT/elftypes.h modified: targets/ARCH/EXMIMO/USERSPACE/OAI_FW_INIT/updatefw.c modified: targets/ARCH/EXMIMO/USERSPACE/OAI_FW_INIT/updatefw.h modified: targets/ARCH/LMSSDR/USERSPACE/LIB/lms_lib.cpp modified: targets/ARCH/LMSSDR/USERSPACE/LIB/sodera_lib.cpp modified: targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp modified: targets/COMMON/create_tasks.c modified: targets/COMMON/create_tasks.h modified: targets/RT/USER/TOOLS/thread_ipc.c modified: targets/RT/USER/TOOLS/thread_ipc.h modified: targets/RT/USER/UE_transport_IQ.c modified: targets/RT/USER/condtest.c modified: targets/RT/USER/eNB_transport_IQ.c modified: targets/RT/USER/emos-raw.c modified: targets/RT/USER/lte-softmodem.c modified: targets/RT/USER/lte-ue.c modified: targets/RT/USER/msg_many.h modified: targets/RT/USER/rrh.c modified: targets/RT/USER/rrh_gw.c modified: targets/RT/USER/rrh_gw.h modified: targets/RT/USER/rrh_gw_externs.h modified: targets/RT/USER/rt_wrapper.c modified: targets/RT/USER/rt_wrapper.h modified: targets/RT/USER/sched_dlsch.c modified: targets/RT/USER/sched_rx_pdsch.c modified: targets/RT/USER/sched_ulsch.c modified: targets/RT/USER/sleeptest.c modified: targets/RT/USER/synctest.c modified: targets/SIMU/PROC/Process.c modified: targets/SIMU/PROC/Process.h modified: targets/SIMU/PROC/Tsync.h modified: targets/SIMU/PROC/channel_sim_proc.c modified: targets/SIMU/PROC/channel_sim_proc.h modified: targets/SIMU/PROC/interface.h modified: targets/SIMU/USER/channel_sim.c modified: targets/SIMU/USER/cor_SF_sim.c modified: targets/SIMU/USER/cor_SF_sim.h modified: targets/SIMU/USER/event_handler.c modified: targets/SIMU/USER/event_handler.h modified: targets/SIMU/USER/init_lte.c modified: targets/SIMU/USER/init_lte.h modified: targets/SIMU/USER/oaisim.c modified: targets/SIMU/USER/oaisim.h modified: targets/SIMU/USER/oaisim_config.c modified: targets/SIMU/USER/oaisim_config.h modified: targets/SIMU/USER/oaisim_functions.c modified: targets/SIMU/USER/oaisim_functions.h modified: targets/SIMU/USER/oaisim_pad.c modified: targets/SIMU/USER/sinr_sim.c
2176 lines
98 KiB
C
2176 lines
98 KiB
C
/*! \file otg_tx.c
|
||
* \brief function containing the OTG TX traffic generation functions
|
||
* \author N. Nikaein and A. Hafsaoui
|
||
* \date 2011
|
||
* \version 0.1
|
||
* \company Eurecom
|
||
* \email: navid.nikaein@eurecom.fr
|
||
* \note
|
||
* \warning
|
||
*/
|
||
|
||
|
||
#include "UTIL/MATH/oml.h"
|
||
#include "otg_tx.h"
|
||
#include "otg_externs.h"
|
||
|
||
extern unsigned char NB_eNB_INST;
|
||
extern unsigned char NB_UE_INST;
|
||
|
||
|
||
// char string for payload gen
|
||
const char HEADER_STRING[] =
|
||
"048717272261061594909177115977673656394812939088509638561159848103044447631759621785741859753883189837913087874397230808338408049820398430984093477437879374893649639479575023646394693665969273071047";
|
||
const char PAYLOAD_STRING[] =
|
||
"UVk5miARQfZGDFKf1wS0dt57kHigd0fXNrUZCjIhpyOS4pZWMHOP1GPdgXmlPtarLUjd3Rmkg05bhUZWtDDmdhrl5EzMZz6DkhIg0Uq7NlaU8ZGrt9EzgVLdr9SiBOLLXiTN3aMInMrlDYFYZ8n5WYbfZTnpz13lbMY4OBE4eWfIMLvBLLyzzzEqjUGILBVMfKGVccPi0VSCyg28RqAiR3z1P6zryk4FWFp0G78AUT1hZWhGcGOTDcKj9bCzny592m1Dj123KWczIm5KVLupO7AP83flqamimfLz6GtHrz5ZN2BAEVQjUhYSc35s5jDhofIlL2U4qPT3Ilsd7amTjaCl5zE0L89ZeIcPCWKSEuNdH5gG8sojuSvph1hU0gG4QOLhCk15IE8eCeMCz2LTL68U0hEQqeM6UmgmA9j7Eid7oPzQHbzj8A30HzGXGhWpt4CT3MSwWVvcCWSbYjkYGgOhHj5csTsONWyGAh5l3qquf8v3jGRSRu0nGXqYILCkw1SX9Na46qodrN6BnPl49djH2AuAaYKAStoR9oL7I1aZG6rVLFPMIZiAqF1tuDVcX9VWnyTVpTMXR6GtBp5bgfDyKuT4ZE9MDUASikGA5hoMfX5Gf2Ml7eLGBtEqZF4rouczHI0DRfgX4ev967n6dYFFkaXbFTvWdykN5bfMinzcrWeqVrmZhTvtUkvq3Rc9enM9qTNz6cDo0HHM0VD8EYtpaPH3yG2CYGDgogHlkaCcHaOyViyq8RH8wf4WQWoHuTNG1kWdkpgTrWic5Gv5p24O9YAPMOn6A1IsdvwpOF85qj8nPvj4nfIo385HOjGfadzfBXueruaKEa0lvbhLgS1bQWKv5fE7k2cMPzQ8USIpUyBhBGUHsLKaykvsr1qDTueAUWAGH8VqyozZZkyhWahjmFEEwU6hhcK1Z9wv9jOAAeqopQvbQFm4aQzzBwGIAhBqhZMiarIBwYPOFdPmK1hKHIa94GGtQbMZ0n83IGt6w8K3dqfOhmpQWqSRZscFwPuo4uhC0ByoC9hFpnizCBfoRZ7Gj9cGOzVLT2eMtD0XC8rUnDiR3p7Ke4ho6lWMLHmtCr7VWYIpY19dtiWoyU0FQ7VMlHoWeBhIUfuG54WVVX0h5Mvvvo0cnLQzh4knysVhAfQw9EhXq94mLrI9GydUaTihOvydQikfq2CrvLeNK81msBlYYoK0aT7OewTUI51YYufj7kYGkPVDf7t5n3VnMV3ShMERKwFyTNHQZyo9ccFibYdoT1FyMAfVeMDO89bUMKAD7RFaT9kUZpaIiH5W7dIbPcPPdSBSr1krKPtuQEeHVgf4OcQLfpOWtsEya4ftXpNw76RPCXmp4rjKt1mCh0pBiTYkQ5GDnj2khLZMzb1uua6R1ika8ACglrs1n0vDbnNjZEVpIMK4OGLFOXIOn9UBserI4Pa63PhUl49TGLNjiqQWdnAsolTKrcjnSklN1swcmyVU8B5gTO4Y3vhkG2U2";
|
||
const char FIXED_STRING[]=
|
||
"ABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCD";
|
||
//may be put in vars
|
||
//packet_t *packet=NULL;
|
||
int type_header=0;
|
||
unsigned int state=OFF_STATE; // default traffic state
|
||
unsigned int application=0;
|
||
int ptime=0;
|
||
|
||
// Time Distribution function to distribute the inter-departure time using the required distribution
|
||
|
||
|
||
int time_dist(
|
||
const int src_instance,
|
||
const int dst_instance,
|
||
const int application,
|
||
const int state)
|
||
{
|
||
|
||
int idt=0;
|
||
|
||
switch (g_otg->idt_dist[src_instance][dst_instance][application][state]) {
|
||
case UNIFORM:
|
||
idt = ceil((uniform_dist(g_otg->idt_min[src_instance][dst_instance][application][state], g_otg->idt_max[src_instance][dst_instance][application][state])));
|
||
break;
|
||
|
||
case GAUSSIAN:
|
||
idt = ceil((gaussian_dist((g_otg->idt_max[src_instance][dst_instance][application][state] + g_otg->idt_min[src_instance][dst_instance][application][state])/2 ,
|
||
g_otg->idt_std_dev[src_instance][dst_instance][application][state])));
|
||
break;
|
||
|
||
case EXPONENTIAL :
|
||
idt= ceil((exponential_dist(g_otg->idt_lambda[src_instance][dst_instance][application][state])));
|
||
break;
|
||
|
||
case POISSON:
|
||
idt = ceil((poisson_dist(g_otg->idt_lambda[src_instance][dst_instance][application][state])));
|
||
break;
|
||
|
||
case FIXED :
|
||
idt = ceil((g_otg->idt_min[src_instance][dst_instance][application][state])); //IDT_TH *
|
||
break;
|
||
|
||
case WEIBULL :
|
||
idt =ceil(weibull_dist(g_otg->idt_scale[src_instance][dst_instance][application][state],g_otg->idt_shape[src_instance][dst_instance][application][state] ));
|
||
break;
|
||
|
||
case PARETO :
|
||
idt =ceil(pareto_dist(g_otg->idt_scale[src_instance][dst_instance][application][state],g_otg->idt_shape[src_instance][dst_instance][application][state] ));
|
||
break;
|
||
|
||
case GAMMA :
|
||
idt =ceil(gamma_dist(g_otg->idt_scale[src_instance][dst_instance][application][state],g_otg->idt_shape[src_instance][dst_instance][application][state] ));
|
||
break;
|
||
|
||
case CAUCHY :
|
||
idt =ceil(cauchy_dist(g_otg->idt_scale[src_instance][dst_instance][application][state],g_otg->idt_shape[src_instance][dst_instance][application][state] ));
|
||
break;
|
||
|
||
case LOG_NORMAL :
|
||
idt =ceil((lognormal_dist((g_otg->idt_max[src_instance][dst_instance][application][state] + g_otg->idt_min[src_instance][dst_instance][application][state])/2 ,
|
||
g_otg->idt_std_dev[src_instance][dst_instance][application][state])));
|
||
break;
|
||
|
||
case TARMA :
|
||
idt=ceil(tarmaCalculateSample(otg_info->tarma_stream[src_instance][dst_instance][application]->tarma_input_samples,
|
||
&(otg_info->tarma_stream[src_instance][dst_instance][application]->tarma_idt)));
|
||
break;
|
||
|
||
case VIDEO :
|
||
idt = ceil((g_otg->idt_min[src_instance][dst_instance][application][state])); //IDT_TH *
|
||
break;
|
||
|
||
case BACKGROUND_DIST :
|
||
idt = ceil((g_otg->idt_min[src_instance][dst_instance][application][state])); //IDT_TH *
|
||
break;
|
||
|
||
default :
|
||
idt =0;
|
||
LOG_W(OTG, "IDT distribution unknown, set to 0 for (src %d, dst %d, app %d, state %d)\n",
|
||
src_instance, dst_instance, application, state );
|
||
}
|
||
|
||
LOG_D(OTG,"IDT :: Inter Departure Time Distribution= %d , val= %d\n", g_otg->idt_dist[src_instance][dst_instance][application][state],idt);
|
||
return idt;
|
||
}
|
||
|
||
|
||
// otg_params.size Distribution Function to distribute the packet otg_params.size using the required distribution
|
||
|
||
|
||
int size_dist(
|
||
const int src_instance,
|
||
const int dst_instance,
|
||
const int application,
|
||
const int state)
|
||
{
|
||
|
||
int size_data=0;
|
||
|
||
if (state==PU_STATE)
|
||
size_data=g_otg->pu_size_pkts[src_instance][dst_instance][application];
|
||
|
||
else if (state==ED_STATE)
|
||
size_data=g_otg->ed_size_pkts[src_instance][dst_instance][application];
|
||
else {
|
||
LOG_D(OTG,"Size Distribution idx= %d \n", g_otg->size_dist[src_instance][dst_instance][application][state]);
|
||
|
||
switch (g_otg->size_dist[src_instance][dst_instance][application][state]) {
|
||
case UNIFORM :
|
||
size_data = ceil(uniform_dist(g_otg->size_min[src_instance][dst_instance][application][state], g_otg->size_max[src_instance][dst_instance][application][state]));
|
||
break;
|
||
|
||
case GAUSSIAN :
|
||
size_data = ceil(gaussian_dist((g_otg->size_max[src_instance][dst_instance][application][state] + g_otg->size_min[src_instance][dst_instance][application][state])/2 ,
|
||
g_otg->size_std_dev[src_instance][dst_instance][application][state]));
|
||
break;
|
||
|
||
case EXPONENTIAL :
|
||
size_data= ceil(exponential_dist(g_otg->size_lambda[src_instance][dst_instance][application][state])); //SIZE_COEF *
|
||
break;
|
||
|
||
case POISSON :
|
||
size_data =ceil(poisson_dist(g_otg->size_lambda[src_instance][dst_instance][application][state]));
|
||
break;
|
||
|
||
case FIXED :
|
||
size_data=ceil(g_otg->size_min[src_instance][dst_instance][application][state]);
|
||
break;
|
||
|
||
case WEIBULL :
|
||
size_data =ceil(weibull_dist(g_otg->size_scale[src_instance][dst_instance][application][state],g_otg->size_shape[src_instance][dst_instance][application][state] ));
|
||
break;
|
||
|
||
case PARETO :
|
||
size_data =ceil(pareto_dist(g_otg->size_scale[src_instance][dst_instance][application][state],g_otg->size_shape[src_instance][dst_instance][application][state] ));
|
||
break;
|
||
|
||
case GAMMA :
|
||
size_data =ceil(gamma_dist(g_otg->size_scale[src_instance][dst_instance][application][state],g_otg->size_shape[src_instance][dst_instance][application][state] ));
|
||
break;
|
||
|
||
case CAUCHY :
|
||
size_data =ceil(cauchy_dist(g_otg->size_scale[src_instance][dst_instance][application][state],g_otg->size_shape[src_instance][dst_instance][application][state] ));
|
||
break;
|
||
|
||
case LOG_NORMAL :
|
||
size_data =ceil((lognormal_dist((g_otg->size_max[src_instance][dst_instance][application][state] + g_otg->size_min[src_instance][dst_instance][application][state])/2 ,
|
||
g_otg->size_std_dev[src_instance][dst_instance][application][state])));
|
||
break;
|
||
|
||
case TARMA :
|
||
size_data=ceil(tarmaCalculateSample(otg_info->tarma_stream[src_instance][dst_instance][application]->tarma_input_samples,
|
||
&(otg_info->tarma_stream[src_instance][dst_instance][application]->tarma_size)));
|
||
break;
|
||
|
||
case VIDEO :
|
||
size_data=ceil(tarmaCalculateVideoSample (otg_info->tarma_video[src_instance][dst_instance][application]));
|
||
break;
|
||
|
||
case BACKGROUND_DIST :
|
||
size_data = ceil(backgroundCalculateSize(otg_info->background_stream[src_instance][dst_instance][application],
|
||
otg_info->ctime, otg_info->idt[src_instance][dst_instance][application]));
|
||
break;
|
||
|
||
default:
|
||
LOG_E(OTG, "PKT Size Distribution unknown (src %d, dst %d, app %d, state %d)\n",
|
||
src_instance, dst_instance, application, state );
|
||
}
|
||
|
||
}
|
||
|
||
//Case when size overfill min and max values
|
||
size_data=adjust_size(size_data);
|
||
LOG_D(OTG,"[src %d] [dst %d] [application %d] [state %d]Packet :: Size=%d Distribution= %d \n", src_instance, dst_instance, application, state, size_data,
|
||
g_otg->size_dist[src_instance][dst_instance][application][state]);
|
||
|
||
return size_data;
|
||
}
|
||
|
||
int adjust_size(int size)
|
||
{
|
||
|
||
if (size<PAYLOAD_MIN) {
|
||
LOG_W(OTG,"Packet Size=%d out of range, size=%d \n", size, PAYLOAD_MIN);
|
||
size=PAYLOAD_MIN;
|
||
} else if (size>PAYLOAD_MAX) {
|
||
LOG_W(OTG,"Packet Size=%d out of range, size=%d \n", size, PAYLOAD_MAX);
|
||
size=PAYLOAD_MAX;
|
||
}
|
||
|
||
return(size);
|
||
}
|
||
|
||
|
||
|
||
|
||
|
||
unsigned char *packet_gen(
|
||
const int src_instance,
|
||
const int dst_instance,
|
||
const int app,
|
||
const int ctime,
|
||
unsigned int * const pkt_size)
|
||
{
|
||
// when pdcp, ctime = frame cnt
|
||
|
||
//unsigned char *packet=NULL;
|
||
unsigned int size=0;
|
||
unsigned int buffer_size =0;
|
||
unsigned char flow;
|
||
unsigned int flow_id_background=1;
|
||
unsigned int seq_num;
|
||
unsigned int flag;
|
||
char *payload=NULL;
|
||
char *header=NULL;
|
||
int header_size = 0;
|
||
|
||
|
||
// check if the app is configured
|
||
if (app >= g_otg->application_idx[src_instance][dst_instance]) {
|
||
return NULL;
|
||
}
|
||
|
||
LOG_T(OTG,"[src %d] [dst %d ][APP %d] current time %d\n",src_instance, dst_instance, app, ctime);
|
||
|
||
*pkt_size=0;
|
||
init_packet_gen(src_instance, dst_instance,ctime);
|
||
size=check_data_transmit(src_instance,dst_instance,app,ctime);
|
||
|
||
/*
|
||
Send Packets when:
|
||
- there is data to send
|
||
- time to transmit background traffic
|
||
- when (emutime- ctime)>20m ==> to avoid the fact that TX transmit and RX
|
||
can't received due to the end of the emulation
|
||
*/
|
||
if (((size>0) || (otg_info->traffic_type_background[src_instance][dst_instance]==1)) &&
|
||
(((g_otg->max_nb_frames*10)-ctime)>20)) {
|
||
|
||
/* No aggregation for background traffic */
|
||
if (otg_info->traffic_type_background[src_instance][dst_instance]==0) {
|
||
if (otg_info->header_size[src_instance][dst_instance] <= 0)
|
||
otg_info->header_size[src_instance][dst_instance]=1;
|
||
|
||
header = random_string(otg_info->header_size[src_instance][dst_instance], g_otg->packet_gen_type, HEADER_ALPHABET);
|
||
header_size = (header != NULL)? strlen(header) : 0;
|
||
payload = random_string(size, RANDOM_STRING, PAYLOAD_ALPHABET);
|
||
|
||
if (payload == NULL) return NULL;
|
||
|
||
flag=0xffff;
|
||
flow=otg_info->flow_id[src_instance][dst_instance];
|
||
seq_num=otg_info->seq_num[src_instance][dst_instance][otg_info->traffic_type[src_instance][dst_instance]];
|
||
otg_info->header_type[src_instance][dst_instance]=type_header;
|
||
otg_info->seq_num[src_instance][dst_instance][otg_info->traffic_type[src_instance][dst_instance]]+=1;
|
||
otg_info->tx_num_bytes[src_instance][dst_instance][otg_info->traffic_type[src_instance][dst_instance]]+= otg_hdr_size(src_instance,dst_instance) + header_size + strlen(payload) ;
|
||
otg_info->tx_num_pkt[src_instance][dst_instance][otg_info->traffic_type[src_instance][dst_instance]]+=1;
|
||
|
||
if (size!=strlen(payload))
|
||
LOG_E(OTG,"[%d][%d] [0x %x] The expected packet size does not match the payload size : size %d, strlen %d, seq_num %d packet: |%s|%s| \n",
|
||
src_instance, dst_instance, flag, size, strlen(payload), seq_num, header, payload);
|
||
else
|
||
LOG_D(OTG,"[%d][%d] 0x %x][m2m Aggre %d][Flow %d][Type %d/%s] TX INFO pkt at time %d Size= [payload %d] [Total %d] with seq num %d, state=%d : |%s|%s| \n",
|
||
src_instance, dst_instance, flag,
|
||
otg_info->m2m_aggregation[src_instance][dst_instance],
|
||
otg_info->flow_id[src_instance][dst_instance],
|
||
otg_info->traffic_type[src_instance][dst_instance],
|
||
map_int_to_str(otg_app_type_names,otg_info->traffic_type[src_instance][dst_instance]),
|
||
ctime, size, header_size+strlen(payload), seq_num,state, header, payload);
|
||
|
||
LOG_D(OTG, "[%d]MY_SEQ %d \n", otg_info->traffic_type[src_instance][dst_instance], otg_info->seq_num[src_instance][dst_instance][otg_info->traffic_type[src_instance][dst_instance]] );
|
||
} else {
|
||
if ((g_otg->aggregation_level[src_instance][dst_instance][application]*otg_info->size_background[src_instance][dst_instance])<=PAYLOAD_MAX)
|
||
otg_info->size_background[src_instance][dst_instance]=g_otg->aggregation_level[src_instance][dst_instance][application]*otg_info->size_background[src_instance][dst_instance];
|
||
else {
|
||
//otg_info->size_background[src][dst_instance]=PAYLOAD_MAX;
|
||
LOG_E(OTG,"[BACKGROUND] Aggregated packet larger than PAYLOAD_MAX, payload is limited to %d\n", PAYLOAD_MAX);
|
||
}
|
||
|
||
header =random_string(header_size_gen_background(src_instance,dst_instance), g_otg->packet_gen_type, HEADER_ALPHABET);
|
||
payload = random_string(otg_info->size_background[src_instance][dst_instance], RANDOM_STRING, PAYLOAD_ALPHABET);
|
||
flag=0xbbbb;
|
||
flow=flow_id_background;
|
||
seq_num=otg_info->seq_num_background[src_instance][dst_instance];
|
||
otg_info->tx_num_bytes_background[src_instance][dst_instance]+= otg_hdr_size(src_instance,dst_instance) + header_size + strlen(payload) ;
|
||
otg_info->tx_num_pkt_background[src_instance][dst_instance]+=1;
|
||
otg_info->seq_num_background[src_instance][dst_instance]+=1;
|
||
|
||
if (otg_info->size_background[src_instance][dst_instance]!=strlen(payload))
|
||
LOG_E(OTG,"[%d][%d] [0x %x] The expected packet size does not match the payload size : size %d, strlen %d, seq num %d, packet |%s|%s| \n",
|
||
src_instance,
|
||
dst_instance,
|
||
flag,
|
||
otg_info->size_background[src_instance][dst_instance],
|
||
strlen(payload),
|
||
seq_num,
|
||
header,
|
||
payload);
|
||
else
|
||
LOG_D(OTG,"[%d][%d][%s][0x %x] TX INFO pkt at time %d size is %d with seq num %d, state=%d : |%s|%s| \n",
|
||
src_instance,
|
||
dst_instance,
|
||
flag,
|
||
ctime,
|
||
map_int_to_str(otg_app_type_names,otg_info->traffic_type[src_instance][dst_instance]),
|
||
otg_info->size_background[src_instance][dst_instance],
|
||
seq_num,
|
||
state,
|
||
header,
|
||
payload);
|
||
}
|
||
|
||
buffer_size = otg_hdr_size(src_instance,dst_instance) + header_size + strlen(payload);
|
||
*pkt_size = buffer_size;
|
||
|
||
if (src_instance<NB_eNB_INST)
|
||
otg_info->tx_total_bytes_dl+=buffer_size;
|
||
else
|
||
otg_info->tx_total_bytes_ul+=buffer_size;
|
||
|
||
if (otg_info->traffic_type[src_instance][dst_instance] > MAX_NUM_APPLICATION) {
|
||
LOG_W(OTG,"application type out of range %d for the pair of (src %d, dst %d) \n",
|
||
otg_info->traffic_type[src_instance][dst_instance], src_instance, dst_instance);
|
||
otg_info->traffic_type[src_instance][dst_instance]=0;
|
||
}
|
||
|
||
return serialize_buffer(header,
|
||
payload,
|
||
buffer_size,
|
||
otg_info->traffic_type[src_instance][dst_instance],
|
||
flag,
|
||
flow,
|
||
ctime,
|
||
seq_num,
|
||
otg_info->header_type_app[src_instance][dst_instance][flow],
|
||
state,
|
||
otg_info->m2m_aggregation[src_instance][dst_instance],
|
||
src_instance,
|
||
dst_instance);
|
||
} else {
|
||
return NULL;
|
||
}
|
||
}
|
||
|
||
|
||
|
||
unsigned char *packet_gen_multicast(
|
||
const int src_instance,
|
||
const int dst_instance,
|
||
const int ctime,
|
||
unsigned int * const pkt_size)
|
||
{
|
||
|
||
*pkt_size =0;
|
||
unsigned int size=0;
|
||
unsigned int buffer_size =0;
|
||
char *payload=NULL;
|
||
char *header=NULL;
|
||
unsigned int flag;
|
||
int app,seq_num=0;
|
||
int otg_hdr_size= sizeof(otg_hdr_info_t) + sizeof(otg_hdr_t);
|
||
|
||
set_ctime(ctime); // fixme: this should be done separetly from packet_gen and packet_gen_multicast
|
||
|
||
//for (app=0; app<MAX_NUM_APPLICATION; app++){
|
||
for (app=0; app<1; app++) {
|
||
|
||
if ( (g_otg_multicast->idt_dist[src_instance][dst_instance][app]> 0) &&
|
||
((ctime - otg_multicast_info->ptime[src_instance][dst_instance][app]) >= otg_multicast_info->idt[src_instance][dst_instance][app]) ) {
|
||
|
||
//Duy add
|
||
LOG_I(OTG,"multicast gen: entering generating\n");
|
||
//end Duy add
|
||
|
||
//otg_info->idt[src_instance][dst_instance][app]= time_dist(src_instance, dst_instance, app, -1);
|
||
otg_multicast_info->idt[src_instance][dst_instance][app]=ceil(uniform_dist(g_otg_multicast->idt_min[src_instance][dst_instance][app],
|
||
g_otg_multicast->idt_max[src_instance][dst_instance][app]));
|
||
size = ceil(uniform_dist(g_otg_multicast->size_min[src_instance][dst_instance][app],
|
||
g_otg_multicast->size_max[src_instance][dst_instance][app]));
|
||
LOG_D(OTG, "ptime %d, ctime %d idt %d (min %d, max %d) size %d (min %d, max %d)\n",
|
||
otg_multicast_info->ptime[src_instance][dst_instance][application],
|
||
ctime,
|
||
otg_multicast_info->idt[src_instance][dst_instance][app],
|
||
g_otg_multicast->idt_min[src_instance][dst_instance][app],
|
||
g_otg_multicast->idt_max[src_instance][dst_instance][app],
|
||
size,g_otg_multicast->size_min[src_instance][dst_instance][app],
|
||
g_otg_multicast->size_max[src_instance][dst_instance][app]);
|
||
|
||
otg_multicast_info->ptime[src_instance][dst_instance][application]=ctime;
|
||
|
||
if (size == 0)
|
||
size = 1;
|
||
|
||
if (otg_multicast_info->header_size_app[src_instance][dst_instance][app]==0) {
|
||
otg_multicast_info->header_size_app[src_instance][dst_instance][app]=1;
|
||
LOG_W(OTG,"header type not defined, set to 1\n");
|
||
}
|
||
|
||
header = random_string(otg_multicast_info->header_size_app[src_instance][dst_instance][app],
|
||
g_otg->packet_gen_type,
|
||
HEADER_ALPHABET);
|
||
payload = random_string(size, RANDOM_STRING, PAYLOAD_ALPHABET);
|
||
flag = 0x1000;
|
||
seq_num=otg_multicast_info->tx_sn[src_instance][dst_instance][app]++;
|
||
otg_multicast_info->tx_num_pkt[src_instance][dst_instance][app]+=1;
|
||
otg_multicast_info->tx_num_bytes[src_instance][dst_instance][app]+= strlen(header) + strlen(payload) + otg_hdr_size;
|
||
LOG_D(OTG,"otg_multicast_info->tx_num_bytes[%d][%d][%d] = %d \n",
|
||
src_instance,
|
||
dst_instance,
|
||
app,
|
||
otg_multicast_info->tx_num_bytes[src_instance][dst_instance][app]);
|
||
|
||
if (size!=strlen(payload))
|
||
LOG_E(OTG,"[src %d][dst %d] The expected packet size does not match the payload size : size %d, strlen %d \n",
|
||
src_instance, dst_instance, size, strlen(payload));
|
||
else {
|
||
LOG_I(OTG,"[src %d][dst %d]TX INFO pkt at time %d Size= [payload %d] [Total %d] with seq num %d: |%s|%s| \n",
|
||
src_instance,
|
||
dst_instance,
|
||
ctime,
|
||
size,
|
||
strlen(header)+strlen(payload)+otg_hdr_size,
|
||
seq_num,
|
||
header,
|
||
payload);
|
||
LOG_D(OTG,"\n");
|
||
}
|
||
|
||
buffer_size = otg_hdr_size + strlen(header) + strlen(payload);
|
||
*pkt_size = buffer_size;
|
||
break;
|
||
} else {
|
||
//LOG_D(OTG,"no packet is generated \n");
|
||
}
|
||
}
|
||
|
||
if (buffer_size) {
|
||
return serialize_buffer(
|
||
header,
|
||
payload,
|
||
buffer_size,
|
||
0/*g_otg_multicast->application_type[src_instance][dst][app]*/,
|
||
flag, 0, ctime,
|
||
seq_num,
|
||
0,
|
||
HDR_IP_v4_MIN+HDR_UDP,
|
||
1,
|
||
src_instance,
|
||
dst_instance);
|
||
}
|
||
|
||
// application_types is MSCBR = 1 is set in g_otg_multicast init, but 0 is need in otg_rx for coherence with index of otg_multicast_info
|
||
return NULL;
|
||
}
|
||
|
||
|
||
|
||
int otg_hdr_size(
|
||
const int src_instance,
|
||
const int dst_instance)
|
||
{
|
||
if (otg_info->hdr_size[src_instance][dst_instance]==0)
|
||
otg_info->hdr_size[src_instance][dst_instance]=sizeof(otg_hdr_info_t) + sizeof(otg_hdr_t);
|
||
|
||
return otg_info->hdr_size[src_instance][dst_instance];
|
||
}
|
||
|
||
|
||
|
||
void init_packet_gen(
|
||
const int src_instance,
|
||
const int dst_instance,
|
||
const int ctime)
|
||
{
|
||
check_ctime(ctime);
|
||
set_ctime(ctime);
|
||
otg_info->m2m_aggregation[src_instance][dst_instance]=0;
|
||
otg_info->flow_id[src_instance][dst_instance]=0;
|
||
otg_info->traffic_type[src_instance][dst_instance]=0;
|
||
otg_info->traffic_type_background[src_instance][dst_instance]=0;
|
||
/* init background traffic*/
|
||
/*if (otg_info->idt_background[src_instance][dst_instance]==0){
|
||
otg_info->idt_background[src_instance][dst_instance]= exponential_dist(0.025);
|
||
otg_info->background_stream[src_instance][dst_instance][0]=backgroundStreamInit(0,1);
|
||
} */
|
||
}
|
||
|
||
|
||
|
||
void check_ctime(int ctime)
|
||
{
|
||
if (ptime>ctime)
|
||
LOG_W(OTG, "ERROR ctime: current time [%d] less than previous time [%d] \n",ctime,ptime);
|
||
|
||
ptime=ctime;
|
||
}
|
||
|
||
|
||
|
||
int check_data_transmit(
|
||
const int src_instance,
|
||
const int dst_instance,
|
||
const int app,
|
||
const int ctime)
|
||
{
|
||
|
||
unsigned int size=0;
|
||
|
||
// for (application=0; application<g_otg->application_idx[src_instance][dst_instance]; application++){
|
||
otg_info->gen_pkts=0;
|
||
|
||
LOG_T(OTG,"FLOW_INFO [src %d][dst %d] [IDX %d] [APPLICATION TYPE %d] MAX %d [M2M %d ]\n",
|
||
src_instance, dst_instance, app,
|
||
g_otg->application_type[src_instance][dst_instance][app],
|
||
g_otg->application_idx[src_instance][dst_instance],
|
||
g_otg->m2m[src_instance][dst_instance][app]);
|
||
|
||
// do not generate packet for this pair of src_instance, dst_instance : no app type and/or no idt are defined
|
||
if (g_otg->flow_start[src_instance][dst_instance][app] > ctime ) {
|
||
//g_ otg->flow_start_flag[src_instance][dst_instance][app]=1;
|
||
LOG_T(OTG,"Flow start time not reached : do not generate packet for this pair of src=%d, dst =%d, start %d < ctime %d \n",
|
||
src_instance,
|
||
dst_instance,g_otg->flow_start[src_instance][dst_instance][app],
|
||
ctime);
|
||
size=0;
|
||
} else if (g_otg->flow_duration[src_instance][dst_instance][app] + g_otg->flow_start[src_instance][dst_instance][app] < ctime ) {
|
||
LOG_T(OTG,"Flow duration reached: do not generate packet for this pair of src=%d, dst =%d, duration %d < ctime %d + start %d\n",
|
||
src_instance, dst_instance,
|
||
g_otg->flow_duration[src_instance][dst_instance][app],
|
||
ctime,
|
||
g_otg->flow_start[src_instance][dst_instance][app]);
|
||
size=0;
|
||
} else if ((g_otg->application_type[src_instance][dst_instance][app]==0)&&(g_otg->idt_dist[src_instance][dst_instance][app][PE_STATE]==0)) {
|
||
LOG_T(OTG,"Do not generate packet for this pair of src=%d, dst =%d, IDT zero and app %d not specificed\n",
|
||
src_instance,
|
||
dst_instance, app);
|
||
size=0;
|
||
}
|
||
|
||
else if ((g_otg->application_type[src_instance][dst_instance][app] >0) || (g_otg->idt_dist[src_instance][dst_instance][app][PE_STATE] > 0)) {
|
||
state = get_application_state(src_instance, dst_instance, app, ctime);
|
||
|
||
#ifdef STANDALONE
|
||
|
||
//pre-config for the standalone
|
||
if (ctime<otg_info->ptime[src_instance][dst_instance][app]) //it happends when the emulation was finished
|
||
otg_info->ptime[src_instance][dst_instance][app]=ctime;
|
||
|
||
if (ctime==0)
|
||
otg_info->idt[src_instance][dst_instance][app]=0; //for the standalone mode: the emulation is run several times, we need to initialise the idt to 0 when ctime=0
|
||
|
||
//end pre-config
|
||
#endif
|
||
//LOG_D(OTG,"MY_STATE %d \n", state);
|
||
|
||
if (state!=OFF_STATE) {
|
||
|
||
if (((state==PU_STATE)||(state==ED_STATE))|| (otg_info->idt[src_instance][dst_instance][app]==0)
|
||
|| (( (ctime-otg_info->ptime[src_instance][dst_instance][app]) >= otg_info->idt[src_instance][dst_instance][app] ) )) {
|
||
LOG_D(OTG,"[TX] OTG packet: Time To Transmit::OK (Source= %d, Destination= %d, Application %d, State= %d) , (IDT= %d ,ctime= %d, ptime= %d) \n",
|
||
src_instance,
|
||
dst_instance ,
|
||
app,
|
||
state,
|
||
otg_info->idt[src_instance][dst_instance][app],
|
||
ctime,
|
||
otg_info->ptime[src_instance][dst_instance][app]);
|
||
|
||
otg_info->ptime[src_instance][dst_instance][app]=ctime;
|
||
|
||
if (state==PE_STATE) //compute the IDT only for PE STATE
|
||
tarmaUpdateInputSample(otg_info->tarma_stream[src_instance][dst_instance][app]);
|
||
|
||
otg_info->idt[src_instance][dst_instance][app]=time_dist(src_instance, dst_instance, app,state);
|
||
otg_info->gen_pkts=1;
|
||
header_size_gen(src_instance,dst_instance, app);
|
||
//for(i=1;i<=g_otg->aggregation_level[src_instance][dst_instance][application];i++)
|
||
/* if (g_otg->m2m[src_instance][dst_instance][application]==M2M){ //TO FIX FOR M2M
|
||
size+=size_dist(src_instance, dst_instance, application,state);
|
||
if (otg_info->header_size_app[src_instance][dst_instance][application] > otg_info->header_size[src_instance][dst_instance]) //adapt the header to the application (increment the header if the the new header size is largest that the already computed)
|
||
otg_info->header_size[src_instance][dst_instance]+=otg_info->header_size_app[src_instance][dst_instance][application];
|
||
otg_info->m2m_aggregation[src_instance][dst_instance]++;
|
||
otg_info->flow_id[src_instance][dst_instance]=application;
|
||
otg_info->traffic_type[src_instance][dst_instance]=g_otg->application_type[src_instance][dst_instance][application] //M2M;
|
||
}
|
||
else{ */
|
||
/* For the case of non M2M traffic: when more than one flows transmit data in the same time
|
||
--> the second flow transmit (because of non data aggragation) */
|
||
size=size_dist(src_instance, dst_instance, app,state);
|
||
otg_info->header_size[src_instance][dst_instance]=otg_info->header_size_app[src_instance][dst_instance][app];
|
||
otg_info->flow_id[src_instance][dst_instance]=app;
|
||
otg_info->traffic_type[src_instance][dst_instance]=app;//g_otg->application_type[src_instance][dst_instance][app];
|
||
/*} */
|
||
|
||
|
||
/* if the aggregated size is less than PAYLOAD_MAX the traffic is aggregated, otherwise size=PAYLOAD_MAX */
|
||
if (size>=(PAYLOAD_MAX-(sizeof(otg_hdr_info_t) + sizeof(otg_hdr_t) + otg_info->header_size[src_instance][dst_instance]))) {
|
||
//size=PAYLOAD_MAX- (sizeof(otg_hdr_info_t) + sizeof(otg_hdr_t) + otg_info->header_size[src_instance][dst_instance]);
|
||
LOG_E(OTG,"Aggregated packet larger than PAYLOAD_MAX, payload is limited to %d \n", PAYLOAD_MAX );
|
||
}
|
||
|
||
} //check if there is background traffic to generate
|
||
else if ((otg_info->gen_pkts==0) && (g_otg->background[src_instance][dst_instance][app]==1)&&(background_gen(src_instance, dst_instance, ctime)!=0)) { // the gen_pkts condition could be relaxed here
|
||
otg_info->traffic_type_background[src_instance][dst_instance]=1;
|
||
|
||
if (g_otg->m2m[src_instance][dst_instance][app]==M2M)
|
||
otg_info->traffic_type[src_instance][dst_instance]=app;//g_otg->application_idx[src_instance][dst_instance];//M2M;
|
||
|
||
LOG_D(OTG,"[BACKGROUND=%d] Time To Transmit [SRC %d][DST %d][APPLI %d] \n", otg_info->traffic_type_background[src_instance][dst_instance], src_instance, dst_instance, app);
|
||
}
|
||
|
||
}
|
||
|
||
}
|
||
|
||
// }
|
||
|
||
return size;
|
||
}
|
||
|
||
|
||
|
||
unsigned int get_application_state(
|
||
const int src_instance,
|
||
const int dst_instance,
|
||
const int application,
|
||
const int ctime)
|
||
{
|
||
|
||
switch (g_otg->application_type[src_instance][dst_instance][application]) {
|
||
case VOIP_G711:
|
||
case VOIP_G729:
|
||
voip_traffic(src_instance, dst_instance, application, ctime);
|
||
return otg_info->voip_state[src_instance][dst_instance][application];
|
||
break;
|
||
|
||
default:
|
||
state_management(src_instance,dst_instance,application, ctime);
|
||
return otg_info->state[src_instance][dst_instance][application];
|
||
break;
|
||
}
|
||
}
|
||
|
||
|
||
|
||
void header_size_gen(
|
||
const int src_instance,
|
||
const int dst_instance,
|
||
const int application)
|
||
{
|
||
|
||
unsigned int size_header=0;
|
||
|
||
if (otg_info->header_size_app[src_instance][dst_instance][application]==0) {
|
||
if (g_otg->ip_v[src_instance][dst_instance][application]==1) {
|
||
size_header+=HDR_IP_v4_MIN;
|
||
otg_info->header_type_app[src_instance][dst_instance][application]+=0;
|
||
} else if (g_otg->ip_v[src_instance][dst_instance][application]==2) {
|
||
size_header+=HDR_IP_v6;
|
||
otg_info->header_type_app[src_instance][dst_instance][application]+=2;
|
||
|
||
}
|
||
|
||
if (g_otg->trans_proto[src_instance][dst_instance][application]==1) {
|
||
size_header+= HDR_UDP ;
|
||
otg_info->header_type_app[src_instance][dst_instance][application]+=1;
|
||
} else if (g_otg->trans_proto[src_instance][dst_instance][application]==2) {
|
||
size_header+= HDR_TCP;
|
||
otg_info->header_type_app[src_instance][dst_instance][application]+=2;
|
||
}
|
||
|
||
if ((g_otg->application_type[src_instance][dst_instance][application]==VOIP_G711)||(g_otg->application_type[src_instance][dst_instance][application]==VOIP_G729))
|
||
size_header+=RTP_HEADER;
|
||
|
||
LOG_D(OTG,"Header size is %d [IP V=%d][PROTO=%d]\n", size_header, g_otg->ip_v[src_instance][dst_instance][application],g_otg->trans_proto[src_instance][dst_instance][application]);
|
||
otg_info->header_size_app[src_instance][dst_instance][application]=size_header;
|
||
}
|
||
}
|
||
|
||
|
||
|
||
void header_size_gen_multicast(
|
||
const int src_instance,
|
||
const int dst_instance,
|
||
const int application)
|
||
{
|
||
|
||
unsigned int size_header=0;
|
||
|
||
if (otg_multicast_info->header_size_app[src_instance][dst_instance][application]==0) {
|
||
|
||
if (g_otg_multicast->ip_v[src_instance][dst_instance][application]==1) {
|
||
size_header+=HDR_IP_v4_MIN;
|
||
} else if (g_otg_multicast->ip_v[src_instance][dst_instance][application]==2) {
|
||
size_header+=HDR_IP_v6;
|
||
}
|
||
|
||
if (g_otg_multicast->trans_proto[src_instance][dst_instance][application]==1) {
|
||
size_header+= HDR_UDP ;
|
||
} else if (g_otg_multicast->trans_proto[src_instance][dst_instance][application]==2) {
|
||
size_header+= HDR_TCP;
|
||
}
|
||
|
||
// LOG_I(OTG,"multicast header is set to %d\n", size_header);
|
||
otg_multicast_info->header_size_app[src_instance][dst_instance][application]=size_header;
|
||
}
|
||
}
|
||
|
||
|
||
|
||
// Generate a random string[size]
|
||
char *random_string(
|
||
const int size,
|
||
const ALPHABET_GEN mode,
|
||
const ALPHABET_TYPE data_type)
|
||
{
|
||
char *data=NULL;
|
||
int i=0,start=0;
|
||
|
||
switch (mode) {
|
||
case REPEAT_STRING:
|
||
start = uniform_dist (0, abs(strlen(FIXED_STRING)- size - 1));
|
||
return str_sub (FIXED_STRING, start, start + size -1);
|
||
break;
|
||
|
||
case SUBSTRACT_STRING:
|
||
|
||
//data=strndup(data_string + (strlen(data_string) - size), strlen(data_string));
|
||
//data=strndup(data_string + (strlen(data_string) - size), size);
|
||
if (data_type == HEADER_ALPHABET) {
|
||
start = uniform_dist (0, abs(strlen(HEADER_STRING)- size - 1));
|
||
return str_sub (HEADER_STRING, start, start + size -1);
|
||
} else if (data_type == PAYLOAD_ALPHABET) {
|
||
start = uniform_dist (0, abs(strlen(PAYLOAD_STRING)- size - 1));
|
||
return str_sub (PAYLOAD_STRING, start, start+size - 1 );
|
||
} else
|
||
LOG_E(OTG, "unsupported alphabet data type \n");
|
||
|
||
break;
|
||
|
||
case RANDOM_POSITION:
|
||
data=(char*)malloc((size+1)*sizeof(char));
|
||
|
||
for(i=0; i<=size; i++) {
|
||
if (data_type == HEADER_ALPHABET)
|
||
data[i]=HEADER_STRING [(int)uniform_dist(0, 128)];
|
||
else if (data_type == PAYLOAD_ALPHABET)
|
||
data[i]=PAYLOAD_STRING [(int)uniform_dist(0, 1500)];
|
||
else
|
||
LOG_E(OTG,"unsupported alphabet data type \n");
|
||
|
||
//pos = rand()%(strlen(data_string));
|
||
//data[i]=data_string[pos];
|
||
//data[i]= taus(OTG) % (126 - 33 + 1) + 33;
|
||
}
|
||
|
||
data[size] = '\0';
|
||
break;
|
||
|
||
case RANDOM_STRING:
|
||
data=(char*)malloc((size+1)*sizeof(char));
|
||
|
||
for(i=0; i<=size; i++) {
|
||
if (data_type == HEADER_ALPHABET)
|
||
data[i]= (char) uniform_dist(48,57); // take only the numbers
|
||
else if (data_type == PAYLOAD_ALPHABET)
|
||
data[i]= (char) uniform_dist(48,126); // take all the ascii chars
|
||
else
|
||
LOG_E(OTG,"unsupported alphabet data type \n");
|
||
}
|
||
|
||
data[size] = '\0';
|
||
break;
|
||
|
||
default:
|
||
LOG_E(OTG,"not supported string generation");
|
||
break;
|
||
}
|
||
|
||
return data;
|
||
}
|
||
|
||
|
||
|
||
unsigned int header_size(const int hdr_size)
|
||
{
|
||
|
||
int size = hdr_size;
|
||
|
||
if (hdr_size>(sizeof(otg_hdr_info_t) + sizeof(otg_hdr_t)))
|
||
size-=(sizeof(otg_hdr_info_t) + sizeof(otg_hdr_t));
|
||
else
|
||
LOG_W(OTG,"OTG Header not included inside packet header (OTG header:%d, Header%d)\n", hdr_size, sizeof(otg_hdr_info_t) + sizeof(otg_hdr_t) );
|
||
|
||
return(size);
|
||
|
||
}
|
||
|
||
|
||
|
||
unsigned char * serialize_buffer(
|
||
char* const header,
|
||
char* const payload,
|
||
const unsigned int buffer_size,
|
||
const unsigned int traffic_type,
|
||
const int flag,
|
||
const int flow_id,
|
||
const int ctime,
|
||
const int seq_num,
|
||
const int hdr_type,
|
||
const int state,
|
||
const unsigned int aggregation_level,
|
||
const int src_instance,
|
||
const int dst_instance)
|
||
{
|
||
|
||
unsigned char *tx_buffer=NULL;
|
||
otg_hdr_info_t *otg_hdr_info_p=NULL;
|
||
otg_hdr_t *otg_hdr_p=NULL;
|
||
unsigned int byte_tx_count=0;
|
||
|
||
if (header == NULL || payload == NULL)
|
||
return NULL;
|
||
|
||
// allocate memory for the tx_buffer
|
||
tx_buffer= (unsigned char*)malloc(buffer_size);
|
||
// add otg control information first for decoding and computing the statistics
|
||
otg_hdr_info_p = (otg_hdr_info_t *) (&tx_buffer[byte_tx_count]);
|
||
otg_hdr_info_p->size = buffer_size;
|
||
otg_hdr_info_p->flag = flag; // (background_ok==0)? 0xffff : 0xbbbb;
|
||
byte_tx_count = sizeof(otg_hdr_info_t);
|
||
otg_hdr_p = (otg_hdr_t *) (&tx_buffer[byte_tx_count]);
|
||
otg_hdr_p->flow_id =flow_id;
|
||
otg_hdr_p->time =ctime;
|
||
otg_hdr_p->seq_num =seq_num;
|
||
otg_hdr_p->hdr_type=hdr_type;
|
||
otg_hdr_p->src_instance = src_instance;
|
||
otg_hdr_p->dst_instance = dst_instance;
|
||
otg_hdr_p->state = state;
|
||
otg_hdr_p->aggregation_level=aggregation_level;
|
||
otg_hdr_p->traffic_type=traffic_type;
|
||
byte_tx_count += sizeof(otg_hdr_t);
|
||
|
||
LOG_I(OTG,"traffic type %d\n",otg_hdr_p->traffic_type);
|
||
// copy the header first
|
||
memcpy(&tx_buffer[byte_tx_count], header, strlen(header));
|
||
byte_tx_count += strlen(header);
|
||
free(header);
|
||
// now append the payload
|
||
memcpy(&tx_buffer[byte_tx_count], payload, strlen(payload));
|
||
byte_tx_count +=strlen(payload);
|
||
free(payload);
|
||
|
||
return tx_buffer;
|
||
}
|
||
|
||
void init_predef_multicast_traffic(void)
|
||
{
|
||
int i, j, k;
|
||
|
||
for (i=0; i<2; i++) { // src //maxServiceCount
|
||
for (j=1; j<3; j++) { // dst // maxSessionPerPMCH
|
||
for (k=0; k<1/*MAX_NUM_APPLICATION*/; k++) {
|
||
switch(g_otg_multicast->application_type[i][j][k]) {
|
||
case MSCBR :
|
||
LOG_D(OTG, "configure MSCBR for eMBMS (service %d, session %d, app %d)\n", i, j, k);
|
||
g_otg_multicast->trans_proto[i][j][k]= UDP;
|
||
g_otg_multicast->ip_v[i][j][k]= IPV4;
|
||
|
||
g_otg_multicast->idt_dist[i][j][k]= FIXED;
|
||
g_otg_multicast->idt_min[i][j][k]= 40;// can modify here to increase the frequency of generate data
|
||
g_otg_multicast->idt_max[i][j][k]= 40;
|
||
|
||
g_otg_multicast->size_dist[i][j][k]= FIXED;
|
||
g_otg_multicast->size_min[i][j][k]= 256;
|
||
g_otg_multicast->size_max[i][j][k]= 256;//can not be greater than 1500 which is max_ip_packet_size in pdcp.c
|
||
|
||
|
||
g_otg_multicast->flow_duration[i][j][k] = 1000; // the packet will be generated after duration
|
||
header_size_gen_multicast(i,j,k);
|
||
break;
|
||
|
||
case MMCBR :
|
||
LOG_D(OTG, "configure MSCBR for eMBMS (service %d, session %d, app %d)\n", i, j, k);
|
||
g_otg_multicast->trans_proto[i][j][k]= UDP;
|
||
g_otg_multicast->ip_v[i][j][k]= IPV4;
|
||
|
||
g_otg_multicast->idt_dist[i][j][k]= FIXED;
|
||
g_otg_multicast->idt_min[i][j][k]= 30;// can modify here to increase the frequency of generate data
|
||
g_otg_multicast->idt_max[i][j][k]= 40;
|
||
|
||
g_otg_multicast->size_dist[i][j][k]= FIXED;
|
||
g_otg_multicast->size_min[i][j][k]= 768;
|
||
g_otg_multicast->size_max[i][j][k]= 768 ;//can not be greater than 1500 which is max_ip_packet_size in pdcp.c
|
||
|
||
|
||
g_otg_multicast->flow_duration[i][j][k] = 1000; // the packet will be generated after duration
|
||
header_size_gen_multicast(i,j,k);
|
||
break;
|
||
|
||
case MBCBR :
|
||
LOG_D(OTG, "configure MSCBR for eMBMS (service %d, session %d, app %d)\n", i, j, k);
|
||
g_otg_multicast->trans_proto[i][j][k]= UDP;
|
||
g_otg_multicast->ip_v[i][j][k]= IPV4;
|
||
|
||
g_otg_multicast->idt_dist[i][j][k]=FIXED;
|
||
g_otg_multicast->idt_min[i][j][k]= 20;// can modify here to increase the frequency of generate data
|
||
g_otg_multicast->idt_max[i][j][k]= 20;
|
||
|
||
g_otg_multicast->size_dist[i][j][k]= FIXED;
|
||
g_otg_multicast->size_min[i][j][k]= 1400;
|
||
g_otg_multicast->size_max[i][j][k]= 1400 ;//can not be greater than 1500 which is max_ip_packet_size in pdcp.c
|
||
|
||
|
||
g_otg_multicast->flow_duration[i][j][k] = 1000; // the packet will be generated after duration
|
||
header_size_gen_multicast(i,j,k);
|
||
break;
|
||
|
||
case MSVBR:
|
||
LOG_D(OTG, "configure MSCBR for eMBMS (service %d, session %d, app %d)\n", i, j, k);
|
||
g_otg_multicast->trans_proto[i][j][k]= UDP;
|
||
g_otg_multicast->ip_v[i][j][k]= IPV4;
|
||
|
||
g_otg_multicast->idt_dist[i][j][k]=UNIFORM;
|
||
g_otg_multicast->idt_min[i][j][k]= 20;// can modify here to increase the frequency of generate data
|
||
g_otg_multicast->idt_max[i][j][k]= 40;
|
||
|
||
g_otg_multicast->size_dist[i][j][k]= UNIFORM;
|
||
g_otg_multicast->size_min[i][j][k]= 64;
|
||
g_otg_multicast->size_max[i][j][k]= 512 ;//can not be greater than 1500 which is max_ip_packet_size in pdcp.c
|
||
|
||
|
||
g_otg_multicast->flow_duration[i][j][k] = 1000; // the packet will be generated after duration
|
||
header_size_gen_multicast(i,j,k);
|
||
break;
|
||
|
||
case MMVBR:
|
||
LOG_D(OTG, "configure MSCBR for eMBMS (service %d, session %d, app %d)\n", i, j, k);
|
||
g_otg_multicast->trans_proto[i][j][k]= UDP;
|
||
g_otg_multicast->ip_v[i][j][k]= IPV4;
|
||
|
||
g_otg_multicast->idt_dist[i][j][k]=UNIFORM;
|
||
g_otg_multicast->idt_min[i][j][k]= 15;// can modify here to increase the frequency of generate data
|
||
g_otg_multicast->idt_max[i][j][k]= 30;
|
||
|
||
g_otg_multicast->size_dist[i][j][k]= UNIFORM;
|
||
g_otg_multicast->size_min[i][j][k]= 512;
|
||
g_otg_multicast->size_max[i][j][k]= 1024 ;//can not be greater than 1500 which is max_ip_packet_size in pdcp.c
|
||
|
||
|
||
g_otg_multicast->flow_duration[i][j][k] = 1000; // the packet will be generated after duration
|
||
header_size_gen_multicast(i,j,k);
|
||
break;
|
||
|
||
case MBVBR:
|
||
LOG_D(OTG, "configure MSCBR for eMBMS (service %d, session %d, app %d)\n", i, j, k);
|
||
g_otg_multicast->trans_proto[i][j][k]= UDP;
|
||
g_otg_multicast->ip_v[i][j][k]= IPV4;
|
||
|
||
g_otg_multicast->idt_dist[i][j][k]=UNIFORM;
|
||
g_otg_multicast->idt_min[i][j][k]= 5;// can modify here to increase the frequency of generate data
|
||
g_otg_multicast->idt_max[i][j][k]= 15;
|
||
|
||
g_otg_multicast->size_dist[i][j][k]= UNIFORM;
|
||
g_otg_multicast->size_min[i][j][k]= 1024;
|
||
g_otg_multicast->size_max[i][j][k]= 1400 ;//can not be greater than 1500 which is max_ip_packet_size in pdcp.c
|
||
|
||
|
||
g_otg_multicast->flow_duration[i][j][k] = 1000; // the packet will be generated after duration
|
||
header_size_gen_multicast(i,j,k);
|
||
break;
|
||
|
||
case MVIDEO_VBR_4MBPS :
|
||
|
||
LOG_D(OTG,"Configure MSCBR for eMBMS (service %d, session %d, app %d)\n", i, j, k);
|
||
g_otg_multicast->trans_proto[i][j][k]= UDP;
|
||
g_otg_multicast->ip_v[i][j][k]= IPV4;
|
||
|
||
g_otg_multicast->idt_dist[i][j][k]= FIXED;
|
||
g_otg_multicast->idt_min[i][j][k]= 40;// can modify here to increase the frequency of generate data
|
||
g_otg_multicast->idt_max[i][j][k]= 40;
|
||
|
||
/*the tarma initialization*/
|
||
otg_multicast_info->mtarma_video[i][j][k]=tarmaInitVideo(0);
|
||
tarmaSetupVideoGop12(otg_multicast_info->mtarma_video[i][j][k],2.5);
|
||
LOG_I(OTG,"[CONFIG] Multicast Video VBR 4MBPS, src = %d, dst = %d, dist IDT = %d\n", i, j, g_otg_multicast->idt_dist[i][j][k]);
|
||
|
||
//g_otg_multicast->duration[i][j][k] = 1000; // the packet will be generated after duration
|
||
header_size_gen_multicast(i,j,k);
|
||
break;
|
||
|
||
default :
|
||
LOG_W(OTG, "not supported model for multicast traffic\n");
|
||
|
||
}
|
||
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
|
||
|
||
void init_predef_traffic(
|
||
const unsigned char nb_ue_local,
|
||
const unsigned char nb_enb_local)
|
||
{
|
||
int i,j, k;
|
||
|
||
//LOG_I(OTG,"OTG_CONFIG num_node %d\n", g_otg->num_nodes);
|
||
//LOG_I(OTG,"MAX_NODES [MAX UE= %d] [MAX eNB= %d] \n",nb_ue_local, nb_enb_local);
|
||
|
||
for (i=0; i<g_otg->num_nodes; i++) { // src
|
||
for (j=0; j<g_otg->num_nodes; j++) { // dst
|
||
for (k=0; k<g_otg->application_idx[i][j]; k++) {
|
||
|
||
switch (g_otg->application_type[i][j][k]) {
|
||
case NO_PREDEFINED_TRAFFIC :
|
||
LOG_I(OTG, "[SRC %d][DST %d] No predefined Traffic \n", i, j);
|
||
g_otg->trans_proto[i][j][k] = 0;
|
||
g_otg->ip_v[i][j][k] = 0;
|
||
g_otg->idt_dist[i][j][k][PE_STATE] = 0;
|
||
g_otg->idt_min[i][j][k][PE_STATE] = 0;
|
||
g_otg->idt_max[i][j][k][PE_STATE] = 0;
|
||
g_otg->size_dist[i][j][k][PE_STATE] = FIXED;
|
||
g_otg->size_min[i][j][k][PE_STATE] = 0;
|
||
g_otg->size_max[i][j][k][PE_STATE] = 0;
|
||
#ifdef STANDALONE
|
||
g_otg->dst_port[i][j] = 302;
|
||
g_otg->flow_duration[i][j] = 1000;
|
||
#endif
|
||
break;
|
||
|
||
case SCBR :
|
||
g_otg->trans_proto[i][j][k] = UDP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
g_otg->idt_dist[i][j][k][PE_STATE] = FIXED;
|
||
g_otg->idt_min[i][j][k][PE_STATE] = 20;//(int)round(uniform_dist((i+1)*30,(i+1)*100));// 500+(i+1)*10; //random idt among different UEs
|
||
g_otg->idt_max[i][j][k][PE_STATE] = 20;
|
||
g_otg->size_dist[i][j][k][PE_STATE] = FIXED;
|
||
g_otg->size_min[i][j][k][PE_STATE] = 128;
|
||
g_otg->size_max[i][j][k][PE_STATE] = 128;
|
||
LOG_I(OTG,"OTG_CONFIG SCBR, src = %d, dst = %d, traffic id %d, idt %d dist type for size = %d\n", i, j, k,
|
||
g_otg->idt_min[i][j][k][PE_STATE], g_otg->size_min[i][j][k][PE_STATE]);
|
||
#ifdef STANDALONE
|
||
g_otg->dst_port[i][j] = 302;
|
||
g_otg->flow_duration[i][j] = 1000;
|
||
#endif
|
||
break;
|
||
|
||
case MCBR :
|
||
g_otg->trans_proto[i][j][k] = UDP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
g_otg->idt_dist[i][j][k][PE_STATE] = FIXED;
|
||
g_otg->idt_min[i][j][k][PE_STATE] = 20;//(int)round(uniform_dist((i+1)*30, (i+1)*100));// 250+(i+1)*10;
|
||
g_otg->idt_max[i][j][k][PE_STATE] = 20;
|
||
g_otg->size_dist[i][j][k][PE_STATE] = FIXED;
|
||
g_otg->size_min[i][j][k][PE_STATE] = 768;
|
||
g_otg->size_max[i][j][k][PE_STATE] = 768;
|
||
LOG_I(OTG,"OTG_CONFIG MCBR, src = %d, dst = %d, traffic id %d, dist type for size = %d\n", i, j,k , g_otg->size_dist[i][j][k][PE_STATE]);
|
||
#ifdef STANDALONE
|
||
g_otg->dst_port[i][j] = 302;
|
||
g_otg->flow_duration[i][j] = 1000;
|
||
#endif
|
||
break;
|
||
|
||
case BCBR :
|
||
g_otg->trans_proto[i][j][k] = UDP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
g_otg->idt_dist[i][j][k][PE_STATE] = FIXED;// main param in this mode
|
||
g_otg->idt_min[i][j][k][PE_STATE] = 20;// (int)round(uniform_dist((i+1)*30,(i+1)*100)); //125+(i+1)*10;
|
||
g_otg->idt_max[i][j][k][PE_STATE] = 20;
|
||
g_otg->size_dist[i][j][k][PE_STATE] = FIXED; // main param in this mode
|
||
g_otg->size_min[i][j][k][PE_STATE] = 1400;// main param in this mode
|
||
g_otg->size_max[i][j][k][PE_STATE] = 1400;
|
||
LOG_I(OTG,"OTG_CONFIG BCBR, src = %d, dst = %d, dist type for size = %d\n", i, j, g_otg->size_dist[i][j][k][PE_STATE]);
|
||
#ifdef STANDALONE
|
||
g_otg->dst_port[i][j] = 302;
|
||
g_otg->flow_duration[i][j] = 1000;
|
||
#endif
|
||
break;
|
||
|
||
case AUTO_PILOT :
|
||
g_otg->trans_proto[i][j][k] = 2;
|
||
g_otg->ip_v[i][j][k] = 1;
|
||
g_otg->idt_dist[i][j][k][PE_STATE] = UNIFORM;
|
||
LOG_I(OTG,"OTG_CONFIG AUTO PILOT, src = %d, dst = %d, dist IDT = %d\n", i, j, g_otg->idt_dist[i][j][k][PE_STATE]);
|
||
g_otg->idt_min[i][j][k][PE_STATE] = 100;
|
||
g_otg->idt_max[i][j][k][PE_STATE] = 500;
|
||
g_otg->idt_std_dev[i][j][k][PE_STATE] = 0;
|
||
g_otg->idt_lambda[i][j][k][PE_STATE] = 0;
|
||
g_otg->size_dist[i][j][k][PE_STATE] = FIXED;
|
||
g_otg->size_min[i][j][k][PE_STATE] = 800;
|
||
g_otg->size_max[i][j][k][PE_STATE] = 800;
|
||
g_otg->size_std_dev[i][j][k][PE_STATE] = 0;
|
||
g_otg->size_lambda[i][j][k][PE_STATE] = 0;
|
||
#ifdef STANDALONE
|
||
g_otg->dst_port[i][j] = 302;
|
||
g_otg->flow_duration[i][j] = 1000;
|
||
#endif
|
||
break;
|
||
|
||
case BICYCLE_RACE :
|
||
g_otg->trans_proto[i][j][k] = 2;
|
||
g_otg->ip_v[i][j][k] = 1;
|
||
g_otg->idt_dist[i][j][k][PE_STATE] = UNIFORM;
|
||
LOG_I(OTG,"OTG_CONFIG BICYCLE RACE, src = %d, dst = %d, dist IDT = %d\n", i, j, g_otg->idt_dist[i][j][k][PE_STATE]);
|
||
g_otg->idt_min[i][j][k][PE_STATE] = 100;
|
||
g_otg->idt_max[i][j][k][PE_STATE] = 500;
|
||
g_otg->idt_std_dev[i][j][k][PE_STATE] = 0;
|
||
g_otg->idt_lambda[i][j][k][PE_STATE] = 0;
|
||
g_otg->size_dist[i][j][k][PE_STATE] = FIXED;
|
||
g_otg->size_min[i][j][k][PE_STATE] = 800;
|
||
g_otg->size_max[i][j][k][PE_STATE] = 800;
|
||
g_otg->size_std_dev[i][j][k][PE_STATE] = 0;
|
||
g_otg->size_lambda[i][j][k][PE_STATE] = 0;
|
||
|
||
#ifdef STANDALONE
|
||
g_otg->dst_port[i][j] = 302;
|
||
g_otg->flow_duration[i][j] = 1000;
|
||
#endif
|
||
break;
|
||
|
||
/* case OPENARENA :
|
||
g_otg->trans_proto[i][j][k] = 2;
|
||
g_otg->ip_v[i][j][k] = 1;
|
||
g_otg->idt_dist[i][j][k][PE_STATE] = UNIFORM;
|
||
LOG_I(OTG,"OTG_CONFIG OPENARENA, src = %d, dst = %d, dist IDT = %d\n", i, j, g_otg->idt_dist[i][j][k][PE_STATE]);
|
||
g_otg->idt_min[i][j][k][PE_STATE] = 69;
|
||
g_otg->idt_max[i][j][k][PE_STATE] = 103;
|
||
g_otg->idt_std_dev[i][j][k][PE_STATE] = 0;
|
||
g_otg->idt_lambda[i][j][k][PE_STATE] = 0;
|
||
g_otg->size_dist[i][j][k][PE_STATE] = GAUSSIAN;
|
||
g_otg->size_min[i][j][k][PE_STATE] = 5;
|
||
g_otg->size_max[i][j][k][PE_STATE] = 43;
|
||
g_otg->size_std_dev[i][j][k][PE_STATE] = 5;
|
||
g_otg->size_lambda[i][j][k][PE_STATE] = 0;
|
||
|
||
#ifdef STANDALONE
|
||
g_otg->dst_port[i][j] = 302;
|
||
g_otg->flow_duration[i][j] = 1000;
|
||
#endif
|
||
break; */
|
||
case TEAM_FORTRESS :
|
||
g_otg->trans_proto[i][j][k] = 2;
|
||
g_otg->ip_v[i][j][k] = 1;
|
||
g_otg->idt_dist[i][j][k][PE_STATE] = UNIFORM;
|
||
LOG_I(OTG,"OTG_CONFIG GAMING_TF, src = %d, dst = %d, dist IDT = %d\n", i, j, g_otg->idt_dist[i][j][k][PE_STATE]);
|
||
g_otg->idt_min[i][j][k][PE_STATE] = 31;
|
||
g_otg->idt_max[i][j][k][PE_STATE] = 42;
|
||
g_otg->idt_std_dev[i][j][k][PE_STATE] = 0;
|
||
g_otg->idt_lambda[i][j][k][PE_STATE] = 0;
|
||
g_otg->size_dist[i][j][k][PE_STATE] = GAUSSIAN;
|
||
g_otg->size_min[i][j][k][PE_STATE] = 5;
|
||
g_otg->size_max[i][j][k][PE_STATE] = 43;
|
||
g_otg->size_std_dev[i][j][k][PE_STATE] = 5;
|
||
g_otg->size_lambda[i][j][k][PE_STATE] = 0;
|
||
|
||
#ifdef STANDALONE
|
||
g_otg->dst_port[i][j] = 302;
|
||
g_otg->flow_duration[i][j] = 1000;
|
||
#endif
|
||
break;
|
||
|
||
case M2M_TRAFFIC : /* example of M2M traffic */
|
||
LOG_I(OTG," M2M_TRAFFIC, src = %d, dst = %d \n", i, j, g_otg->application_type[i][j][k]);
|
||
g_otg->trans_proto[i][j][k] = TCP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
g_otg->pu_size_pkts[i][j][k]=50;
|
||
g_otg->ed_size_pkts[i][j][k]=60;
|
||
g_otg->idt_dist[i][j][k][PE_STATE] = UNIFORM;
|
||
g_otg->idt_min[i][j][k][PE_STATE] = 1000;
|
||
g_otg->idt_max[i][j][k][PE_STATE] = 15;
|
||
g_otg->size_dist[i][j][k][PE_STATE] = UNIFORM;
|
||
g_otg->size_min[i][j][k][PE_STATE] = 200;
|
||
g_otg->size_max[i][j][k][PE_STATE] = 800;
|
||
g_otg->prob_off_pu[i][j][k]=0.2;
|
||
g_otg->prob_off_ed[i][j][k]=0.3;
|
||
g_otg->prob_off_pe[i][j][k]=0.4;
|
||
g_otg->prob_pu_ed[i][j][k]=0.1;
|
||
g_otg->prob_pu_pe[i][j][k]=0.6;
|
||
g_otg->prob_ed_pu[i][j][k]=0.3;
|
||
g_otg->prob_ed_pe[i][j][k]=0.5;
|
||
g_otg->holding_time_off_pu[i][j][k]=10;
|
||
g_otg->holding_time_off_ed[i][j][k]=12;
|
||
g_otg->holding_time_off_pe[i][j][k]=13;
|
||
g_otg->holding_time_pe_off[i][j][k]=30;
|
||
g_otg->m2m[i][j][k]=1;
|
||
#ifdef STANDALONE
|
||
g_otg->dst_port[i][j] = 302;
|
||
g_otg->flow_duration[i][j] = 1000;
|
||
#endif
|
||
|
||
case AUTO_PILOT_L :
|
||
/* Measurements from:
|
||
Traffic Modeling Framework for Machine Type Communincation (Navid NiKaein, Markus Laner, Kajie Zhou, Philippe Svoboda, Dejan Drajic, Serjan Krco and Milica Popovic)
|
||
*/
|
||
|
||
g_otg->trans_proto[i][j][k] = TCP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
g_otg->pu_size_pkts[i][j][k]=1000;
|
||
g_otg->ed_size_pkts[i][j][k]=1000;
|
||
g_otg->idt_dist[i][j][k][PE_STATE] = UNIFORM;
|
||
g_otg->idt_min[i][j][k][PE_STATE] = 100;
|
||
g_otg->idt_max[i][j][k][PE_STATE] = 500;
|
||
|
||
if (i<nb_enb_local) { /*DL*/
|
||
g_otg->size_dist[i][j][k][PE_STATE] = FIXED;
|
||
g_otg->size_min[i][j][k][PE_STATE] = 1000;
|
||
g_otg->size_max[i][j][k][PE_STATE] = 1000;
|
||
LOG_I(OTG,"AUTO PILOT LOW SPEEDS DL , src = %d, dst = %d, application type = %d\n", i, j, g_otg->application_type[i][j][k]);
|
||
} else { /*UL*/
|
||
g_otg->size_dist[j][i][k][PE_STATE] = UNIFORM;
|
||
g_otg->size_min[j][i][k][PE_STATE] = 64;
|
||
g_otg->size_max[j][i][k][PE_STATE] = 1000;
|
||
LOG_I(OTG,"AUTO PILOT LOW SPEEDS UL, src = %d, dst = %d, application type = %d\n", i, j, g_otg->application_type[i][j][k]);
|
||
}
|
||
|
||
g_otg->prob_off_pu[i][j][k]=0.2;
|
||
g_otg->prob_off_ed[i][j][k]=0.3;
|
||
g_otg->prob_off_pe[i][j][k]=0;
|
||
g_otg->prob_pu_ed[i][j][k]=0.5;
|
||
g_otg->prob_pu_pe[i][j][k]=0;
|
||
g_otg->prob_ed_pu[i][j][k]=0;
|
||
g_otg->prob_ed_pe[i][j][k]=1;
|
||
g_otg->holding_time_off_pu[i][j][k]=100;
|
||
g_otg->holding_time_off_ed[i][j][k]=10;
|
||
g_otg->holding_time_pe_off[i][j][k]=1000;
|
||
g_otg->m2m[i][j][k]=1;
|
||
#ifdef STANDALONE
|
||
g_otg->dst_port[i][j]= 303;
|
||
g_otg->flow_duration[i][j] = 1000;
|
||
#endif
|
||
break;
|
||
|
||
case AUTO_PILOT_M :
|
||
/* Measurements from:
|
||
Traffic Modeling Framework for Machine Type Communincation (Navid NiKaein, Markus Laner, Kajie Zhou, Philippe Svoboda, Dejan Drajic, Serjan Krco and Milica Popovic)
|
||
*/
|
||
|
||
g_otg->trans_proto[i][j][k] = TCP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
g_otg->pu_size_pkts[i][j][k]=1000;
|
||
g_otg->ed_size_pkts[i][j][k]=1000;
|
||
g_otg->idt_dist[i][j][k][PE_STATE] = FIXED;
|
||
g_otg->idt_min[i][j][k][PE_STATE] = 100;
|
||
g_otg->idt_max[i][j][k][PE_STATE] = 100;
|
||
|
||
if (i<nb_enb_local) { /*DL*/
|
||
g_otg->size_dist[i][j][k][PE_STATE] = FIXED;
|
||
g_otg->size_min[i][j][k][PE_STATE] = 1000;
|
||
g_otg->size_max[i][j][k][PE_STATE] = 1000;
|
||
LOG_I(OTG,"AUTO PILOT MEDIUM SPEEDS DL, src = %d, dst = %d, application type = %d\n", i, j, g_otg->application_type[i][j][k]);
|
||
} else { /*UL*/
|
||
g_otg->size_dist[j][i][k][PE_STATE] = UNIFORM;
|
||
g_otg->size_min[j][i][k][PE_STATE] = 64;
|
||
g_otg->size_max[j][i][k][PE_STATE] = 1000;
|
||
LOG_I(OTG,"AUTO PILOT MEDIUM SPEEDS UL, src = %d, dst = %d, application type = %d\n", i, j, g_otg->application_type[i][j][k]);
|
||
}
|
||
|
||
g_otg->prob_off_pu[i][j][k]=0.2;
|
||
g_otg->prob_off_ed[i][j][k]=0.3;
|
||
g_otg->prob_off_pe[i][j][k]=0;
|
||
g_otg->prob_pu_ed[i][j][k]=0.5;
|
||
g_otg->prob_pu_pe[i][j][k]=0;
|
||
g_otg->prob_ed_pu[i][j][k]=0;
|
||
g_otg->prob_ed_pe[i][j][k]=1;
|
||
g_otg->holding_time_off_pu[i][j][k]=40;
|
||
g_otg->holding_time_off_ed[i][j][k]=10;
|
||
g_otg->holding_time_pe_off[i][j][k]=1000;
|
||
g_otg->m2m[i][j][k]=1;
|
||
#ifdef STANDALONE
|
||
g_otg->dst_port[i][j] = 303;
|
||
g_otg->flow_duration[i][j] = 1000;
|
||
#endif
|
||
break;
|
||
|
||
case AUTO_PILOT_H :
|
||
/* Measurements from:
|
||
Traffic Modeling Framework for Machine Type Communincation (Navid NiKaein, Markus Laner, Kajie Zhou, Philippe Svoboda, Dejan Drajic, Serjan Krco and Milica Popovic)
|
||
*/
|
||
|
||
g_otg->trans_proto[i][j][k] = TCP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
g_otg->pu_size_pkts[i][j][k]=1000;
|
||
g_otg->ed_size_pkts[i][j][k]=1000;
|
||
g_otg->idt_dist[i][j][k][PE_STATE] = UNIFORM;
|
||
g_otg->idt_min[i][j][k][PE_STATE] = 20;
|
||
g_otg->idt_max[i][j][k][PE_STATE] = 25;
|
||
|
||
if (i<nb_enb_local) { /*DL*/
|
||
g_otg->size_dist[i][j][k][PE_STATE] = FIXED;
|
||
g_otg->size_min[i][j][k][PE_STATE] = 1000;
|
||
g_otg->size_max[i][j][k][PE_STATE] = 1000;
|
||
LOG_I(OTG,"AUTO PILOT HIGH SPEEDS DL, src = %d, dst = %d, application type = %d\n", i, j, g_otg->application_type[i][j][k]);
|
||
} else { /*UL*/
|
||
g_otg->size_dist[j][i][k][PE_STATE] = UNIFORM;
|
||
g_otg->size_min[j][i][k][PE_STATE] = 64;
|
||
g_otg->size_max[j][i][k][PE_STATE] = 1000;
|
||
LOG_I(OTG,"AUTO PILOT HIGH SPEEDS UL, src = %d, dst = %d, application type = %d\n", i, j, g_otg->application_type[i][j][k]);
|
||
}
|
||
|
||
g_otg->prob_off_pu[i][j][k]=0.2;
|
||
g_otg->prob_off_ed[i][j][k]=0.3;
|
||
g_otg->prob_off_pe[i][j][k]=0;
|
||
g_otg->prob_pu_ed[i][j][k]=0.5;
|
||
g_otg->prob_pu_pe[i][j][k]=0;
|
||
g_otg->prob_ed_pu[i][j][k]=0;
|
||
g_otg->prob_ed_pe[i][j][k]=1;
|
||
g_otg->holding_time_off_pu[i][j][k]=20;
|
||
g_otg->holding_time_off_ed[i][j][k]=10;
|
||
g_otg->holding_time_pe_off[i][j][k]=1000;
|
||
g_otg->m2m[i][j][k]=1;
|
||
#ifdef STANDALONE
|
||
g_otg->dst_port[i][j] = 303;
|
||
g_otg->flow_duration[i][j] = 1000;
|
||
#endif
|
||
break;
|
||
|
||
case AUTO_PILOT_E :
|
||
/* Measurements from:
|
||
Traffic Modeling Framework for Machine Type Communincation (Navid NiKaein, Markus Laner, Kajie Zhou, Philippe Svoboda, Dejan Drajic, Serjan Krco and Milica Popovic)
|
||
*/
|
||
|
||
/* DL SCENARIO*/
|
||
g_otg->trans_proto[i][j][k] = TCP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
g_otg->pu_size_pkts[i][j][k]=1000;
|
||
g_otg->ed_size_pkts[i][j][k]=1000;
|
||
g_otg->idt_dist[i][j][k][PE_STATE] = UNIFORM;
|
||
g_otg->idt_min[i][j][k][PE_STATE] = 20;
|
||
g_otg->idt_max[i][j][k][PE_STATE] = 25;
|
||
|
||
if (i<nb_enb_local) { /*DL*/
|
||
g_otg->size_dist[i][j][k][PE_STATE] = FIXED;
|
||
g_otg->size_min[i][j][k][PE_STATE] = 1000;
|
||
g_otg->size_max[i][j][k][PE_STATE] = 1000;
|
||
LOG_I(OTG,"AUTO PILOT EMERGENCY DL, src = %d, dst = %d, application type = %d\n", i, j, g_otg->application_type[i][j][k]);
|
||
} else { /*UL*/
|
||
g_otg->size_dist[j][i][k][PE_STATE] = UNIFORM;
|
||
g_otg->size_min[j][i][k][PE_STATE] = 64;
|
||
g_otg->size_max[j][i][k][PE_STATE] = 1000;
|
||
LOG_I(OTG,"AUTO PILOT EMERGENCY UL, src = %d, dst = %d, application type = %d\n", i, j, g_otg->application_type[i][j][k]);
|
||
}
|
||
|
||
g_otg->prob_off_pu[i][j][k]=0.2;
|
||
g_otg->prob_off_ed[i][j][k]=0.3;
|
||
g_otg->prob_off_pe[i][j][k]=0;
|
||
g_otg->prob_pu_ed[i][j][k]=0.5;
|
||
g_otg->prob_pu_pe[i][j][k]=0;
|
||
g_otg->prob_ed_pu[i][j][k]=0;
|
||
g_otg->prob_ed_pe[i][j][k]=1;
|
||
g_otg->holding_time_off_pu[i][j][k]=10;
|
||
g_otg->holding_time_off_ed[i][j][k]=10;
|
||
g_otg->holding_time_pe_off[i][j][k]=1000;
|
||
g_otg->m2m[i][j][k]=1;
|
||
#ifdef STANDALONE
|
||
g_otg->dst_port[i][j] = 303;
|
||
g_otg->flow_duration[i][j] = 1000;
|
||
#endif
|
||
break;
|
||
|
||
case VIRTUAL_GAME_L :
|
||
/* Measurements from:
|
||
Traffic Modeling Framework for Machine Type Communincation (Navid NiKaein, Markus Laner, Kajie Zhou, Philippe Svoboda, Dejan Drajic, Serjan Krco and Milica Popovic)
|
||
*/
|
||
LOG_I(OTG,"VIRTUAL GAME LOW SPEEDS, src = %d, dst = %d, application type = %d\n", i, j, g_otg->application_type[i][j][k]);
|
||
g_otg->trans_proto[i][j][k] = TCP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
g_otg->pu_size_pkts[i][j][k]=1000;
|
||
g_otg->prob_off_pu[i][j][k]=1;
|
||
|
||
if (i<nb_enb_local)/*DL*/
|
||
g_otg->holding_time_off_pu[i][j][k]=1000;
|
||
else /*UL*/
|
||
g_otg->holding_time_off_pu[j][i][k]=500;
|
||
|
||
g_otg->m2m[i][j][k]=1;
|
||
#ifdef STANDALONE
|
||
g_otg->dst_port[i][j][k] = 302;
|
||
g_otg->flow_duration[i][j][k] = 1000;
|
||
#endif
|
||
break;
|
||
|
||
case VIRTUAL_GAME_M :
|
||
/* Measurements from:
|
||
Traffic Modeling Framework for Machine Type Communincation (Navid NiKaein, Markus Laner, Kajie Zhou, Philippe Svoboda, Dejan Drajic, Serjan Krco and Milica Popovic)
|
||
*/
|
||
LOG_I(OTG,"VIRTUAL GAME MEDIUM SPEEDS, src = %d, dst = %d, application type = %d\n", i, j, g_otg->application_type[i][j][k]);
|
||
/* DL SCENARIO*/
|
||
g_otg->trans_proto[i][j][k] = TCP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
g_otg->pu_size_pkts[i][j][k]=1000;
|
||
g_otg->prob_off_pu[i][j][k]=1;
|
||
|
||
if (i<nb_enb_local)/*DL*/
|
||
g_otg->holding_time_off_pu[i][j][k]=1000;
|
||
else /*UL*/
|
||
g_otg->holding_time_off_pu[j][i][k]=150;
|
||
|
||
g_otg->m2m[i][j][k]=1;
|
||
#ifdef STANDALONE
|
||
g_otg->dst_port[i][j] = 302;
|
||
g_otg->flow_duration[i][j] = 1000;
|
||
#endif
|
||
break;
|
||
|
||
case VIRTUAL_GAME_H :
|
||
/* Measurements from:
|
||
Traffic Modeling Framework for Machine Type Communincation (Navid NiKaein, Markus Laner, Kajie Zhou, Philippe Svoboda, Dejan Drajic, Serjan Krco and Milica Popovic)
|
||
*/
|
||
LOG_I(OTG,"VIRTUAL GAME HIGH SPEEDS, src = %d, dst = %d, application type = %d\n", i, j, g_otg->application_type[i][j][k]);
|
||
g_otg->trans_proto[i][j][k] = TCP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
g_otg->pu_size_pkts[i][j][k]=1000;
|
||
|
||
if (i<nb_enb_local)/*DL*/
|
||
g_otg->holding_time_off_pu[i][j][k]=1000;
|
||
else /*UL*/
|
||
g_otg->holding_time_off_pu[j][i][k]=100;
|
||
|
||
g_otg->m2m[i][j][k]=1;
|
||
#ifdef STANDALONE
|
||
g_otg->dst_port[i][j] = 302;
|
||
g_otg->flow_duration[i][j] = 1000;
|
||
#endif
|
||
break;
|
||
|
||
case VIRTUAL_GAME_F :
|
||
/* Measurements from:
|
||
Traffic Modeling Framework for Machine Type Communincation (Navid NiKaein, Markus Laner, Kajie Zhou, Philippe Svoboda, Dejan Drajic, Serjan Krco and Milica Popovic)
|
||
*/
|
||
LOG_I(OTG,"VIRTUAL GAME FINISH, src = %d, dst = %d, application type = %d\n", i, j, g_otg->application_type[i][j][k]);
|
||
/* DL SCENARIO*/
|
||
g_otg->trans_proto[i][j][k] = TCP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
g_otg->pu_size_pkts[i][j][k]=1000;
|
||
g_otg->prob_off_pu[i][j][k]=1;
|
||
|
||
if (i<nb_enb_local)/*DL*/
|
||
g_otg->holding_time_off_pu[i][j][k]=1000;
|
||
else /*UL*/
|
||
g_otg->holding_time_off_pu[j][i][k]=70;
|
||
|
||
g_otg->m2m[i][j][k]=1;
|
||
#ifdef STANDALONE
|
||
g_otg->dst_port[i][j] = 302;
|
||
g_otg->flow_duration[i][j] = 1000;
|
||
#endif
|
||
break;
|
||
|
||
case ALARM_HUMIDITY :
|
||
/* Measurements from:
|
||
* Traffic Modeling Framework for Machine Type Communincation (Navid NiKaein, Markus Laner, Kajie Zhou, Philippe Svoboda, Dejan Drajic, Serjan Krco and Milica Popovic)
|
||
*/
|
||
LOG_I(OTG,"ALARM HUMIDITY, src = %d, dst = %d, application type = %d\n", i, j, g_otg->application_type[i][j][k]);
|
||
g_otg->trans_proto[i][j][k] = TCP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
g_otg->pu_size_pkts[i][j][k]=1000;
|
||
g_otg->ed_size_pkts[i][j][k]=2000;
|
||
g_otg->prob_off_pu[i][j][k]=0.5;
|
||
g_otg->prob_off_ed[i][j][k]=0.5;
|
||
g_otg->prob_pu_ed[i][j][k]=0.5;
|
||
g_otg->holding_time_off_pu[i][j][k]=1680000; /* 28 minutes*/
|
||
g_otg->holding_time_off_ed[i][j][k]=32400000; /* 9 hours*/
|
||
g_otg->m2m[i][j][k]=1;
|
||
#ifdef STANDALONE
|
||
g_otg->dst_port[i][j] = 303;
|
||
g_otg->flow_duration[i][j] = 1000;
|
||
#endif
|
||
break;
|
||
|
||
case ALARM_SMOKE :
|
||
/* Measurements from:
|
||
Traffic Modeling Framework for Machine Type Communincation (Navid NiKaein, Markus Laner, Kajie Zhou, Philippe Svoboda, Dejan Drajic, Serjan Krco and Milica Popovic)
|
||
*/
|
||
LOG_I(OTG,"ALARM SMOKE, src = %d, dst = %d, application type = %d\n", i, j, g_otg->application_type[i][j][k]);
|
||
g_otg->trans_proto[i][j][k] = TCP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
g_otg->pu_size_pkts[i][j][k]=1000;
|
||
g_otg->ed_size_pkts[i][j][k]=2000;
|
||
g_otg->prob_off_pu[i][j][k]=0.5;
|
||
g_otg->prob_off_ed[i][j][k]=0.5;
|
||
g_otg->prob_pu_ed[i][j][k]=0.5;
|
||
g_otg->holding_time_off_pu[i][j][k]=60000; /* 1 minute*/
|
||
g_otg->holding_time_off_ed[i][j][k]=43200000; /* 12 hours*/
|
||
g_otg->m2m[i][j][k]=1;
|
||
#ifdef STANDALONE
|
||
g_otg->dst_port[i][j] = 303;
|
||
g_otg->flow_duration[i][j] = 1000;
|
||
#endif
|
||
break;
|
||
|
||
case ALARM_TEMPERATURE :
|
||
/* Measurements from:
|
||
* Traffic Modeling Framework for Machine Type Communincation (Navid NiKaein, Markus Laner, Kajie Zhou, Philippe Svoboda, Dejan Drajic, Serjan Krco and Milica Popovic)
|
||
*/
|
||
LOG_I(OTG,"ALARM TEMPERATURE, src = %d, dst = %d, application type = %d\n", i, j, g_otg->application_type[i][j][k]);
|
||
g_otg->trans_proto[i][j][k] = TCP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
g_otg->pu_size_pkts[i][j][k]=1000;
|
||
g_otg->ed_size_pkts[i][j][k]=4000;
|
||
g_otg->prob_off_pu[i][j][k]=0.5;
|
||
g_otg->prob_off_ed[i][j][k]=0.5;
|
||
g_otg->prob_pu_ed[i][j][k]=0.5;
|
||
g_otg->holding_time_off_pu[i][j][k]=1680000; /* 28 minute*/
|
||
g_otg->holding_time_off_ed[i][j][k]=18000000; /* 5 hours*/
|
||
g_otg->m2m[i][j][k]=1;
|
||
#ifdef STANDALONE
|
||
g_otg->dst_port[i][j]= 303;
|
||
g_otg->flow_duration[i][j] = 1000;
|
||
#endif
|
||
break;
|
||
|
||
case OPENARENA_DL :
|
||
case OPENARENA_UL :
|
||
g_otg->trans_proto[i][j][k] = TCP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
g_otg->idt_dist[i][j][k][PE_STATE] = FIXED;
|
||
g_otg->size_dist[i][j][k][PE_STATE] = FIXED;
|
||
g_otg->m2m[i][j][k]=1;
|
||
|
||
if (i<nb_enb_local) { /*DL*/
|
||
LOG_I(OTG,"OTG_CONFIG GAMING_OA_DL, src = %d, dst = %d, dist IDT = %d\n", i, j, g_otg->idt_dist[i][j][k][PE_STATE]);
|
||
g_otg->idt_min[i][j][k][PE_STATE] = 40;
|
||
g_otg->idt_max[i][j][k][PE_STATE] = 40;
|
||
g_otg->size_min[i][j][k][PE_STATE] = 140;
|
||
g_otg->size_max[i][j][k][PE_STATE] = 140;
|
||
} else { /*UL*/
|
||
LOG_I(OTG,"OTG_CONFIG GAMING_OA_UL, src = %d, dst = %d, dist IDT = %d\n", i, j, g_otg->idt_dist[i][j][k][PE_STATE]);
|
||
g_otg->idt_min[i][j][k][PE_STATE] = 11;
|
||
g_otg->idt_max[i][j][k][PE_STATE] = 11;
|
||
g_otg->size_min[i][j][k][PE_STATE] = 42;
|
||
g_otg->size_max[i][j][k][PE_STATE] = 42;
|
||
}
|
||
|
||
#ifdef STANDALONE
|
||
g_otg->dst_port[i][j] = 302;
|
||
g_otg->flow_duration[i][j] = 1000;
|
||
#endif
|
||
break;
|
||
|
||
case OPENARENA_DL_TARMA :
|
||
g_otg->trans_proto[i][j][k] = TCP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
g_otg->m2m[i][j][k]=1;
|
||
g_otg->idt_dist[i][j][k][PE_STATE] = FIXED;
|
||
g_otg->idt_min[i][j][k][PE_STATE] = 40;
|
||
g_otg->idt_max[i][j][k][PE_STATE] = 40;
|
||
g_otg->size_dist[i][j][k][PE_STATE] = TARMA;
|
||
/*the tarma initialization*/
|
||
otg_info->tarma_stream[i][j][k]=tarmaInitStream (0);
|
||
tarmaSetupOpenarenaDownlink(otg_info->tarma_stream[i][j][k]);
|
||
LOG_I(OTG,"OTG_CONFIG OPENARENA_DL_TARMA, src = %d, dst = %d, dist IDT = %d\n", i, j, g_otg->idt_dist[i][j][k][PE_STATE]);
|
||
break;
|
||
|
||
|
||
case VIDEO_VBR_10MBPS :
|
||
g_otg->trans_proto[i][j][k] = TCP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
g_otg->idt_dist[i][j][k][PE_STATE] = FIXED;
|
||
g_otg->idt_min[i][j][k][PE_STATE] = 40;
|
||
g_otg->idt_max[i][j][k][PE_STATE] = 40;
|
||
g_otg->size_dist[i][j][k][PE_STATE] = VIDEO;
|
||
/*the tarma initialization*/
|
||
otg_info->tarma_video[i][j][k]=tarmaInitVideo(0);
|
||
tarmaSetupVideoGop12(otg_info->tarma_video[i][j][k],1);
|
||
LOG_I(OTG,"OTG_CONFIG OPENARENA_DL_TARMA, src = %d, dst = %d, dist IDT = %d\n", i, j, g_otg->idt_dist[i][j][k][PE_STATE]);
|
||
break;
|
||
|
||
case VIDEO_VBR_4MBPS :
|
||
g_otg->trans_proto[i][j][k] = TCP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
g_otg->idt_dist[i][j][k][PE_STATE] = FIXED;
|
||
g_otg->idt_min[i][j][k][PE_STATE] = 40;
|
||
g_otg->idt_max[i][j][k][PE_STATE] = 40;
|
||
g_otg->size_dist[i][j][k][PE_STATE] = VIDEO;
|
||
/*the tarma initialization*/
|
||
otg_info->tarma_video[i][j][k]=tarmaInitVideo(0);
|
||
tarmaSetupVideoGop12(otg_info->tarma_video[i][j][k],2.5);
|
||
LOG_I(OTG,"OTG_CONFIG OPENARENA_DL_TARMA, src = %d, dst = %d, dist IDT = %d\n", i, j, g_otg->idt_dist[i][j][k][PE_STATE]);
|
||
break;
|
||
|
||
case VIDEO_VBR_2MBPS :
|
||
g_otg->trans_proto[i][j][k] = TCP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
g_otg->idt_dist[i][j][k][PE_STATE] = FIXED;
|
||
g_otg->idt_min[i][j][k][PE_STATE] = 40;
|
||
g_otg->idt_max[i][j][k][PE_STATE] = 40;
|
||
g_otg->size_dist[i][j][k][PE_STATE] = VIDEO;
|
||
/*the tarma initialization*/
|
||
otg_info->tarma_video[i][j][k]=tarmaInitVideo(0);
|
||
tarmaSetupVideoGop12(otg_info->tarma_video[i][j][k],5);
|
||
LOG_I(OTG,"OTG_CONFIG OPENARENA_DL_TARMA, src = %d, dst = %d, dist IDT = %d\n", i, j, g_otg->idt_dist[i][j][k][PE_STATE]);
|
||
break;
|
||
|
||
case VIDEO_VBR_768KBPS :
|
||
g_otg->trans_proto[i][j][k] = TCP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
g_otg->idt_dist[i][j][k][PE_STATE] = FIXED;
|
||
g_otg->idt_min[i][j][k][PE_STATE] = 40;
|
||
g_otg->idt_max[i][j][k][PE_STATE] = 40;
|
||
g_otg->size_dist[i][j][k][PE_STATE] = VIDEO;
|
||
/*the tarma initialization*/
|
||
otg_info->tarma_video[i][j][k]=tarmaInitVideo(0);
|
||
tarmaSetupVideoGop12(otg_info->tarma_video[i][j][k],13);
|
||
LOG_I(OTG,"OTG_CONFIG OPENARENA_DL_TARMA, src = %d, dst = %d, dist IDT = %d\n", i, j, g_otg->idt_dist[i][j][k][PE_STATE]);
|
||
break;
|
||
|
||
case VIDEO_VBR_384KBPS :
|
||
g_otg->trans_proto[i][j][k] = TCP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
g_otg->idt_dist[i][j][k][PE_STATE] = FIXED;
|
||
g_otg->idt_min[i][j][k][PE_STATE] = 40;
|
||
g_otg->idt_max[i][j][k][PE_STATE] = 40;
|
||
g_otg->size_dist[i][j][k][PE_STATE] = VIDEO;
|
||
/*the tarma initialization*/
|
||
otg_info->tarma_video[i][j][k]=tarmaInitVideo(0);
|
||
tarmaSetupVideoGop12(otg_info->tarma_video[i][j][k],26);
|
||
LOG_I(OTG,"OTG_CONFIG OPENARENA_DL_TARMA, src = %d, dst = %d, dist IDT = %d\n", i, j, g_otg->idt_dist[i][j][k][PE_STATE]);
|
||
break;
|
||
|
||
case VIDEO_VBR_192KBPS :
|
||
g_otg->trans_proto[i][j][k] = TCP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
g_otg->idt_dist[i][j][k][PE_STATE] = FIXED;
|
||
g_otg->idt_min[i][j][k][PE_STATE] = 40;
|
||
g_otg->idt_max[i][j][k][PE_STATE] = 40;
|
||
g_otg->size_dist[i][j][k][PE_STATE] = VIDEO;
|
||
/*the tarma initialization*/
|
||
otg_info->tarma_video[i][j][k]=tarmaInitVideo(0);
|
||
tarmaSetupVideoGop12(otg_info->tarma_video[i][j][k],52);
|
||
LOG_I(OTG,"OTG_CONFIG OPENARENA_DL_TARMA, src = %d, dst = %d, dist IDT = %d\n", i, j, g_otg->idt_dist[i][j][k][PE_STATE]);
|
||
break;
|
||
|
||
case BACKGROUND_USERS:
|
||
g_otg->trans_proto[i][j][k] = TCP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
g_otg->idt_dist[i][j][k][PE_STATE] = UNIFORM;
|
||
g_otg->idt_lambda[i][j][k][PE_STATE] = 1.0/40.0;
|
||
g_otg->idt_min[i][j][k][PE_STATE] = 40;
|
||
g_otg->idt_max[i][j][k][PE_STATE] = 80;
|
||
g_otg->size_dist[i][j][k][PE_STATE] = BACKGROUND_DIST;
|
||
/*the background initialization*/
|
||
// otg_info->background_stream[i][j][k]=backgroundStreamInit(0,2);
|
||
break;
|
||
|
||
case DUMMY :
|
||
g_otg->trans_proto[i][j][k] = TCP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
/*the tarma initialization*/
|
||
otg_info->tarma_video[i][j][k]=tarmaInitVideo(0);
|
||
g_otg->idt_dist[i][j][k][PE_STATE] = VIDEO;
|
||
g_otg->idt_min[i][j][k][PE_STATE] = 40;
|
||
g_otg->idt_max[i][j][k][PE_STATE] = 40;
|
||
g_otg->size_dist[i][j][k][PE_STATE] = VIDEO;
|
||
otg_info->tarma_video[i][j][k]->tarma_size.inputWeight[0]=1;
|
||
otg_info->tarma_video[i][j][k]->tarma_size.maWeight[0]=0.6;
|
||
otg_info->tarma_video[i][j][k]->tarma_size.maWeight[1]=-1.04;
|
||
otg_info->tarma_video[i][j][k]->tarma_size.maWeight[2]=0.44;
|
||
otg_info->tarma_video[i][j][k]->tarma_size.arWeight[0]=1;
|
||
otg_info->tarma_video[i][j][k]->tarma_size.arWeight[1]=-1.971;
|
||
otg_info->tarma_video[i][j][k]->tarma_size.arWeight[2]=0.971;
|
||
otg_info->tarma_video[i][j][k]->tarmaVideoGopStructure[0]=0;
|
||
otg_info->tarma_video[i][j][k]->tarmaVideoGopStructure[1]=2;
|
||
otg_info->tarma_video[i][j][k]->tarmaVideoGopStructure[2]=2;
|
||
otg_info->tarma_video[i][j][k]->tarmaVideoGopStructure[3]=1;
|
||
otg_info->tarma_video[i][j][k]->tarmaVideoGopStructure[4]=2;
|
||
otg_info->tarma_video[i][j][k]->tarmaVideoGopStructure[5]=2;
|
||
otg_info->tarma_video[i][j][k]->tarmaVideoGopStructure[6]=1;
|
||
otg_info->tarma_video[i][j][k]->tarmaVideoGopStructure[7]=2;
|
||
otg_info->tarma_video[i][j][k]->tarmaVideoGopStructure[8]=2;
|
||
otg_info->tarma_video[i][j][k]->tarmaVideoGopStructure[9]=1;
|
||
otg_info->tarma_video[i][j][k]->tarmaVideoGopStructure[10]=2;
|
||
otg_info->tarma_video[i][j][k]->tarmaVideoGopStructure[11]=2;
|
||
otg_info->tarma_video[i][j][k]->polyWeightFrame[0][0]=300;
|
||
otg_info->tarma_video[i][j][k]->polyWeightFrame[0][1]=30;
|
||
otg_info->tarma_video[i][j][k]->polyWeightFrame[1][0]=200;
|
||
otg_info->tarma_video[i][j][k]->polyWeightFrame[1][1]=20;
|
||
otg_info->tarma_video[i][j][k]->polyWeightFrame[2][0]=100;
|
||
otg_info->tarma_video[i][j][k]->polyWeightFrame[2][1]=10;
|
||
tarmaPrintVideoInit(otg_info->tarma_video[i][j][k]);
|
||
LOG_I(OTG,"OTG_CONFIG OPENARENA_DL_TARMA, src = %d, dst = %d, dist IDT = %d\n", i, j, g_otg->idt_dist[i][j][k][PE_STATE]);
|
||
break;
|
||
|
||
case VOIP_G711 : /*http://www.computerweekly.com/feature/VoIP-bandwidth-fundamentals */
|
||
/* Voice bit rate= 64 Kbps | Sample time= 20 msec | Voice payload=160 bytes */
|
||
g_otg->trans_proto[i][j][k] = UDP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
g_otg->idt_dist[i][j][k][SIMPLE_TALK] = FIXED;
|
||
LOG_I(OTG,"OTG_CONFIG VOIP G711, src = %d, dst = %d, dist IDT = %d\n", i, j, g_otg->idt_dist[i][j][k][SIMPLE_TALK]);
|
||
g_otg->idt_min[i][j][k][SIMPLE_TALK] = 20;
|
||
g_otg->idt_max[i][j][k][SIMPLE_TALK] = 20;
|
||
g_otg->size_dist[i][j][k][SIMPLE_TALK] = FIXED;
|
||
g_otg->size_min[i][j][k][SIMPLE_TALK] = 160;
|
||
g_otg->size_max[i][j][k][SIMPLE_TALK] = 160;
|
||
|
||
#ifdef STANDALONE
|
||
g_otg->dst_port[i][j] = 302;
|
||
g_otg->flow_duration[i][j] = 1000;
|
||
#endif
|
||
break;
|
||
|
||
case VOIP_G729 : /*http://www.computerweekly.com/feature/VoIP-bandwidth-fundamentals */
|
||
/* Voice bit rate= 8 Kbps | Sample time= 30 msec | Voice payload=30 bytes */
|
||
g_otg->trans_proto[i][j][k] = UDP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
g_otg->idt_dist[i][j][k][SIMPLE_TALK] = FIXED;
|
||
LOG_I(OTG,"OTG_CONFIG VOIP G729, src = %d, dst = %d, traffic id %d, dist IDT = %d\n", i, j, k, g_otg->idt_dist[i][j][k][SIMPLE_TALK]);
|
||
g_otg->idt_min[i][j][k][SIMPLE_TALK] = 30;
|
||
g_otg->idt_max[i][j][k][SIMPLE_TALK] = 30;
|
||
g_otg->size_dist[i][j][k][SIMPLE_TALK] = FIXED;
|
||
g_otg->size_min[i][j][k][SIMPLE_TALK] = 30;
|
||
g_otg->size_max[i][j][k][SIMPLE_TALK] = 30;
|
||
|
||
#ifdef STANDALONE
|
||
g_otg->dst_port[i][j] = 302;
|
||
g_otg->flow_duration[i][j] = 1000;
|
||
#endif
|
||
break;
|
||
|
||
case IQSIM_MANGO : /*Realistic measurements: Eurecom with iQsim Gateway*/
|
||
g_otg->trans_proto[i][j][k] = TCP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
g_otg->idt_dist[i][j][k][PE_STATE] = UNIFORM;
|
||
g_otg->idt_min[i][j][k][PE_STATE] = 5000;
|
||
g_otg->idt_max[i][j][k][PE_STATE] = 10000;
|
||
g_otg->size_dist[i][j][k][PE_STATE] = FIXED;
|
||
|
||
if (i<nb_enb_local) {
|
||
LOG_I(OTG,"IQSIM_MANGO [DL], src = %d, dst = %d, dist IDT = %d\n", i, j, g_otg->idt_dist[i][j][k][PE_STATE]);
|
||
g_otg->size_min[i][j][k][PE_STATE] = 141;
|
||
g_otg->size_max[i][j][k][PE_STATE] = 141;
|
||
} else {
|
||
LOG_I(OTG,"IQSIM_MANGO [UL], src = %d, dst = %d, dist IDT = %d\n", i, j, g_otg->idt_dist[i][j][k][PE_STATE]);
|
||
g_otg->size_min[i][j][k][PE_STATE] = 144;
|
||
g_otg->size_max[i][j][k][PE_STATE] = 144;
|
||
}
|
||
|
||
g_otg->m2m[i][j][k]=1;
|
||
|
||
#ifdef STANDALONE
|
||
g_otg->dst_port[i][j] = 302;
|
||
g_otg->flow_duration[i][j] = 1000;
|
||
#endif
|
||
|
||
break;
|
||
|
||
case IQSIM_NEWSTEO : /*Realistic measurements: Eurecom with iQsim Gateway*/
|
||
g_otg->trans_proto[i][j][k] = TCP;
|
||
g_otg->ip_v[i][j][k] = IPV4;
|
||
g_otg->idt_dist[i][j][k][PE_STATE] = UNIFORM;
|
||
g_otg->idt_min[i][j][k][PE_STATE] = 5000;
|
||
g_otg->idt_max[i][j][k][PE_STATE] = 10000;
|
||
g_otg->size_dist[i][j][k][PE_STATE] = FIXED;
|
||
|
||
if (i<nb_enb_local) { /*DL*/
|
||
LOG_I(OTG,"IQSIM_NEWSTEO [DL], src = %d, dst = %d, dist IDT = %d\n", i, j, g_otg->idt_dist[i][j][k][PE_STATE]);
|
||
g_otg->size_min[i][j][k][PE_STATE] = 467;
|
||
g_otg->size_max[i][j][k][PE_STATE] = 467;
|
||
} else { /*UL*/
|
||
LOG_I(OTG,"IQSIM_NEWSTEO [UL], src = %d, dst = %d, dist IDT = %d\n", i, j, g_otg->idt_dist[i][j][k][PE_STATE]);
|
||
g_otg->size_min[i][j][k][PE_STATE] = 251;
|
||
g_otg->size_max[i][j][k][PE_STATE] = 251;
|
||
}
|
||
|
||
g_otg->m2m[i][j][k]=1;
|
||
|
||
#ifdef STANDALONE
|
||
g_otg->dst_port[i][j] = 302;
|
||
g_otg->flow_duration[i][j] = 1000;
|
||
#endif
|
||
|
||
break;
|
||
|
||
case FULL_BUFFER:
|
||
LOG_E(OTG, "Full buffer is not yet supported\n");
|
||
default:
|
||
LOG_D(OTG, "[SRC %d][DST %d] Unknown traffic type\n", i, j);
|
||
/* TO ADD: 3GPP TSG-RAN WG1 Meeting #71: Low-cost MTC Traffic Models and Characteristics */
|
||
|
||
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
|
||
|
||
int background_gen(
|
||
const int src_instance,
|
||
const int dst_instance,
|
||
const int ctime)
|
||
{
|
||
|
||
int ptime_background;
|
||
|
||
if (src_instance<NB_eNB_INST) // DL case
|
||
ptime_background=otg_info->ptime_background_dl;
|
||
else //UL case
|
||
ptime_background=otg_info->ptime_background_ul;
|
||
|
||
|
||
/*check if it is time to transmit the background traffic
|
||
- we have different distributions for packet size and idt for the UL and DL */
|
||
if ((((ctime-ptime_background) >= otg_info->idt_background[src_instance][dst_instance])) ||
|
||
(otg_info->idt_background[src_instance][dst_instance]==0)) {
|
||
|
||
LOG_D(OTG,"[SRC %d][DST %d] BACKGROUND :: OK (idt=%d, ctime=%d,ptime=%d ) !!\n",
|
||
src_instance,
|
||
dst_instance,
|
||
otg_info->idt_background[src_instance][dst_instance],
|
||
ctime, ptime_background);
|
||
otg_info->size_background[src_instance][dst_instance]=adjust_size(
|
||
ceil(backgroundCalculateSize(otg_info->background_stream[src_instance][dst_instance][0],
|
||
ctime,
|
||
otg_info->idt_background[src_instance][dst_instance])));
|
||
|
||
if (src_instance<NB_eNB_INST) { // DL case
|
||
otg_info->idt_background[src_instance][dst_instance]= exponential_dist(0.025);
|
||
otg_info->ptime_background_dl=ctime;
|
||
} else { //UL case
|
||
otg_info->idt_background[src_instance][dst_instance]= uniform_dist(500,1000);
|
||
otg_info->ptime_background_ul=ctime;
|
||
}
|
||
|
||
/*
|
||
// Distinguish between the UL and DL case
|
||
if (src_instance<NB_eNB_INST) // DL case
|
||
otg_info->size_background[src_instance][dst_instance]=ceil(lognormal_dist(5.46,0.85)); //lognormal distribution for DL background packet
|
||
else //UL case
|
||
otg_info->size_background[src_instance][dst_instance]=ceil(lognormal_dist(3.03,0.5)); //lognormal distribution for DL background packet
|
||
|
||
// adjust the packet size if needed
|
||
if (otg_info->size_background[src_instance][dst_instance]>1400)
|
||
otg_info->size_background[src_instance][dst_instance]=1400;
|
||
if (otg_info->size_background[src_instance][dst_instance]<=10)
|
||
otg_info->size_background[src_instance][dst_instance]=10;
|
||
|
||
|
||
// Compute the corresponding IDT
|
||
|
||
// Eq. (7) from "Users in Cells: a Data Traffic Analysis (Markus Laner, Philipp Svoboda, Stefan Schwarz, and Markus Rupp)" - Measured traffic consists of a mixture of many different types (e.g., web, video streaming, file download), gives an intuition for the encountered heavy-tails of. Most sessions are short with low data-volume, consisting of small downloads (e.g., e-mail, TCP-acknowledges), whereas some few sessions last very long and require high throughput (e.g., VoIP, video streaming, file-download).
|
||
|
||
otg_info->idt_background[src_instance][dst_instance]=ceil(((otg_info->size_background[src_instance][dst_instance])*8000)/pow(10, lognormal_dist(1.3525, 0.1954)));
|
||
//if(otg_info->idt_background[src_instance][dst_instance]==0)
|
||
//otg_info->idt_background[src_instance][dst_instance]=10;
|
||
otg_info->ptime_background=ctime;
|
||
*/
|
||
LOG_D(OTG,"[BACKGROUND] TRAFFIC:: (src=%d, dst=%d) pkts size=%d idt=%d \n",
|
||
src_instance,
|
||
dst_instance,
|
||
otg_info->size_background[src_instance][dst_instance],
|
||
otg_info->idt_background[src_instance][dst_instance]);
|
||
|
||
return 1;
|
||
} else {
|
||
LOG_D(OTG,"[SRC %d][DST %d] [BACKGROUND] TRAFFIC:: not the time to transmit= (idt=%d, ctime=%d,ptime=%d ) size= %d \n",
|
||
src_instance,
|
||
dst_instance,
|
||
otg_info->idt_background[src_instance][dst_instance],
|
||
ctime, ptime_background,
|
||
otg_info->size_background[src_instance][dst_instance]);
|
||
return 0;
|
||
}
|
||
|
||
}
|
||
|
||
|
||
|
||
int header_size_gen_background(
|
||
const int src_instance,
|
||
const int dst_instance)
|
||
{
|
||
int size_header=0;
|
||
|
||
if (otg_info->header_size_background[src_instance][dst_instance]==0) {
|
||
|
||
if(g_otg->trans_proto_background[src_instance][dst_instance]==0)
|
||
g_otg->trans_proto_background[src_instance][dst_instance]= rand() % (TCP_IPV6 - UDP_IPV4 + 1) + UDP_IPV4;
|
||
|
||
switch (g_otg->trans_proto_background[src_instance][dst_instance]) {
|
||
case UDP_IPV4:
|
||
size_header=HDR_IP_v4_MIN + HDR_UDP;
|
||
break;
|
||
|
||
case UDP_IPV6:
|
||
size_header=HDR_IP_v6 + HDR_UDP;
|
||
break;
|
||
|
||
case TCP_IPV4:
|
||
size_header=HDR_IP_v4_MIN + HDR_TCP;
|
||
break;
|
||
|
||
case TCP_IPV6:
|
||
size_header=HDR_IP_v6 + HDR_TCP;
|
||
break;
|
||
|
||
default :
|
||
size_header=HDR_IP_v6 + HDR_TCP;
|
||
break;
|
||
}
|
||
|
||
otg_info->header_size_background[src_instance][dst_instance]=size_header;
|
||
}
|
||
|
||
LOG_D(OTG," [SRC %d][DST %d] BACKGROUND TRAFFIC:: size header %d \n", src_instance, dst_instance, otg_info->header_size_background[src_instance][dst_instance]);
|
||
return otg_info->header_size_background[src_instance][dst_instance];
|
||
}
|
||
|
||
|
||
|
||
void state_management(
|
||
const int src_instance,
|
||
const int dst_instance,
|
||
const int application,
|
||
const int ctime)
|
||
{
|
||
|
||
if ((g_otg->holding_time_off_pu[src_instance][dst_instance][application]==0) &&
|
||
(g_otg->holding_time_off_ed[src_instance][dst_instance][application]==0) &&
|
||
(g_otg->holding_time_off_pe[src_instance][dst_instance][application]==0))
|
||
otg_info->state[src_instance][dst_instance][application]=PE_STATE;
|
||
else {
|
||
|
||
if (otg_info->state_transition_prob[src_instance][dst_instance][application]==0) {
|
||
otg_info->state_transition_prob[src_instance][dst_instance][application]=uniform_dist(0,1);
|
||
otg_info->state[src_instance][dst_instance][application]=OFF_STATE;
|
||
LOG_D(OTG,"[%d][%d][Appli id %d] STATE:: OFF INIT \n", src_instance, dst_instance, application);
|
||
otg_info->start_holding_time_off[src_instance][dst_instance][application]=0/*ctime*/;
|
||
}
|
||
|
||
//LOG_D(OTG,"[%d][[%d] HOLDING_TIMES OFF_PE: %d, OFF_PU: %d, OFF_ED %d, PE_OFF: %d \n", src_instance, dst_instance, g_otg->holding_time_off_pe[src_instance][dst_instance], g_otg->holding_time_off_pu[src_instance][dst_instance],g_otg->holding_time_off_ed[src_instance][dst_instance], g_otg->holding_time_pe_off[src_instance][dst_instance] );
|
||
|
||
switch (otg_info->state[src_instance][dst_instance][application]) {
|
||
|
||
case OFF_STATE:
|
||
|
||
if (ctime>otg_info->start_holding_time_off[src_instance][dst_instance][application]) {
|
||
otg_info->c_holding_time_off[src_instance][dst_instance][application]= ctime - otg_info->start_holding_time_off[src_instance][dst_instance][application];
|
||
LOG_D(OTG,"[%d][%d][Appli id %d][Agg Level=%d] STATE:: OFF Holding Time %d (%d, %d)\n", src_instance, dst_instance,application , g_otg->aggregation_level[src_instance][dst_instance][application],
|
||
otg_info->c_holding_time_off[src_instance][dst_instance][application], ctime, otg_info->start_holding_time_off[src_instance][dst_instance][application]);
|
||
}
|
||
|
||
if ( ((otg_info->state_transition_prob[src_instance][dst_instance][application]>= 1-(g_otg->prob_off_pu[src_instance][dst_instance][application]
|
||
+g_otg->prob_off_ed[src_instance][dst_instance][application]+g_otg->prob_off_pe[src_instance][dst_instance][application]))
|
||
&& (otg_info->state_transition_prob[src_instance][dst_instance][application]<1-(g_otg->prob_off_ed[src_instance][dst_instance][application]
|
||
+g_otg->prob_off_pe[src_instance][dst_instance][application])))
|
||
&& (otg_info->c_holding_time_off[src_instance][dst_instance][application]>=g_otg->holding_time_off_pu[src_instance][dst_instance][application])) {
|
||
otg_info->state[src_instance][dst_instance][application]=PU_STATE;
|
||
LOG_I(OTG,"[%d][%d][Appli id %d][Agg Level=%d] NEW STATE:: OFF-->PU %d (ctime %d, start %d )\n", src_instance, dst_instance,application,
|
||
g_otg->aggregation_level[src_instance][dst_instance][application], otg_info->c_holding_time_off[src_instance][dst_instance][application], ctime,
|
||
otg_info->start_holding_time_off[src_instance][dst_instance][application]);
|
||
otg_info->state_transition_prob[src_instance][dst_instance][application]=uniform_dist(0,1);
|
||
|
||
} else if ( ((otg_info->state_transition_prob[src_instance][dst_instance][application]>= 1-(g_otg->prob_off_ed[src_instance][dst_instance][application]
|
||
+g_otg->prob_off_pe[src_instance][dst_instance][application]))
|
||
&& (otg_info->state_transition_prob[src_instance][dst_instance][application]< 1-g_otg->prob_off_pe[src_instance][dst_instance][application]))
|
||
&& (otg_info->c_holding_time_off[src_instance][dst_instance][application]>=g_otg->holding_time_off_ed[src_instance][dst_instance][application])) {
|
||
otg_info->state[src_instance][dst_instance][application]=ED_STATE;
|
||
LOG_D(OTG,"[%d][%d][Appli id %d][Agg Level=%d] NEW STATE:: OFF-->ED \n", src_instance, dst_instance,application, g_otg->aggregation_level[src_instance][dst_instance][application]);
|
||
otg_info->state_transition_prob[src_instance][dst_instance][application]=uniform_dist(0,1);
|
||
}
|
||
|
||
else if (((otg_info->state_transition_prob[src_instance][dst_instance][application]>=1-g_otg->prob_off_pe[src_instance][dst_instance][application])
|
||
&& (otg_info->state_transition_prob[src_instance][dst_instance][application]<=1))
|
||
&& (otg_info->c_holding_time_off[src_instance][dst_instance]>=g_otg->holding_time_off_pe[src_instance][dst_instance])) {
|
||
otg_info->state[src_instance][dst_instance][application]=PE_STATE;
|
||
LOG_I(OTG,"[%d][%d][Appli id %d][Agg Level=%d] NEW STATE:: OFF-->PE \n", src_instance, dst_instance,application, g_otg->aggregation_level[src_instance][dst_instance]);
|
||
otg_info->state_transition_prob[src_instance][dst_instance][application]=uniform_dist(0,1);
|
||
|
||
} else {
|
||
otg_info->c_holding_time_off[src_instance][dst_instance][application]= ctime - otg_info->start_holding_time_off[src_instance][dst_instance][application];
|
||
otg_info->state_transition_prob[src_instance][dst_instance][application]=uniform_dist(0,1);
|
||
LOG_D(OTG,"[%d][%d][Appli id %d][Agg Level=%d] STATE:: OFF\n", src_instance, dst_instance,application, g_otg->aggregation_level[src_instance][dst_instance][application]);
|
||
}
|
||
|
||
break;
|
||
|
||
case PU_STATE:
|
||
if (otg_info->state_transition_prob[src_instance][dst_instance][application]<=1-(g_otg->prob_pu_ed[src_instance][dst_instance][application]
|
||
+g_otg->prob_pu_pe[src_instance][dst_instance][application])) {
|
||
//otg_info->state[src_instance][dst_instance]=OFF_STATE;
|
||
otg_info->state[src_instance][dst_instance][application]=OFF_STATE;
|
||
otg_info->start_holding_time_off[src_instance][dst_instance][application]=ctime;
|
||
otg_info->c_holding_time_off[src_instance][dst_instance][application]=0;
|
||
LOG_D(OTG,"[%d][%d][Appli id %d][Agg Level=%d] NEW STATE:: PU-->OFF \n", src_instance, dst_instance,application, g_otg->aggregation_level[src_instance][dst_instance][application]);
|
||
otg_info->state_transition_prob[src_instance][dst_instance][application]=uniform_dist(0,1);
|
||
} else if ((otg_info->state_transition_prob[src_instance][dst_instance][application]<=1-g_otg->prob_pu_pe[src_instance][dst_instance][application])
|
||
&& (otg_info->state_transition_prob[src_instance][dst_instance][application]>1-(g_otg->prob_pu_ed[src_instance][dst_instance][application]
|
||
+g_otg->prob_pu_pe[src_instance][dst_instance][application]))) {
|
||
//otg_info->state[src_instance][dst_instance]=ON_STATE;
|
||
otg_info->state[src_instance][dst_instance][application]=ED_STATE;
|
||
LOG_I(OTG,"[%d][%d][Appli id %d][Agg Level=%d] NEW STATE:: PU-->ED \n", src_instance, dst_instance,application, g_otg->aggregation_level[src_instance][dst_instance][application]);
|
||
otg_info->state_transition_prob[src_instance][dst_instance][application]=uniform_dist(0,1);
|
||
} else { /*if (otg_info->state_transition_prob[src_instance][dst_instance]>=g_otg->prob_pu_ed)*/
|
||
//otg_info->state[src_instance][dst_instance]=ON_STATE;
|
||
otg_info->state[src_instance][dst_instance][application]=PE_STATE;
|
||
otg_info->start_holding_time_pe_off[src_instance][dst_instance][application]=ctime;
|
||
LOG_D(OTG,"[%d][%d][Appli id %d][Agg Level=%d] NEW STATE:: PU-->PE \n", src_instance, dst_instance,application, g_otg->aggregation_level[src_instance][dst_instance][application]);
|
||
otg_info->state_transition_prob[src_instance][dst_instance][application]=uniform_dist(0,1);
|
||
}
|
||
|
||
break;
|
||
|
||
case ED_STATE:
|
||
if (otg_info->state_transition_prob[src_instance][dst_instance][application]<1-(g_otg->prob_ed_pu[src_instance][dst_instance][application] +
|
||
g_otg->prob_ed_pe[src_instance][dst_instance][application])) {
|
||
//otg_info->state[src_instance][dst_instance]=OFF_STATE;
|
||
otg_info->state[src_instance][dst_instance][application]=OFF_STATE;
|
||
otg_info->start_holding_time_off[src_instance][dst_instance][application]=ctime;
|
||
otg_info->c_holding_time_off[src_instance][dst_instance][application]=0;
|
||
LOG_D(OTG,"[%d][%d][Appli id %d][Agg Level=%d] NEW STATE:: ED-->OFF \n", src_instance, dst_instance,application, g_otg->aggregation_level[src_instance][dst_instance][application]);
|
||
otg_info->state_transition_prob[src_instance][dst_instance][application]=uniform_dist(0,1);
|
||
} else if ((otg_info->state_transition_prob[src_instance][dst_instance][application]>=1-(g_otg->prob_ed_pu[src_instance][dst_instance][application] +
|
||
g_otg->prob_ed_pe[src_instance][dst_instance][application] ))
|
||
&& (otg_info->state_transition_prob[src_instance][dst_instance][application]<1-g_otg->prob_ed_pe[src_instance][dst_instance][application])) {
|
||
//otg_info->state[src_instance][dst_instance]=ON_STATE;
|
||
otg_info->state[src_instance][dst_instance][application]=PE_STATE;
|
||
LOG_D(OTG,"[%d][%d][Appli id %d][Agg Level=%d] NEW STATE:: ED-->PU \n", src_instance, dst_instance,application, g_otg->aggregation_level[src_instance][dst_instance][application]);
|
||
otg_info->state_transition_prob[src_instance][dst_instance][application]=uniform_dist(0,1);
|
||
} else { /*if ((otg_info->state_transition_prob[src_instance][dst_instance]>=1-g_otg->prob_ed_pe)&&(otg_info->state_transition_prob[src_instance][dst_instance]<=1)) */
|
||
//otg_info->state[src_instance][dst_instance]=ON_STATE;
|
||
otg_info->state[src_instance][dst_instance][application]=PE_STATE;
|
||
otg_info->start_holding_time_pe_off[src_instance][dst_instance][application]=ctime;
|
||
LOG_D(OTG,"[%d][%d][Appli id %d][Agg Level=%d] NEW STATE:: ED-->PE \n", src_instance, dst_instance,application, g_otg->aggregation_level[src_instance][dst_instance][application]);
|
||
otg_info->state_transition_prob[src_instance][dst_instance][application]=uniform_dist(0,1);
|
||
}
|
||
|
||
break;
|
||
|
||
case PE_STATE:
|
||
if (g_otg->holding_time_pe_off[src_instance][dst_instance][application]<=otg_info->c_holding_time_pe_off[src_instance][dst_instance][application]) {
|
||
//otg_info->state[src_instance][dst_instance]=OFF_STATE;
|
||
otg_info->state[src_instance][dst_instance][application]=OFF_STATE;
|
||
LOG_D(OTG,"[%d][%d][Appli id %d][Agg Level=%d] NEW STATE:: PE->OFF\n", src_instance, dst_instance,application, g_otg->aggregation_level[src_instance][dst_instance][application]);
|
||
otg_info->c_holding_time_pe_off[src_instance][dst_instance][application]=0;
|
||
otg_info->state_transition_prob[src_instance][dst_instance][application]=uniform_dist(0,1);
|
||
otg_info->start_holding_time_off[src_instance][dst_instance][application]=ctime;
|
||
otg_info->c_holding_time_off[src_instance][dst_instance][application]=0;
|
||
} else { /* if (g_otg->holding_time_pe_off>otg_info->c_holding_time_pe_off[src_instance][dst_instance])*/
|
||
if (ctime>otg_info->start_holding_time_pe_off[src_instance][dst_instance][application])
|
||
otg_info->c_holding_time_pe_off[src_instance][dst_instance][application]=ctime-otg_info->start_holding_time_pe_off[src_instance][dst_instance][application];
|
||
|
||
LOG_D(OTG,"[%d][%d][Appli id %d] STATE:: PE \n", src_instance, dst_instance,application);
|
||
}
|
||
|
||
break;
|
||
|
||
default:
|
||
LOG_W(OTG,"Unknown state(%d) \n", otg_info->state[src_instance][dst_instance][application]);
|
||
otg_info->state[src_instance][dst_instance][application]= OFF_STATE; // switch to default state
|
||
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
|
||
|
||
|
||
|
||
void voip_traffic(
|
||
const int src_instance,
|
||
const int dst_instance,
|
||
const int application,
|
||
const int ctime)
|
||
{
|
||
|
||
/*****************************************************************************************************
|
||
RECOMMANDATION UIT-T P.59 (VOIX CONVERSATIONNELLE ARTIFICIELLE)
|
||
Tst = − 0, 854 ln (1 − x1 ) //Tst (duration of single word)
|
||
Tdt = − 0, 226 ln (1 − x2 ) //Tdt (duration of double-talk)
|
||
Tms = − 0, 456 ln (1 − x3 ) //Tms (length of mutual silence)
|
||
|
||
0 < x1, x2, x3 < 1: Random variables with uniform distribution
|
||
*****************************************************************************************************/
|
||
|
||
if (otg_info->silence_time[src_instance][dst_instance][application]==0) {
|
||
//otg_info->voip_transition_prob[src_instance][dst_instance][application]=uniform_dist(0,1);
|
||
otg_info->voip_state[src_instance][dst_instance][application]=SILENCE;
|
||
LOG_I(OTG,"[%d][%d][Appli id %d] STATE:: SILENCE INIT \n", src_instance, dst_instance, application);
|
||
otg_info->start_voip_silence[src_instance][dst_instance][application]=ctime /*ctime*/;
|
||
otg_info->c_holding_time_talk[src_instance][dst_instance][application]=0;
|
||
otg_info->c_holding_time_silence[src_instance][dst_instance][application]=0;
|
||
otg_info->silence_time[src_instance][dst_instance][application]=ceil((-0.854*log(1-(uniform_dist(0,1))))*1000) + ceil((-0.226*log(1-(uniform_dist(0,1))))*1000);
|
||
otg_info->simple_talk_time[src_instance][dst_instance][application]=ceil((-0.356*log(1-(uniform_dist(0,1))))*1000) ;
|
||
|
||
}
|
||
|
||
|
||
switch (otg_info->voip_state[src_instance][dst_instance][application]) {
|
||
|
||
case SILENCE:
|
||
|
||
if (ctime>otg_info->start_voip_silence[src_instance][dst_instance][application]) {
|
||
if (ctime>otg_info->start_voip_silence[src_instance][dst_instance][application])
|
||
otg_info->c_holding_time_silence[src_instance][dst_instance][application]= ctime - otg_info->start_voip_silence[src_instance][dst_instance][application];
|
||
|
||
LOG_D(OTG,"[%d][%d][Appli id %d] VOIP STATE:: SILENCE %d (ctime=%d, start=%d)\n", src_instance, dst_instance,application,
|
||
otg_info->c_holding_time_silence[src_instance][dst_instance][application], ctime, otg_info->start_voip_silence[src_instance][dst_instance][application]);
|
||
}
|
||
|
||
if (otg_info->c_holding_time_silence[src_instance][dst_instance][application]>=otg_info->silence_time[src_instance][dst_instance][application]) {
|
||
otg_info->voip_state[src_instance][dst_instance][application]=SIMPLE_TALK;
|
||
LOG_I(OTG,"[%d][%d][Appli id %d] NEW VOIP STATE :: SILENCE-->TALK %d (ctime=%d, start=%d )\n", src_instance, dst_instance,application ,
|
||
otg_info->c_holding_time_silence[src_instance][dst_instance][application], ctime, otg_info->start_voip_silence[src_instance][dst_instance][application]);
|
||
otg_info->start_voip_talk[src_instance][dst_instance][application]=ctime;
|
||
otg_info->c_holding_time_talk[src_instance][dst_instance][application]=0;
|
||
otg_info->simple_talk_time[src_instance][dst_instance][application]=ceil((-0.854*log(1-(uniform_dist(0,1))))*1000);
|
||
} else {
|
||
if (ctime>otg_info->start_voip_silence[src_instance][dst_instance][application])
|
||
otg_info->c_holding_time_silence[src_instance][dst_instance][application]= ctime - otg_info->start_voip_silence[src_instance][dst_instance][application];
|
||
|
||
LOG_I(OTG,"[%d][%d][Appli id %d] STATE:: SILENCE [timer:%d] \n", src_instance, dst_instance,application, otg_info->c_holding_time_silence[src_instance][dst_instance][application]);
|
||
}
|
||
|
||
break;
|
||
|
||
case SIMPLE_TALK:
|
||
if (otg_info->c_holding_time_talk[src_instance][dst_instance][application]>=otg_info->simple_talk_time[src_instance][dst_instance][application]) {
|
||
otg_info->voip_state[src_instance][dst_instance][application]=SILENCE;
|
||
LOG_I(OTG,"[%d][%d][Appli id %d] NEW VOIP STATE:: TALK-->SILENCE %d (ctime=%d, start=%d )\n", src_instance, dst_instance,application ,
|
||
otg_info->c_holding_time_talk[src_instance][dst_instance][application], ctime, otg_info->start_voip_talk[src_instance][dst_instance][application]);
|
||
otg_info->start_voip_silence[src_instance][dst_instance][application]=ctime;
|
||
otg_info->c_holding_time_silence[src_instance][dst_instance][application]=0;
|
||
otg_info->silence_time[src_instance][dst_instance][application]=ceil((-0.456*log(1-(uniform_dist(0,1))))*1000)+ceil((-0.226*log(1-(uniform_dist(0,1))))*1000);
|
||
} else {
|
||
if (ctime>otg_info->start_voip_talk[src_instance][dst_instance][application])
|
||
otg_info->c_holding_time_talk[src_instance][dst_instance][application]= ctime - otg_info->start_voip_talk[src_instance][dst_instance][application];
|
||
|
||
LOG_I(OTG,"[%d][%d][Appli id %d] VOIP STATE:: TALK [timer:%d]\n", src_instance, dst_instance,application, otg_info->c_holding_time_talk[src_instance][dst_instance][application]);
|
||
LOG_I(OTG, "test_talk [ctime %d] [start talk %d] [%d] \n",ctime, otg_info->start_voip_talk[src_instance][dst_instance][application],
|
||
otg_info->c_holding_time_talk[src_instance][dst_instance][application] );
|
||
}
|
||
|
||
break;
|
||
|
||
default:
|
||
LOG_W(OTG,"Unknown VOIP state(%d) \n", otg_info->voip_state[src_instance][dst_instance][application]);
|
||
otg_info->voip_state[src_instance][dst_instance][application]= SILENCE; // switch to default state
|
||
|
||
break;
|
||
}
|
||
|
||
|
||
}
|
||
|
||
|