155 | | |
156 | | **Put figure** |
157 | | |
158 | | Resource identification formed by the gateway is always the same as depend on node parameters only as MAC address. |
159 | | In that way Resource Directory can be used for knowing if this resource was previously attached to other gateway, and the old URL. |
160 | | No replication of the same resource is found in the Resource Directory. If it exists, it is updated. |
161 | | The all gateway is informed about the new location of the resource. In the response, the all gateway sends all the subscription information that these resource had, and these are implemented by the new gateway. |
162 | | The all gateway in addition will redirect access this resource to the new URL using the http redirect response. This redirection is transparent to applications. |
163 | | The result is that applications do not notice if they do not want that a resource has been moved. |
164 | | For optimization, mobility commands interchanged between gateways are not resource by resource, but for all the resources of a node. |
| 155 | [[Image(zb2senseigw_mobility.jpg, 25%, center)]] |
| 156 | |
| 157 | |
| 158 | |
| 159 | |
| 160 | 1. (and 4.) Resource identification formed by the gateway is always the same independently of the gateway. The identification depends only on node parameters. In our case it is used the MAC address and the sensor number position. When the node connects to a new island, the gateway forms the Resource End Point of the nodes resources. |
| 161 | 2. (and 5.) Previously to publish in the Resource Directory, it discovers if the resource already is present using RLI interface. |
| 162 | 3. If the resource does not exist, it is published into the Resource Directory … |
| 163 | 4. see 1 |
| 164 | 5. see 2 |
| 165 | 6. But if it exists, it is updated. No replication of the same resource is found in the Resource Directory. |
| 166 | 7. The new gateway informs the old gateway about the new location (URL) of the resource. The URL of the old gateway is obtained when getting resource parameters from the Resource Directory (5.) In the response, the old gateway sends all the subscriptions information that this resource has, and these are implemented by the new gateway. |
| 167 | 8. The old gateway in addition will redirect whatever access to this resource to the new URL using the http redirect response. This redirection is transparent to applications. |
| 168 | The result is that applications do not notice at all (if they do not want) that a resource has been moved. |
| 169 | |
| 170 | For optimization, mobility commands interchanged between gateways are not sent resource by resource, but only once for all the resources of a node. |