summaryrefslogtreecommitdiff
path: root/TAO/tests/RTCORBA/Diffserv/README
blob: 245664fbf74901b0f8a03113c261af902f03c059 (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
$Id$

This is a unit test for setting DiffServ Codepoint both in the
requests sent and the replies received. It also illustrates how a
Custom Network Priority Mapping can be plugged in.

Scenario:
--------

Testing the setting of dscp in the requests sent
-------------------------------------------------

Server creates a POA and registers a servant with it.  Client obtains
the object reference. It sets the desired corba and native
priority. Client then performs several invocations on the object
during which it sets and unsets diffserv codepoint at the ORB, THREAD
and OBJECT levels.

Testing the setting of dscp in the replies sent
-------------------------------------------------

Server creates a POA and enables network priority through the POA
policy. This ensures that all replies sent from the POA have the dscp
set. It registers a servant with this POA. Client obtains the object
reference. Client then performs several invocations on the object.

To run (on Unix):
-----------------

$ ./server -ORBdebuglevel 1 -p 20000
$ ./client -ORBdebuglevel 1 -n 10 -p 10000 -k file://simple_servant.ior
$ ./client -ORBdebuglevel 1 -n 10 -p 10000 -k file://diffserv_servant.ior

Both client executions set diffserv codepoints on outbound
packets. When the client invokes on the diffserv_servant, reply
packets also have diffserv codepoints set on them.

NOTE: The iterations have to be >=6 in order to test set/unset at the
ORB, THREAD and OBJECT levels.