aboutsummaryrefslogtreecommitdiffstats
path: root/commons/traffic-profile-guidelines.rst
blob: 0b965b1568619f359eff0b9bbf83ffaa960b0fe2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
================================
OPNFV traffic profile guidelines
================================

.. contents::

.. _introduction:

------------
Introduction
------------

In order to have consistent testing profiles, it has been suggested to define and store traffic profiles.
These profiles shall be based on operator representative scenario. 

These reference profiles may be used by any test projects, unitary, functional or performance tests. 
It is possible to adapt them to specific testcases. 
It is recommended to use them in order to avoid getting as many profiles as tests. 
It should be helpful to compare the results of test scenario.

.. _howto:

-------------------------
How to use these profiles
-------------------------

The directory of the traffic profiles may be described as follow::

 ├── commons
   ├── ims
   │   └── readme.rst
   ├── mobile
   │   └── readme.rst
   └── traffic-profile-guidelines.rst

the readme.rst details the profile.


.. _overview:

------------------------
Traffic profile overview
------------------------

The current profiles are available:
 * Mobile traffic
 * IMS residential traffic
 * ...

Mobile traffic
==============

IMS residential traffic
=======================





.. _reference:

---------
reference
---------
ss="cp">#define POLL_TIMEOUT (450*HZ/1000) /* Must never exceed 500 ms */ #define FINAL_TIMEOUT (500*HZ/1000) /* Must never exceed 500 ms */ /* * Normally twice of p-timer. Note 3, IrLAP 6.3.11.2 - p. 60 suggests * at least twice duration of the P-timer. */ #define WD_TIMEOUT (POLL_TIMEOUT*2) #define MEDIABUSY_TIMEOUT (500*HZ/1000) /* 500 msec */ #define SMALLBUSY_TIMEOUT (100*HZ/1000) /* 100 msec - IrLAP 6.13.4 */ /* * Slot timer must never exceed 85 ms, and must always be at least 25 ms, * suggested to 75-85 msec by IrDA lite. This doesn't work with a lot of * devices, and other stackes uses a lot more, so it's best we do it as well * (Note : this is the default value and sysctl overides it - Jean II) */ #define SLOT_TIMEOUT (90*HZ/1000) /* * The latest discovery frame (XID) is longer due to the extra discovery * information (hints, device name...). This is its extra length. * We use that when setting the query timeout. Jean II */ #define XIDEXTRA_TIMEOUT (34*HZ/1000) /* 34 msec */ #define WATCHDOG_TIMEOUT (20*HZ) /* 20 sec */ typedef void (*TIMER_CALLBACK)(void *); static inline void irda_start_timer(struct timer_list *ptimer, int timeout, void* data, TIMER_CALLBACK callback) { ptimer->function = (void (*)(unsigned long)) callback; ptimer->data = (unsigned long) data; /* Set new value for timer (update or add timer). * We use mod_timer() because it's more efficient and also * safer with respect to race conditions - Jean II */ mod_timer(ptimer, jiffies + timeout); } void irlap_start_slot_timer(struct irlap_cb *self, int timeout); void irlap_start_query_timer(struct irlap_cb *self, int S, int s); void irlap_start_final_timer(struct irlap_cb *self, int timeout); void irlap_start_wd_timer(struct irlap_cb *self, int timeout); void irlap_start_backoff_timer(struct irlap_cb *self, int timeout); void irlap_start_mbusy_timer(struct irlap_cb *self, int timeout); void irlap_stop_mbusy_timer(struct irlap_cb *); void irlmp_start_watchdog_timer(struct lsap_cb *, int timeout); void irlmp_start_discovery_timer(struct irlmp_cb *, int timeout); void irlmp_start_idle_timer(struct lap_cb *, int timeout); void irlmp_stop_idle_timer(struct lap_cb *self); #endif