Statistics
| Branch: | Revision:

napa-baselibs / monl / ids.h @ d1e0f2ca

History | View | Annotate | Download (3.58 KB)

1 956892f0 ArpadBakay
/***************************************************************************
2
 *   Copyright (C) 2009 by Robert Birke
3
 *   robert.birke@polito.it
4
 *
5
 * This library is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU Lesser General Public
7
 * License as published by the Free Software Foundation; either
8
 * version 2.1 of the License, or (at your option) any later version.
9

10
 * This library is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
 * Lesser General Public License for more details.
14

15
 * You should have received a copy of the GNU Lesser General Public
16
 * License along with this library; if not, write to the Free Software
17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA 
18
 ***********************************************************************/
19
20
#ifndef _IDS_H_
21
#define _IDS_H_
22
23
/* Measures IDs */
24
/* Add new Measure Ids here */
25
26
enum eMeasureId {
27
        EXAMPLE=0,
28
        HOPCOUNT,
29
        BYTE,
30
        COUNTER,
31
        BULK_TRANSFER,
32
        RTT,
33
        SEQWIN,
34
        LOSS,
35
        LOSS_BURST,
36
        CLOCKDRIFT,
37
        CORRECTED_DELAY,
38
        CAPACITY_CAPPROBE,
39
        AVAILABLE_BW_FORECASTER,
40
        GENERIC,
41
        LAST_ID //do not remove, must be last
42
};
43
44
/* Result IDs */
45
/* Add new Result Ids here */
46
enum eResultIdBoth {
47
        R_SEQNUM = 0,
48
        R_SIZE,
49
        R_SEND_TIME,
50
        R_REPLY_TIME,
51
        R_RECEIVE_TIME,
52
        R_RTT,
53
        R_SEQWIN,
54
        R_LOSS,
55
        R_LOSS_BURST,
56
        R_CLOCKDRIFT,
57
        R_CORRECTED_DELAY,
58
        R_CAPACITY_CAPPROBE,
59
        R_THROUGHPUT,
60
        R_AVAILABLE_BW_FORECASTER,
61
        R_LAST //do not remove, must be last
62
};
63
64
65
enum eResultIdPkt { /* Result availbale only at PKT level */
66
        R_INITIAL_PKT = R_LAST - 1, //do not remove
67
        R_INITIAL_TTL,
68
        R_TTL,
69
        R_HOPCOUNT,
70
        R_DATA_ID,
71
        R_DATA_OFFSET,
72
        R_LAST_PKT //do not remove, must be last
73
};
74
75
enum eResultIdData { /* Result availbale only at DATA level */
76
        R_INITIAL_DATA = R_LAST - 1, //do not remove
77
        R_LAST_DATA //do not remove, must be last
78
};
79
80
/* Control Messages IDS */
81
enum eControlId {
82
        REMOTEMEASURERESPONSE=0,
83
        INITREMOTEMEASURE,
84
        DEINITREMOTEMEASURE,
85
        OOBDATA,
86
        REMOTERESULTS
87
};
88
89
/* Statistical types */
90
enum stat_types {
91
        LAST = 0,
92
        AVG,
93
        WIN_AVG,
94
        VAR,
95
        WIN_VAR,
96
        MIN,
97
        WIN_MIN,
98
        MAX,
99
        WIN_MAX,
100
        SUM,
101
        WIN_SUM,
102
        RATE,
103
        LAST_STAT_TYPE
104
};
105
106
/* Default parameter ids */
107
enum eDefaultParam {
108
        P_WINDOW_SIZE = 0,
109
        P_PUBLISHING_PKT_TIME_BASED,
110
        P_PUBLISHING_RATE,
111
        P_PUBLISHING_TIME_SPREAD,
112
        P_PUBLISHING_NEW_ALL,
113
        P_INIT_NAN_ZERO,
114
        P_DEBUG_FILE,
115
        P_OOB_FREQUENCY,
116
        P_LAST_DEFAULT_PARAM
117
};
118
119
/* 
120
 * Plugin Parameters 
121
 */
122
/* SeqWin Plugin */
123
#define P_SEQN_WIN_SIZE P_LAST_DEFAULT_PARAM
124
#define P_SEQN_WIN_OVERFLOW_TH P_LAST_DEFAULT_PARAM+1
125
/* end Seqwin */
126
127
/* ClockDrift Plugin */
128
#define P_CLOCKDRIFT_ALGORITHM P_LAST_DEFAULT_PARAM
129
#define P_CLOCKDRIFT_PKT_TH P_LAST_DEFAULT_PARAM+1
130
#define P_CLOCKDRIFT_WIN_SIZE P_LAST_DEFAULT_PARAM+2
131
/* end ClockDrift */
132
133
/* Forecaster */
134
#define P_CAPPROBE_RATE P_LAST_DEFAULT_PARAM
135
#define P_CAPPROBE_PKT_TH P_LAST_DEFAULT_PARAM+1
136
#define P_CAPPROBE_DELAY_TH P_LAST_DEFAULT_PARAM+2
137
#define P_CAPPROBE_IPD_TH P_LAST_DEFAULT_PARAM+3
138
#define P_CAPPROBE_HEADER_SIZE P_LAST_DEFAULT_PARAM+4
139
#define P_CAPPROBE_PAYLOAD_SIZE P_LAST_DEFAULT_PARAM+5
140
#define P_CAPPROBE_FILTER P_LAST_DEFAULT_PARAM+6
141
#define P_CAPPROBE_NUM_INTERVALS P_LAST_DEFAULT_PARAM+7
142
/* end forecaster */
143
144
/* Forecaster */
145
#define P_FORECASTER_RATE P_LAST_DEFAULT_PARAM
146
#define P_FORECASTER_PKT_TH P_LAST_DEFAULT_PARAM+1
147
#define P_FORECASTER_DELAY_TH P_LAST_DEFAULT_PARAM+2
148
#define P_FORECASTER_PAYLOAD_SIZE P_LAST_DEFAULT_PARAM+3
149
#define P_FORECASTER_RELATIVE P_LAST_DEFAULT_PARAM+4
150
/* end forecaster */
151
152
#endif /* _IDS_HH_ */