otg_kpi.h 3.28 KB
 Cedric Roux committed Jun 25, 2013 1 ``````/******************************************************************************* `````` nikaeinn committed Jul 22, 2014 2 3 `````` OpenAirInterface Copyright(c) 1999 - 2014 Eurecom `````` Cedric Roux committed Jun 25, 2013 4 `````` `````` nikaeinn committed Jul 22, 2014 5 6 7 8 `````` OpenAirInterface is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. `````` Cedric Roux committed Jun 25, 2013 9 10 `````` `````` nikaeinn committed Jul 22, 2014 11 12 13 14 `````` OpenAirInterface is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. `````` Cedric Roux committed Jun 25, 2013 15 `````` `````` nikaeinn committed Jul 22, 2014 16 17 18 19 `````` You should have received a copy of the GNU General Public License along with OpenAirInterface.The full GNU General Public License is included in this distribution in the file called "COPYING". If not, see . `````` Cedric Roux committed Jun 25, 2013 20 21 `````` Contact Information `````` nikaeinn committed Jul 22, 2014 22 23 24 25 `````` OpenAirInterface Admin: openair_admin@eurecom.fr OpenAirInterface Tech : openair_tech@eurecom.fr OpenAirInterface Dev : openair4g-devel@eurecom.fr `````` ghaddab committed Aug 14, 2014 26 `````` Address : Eurecom, Campus SophiaTech, 450 Route des Chappes, CS 50193 - 06904 Biot Sophia Antipolis cedex, FRANCE `````` Cedric Roux committed Jun 25, 2013 27 28 29 30 `````` *******************************************************************************/ /*! \file otg_kpi.h functions to compute OTG KPIs `````` gauthier committed Apr 09, 2015 31 ``````* \brief desribe function for KPIs computation `````` nikaeinn committed Jul 22, 2014 32 ``````* \author navid nikaein and A. Hafsaoui `````` Cedric Roux committed Jun 25, 2013 33 34 35 ``````* \date 2012 * \version 0.1 * \company Eurecom `````` nikaeinn committed Jul 22, 2014 36 ``````* \email: navid.nikaein@eurecom.fr `````` Cedric Roux committed Jun 25, 2013 37 38 39 40 41 42 ``````* \note * \warning */ #ifndef __OTG_KPI_H__ `````` gauthier committed Apr 09, 2015 43 ``````# define __OTG_KPI_H__ `````` Cedric Roux committed Jun 25, 2013 44 45 46 47 48 49 50 51 `````` #include #include #include "otg.h" #include "otg_externs.h" // not needed, you should compute kpi from the pkt header `````` winckel committed Oct 22, 2013 52 53 54 55 56 ``````extern unsigned int start_log_latency; extern unsigned int start_log_latency_bg; extern unsigned int start_log_GP; extern unsigned int start_log_GP_bg; extern unsigned int start_log_jitter; `````` Cedric Roux committed Jun 25, 2013 57 58 59 60 61 `````` /*! \fn void tx_throughput( int src, int dst, int application) * \brief compute the transmitter throughput in bytes per seconds * \param[in] Source, destination, application * \param[out] `````` gauthier committed Apr 09, 2015 62 ``````* \note `````` Cedric Roux committed Jun 25, 2013 63 64 65 66 67 68 ``````* @ingroup _otg */ void tx_throughput( int src, int dst, int application); /*! \fn void rx_goodput( int src, int dst) * \brief compute the receiver goodput in bytes per seconds `````` gauthier committed Apr 09, 2015 69 70 71 ``````* \param[in] Source, destination, application * \param[out] * \note `````` Cedric Roux committed Jun 25, 2013 72 73 74 75 ``````* @ingroup _otg */ void rx_goodput( int src, int dst,int application); `````` gauthier committed Apr 09, 2015 76 `````` `````` Cedric Roux committed Jun 25, 2013 77 78 79 ``````/*void rx_loss_rate_pkts(int src, int dst, int application) * \brief compute the loss rate in bytes at the server bytes * \param[in] Source, destination, application `````` gauthier committed Apr 09, 2015 80 81 ``````* \param[out] * \note `````` Cedric Roux committed Jun 25, 2013 82 83 84 85 86 87 88 ``````* @ingroup _otg */ void rx_loss_rate_pkts(int src, int dst, int application); /*void rx_loss_rate_bytes(int src, int dst, int application) * \brief compute the loss rate in pkts at the server bytes * \param[in] Source, destination, application `````` gauthier committed Apr 09, 2015 89 90 ``````* \param[out] * \note `````` Cedric Roux committed Jun 25, 2013 91 92 93 94 95 ``````* @ingroup _otg */ void rx_loss_rate_bytes(int src, int dst, int application); /*void kpi_gen(void) `````` gauthier committed Apr 09, 2015 96 97 98 99 ``````* \brief compute KPIs after the end of the simulation * \param[in] * \param[out] * \note `````` Cedric Roux committed Jun 25, 2013 100 101 102 103 104 105 106 107 ``````* @ingroup _otg */ void kpi_gen(void); void add_log_metric(int src, int dst, int ctime, double metric, unsigned int label); void add_log_label(unsigned int label, unsigned int * start_log_metric); `````` Cedric Roux committed Nov 14, 2013 108 ``````void otg_kpi_nb_loss_pkts(void); `````` Cedric Roux committed Jun 25, 2013 109 `````` `````` nikaeinn committed Dec 20, 2014 110 ``````void average_total_jitter(void); `````` Cedric Roux committed Jun 25, 2013 111 ``#endif``
{"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.878911018371582, "perplexity": 23286.482855010243}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2020-05/segments/1579251672537.90/warc/CC-MAIN-20200125131641-20200125160641-00300.warc.gz"}