0
|
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-2: Standard MIP session.
|
|
16 |
# UP-TO-DATE
|
|
17 |
# (1) Setup a PPP session between the MN and the PDSN. The PDSN will attach the session
|
|
18 |
# to the 192.168.220.x network, which does NOT have appropriate routes setup
|
|
19 |
# throughout the inter-network.
|
|
20 |
# (2) Start the home and foreign agents.
|
|
21 |
# (3) Start the mobile agent and wait for it to establish a MIP session.
|
|
22 |
# (4) Wait for a signal to bring things down.
|
|
23 |
# (5) Bring everything down. The PPP session will be brought down as in use-case 1.
|
|
24 |
#
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
#######################################################################################
|
|
29 |
#
|
|
30 |
# MOBSTER: Create an MT on the MN and the PDSN and link them to each other. Packetise
|
|
31 |
# PPP frames before sending them over the network.
|
|
32 |
#
|
|
33 |
#######################################################################################
|
|
34 |
runcmd svcid=5 svchost="penmn" methodid=3 DATALINKCONFIG=2 FILTERCONFIG=0
|
|
35 |
assign mt0=RESULT
|
|
36 |
runcmd svcid=5 svchost="penpdsn" methodid=3 DATALINKCONFIG=2 FILTERCONFIG=0
|
|
37 |
assign mt1=RESULT
|
|
38 |
runcmd svcid=9 svchost="localhost" methodid=1 PERIOD=2000
|
|
39 |
|
|
40 |
runcmd svcid=5 svchost="penmn" methodid=4 DEVICEID=mt0
|
|
41 |
assign local_uu_port0=AIR_INPORT
|
|
42 |
runcmd svcid=5 svchost="penpdsn" methodid=4 DEVICEID=mt1
|
|
43 |
assign local_uu_port1=AIR_INPORT
|
|
44 |
runcmd svcid=5 svchost="penmn" methodid=10 DEVICEID=mt0 REMOTE_ADDRESS="192.169.10.11" REMOTE_PORT=local_uu_port1
|
|
45 |
check RESULT=0
|
|
46 |
runcmd svcid=5 svchost="penpdsn" methodid=10 DEVICEID=mt1 REMOTE_ADDRESS="10.22.1.6" REMOTE_PORT=local_uu_port0
|
|
47 |
check RESULT=0
|
|
48 |
|
|
49 |
|
|
50 |
#######################################################################################
|
|
51 |
#
|
|
52 |
# PPP: Create a session on each machine using the new MTs. The PDSN session will
|
|
53 |
# specify the IP addresses which the other side will accept.
|
|
54 |
#
|
|
55 |
#######################################################################################
|
|
56 |
runcmd svcid=7 svchost="penmn" methodid=31 MADDR="localhost" MPORT=7000 MTID=mt0 CONFIG="defaultroute noauth debug nodetach"
|
|
57 |
assign sid0=RESULT
|
|
58 |
runcmd svcid=7 svchost="penpdsn" methodid=31 MADDR="localhost" MPORT=7000 MTID=mt1 CONFIG="defaultroute noauth 192.168.211.20:192.168.211.10 debug nodetach"
|
|
59 |
assign sid1=RESULT
|
|
60 |
|
|
61 |
|
|
62 |
#######################################################################################
|
|
63 |
#
|
|
64 |
# PPP: Wait for the session to become established
|
|
65 |
#
|
|
66 |
#######################################################################################
|
|
67 |
runcmd svcid=7 svchost="penmn" methodid=7 SID=sid0
|
|
68 |
waitfor SESSION_STATUS=2
|
|
69 |
check RESULT=0
|
|
70 |
runcmd svcid=7 svchost="penpdsn" methodid=7 SID=sid1
|
|
71 |
waitfor SESSION_STATUS=2
|
|
72 |
check RESULT=0
|
|
73 |
|
|
74 |
|
|
75 |
#######################################################################################
|
|
76 |
#
|
|
77 |
# PPP: Retrieve the interface of the PDSN ppp session
|
|
78 |
#
|
|
79 |
#######################################################################################
|
|
80 |
runcmd svcid=7 svchost="penpdsn" methodid=7 SID=sid1
|
|
81 |
assign pdsn_ppp_interface0=SESSION_INTERFACE_NAME
|
|
82 |
|
|
83 |
|
|
84 |
#######################################################################################
|
|
85 |
#
|
|
86 |
# HOME/FOREIGN AGENT: Create a HA/FA session and start the agent
|
|
87 |
#
|
|
88 |
#######################################################################################
|
|
89 |
runcmd svcid=2 svchost="penha" methodid=31
|
|
90 |
assign ha0=RESULT
|
|
91 |
runcmd svcid=2 svchost="penha" methodid=3 AGENTID=ha0
|
|
92 |
check RESULT=0
|
|
93 |
runcmd svcid=2 svchost="penha" methodid=9 AGENTID=ha0
|
|
94 |
assign home_agent_address0=STATUS_HOME_AGENT_ADDRESS
|
|
95 |
assign home_address0=VIRTUAL_NETWORK_ADDRESS_0
|
|
96 |
check RESULT=0
|
|
97 |
|
|
98 |
runcmd svcid=3 svchost="penpdsn" methodid=31
|
|
99 |
assign fa0=RESULT
|
|
100 |
runcmd svcid=3 svchost="penpdsn" methodid=3 AGENTID=fa0 INTERFACE=pdsn_ppp_interface0 SOLICITATIONMODE=0
|
|
101 |
check RESULT=0
|
|
102 |
|
|
103 |
|
|
104 |
#######################################################################################
|
|
105 |
#
|
|
106 |
# MOBILE NODE AGENT: Create a mip session - set the home address - start the agent
|
|
107 |
#
|
|
108 |
#######################################################################################
|
|
109 |
runcmd svcid=4 svchost="penmn" methodid=31
|
|
110 |
assign mn0=RESULT
|
|
111 |
runcmd svcid=4 svchost="penmn" methodid=23 AGENTID=mn0 HOME_ADDRESS=home_address0 HOME_ADDRESS_PREFIX=24 HOME_AGENT_ADDRESS=home_agent_address0 INTERFACE=pdsn_ppp_interface0
|
|
112 |
check RESULT=0
|
|
113 |
runcmd svcid=4 svchost="penmn" methodid=3 AGENTID=mn0
|
|
114 |
check RESULT=0
|
|
115 |
|
|
116 |
|
|
117 |
#######################################################################################
|
|
118 |
#
|
|
119 |
# CONNECTION ESTABLISHED: Now do what you want with the connection
|
|
120 |
#
|
|
121 |
#######################################################################################
|
|
122 |
signal
|
|
123 |
waitforsignal
|
|
124 |
|
|
125 |
|
|
126 |
#######################################################################################
|
|
127 |
#
|
|
128 |
# MOBILE NODE AGENT: Stop the agent and cleanup the session
|
|
129 |
#
|
|
130 |
#######################################################################################
|
|
131 |
runcmd svcid=4 svchost="penmn" methodid=4 AGENTID=mn0
|
|
132 |
check RESULT=0
|
|
133 |
runcmd svcid=4 svchost="penmn" methodid=32 AGENTID=mn0
|
|
134 |
check RESULT=0
|
|
135 |
|
|
136 |
|
|
137 |
#######################################################################################
|
|
138 |
#
|
|
139 |
# HOME/FOREIGN AGENT: Stop the agent and cleanup the session
|
|
140 |
#
|
|
141 |
#######################################################################################
|
|
142 |
runcmd svcid=2 svchost="penha" methodid=4 AGENTID=ha0
|
|
143 |
check RESULT=0
|
|
144 |
runcmd svcid=2 svchost="penha" methodid=32 AGENTID=ha0
|
|
145 |
check RESULT=0
|
|
146 |
|
|
147 |
runcmd svcid=3 svchost="penpdsn" methodid=4 AGENTID=fa0
|
|
148 |
check RESULT=0
|
|
149 |
runcmd svcid=3 svchost="penpdsn" methodid=32 AGENTID=fa0
|
|
150 |
check RESULT=0
|
|
151 |
|
|
152 |
|
|
153 |
#######################################################################################
|
|
154 |
#
|
|
155 |
# PPP: Stop the PPP session from the PDSN side and wait for the MN to exit. Retrieve
|
|
156 |
# all logs before removing the objects.
|
|
157 |
#
|
|
158 |
#######################################################################################
|
|
159 |
runcmd svcid=7 svchost="penpdsn" methodid=6 SID=sid1
|
|
160 |
check RESULT=0
|
|
161 |
runcmd svcid=7 svchost="penpdsn" methodid=8 SID=sid1
|
|
162 |
runcmd svcid=7 svchost="penpdsn" methodid=32 SID=sid1
|
|
163 |
check RESULT=0
|
|
164 |
|
|
165 |
runcmd svcid=7 svchost="penmn" methodid=7 SID=sid0
|
|
166 |
waitfor SESSION_PROCESS_STATUS=3
|
|
167 |
check RESULT=0
|
|
168 |
check SESSION_STATUS=4
|
|
169 |
runcmd svcid=7 svchost="penmn" methodid=8 SID=sid0
|
|
170 |
runcmd svcid=7 svchost="penmn" methodid=32 SID=sid0
|
|
171 |
check RESULT=0
|
|
172 |
|
|
173 |
|
|
174 |
#######################################################################################
|
|
175 |
#
|
|
176 |
# MOBSTER: Remove the mobster devices, they should already have stopped
|
|
177 |
#
|
|
178 |
#######################################################################################
|
|
179 |
runcmd svcid=5 svchost="penmn" methodid=6 DEVICEID=mt0
|
|
180 |
check RESULT=0
|
|
181 |
runcmd svcid=5 svchost="penmn" methodid=7 DEVICEID=mt0
|
|
182 |
check RESULT=0
|
|
183 |
|
|
184 |
runcmd svcid=5 svchost="penpdsn" methodid=6 DEVICEID=mt1
|
|
185 |
check RESULT=0
|
|
186 |
runcmd svcid=5 svchost="penpdsn" methodid=7 DEVICEID=mt1
|
|
187 |
check RESULT=0
|
|
188 |
|
|
189 |
|
|
190 |
#######################################################################################
|
|
191 |
#
|
|
192 |
# DONE
|
|
193 |
#
|
|
194 |
#######################################################################################
|
|
195 |
rendezvous
|