|
1 /* |
|
2 * Copyright (c) 2006-2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Mcc Internal definitions |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef MCCRATEADAPTATIONDEF_H |
|
22 #define MCCRATEADAPTATIONDEF_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <utf.h> |
|
26 #include <e32debug.h> |
|
27 #include "rtpdef.h" |
|
28 |
|
29 // CONSTANTS |
|
30 const TInt KRoundTripTimeLimit = 4000; |
|
31 |
|
32 const TReal KAdaptation = 0.2; //rate control |
|
33 const TReal KAdaptationMore = 0.3; //rate control |
|
34 |
|
35 const TInt KMccShortTermCalculation = 5; |
|
36 const TInt KMccLongTermCalculation = 15; |
|
37 |
|
38 #define RATECONTROL |
|
39 //#define FRAMERATECONTROL //enables framerate change in RateControl |
|
40 #ifdef FRAMERATECONTROL |
|
41 const TInt KIPULFrameRate10Limit = 50000; |
|
42 const TInt KIPULFrameRate5Limit = 32000; |
|
43 #endif //FRAMERATECONTROL |
|
44 |
|
45 // rate control thresholds |
|
46 class TThresholdValues |
|
47 { |
|
48 public: |
|
49 TInt iFractionLostHigh; |
|
50 TInt iFractionLostLow; |
|
51 TInt iBufferCountHigh; |
|
52 TInt iBufferCountLow; |
|
53 TInt iBandwidthHigh; |
|
54 TInt iBandwidthLow; |
|
55 }; |
|
56 |
|
57 const TInt KMccFirstIcmpError = 1; |
|
58 |
|
59 // Cisco IOS default for ICMP report generation is once per 500ms. Threshold |
|
60 // parameters are adjusted according to that default because better statistics |
|
61 // is not available. Rate-limits for ICMP generation varies according to |
|
62 // the vendor and media errors cannot be detected too reliably by observing |
|
63 // ICMPs. |
|
64 const TInt KMccIcmpErrorThreshold = 9; |
|
65 const TInt64 KMccIcmpErrorTimeWindow= 10000000; // 10 seconds |
|
66 |
|
67 // DATA TYPES |
|
68 |
|
69 #endif |