|
1 # |
|
2 # Copyright (c) 2005-2009 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: |
|
15 # USE-CASE-3: Mobile IP session with dropped packets |
|
16 # NOT UP-TO-DATE |
|
17 # Setup a Mobile IP session. Configure NISTNET to drop 15% of packets |
|
18 # on the channel. |
|
19 # |
|
20 |
|
21 ####################################################################################### |
|
22 # |
|
23 # Create an MT on the PDSN and the MN |
|
24 # |
|
25 ####################################################################################### |
|
26 runcmd svcid=4 methodid=3 CHANNEL_TYPE=1 CHANNEL_ADDR=localhost CHANNEL_PORT=4000 AIR_OUTADDR=192.168.10.11 AIR_OUTPORT=5000 AIR_INPORT=5000 DATALINKCONFIG=1 FILTERCONFIG=1 |
|
27 runcmd svcid=5 methodid=3 CHANNEL_TYPE=1 CHANNEL_ADDR=localhost CHANNEL_PORT=4000 AIR_OUTADDR=10.22.1.4 AIR_OUTPORT=5000 AIR_INPORT=5000 DATALINKCONFIG=1 FILTERCONFIG=1 |
|
28 |
|
29 |
|
30 ####################################################################################### |
|
31 # |
|
32 # Create a PPP session on the MN and PDSN |
|
33 # |
|
34 ####################################################################################### |
|
35 runcmd svcid=11 methodid=3 MADDR=localhost MPORT=4000 CONFIG="defaultroute noauth 192.168.100.10:192.168.100.20 debug logfile ./ppp.log nodetach" |
|
36 runcmd svcid=8 methodid=3 MADDR=localhost MPORT=4000 CONFIG="noauth 192.168.100.20:192.168.100.10 debug logfile ./ppp.log nodetach" |
|
37 |
|
38 |
|
39 ####################################################################################### |
|
40 # |
|
41 # The PPP session should now be setup. Use this wait to verify that the PPP session is |
|
42 # up and working as expected. |
|
43 # |
|
44 ####################################################################################### |
|
45 runcmd svcid=10 methodid=1 PERIOD=4000 |
|
46 |
|
47 |
|
48 ####################################################################################### |
|
49 # |
|
50 # Start the home agent and the foreign agent running, wait a bit, then start the mobile |
|
51 # node. We then give some time for the channel to setup a connection before we drop the |
|
52 # QoS of the channel |
|
53 # |
|
54 ####################################################################################### |
|
55 runcmd svcid=1 methodid=3 |
|
56 runcmd svcid=2 methodid=3 |
|
57 runcmd svcid=10 methodid=1 PERIOD=2000 |
|
58 runcmd svcid=3 methodid=3 |
|
59 runcmd svcid=10 methodid=1 PERIOD=2000 |
|
60 |
|
61 |
|
62 ####################################################################################### |
|
63 # |
|
64 # Configure NISTNET to drop udp echo packets from the mn to the target server |
|
65 # |
|
66 ####################################################################################### |
|
67 #runcmd svcid=6 methodid=2 SRC=10.22.1.4:5000.udp DST=192.168.10.11:5000.udp DROPI=15 |
|
68 |
|
69 |
|
70 ####################################################################################### |
|
71 # |
|
72 # Verify that a mobile IP connection is done and play |
|
73 # |
|
74 ####################################################################################### |
|
75 rendezvous |
|
76 rendezvous |
|
77 |
|
78 |
|
79 ####################################################################################### |
|
80 # |
|
81 # Configure NISTNET to drop udp echo packets from the mn to the target server |
|
82 # |
|
83 ####################################################################################### |
|
84 runcmd svcid=6 methodid=2 SRC=10.22.1.4:5000.udp DST=192.168.10.11:5000.udp DROPI=0 |
|
85 |
|
86 |
|
87 ####################################################################################### |
|
88 # |
|
89 # Stop the MA, FA, HA |
|
90 # |
|
91 ####################################################################################### |
|
92 runcmd svcid=3 methodid=4 |
|
93 runcmd svcid=1 methodid=4 |
|
94 runcmd svcid=2 methodid=4 |
|
95 |
|
96 |
|
97 ####################################################################################### |
|
98 # |
|
99 # Cleanup the PPP session (MN and PDSN) (hardcode session ID as zero) retrieving all the logs |
|
100 # |
|
101 ####################################################################################### |
|
102 runcmd svcid=11 methodid=4 SID=0 |
|
103 runcmd svcid=10 methodid=1 PERIOD=1000 |
|
104 runcmd svcid=11 methodid=6 SID=0 |
|
105 |
|
106 runcmd svcid=8 methodid=4 SID=0 |
|
107 runcmd svcid=10 methodid=1 PERIOD=1000 |
|
108 runcmd svcid=8 methodid=6 SID=0 |
|
109 |
|
110 |
|
111 |
|
112 ####################################################################################### |
|
113 # |
|
114 # Cleanup mobster -- retrieving the logs (MN and PDSN) |
|
115 # |
|
116 ####################################################################################### |
|
117 runcmd svcid=4 methodid=6 DEVICEID=0 |
|
118 runcmd svcid=10 methodid=1 PERIOD=1000 |
|
119 runcmd svcid=4 methodid=7 DEVICEID=0 |
|
120 |
|
121 runcmd svcid=5 methodid=6 DEVICEID=0 |
|
122 runcmd svcid=10 methodid=1 PERIOD=1000 |
|
123 runcmd svcid=5 methodid=7 DEVICEID=0 |
|
124 |
|
125 |
|
126 ####################################################################################### |
|
127 # |
|
128 # We should be back to our original state now -- quit |
|
129 # |
|
130 ####################################################################################### |
|
131 rendezvous |
|
132 |
|
133 |
|
134 |
|
135 |
|
136 |