Adobe 65029121 Administration Guide - Page 80

Unsupported operations, Con DiffServ in the Server.xml file

Page 80 highlights

FLASH MEDIA SERVER 4.5 CONFIGURATION AND ADMINISTRATION 76 Configuring the server For IPv6, Linux provides no standard way to set the Differentiated Services field (which has been renamed TCLASS field).If Flash Media Server has IPv6 enabled and clients connect using an IPv6 address, setting bits on IPv6 clients does not result in an error. However bits are not set. Note: Although bits are not set, the server reports in the logs that bits were set successfully. Unsupported operations The following operations are not supported: • Setting bits between an edge server and an origin server. The connections made between an edge server and an origin server are not "normal" connections. These connections are identified as "group" or "virtual". To determine the connection type, call the Administration API getNetStreamStats() command and look at the client_type property. Trying to set DiffServ bits on these connections results in the following error message in the core log file, "Setting Diff Serv bits is not supported for group, service or virtual connections". • Setting the ECN bits of a Differentiated Services field. For example, if you try to set DiffServ bits to 50 with mask 255, the bits set are 48 with the following warning in the AuthMessage log file, "ECN part of diffserv will not get set for diffserv bits 50 and mask 255". Configure DiffServ in the Server.xml file Use the DiffServ and DiffServMask elements in the Server.xml configuration file to set DiffServ bits for all sockets that connect to the RTMP listener. Bits are set for all sockets, including tunneling and HTTP proxy sockets. All the outgoing packets on a socket are set, including the packets from the server that are exchanged during handshaking. The following example sets DiffServ to 128 which sets the top 3 bits to 4. It sets the DiffServMask to 224 which turns on the top 3 bits. 1 Open the rootinstall/conf/Server.xml file in a text editor. 2 Edit the Root/Server/ResourceLimits/Protocol/RTMP/DiffServ element: 128 3 Edit the Root/Server/ResourceLimits/Protocol/RTMP/DiffServMask element: 224 4 Save and validate the file. 5 Restart the server. Note: The server doesn't log whether the bits are set successfully or not. To verify that the bits are set, use the getNetStreamStats() Administration API. Configuring DiffServ in an Authorization plug-in Use the F_CLIENT_DIFFSERV_BITS field and the F_CLIENT_DIFFSERV_MASK field of the Authorization plug-in to set Differentiated Services fields.The sample Authorization plug-in shipped with Flash Media Server has got the header file updated.The following example sets the bits in the Authorization plug-in: Last updated 11/28/2012

  • 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
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257

76
FLASH
MEDIA
SERVER
4.5
CONFIGURATION
AND
ADMINISTRATION
Configuring the server
Last updated 11/28/2012
For IPv6, Linux provides no standard way to set the Differentiated Services field (which has been renamed TCLASS
field).If Flash Media Server has IPv6 enabled and clients connect using an IPv6 address, setting bits on IPv6 clients
does not result in an error. However bits are not set.
Note:
Although bits are not set, the server reports in the logs that bits were set successfully.
Unsupported operations
The following operations are not supported:
Setting bits between an edge server and an origin server.
The connections made between an edge server and an origin server are not “normal” connections. These
connections are identified as “group” or “virtual”. To determine the connection type, call the Administration API
getNetStreamStats()
command and look at the
client_type
property. Trying to set DiffServ bits on these
connections results in the following error message in the core log file, “Setting Diff Serv bits is not supported for
group, service or virtual connections”.
Setting the ECN bits of a Differentiated Services field.
For example, if you try to set DiffServ bits to 50 with mask 255, the bits set are 48 with the following warning in the
AuthMessage log file, “ECN part of diffserv will not get set for diffserv bits 50 and mask 255”.
Configure DiffServ in the Server.xml file
Use the
DiffServ
and
DiffServMask
elements in the Server.xml configuration file to set DiffServ bits for all sockets
that connect to the RTMP listener. Bits are set for all sockets, including tunneling and HTTP proxy sockets. All the
outgoing packets on a socket are set, including the packets from the server that are exchanged during handshaking.
The following example sets
DiffServ
to 128 which sets the top 3 bits to 4. It sets the
DiffServMask
to 224 which turns
on the top 3 bits.
1
Open the
rootinstall
/conf/Server.xml file in a text editor.
2
Edit the
Root/Server/ResourceLimits/Protocol/RTMP/DiffServ
element:
<DiffServ>128</DiffServ>
3
Edit the
Root/Server/ResourceLimits/Protocol/RTMP/DiffServMask
element:
<DiffServMask>224</DiffServMask>
4
Save and validate the file.
5
Restart the server.
Note:
The server doesn’t log whether the bits are set successfully or not. To verify that the bits are set, use the
getNetStreamStats()
Administration API.
Configuring DiffServ in an Authorization plug-in
Use the F_CLIENT_DIFFSERV_BITS field and the F_CLIENT_DIFFSERV_MASK field of the Authorization plug-in
to set Differentiated Services fields.The sample Authorization plug-in shipped with Flash Media Server has got the
header file updated.The following example sets the bits in the Authorization plug-in: