
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: