Changes between Version 22 and Version 23 of Tutorials/g0WmLTE/Tutorial0
- Timestamp:
- Oct 18, 2012, 1:01:01 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tutorials/g0WmLTE/Tutorial0
v22 v23 37 37 The base station receives instructions from [http://en.wikipedia.org/wiki/GET_(HTTP)#Request_methods "http get requests"] sent from the corresponding sandbox. For example, consider 38 38 {{{ 39 wget -qO- http:// cons-wm-01:5052/wimaxrf/datapath/config/load?name=defaults40 }}} 41 "wget" is the command to send an http request; "-qO-" gives options for outputting the result of the request to the screen; "cons-wm-01" is the name of the base station; "5052" is the port number; "/ wimaxrf/datapath/config/load" selects the subsetting "load" from the path; "?" demarcates instructions; "name=defaults" assigns "defaults" to the property "name".39 wget -qO- http://wimaxrf:5052/wimaxrf/bs/default 40 }}} 41 "wget" is the command to send an http request; "-qO-" gives options for outputting the result of the request to the screen; "cons-wm-01" is the name of the base station; "5052" is the port number; "//wimaxrf/bs/default" is the command to load the default base station settings. 42 42 43 43 == Restoring the Base Station to Defaults == … … 45 45 To restore the base station to defaults, run the following commands: 46 46 {{{ 47 wget -qO- http:// cons-wm-01:5052/wimaxrf/defaults48 wget http://cons-wm-01:5052/wimaxrf/restart47 wget -qO- http://wimaxrf:5052/wimaxrf/bs/default 48 wget -qO- http://wimaxrf:5052/wimaxrf/bs/restart 49 49 }}} 50 50 After issuing the restart command, the base station will be unavailable for 2 minutes. Do not be alarmed if the base station returns what appears to be the following error message: … … 65 65 66 66 {{{ 67 omf-5.3 load -i wmx-tutorial.ndz -t node1- 1.sb4.orbit-lab.org,node1-4.sb4.orbit-lab.org68 }}} 69 70 You should assume that this command is whitespace-sensitive .67 omf-5.3 load -i wmx-tutorial.ndz -t node1-4.sb4.orbit-lab.org,node1-6.sb4.orbit-lab.org 68 }}} 69 70 You should assume that this command is whitespace-sensitive (do not include any spaces between the node names and the commas). 71 71 72 72 [[Image(pxe1.png)]] … … 80 80 SSH into the nodes, one at a time, to confirm that the settings loaded correctly. 81 81 {{{ 82 ssh root@node1-1 82 ssh root@node1-4 83 }}} 84 85 If you get a message that says, 86 {{{ 87 The authenticity of host 'node1-4 (10.14.1.4)' can't be established. 88 RSA key fingerprint is 62:ee:bf:75:50:84:f3:e8:86:f3:e5:e0:75:f0:3a:1a. 89 Are you sure you want to continue connecting (yes/no)? 90 }}} 91 92 answer 93 {{{ 94 yes 83 95 }}} 84 96 85 97 If this works, proceed to the next section. If not, here is some error-checking advice. 86 98 87 If you receive an error message like the one below, it may mean that your node is off after the imaging process. If so, you should turn it on. 88 89 [[Image(failconnect.png)]] 90 91 Sometimes nodes also 'hiccup' after imaging, and will deny connections. This can be worked around by turning the affected nodes off and back on. 92 93 ---- 99 If you receive an error message like 100 101 {{{ 102 ssh: connect to host node1-4.sb4.orbit-lab.org port 22: No route to host 103 }}} 104 105 it may mean that your node is off after the imaging process. If so, you should turn it on by running the following command: 106 107 {{{ 108 omf-5.3 tell -a on -t node1-4.sb4.orbit-lab.org,node1-6.sb4.orbit-lab.org 109 }}} 110 111 112 Sometimes nodes also 'hiccup' after imaging, and will deny connections. This can be worked around by turning the affected nodes off and back on as follows: 113 114 {{{ 115 omf-5.3 tell -a offh -t node1-4.sb4.orbit-lab.org,node1-6.sb4.orbit-lab.org 116 }}} 117 118 {{{ 119 omf-5.3 tell -a on -t node1-4.sb4.orbit-lab.org,node1-6.sb4.orbit-lab.org 120 }}} 121 122 ---- 123 124 If you have successfully logged into a node with SSH, you will see the following prompt: 125 126 {{{ 127 root@node1-4:~# 128 }}} 129 94 130 Check that the drivers loaded correctly using the ''lsmod'' command. The WiMAX drivers on this testbed are of the i2400 family. 95 131 … … 114 150 }}} 115 151 152 The output should be: 153 {{{ 154 Enter Command: 155 q - Quit AppSrv 156 t - Trace ReInit (ReLoads Registry Values) 157 u - uplink(Apdo uplink event 158 h - Help 159 d - Toggle driver messages to display - debug & internal only 160 161 162 Another instance of wimax (pid 681) is already running!. Shutting down... 163 }}} 164 116 165 === Connect to the WiMAX Network === 117 166 … … 127 176 === Assign an IP Address === 128 177 129 By this point, the drivers are loaded, and the network is connected. However, the WiMAX card hasn't been given an IP address yet. Below is the recommended IP address for node 1on sandbox 4. (Alternate IP addresses are allowed, but require additional configuration at other stages of an experiment.)178 By this point, the drivers are loaded, and the network is connected. However, the WiMAX card hasn't been given an IP address yet. Below is the recommended IP address for node 4 on sandbox 4. (Alternate IP addresses are allowed, but require additional configuration at other stages of an experiment.) 130 179 131 180 {{{ 132 181 ifconfig 133 ifconfig wmx0 10.41.14. 1netmask 255.255.0.0 up182 ifconfig wmx0 10.41.14.4 netmask 255.255.0.0 up 134 183 ifconfig 135 184 }}} … … 143 192 == Repeat for Other Nodes == 144 193 145 For the sake of brevity, we will not repeat the previous process at length for the other nodes. However, we will give sample instructions for node 4, and elaborate on some general rules.146 147 {{{ 148 ssh root@node1- 4# will take to another screen194 For the sake of brevity, we will not repeat the previous process at length for the other nodes. However, we will give sample instructions for node 6, and elaborate on some general rules. 195 196 {{{ 197 ssh root@node1-6 # will take to another screen 149 198 lsmod | grep i2400 150 199 modprobe i2400m_usb # only if needed 151 200 wimaxcu ron 152 201 wimaxcu connect network 51 153 ifconfig wmx0 10.41.14. 4netmask 255.255.0.0 up154 }}} 155 156 === ''ifconfig'' Recommended Settings ===202 ifconfig wmx0 10.41.14.6 netmask 255.255.0.0 up 203 }}} 204 205 === Recommended Settings for IP Addresses === 157 206 158 207 For most of the sandboxes on ORBIT, the rule of thumb for assigning IP addresses is: … … 160 209 10.41.1X.Y 161 210 }}} 162 Where 10.41 is the hostname, X is the sandbox number, and Y is the node number. 211 Where 10.41 is the hostname, X is the sandbox number, and Y is the node number (e.g., node1-4 has Y=4). 212 213 214 On the "outdoor" testbed, the rule is 215 {{{ 216 10.41.40+X.Y 217 }}} 218 219 and on the "grid" testbed, the rule is 220 {{{ 221 10.41.100+X.Y 222 }}} 223 224 where X and Y are the node coordinates (e.g., node1-4 has X=1, Y=4). 163 225 164 226 ---- … … 166 228 == Testing Connection == 167 229 168 Repeat the previous steps for other nodes. To test the connection between two nodes, use the ''ping'' utility, which sends packets at an IP address and checks for confirmation of receipt. Assuming that nodes 1 and 4have already been connected:169 170 {{{ 171 ssh root@node1- 1230 Repeat the previous steps for other nodes. To test the connection between two nodes, use the ''ping'' utility, which sends packets at an IP address and checks for confirmation of receipt. Assuming that nodes 4 and 6 have already been connected: 231 232 {{{ 233 ssh root@node1-6 172 234 ping 10.41.14.4 173 235 }}} … … 191 253 192 254 {{{ 193 wget -qO- http:// cons-wm-01:5052/wimaxrf/client/status194 wget -qO- http:// cons-wm-01:5052/wimaxrf/client/add...195 wget -qO- http:// cons-wm-01:5052/wimaxrf/client/delete...255 wget -qO- http://wimaxrf:5052/wimaxrf/datapath/clients/list 256 wget -qO- http://wimaxrf:5052/wimaxrf/datapath/clients/add... 257 wget -qO- http://wimaxrf:5052/wimaxrf/datapath/clients/delete... 196 258 }}} 197 259