CN105224055A - The connection status management method of resource-constrained devices and device - Google Patents

The connection status management method of resource-constrained devices and device Download PDF

Info

Publication number
CN105224055A
CN105224055A CN201410264305.3A CN201410264305A CN105224055A CN 105224055 A CN105224055 A CN 105224055A CN 201410264305 A CN201410264305 A CN 201410264305A CN 105224055 A CN105224055 A CN 105224055A
Authority
CN
China
Prior art keywords
resource
connection status
connection
devices
constrained devices
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410264305.3A
Other languages
Chinese (zh)
Inventor
安勍
何璇
马元琛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to CN201410264305.3A priority Critical patent/CN105224055A/en
Publication of CN105224055A publication Critical patent/CN105224055A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a kind of connection status management method and system of resource-constrained devices, it manages the connection status of the resource-constrained devices that at least one can be connected with distant-end node by connection status management devices.First by resource-constrained devices by its first to connect with distant-end node state time connection state information send to connection status management devices, connection state information is stored in the storer of this locality by connection status management devices.When the resource-constrained devices after off-line will recover connection status with distant-end node, connection is recovered notice and is sent to connection status management devices.Connection status management devices is extracted in the connection state information of local storage and sends it to resource-constrained devices, and resource-constrained devices recovers the connection status with distant-end node based on the connection state information received from connection status management devices.Adopt the present invention, the resource consumption on resource-constrained devices can be reduced, alleviate the load of maintenance resources constrained devices connection status.

Description

The connection status management method of resource-constrained devices and device
Technical field
The invention provides a kind of management method and device of equipment connection state, particularly relate to the administering and maintaining of connection status for resource-constrained devices.
Background technology
It is limited that resource-constrained devices typically refers to electricity supply, and computing power is limited, and the electronic equipment that memory capacity is limited.Such as, in intelligent building application scenarios, being arranged on the sensor for monitoring of environmental parameter in building, is exactly a kind of resource-constrained devices.It has simple computing module and memory module to gather environmental parameter, in order to arrangement convenience, usually adopts wireless communication mechanism transmission environment parameter, and utilizes the accumulator of limited electricity to power.Because cost is low, described equipment is widely deployed in the network terminal of each application system, carries out simple order and performs and data processing work, such as environmental parameter monitoring.Because resource-constrained, in order to energy-conservation, described equipment is in dormant state in the most of the time, but can periodically " wake up " the of short duration time.The equipment being in dormant state cannot carry out alternately with the external world, and only in " waking up " state, described equipment can carry out interacting message and process.
Generally, the workflow of resource-constrained devices does not need to keep connection status, the i.e. order that just receives simply from distant-end node of described equipment, fill order and respective handling result is returned to distant-end node, wait for Next Command afterwards, do not need the resource outside allocation to keep connection status.But, along with the development of application system demand and business, sometimes need resource-constrained devices to keep the connection status with distant-end node.Maintenance mentioned here, comprises the situation of repeatedly carrying out resource-constrained devices connection.But, in order to ensure the secure connection of resource-constrained devices and a certain distant-end node, described equipment needs the security parameter determining through repeatedly interacting message with distant-end node to share, and the resource outside allocation records state about described secure connection and parameter.
For resource-constrained devices, keep namely meaning with the connection status of distant-end node and bring more energy consumption to resource-constrained devices.In this case, that how to set up a kind of connection status of applicable resource-constrained devices administers and maintains mechanism, reduces the resource consumption that connection status is safeguarded, improves the efficiency of connection status management, becomes problem demanding prompt solution.
For this problem, in prior art, propose some solutions.Such as, in patent documentation 1, disclose a kind of method and apparatus setting up secure connection between resource-constrained devices and distal network node.The method of connecting disclosed in this patent documentation comprises based on traditional standardized communication protocols, utilize corresponding optimisation technique, resource-constrained devices supports secure communication, realize the foundation of the secure communication connection status between resource-constrained devices and distal network node, ensure again the resource consumption reducing connection status foundation simultaneously.
Existing patent documentation
Patent documentation 1:EP1692667B1
Summary of the invention
But, disclosed in patent documentation 1, internet of things service framework and method only consider how to utilize optimisation technique, during state that computing power and the limited equipment of memory capacity connect, reduce the resource consumption that connection status is set up, do not consider the resource consumption problem that resource-constrained devices and distant-end node bring when recovering connection status.Specifically, energy-conservation in order to ensure, in the extending life cycle, described equipment needs to enter off-line mode (shutdown or dormancy) frequently, will cause the disconnection of connection status like this.Therefore, when each described equipment reenters line model, all need again to connect with distant-end node.
Patent documentation 1 is while reduction resource-constrained devices connects state resource consumption, do not consider that resource-constrained devices needs periodically to disconnect the demand entering off-line mode, the extra resource consumption introduced because repeatedly recovering connection status cannot be reduced, easily cause resource consumption on described equipment too much, the consequence of overload, especially, when number of connection is very high, the proper communication of described equipment and distant-end node can directly be affected.
In view of above-mentioned the problems of the prior art, the invention provides and a kind ofly administer and maintain method and system for resource-constrained devices connection status, between resource-constrained devices and distant-end node in the maintenance of connection status and rejuvenation, resource consumption on effective optimization resource-constrained devices, under the normal condition of serviceability ensureing described equipment, administer and maintain the connection status with distant-end node effectively, intelligently.
To achieve these goals, first aspect in the present invention provides a kind of connection status management method of resource-constrained devices, it manages the connection status of the resource-constrained devices that at least one can be connected with distant-end node by connection status management devices, above-mentioned management method comprises: connection state information forwarding step, by above-mentioned resource-constrained devices by above-mentioned resource-constrained devices first and said distal ends node connect state time connection state information send to above-mentioned connection status management devices, wherein above-mentioned connection state information at least comprises the address information of above-mentioned resource-constrained devices, said distal ends address of node information, and Connecting quantity information, connection state information registration step, when above-mentioned connection status management devices receives the above-mentioned connection state information sent from above-mentioned resource-constrained devices, is registered and is stored in local storer, connect and recover notice forwarding step, when the above-mentioned resource-constrained devices after off-line will recover connection status with said distal ends node, connection is recovered notice and is sent to above-mentioned connection status management devices, connection status management process, above-mentioned connection status management devices receives above-mentioned connection and recovers to be extracted in when notifying the above-mentioned connection state information of local storage and send it to above-mentioned resource-constrained devices, with connection status recovering step, above-mentioned resource-constrained devices recovers the connection status with said distal ends node based on the above-mentioned connection state information received from above-mentioned connection status management devices.
In the connection status management method of above-mentioned resource-constrained devices, when after above-mentioned resource-constrained devices is first and said distal ends node connects state, in above-mentioned connection status forwarding step, current connection state information is sent to above-mentioned connection status management devices, enter off-line mode in the moment of regulation afterwards, disconnect the connection status with distant-end node.
In the connection status management method of above-mentioned resource-constrained devices, also comprise resource status query steps, when above-mentioned resource-constrained devices enters line model from off-line mode, first the connection status whether equipment of itself has enough resource recoveries and said distal ends node is inquired about, enter above-mentioned connection when resource is enough and recover notice forwarding step, connection is recovered notice and is sent to above-mentioned connection status management devices, when being judged as that resource is inadequate, notice being deleted in connection and is sent to above-mentioned connection status management devices.
In the connection status management method of above-mentioned resource-constrained devices, when above-mentioned connection status management devices receives the message from above-mentioned resource-constrained devices, in above-mentioned connection status management process, judge whether it is connect to recover notice, when being judged as YES connection and recovering notice, be extracted in the above-mentioned connection state information of local storage and send it to above-mentioned resource-constrained devices, when being judged as it not being when connecting recovery notice, and then judge whether it is connect to delete notice, when being judged as YES connection and deleting notice, delete and be stored in local connection state information, and send to above-mentioned resource-constrained devices and said distal ends node by deleting notice.
In the connection status management method of above-mentioned resource-constrained devices, above-mentioned connection state information also comprises request type information, when above-mentioned request type is secure communication connection, above-mentioned Connecting quantity information comprises security parameter, when above-mentioned request type be data report connection time, above-mentioned Connecting quantity information comprises data and reports parameter.
In the connection status management method of above-mentioned resource-constrained devices, above-mentioned Connecting quantity information also comprises online cycle and the off-line cycle of above-mentioned resource-constrained devices.
To achieve these goals, the second aspect in the present invention provides a kind of connection status management system of resource-constrained devices, and it comprises: at least one resource-constrained devices; Distant-end node; With the connection status management devices managed the connection status of above-mentioned resource-constrained devices, above-mentioned resource-constrained devices comprises: connection state information transmitting element, by above-mentioned resource-constrained devices first and said distal ends node connect state time connection state information send to above-mentioned connection status management devices, wherein above-mentioned connection state information at least comprises the address information of above-mentioned resource-constrained devices, said distal ends address of node information and Connecting quantity information; Connect and recover/delete notice transmitting element, when the above-mentioned resource-constrained devices after off-line will recover connection status with said distal ends node, connection is recovered notice and is sent to above-mentioned connection status management devices; With connection status recovery unit, the connection status with above-mentioned far point node is recovered based on the above-mentioned connection state information received from above-mentioned connection status management devices, above-mentioned connection status management devices comprises: storage unit, and it is for storing the above-mentioned connection state information sent from above-mentioned resource-constrained devices; Connection state information registering unit, when receiving the above-mentioned connection state information sent from above-mentioned resource-constrained devices, registered and be stored in said memory cells, with connection status administrative unit, when receiving the connection recovery notice from above-mentioned resource-constrained devices, be extracted in the above-mentioned connection state information that stores in said memory cells and send it to above-mentioned resource-constrained devices, making above-mentioned resource-constrained devices recover the connection status with said distal ends node based on the above-mentioned connection state information received from above-mentioned connection status management devices.
In the connection status management system of above-mentioned resource-constrained devices, when after above-mentioned resource-constrained devices is first and said distal ends node connects state, by above-mentioned connection state information transmitting element, current connection state information is sent to above-mentioned connection status management devices, enter off-line mode in the moment of regulation afterwards, disconnect the connection status with distant-end node.
In the connection status management system of above-mentioned resource-constrained devices, above-mentioned resource-constrained devices also comprises resource status query unit, when above-mentioned resource-constrained devices enters line model from off-line mode, whether inquiry equipment of itself has the connection status of enough resource recoveries and said distal ends node, when resource is enough, recover/delete notice transmitting element by above-mentioned connection and connection recovery notice is sent to above-mentioned connection status management devices, when being judged as that resource is inadequate, recover/delete notice transmitting element by above-mentioned connection and connection deletion notice is sent to above-mentioned connection status management devices.
In the connection status management system of above-mentioned resource-constrained devices, when above-mentioned connection status management devices receives the message from above-mentioned resource-constrained devices, above-mentioned connection status administrative unit judges whether it is connect to recover notice, when being judged as YES connection and recovering notice, be extracted in the above-mentioned connection state information of local storage and send it to above-mentioned resource-constrained devices, when being judged as it not being when connecting recovery notice, and then judge whether it is connect to delete notice, when being judged as YES connection and deleting notice, delete and be stored in local connection state information, and send to above-mentioned resource-constrained devices and said distal ends node by deleting notice.
In the connection status management system of above-mentioned resource-constrained devices, above-mentioned connection state information also comprises request type information, when above-mentioned request type is secure communication connection, above-mentioned Connecting quantity information comprises security parameter, when above-mentioned request type be data report connection time, above-mentioned Connecting quantity information comprises data and reports parameter.In the connection status management system of above-mentioned resource-constrained devices, above-mentioned Connecting quantity information also comprises online cycle and the off-line cycle of above-mentioned resource-constrained devices.
Invention effect
Method and system is administered and maintained for resource-constrained devices connection status according to of the present invention, between resource-constrained devices and distant-end node in the maintenance of connection status and rejuvenation, resource consumption on effective optimization resource-constrained devices, under the normal condition of serviceability ensureing described equipment, administer and maintain the connection status with distant-end node effectively, intelligently.
Accompanying drawing explanation
Fig. 1 is the summary construction diagram of resource-constrained devices connection status management system of the present invention.
Fig. 2 is the comprising modules figure of resource-constrained devices of the present invention.
Fig. 3 is the comprising modules structural drawing of connection status device of the present invention.
Fig. 4 is that resource-constrained devices of the present invention sends the process flow diagram of connection state information to connection status management devices.
Fig. 5 is the process flow diagram of connection status management devices process resource-constrained devices connection status log-on message of the present invention.
Fig. 6 is connection state information tableau format one example on connection status management devices of the present invention.
Fig. 7 recovers the process flow diagram with distant-end node connection status after resource-constrained devices of the present invention reenters line model.
Fig. 8 is the process flow diagram that the connection status of connection status management devices process resource-constrained devices of the present invention and distant-end node is recovered.
Fig. 9 is form one example of secure communication Connecting quantity in session table on connection status management devices of the present invention.
Figure 10 is that on connection status management devices of the present invention, in session table, data report form one example of Connecting quantity.
Embodiment
First resource-constrained devices connection status management system summary construction diagram of the present invention is described.
As shown in Figure 1, system schematic configuration comprises: connection status management devices 101, distant-end node 102 and resource-constrained devices 103.
Wherein, connection status management devices 101 is in charge of and connection status between maintenance resources constrained devices 103 and distant-end node 102, comprise the connection state information receiving and process from resource-constrained devices 103, at local store and management connection state information, and be responsible for recovering the connection status between resource-constrained devices 103 and distant-end node 102.Distant-end node 102 and resource-constrained devices 103 connect state, ask, obtain corresponding result, when first and resource-constrained devices 103 connect state, need through interacting message repeatedly, thus determine to set up the related connection state parameter this time connecting and need.Resource-constrained devices 103 and distant-end node connect state, by connection status management devices, connection state information is administered and maintained, when after resource-constrained devices 103 is first and distant-end node 102 connects state, current connection state information is sent to connection status management devices 101, afterwards because energy saving requirement enters off-line mode, disconnect the connection status with distant-end node 102, when resource-constrained devices 103 enters line model again, by carrying out alternately with connection status management devices 101, recover the connection status with distant-end node 102.
Fig. 2 represents the comprising modules structure of resource-constrained devices of the present invention.Resource-constrained devices 103 of the present invention comprises connection status sending module 103a, connects and recovers/delete notification module 103b, and connection status recovers module 103c and resource status enquiry module 103d.Wherein connection status sending module 103a is responsible for the process of transmitting of connection state information to connection status management devices of resource-constrained devices.Connect recovery/deletion notification module 103b to be responsible for connection being recovered notice or connect deletion notice to send to connection status management devices.Connection status recovers the process that module 103c is responsible for the connection status between resource-constrained devices recovery and distant-end node.Resource status enquiry module 103d is responsible for the resource status of query resource constrained devices 103.
The following describes the comprising modules structure of connection status management devices of the present invention.
As shown in Figure 3, connection status management devices 101 of the present invention comprises storage unit 201, connection state information registering unit 202, connection status administrative unit 203.Wherein storage unit 201 is for the connection state information of storage resources constrained devices 103 with distant-end node 102, at least comprise the address information of resource-constrained devices 103 and distant-end node 102, with the parameter information of connection status, the request type information of distant-end node 102 pairs of resource-constrained devices 103 also can be comprised.Connection state information registering unit 202 is responsible for the connection state information sent from described resource-constrained devices to register, and is stored in storage unit 201.Connection status manager unit 203 is responsible for the management of connection status, and the function such as connection status recovery.
The flow process of resource-constrained devices connection status management method of the present invention is roughly described below.First in connection state information forwarding step, by resource-constrained devices 103 by resource-constrained devices 103 first and distant-end node 102 connect state time connection state information send to connection status management devices 101, wherein connection state information at least comprises the address information of resource-constrained devices 103, the address information of distant-end node 102 and Connecting quantity information.
Then in connection state information registration step, connection status management devices 101 receives the connection state information sent from resource-constrained devices 103, is registered and is stored in local storage unit 201.
Then recover in notice forwarding step in connection, when the resource-constrained devices 103 after off-line will recover connection status with distant-end node 102, connection is recovered notice and is sent to connection status management devices 101.
Then, in connection status management process, connection status management devices 101 receives connection and recovers to be extracted in when notifying the connection state information of local storage and send it to resource-constrained devices 103.
Afterwards in connection status recovering step, resource-constrained devices 103 recovers the connection status with far point node 102 based on the connection state information received from connection status management devices 101.
Below in conjunction with Fig. 4 ~ Fig. 8, the idiographic flow of the connection status management method of resource-constrained devices of the present invention is described in detail.
First illustrate that resource-constrained devices and distant-end node connect state and send the flow process of connection state information to connection status management devices.
As shown in Figure 4, first resource-constrained devices 103 connects with distant-end node 102 state (step 301).Then, judge whether this time connect is first connection in step 302, if this time connecting is first connection, then extract connection state information (step 303) wherein, comprise the address information of resource-constrained devices 103 and distant-end node 102, the request type information of distant-end node 102 pairs of resource-constrained devices 103 and the parameter information of connection status.Subsequently, the connection state information of extraction is sent to connection status management devices 101 (step 304).So far, this resource-constrained devices and distant-end node are set up and to be connected for the first time and connection state information process of transmitting completes, and wait connection establishment next time.
The following describes the flow process of the connection state information of connection status management devices registration resource constrained devices.
As shown in Figure 5, connection status management devices wait-receiving mode is from the connection state information (step 401) of resource-constrained devices.After receiving connection state information (step 402), first connection status management devices analyzes this connection state information, extract wherein relevant resource-constrained devices and the address information of distant-end node, distant-end node is to the parameter information (step 403) of the request type information of resource-constrained devices and connection status.Corresponding session table (step 404) is set up afterwards in storage unit 201.So far, the process of the connection state information of this connection status management devices registration resource constrained devices completes, and waits for connection state information next time.
Table shown in Fig. 6 represents connection state information tableau format.Comprise the relevant information of the connection status set up between resource-constrained devices and distant-end node in table, comprise connection ID, resource-constrained devices address, distant-end node address, request type and Connecting quantity.Wherein connection ID is for identifying resource-constrained devices under the management of this connection status management devices and the connection status of distant-end node, and this ID must ensure uniqueness.Resource-constrained devices address is the address of resource-constrained devices in connection status corresponding to described connection ID.Distant-end node address is the address of distant-end node in connection status corresponding to described connection ID.Request type is the connection type that distant-end node is set up to resource-constrained devices request, comprises following two types: secure communication connection and data report connection.It is between resource-constrained devices with distant-end node, set up safe data transmission be connected that secure communication connects, and ensures the security of data transmission; Data report connect be distant-end node request resource constrained devices periodically distally node report relevant data.Connecting quantity is the design parameter that different request type is corresponding.
Relate to secure communication to connect, parameter comprises: security algorithm, key, equipment on-line cycle and equipment off-line cycle.Security algorithm is the algorithm types set up selected by secure connection.Key is the data for encrypting and deciphering corresponding to selected security algorithm, comprises encryption key and decruption key.The equipment on-line cycle is the time that resource-constrained devices is in ray mode.The equipment off-line cycle is the time that resource-constrained devices is in off-line mode.Relate to data and report connection, parameter comprises report cycle, reported data type, equipment on-line cycle and equipment off-line cycle.Report cycle be resource-constrained devices distally node report the time of institute's request msg.Reported data type be resource-constrained devices distally node report the type of institute's request msg.The equipment on-line cycle is the time that resource-constrained devices is in ray mode.The equipment off-line cycle is the time that resource-constrained devices is in off-line mode.
The following describes after resource-constrained devices enters line model again and recover the flow process with distant-end node connection status.
As shown in Figure 7, after resource-constrained devices enters line model (step 501) from off-line mode, whether first inquiry is local has enough resources to recover the connection status (step 502) with distant-end node.Then, in step 503, judge whether local resource is enough to recover the connection status with distant-end node.If determine that local resource is not enough to recover the connection status with distant-end node, then send to connect and delete message notice to connection status management devices, notify that described device deletes the related connection state information (step 504) stored.If determine that local resource is enough, then send to connect and recover notice to connection status management devices (step 505), wait for the reply (step 506) of connection status management devices afterwards.In step 507, judge whether reply is connection state information, if replying is connection state information, then resource-constrained devices utilizes relevant connection state information parameter, recovers the connection status (step 509) with distant-end node.If receive the deleted message (step 508) of connection state information, then determine that connection status management devices no longer stores the connection status of described resource-constrained devices and distant-end node, if desired again connect with distant-end node, then need according to the corresponding connection status of the method establishment of first connection establishment.Afterwards, resource-constrained devices starts to process the next connection status needing to recover.
The following describes the flow process that connection status management devices process resource-constrained devices and distant-end node connection status are recovered.
As shown in Figure 8, in step 601, connection status management devices is at the notification message of communication interface 203 wait-receiving mode from resource-constrained devices.After receiving notification message (step 602), first described device judges whether this notification message is that connection status recovers notice (step 603).If connection status recovers notice, then described device extracts the local related connection state information (step 604) stored, and afterwards connection state information is sent to resource-constrained devices (step 605).Recover notice if not connection status, then judge whether this notice is that connection status deletes notice (step 606).If connection status deletes notice, then described device deletes the local related connection state information (step 607) stored, resource-constrained devices and distant-end node (step 608) is sent to afterwards by deleting notice, notice resource-constrained devices and distant-end node, if both sides need the state that again connects, then both sides need according to the corresponding connection status of the method establishment of first connection establishment.Delete notice if not connection status, then judge to receive unexpected message, this process directly terminates.
(embodiment 1)
In the embodiment 1 of following explanation based on above-mentioned embodiment.
Embodiment 1 is at the distant-end node shown in Fig. 1 and the example set up secure communication between resource-constrained devices and be connected, and the foundation of connection status, maintenance and recovery are carried out with following flow process.Herein, using " building management " center " as an example of distant-end node, using " environment monitoring sensor " as resource-constrained devices example.
First, the sensor request of to be the building management center of 10.1.1.1 to address be in address 192.168.1.1 is set up secure communication and is connected, when sensor is in ray mode, and the secure communication connection request at response building management center.Owing to being the state that connects for the first time, building management center and sensor need through interacting message repeatedly determine secure communication be connected required for parameter.
After secure communication connects first foundation, sensor extracts the current status information be connected with the secure communication at building management center.Afterwards, before entering off-line mode, the secure communication connection state information that sensor will extract, comprise security algorithm, key, equipment on-line cycle and equipment off-line cycle information, be sent to connection status management devices.
Connection management device is after receiving the connection status message of sensor, and resolve the connection state information comprised, connect in this locality state table afterwards, stores connection state information.The session table generated as shown in Figure 6, entry 1 in table represents this secure communication and connects corresponding connection state information, represents that the sensor of to be address the be 192.168.1.1 that this connection state information is corresponding and address are the connection state information that connects of secure communication between the building management center of 10.1.1.1.Concrete Connecting quantity as shown in Figure 9, security algorithm used is AES-128, key is Key (A), represent one group of data for encrypting plaintext and decrypting ciphertext, the equipment on-line cycle is 1 minute, representative sensor periodically can enter line model and maintain 1 minute, and the equipment off-line cycle is 5 minutes, and representative sensor periodically can enter off-line mode and maintain 5 minutes.So far, the secure communication connection status at sensor and building management center completes in the registration process of connection status management devices.
Afterwards, according to the equipment on-line cycle of sensor and the configuration parameter in off-line cycle, sensor enters off-line mode, disconnects and being connected with the secure communication that building management center is set up.
Equally according to the configuration parameter in equipment on-line cycle and off-line cycle, after a period of time, resource apparatus enters line model again from off-line mode.After entering line model, sensor is attempted recovering to be connected with the secure communication that building management center is set up.First, whether sensor query this locality has the connection status at enough resource recoveries and building management center, comprises the available power of the power module of query sensors and the available storage of storer.If discovery inadequate resource, cannot recover to be connected with the secure communication at building management center, then send to connect to connection status management devices and delete message notice; If resource is enough, then sends to connect to connection status management devices and recover notice.Afterwards, the reply of connection status management devices is waited for.
Connection status management devices judges notification type after receiving the notification message of sensor.Recover notice if connect, then extract local corresponding connection state information, send to sensor afterwards; Deleting notice if connect, then delete local corresponding connection state information, sending to sensor and corresponding building management center by deleting notice simultaneously.
Sensor judges whether it is connection state information after receiving the reply message from connection status management devices.If so, then extract relevant information, recover the connection status with building management center; If delete notice, then determine that the connection state information of being correlated with is deleted on connection status management devices.Afterwards, when thinking in building management that again set up secure communication is connected with sensor, need again according to setting up the mode of secure communication connection for the first time to connection status of coming in.
Thus, according to the connection status management and utilization method for sensor of the present invention and device, can effectively, intelligently between maintenance and management sensor with building management center, secure communication be connected, effectively can optimize the resource consumption on sensor simultaneously, alleviate the load that sensor maintenance is brought with recovery connection status.
(embodiment 2)
The following describes embodiment 2.
Embodiment 2 be the distant-end node shown in Fig. 1 with set up data between resource-constrained devices and report the example be connected, the foundation of connection status, maintenance and recovery are carried out with following flow process.Herein, using " farmland (booth) monitoring center " as an example of distant-end node, using " environment monitoring sensor " as resource-constrained devices example.
First, the environment monitoring sensor request of to be the farmland monitoring center of 10.1.1.3 to address be in address 192.168.1.3 is set up data and is reported connection, when environment monitoring sensor is in ray mode, the data that can respond farmland monitoring center report connection establishment request.Owing to being the state that connects for the first time, farmland monitoring center and environment monitoring sensor need to determine that data report the parameter required for connection through interacting message repeatedly.
After data report connection to set up for the first time, resource-constrained extraction is current reports with the data of farmland monitoring center the status information be connected.Afterwards, before entering off-line mode, the data of extraction are reported connection state information by environment monitoring sensor, comprise report cycle, reported data type, and equipment on-line cycle and equipment off-line cycle information, be sent to connection status management devices.
Connection management device is after receiving the connection status message of environment monitoring sensor, and resolve the connection state information comprised, connect in this locality state table afterwards, stores connection state information.The session table generated as shown in Figure 6, entry 3 in table represents these data and reports and connect corresponding connection state information, represent the environment monitoring sensor of to be address the be 192.168.1.3 that this connection state information is corresponding and address be 10.1.1.3 farmland monitoring center between data report the connection state information of connection.Concrete Connecting quantity as shown in Figure 10, data report cycle is 4 minutes, the data type reported is temperature data, the equipment on-line cycle is 1 minute, represent environment monitoring sensor periodically to enter line model and maintain 1 minute, the equipment off-line cycle is 3 minutes, represents environment monitoring sensor and periodically can enter off-line mode and maintain 3 minutes.So far, the data of environment monitoring sensor and farmland monitoring center report connection status to complete in the registration process of connection status management devices.
Afterwards, the environmentally equipment on-line cycle of monitoring sensor and the configuration parameter in off-line cycle, environment monitoring sensor can enter off-line mode, and disconnection reports with the data that farmland monitoring center sets up and is connected.
Equally according to the configuration parameter in equipment on-line cycle and off-line cycle, after a period of time, resource apparatus enters line model again from off-line mode.After entering line model, environment monitoring sensor is attempted recovering to report with the data that farmland monitoring center sets up to be connected.First, the local connection status whether having enough resource recoveries and farmland monitoring center of environment monitoring sensor inquiry, comprises the inquiry available power of power module and the available storage of storer.If discovery inadequate resource, cannot recover to report with the data of farmland monitoring center to be connected, then send to connect to connection status management devices and delete message notice; If resource is enough, then sends to connect to connection status management devices and recover notice.Afterwards, the reply of connection status management devices is waited for.
Connection status management devices judges notification type after receiving the notification message from environment monitoring sensor.Recover notice if connect, then extract local corresponding connection state information, send to environment monitoring sensor afterwards; Deleting notice if connect, then delete local corresponding connection state information, sending to environment monitoring sensor and corresponding farmland monitoring center by deleting notice simultaneously.
Environment monitoring sensor judges whether it is connection state information after receiving the reply message from connection status management devices.If so, then extract relevant information, recover the connection status with farmland monitoring center; If delete notice, then determine that the connection state information of being correlated with is deleted on connection status management devices.Afterwards, farmland monitoring center thinks again to set up with environment monitoring sensor data and reports when being connected, and needs again to report the mode of connection to connection status of coming according to setting up data for the first time.
Thus, according to the connection status management and utilization method for environment monitoring sensor of the present invention and device, can effectively, intelligently between maintenance and management environment monitoring sensor with farmland monitoring center, data report and are connected, the resource consumption simultaneously can effectively optimized the environment on monitoring sensor, alleviates environment monitoring sensor and safeguards and recover the load that connection status is brought.
Above embodiments of the present invention and specific embodiment are illustrated, but the present invention is not defined in above-mentioned embodiment.Such as, other the embodiment that also can realize at random combining the inscape described in this instructions is as embodiments of the present invention.In addition, for above-mentioned embodiment, do not departing from the scope of the meaning shown in the word described in purport of the present invention and claims, implementing the various distortion that can expect of those skilled in the art and obtain variation and be also contained in the present invention.
Industrial utilizability
Of the present inventionly administer and maintain method and system for resource-constrained devices connection status, between resource-constrained devices and distant-end node in the maintenance of connection status and rejuvenation, resource consumption on effective optimization resource-constrained devices, under the normal condition of serviceability ensureing described equipment, administer and maintain the connection status with distant-end node effectively, intelligently.Therefore, the present invention can be widely used in administering and maintaining of resource-constrained devices, especially in Internet of Things framework optimization, has outstanding advantages.

Claims (12)

1. a connection status management method for resource-constrained devices, is characterized in that, managed the connection status of the resource-constrained devices that at least one can be connected with distant-end node by connection status management devices, described management method comprises:
Connection state information forwarding step, by described resource-constrained devices by first for described resource-constrained devices to connect with described distant-end node state time connection state information send to described connection status management devices, wherein said connection state information at least comprises the address information of described resource-constrained devices, the address information of described distant-end node and Connecting quantity information;
Connection state information registration step, when described connection status management devices receives the described connection state information sent from described resource-constrained devices, is registered and is stored in local storer;
Connect and recover notice forwarding step, when the described resource-constrained devices after off-line will recover connection status with described distant-end node, connection is recovered notice and is sent to described connection status management devices;
Connection status management process, described connection status management devices receives when described connection recovers notice and is extracted in the described connection state information of local storage and sends it to described resource-constrained devices; With
Connection status recovering step, described resource-constrained devices recovers the connection status with described distant-end node based on the described connection state information received from described connection status management devices.
2. connection status management method as claimed in claim 1, is characterized in that:
After described resource-constrained devices connects state for the first time with described distant-end node, in described connection status forwarding step, current connection state information is sent to described connection status management devices, enter off-line mode in the moment of regulation afterwards, disconnect the connection status with distant-end node.
3. connection status management method as claimed in claim 1 or 2, is characterized in that,
Also comprise resource status query steps, when described resource-constrained devices enters line model from off-line mode, first inquire about the connection status whether equipment of itself has enough resource recoveries and described distant-end node,
Enter described connection when resource is enough and recover notice forwarding step, connection is recovered notice and is sent to described connection status management devices,
When being judged as that resource is inadequate, notice being deleted in connection and is sent to described connection status management devices.
4. connection status management method as claimed in claim 3, is characterized in that:
When described connection status management devices receives the message from described resource-constrained devices, in described connection status management process, judge whether it is connect to recover notice,
When being judged as YES connection and recovering notice, be extracted in the described connection state information of local storage and send it to described resource-constrained devices,
When being judged as it not being when connecting recovery notice, and then judge whether it is connect to delete notice, when being judged as YES connection and deleting notice, delete and be stored in local connection state information, and send to described resource-constrained devices and described distant-end node by deleting notice.
5. the connection status management method according to any one of Claims 1 to 4, is characterized in that:
Described connection state information also comprises request type information,
When described request type is secure communication connection, described Connecting quantity information comprises security parameter,
When described request type be data report connection time, described Connecting quantity information comprises data and reports parameter.
6. connection status management method as claimed in claim 5, is characterized in that:
Described Connecting quantity information also comprises online cycle and the off-line cycle of described resource-constrained devices.
7. a connection status management system for resource-constrained devices, is characterized in that, comprising:
At least one resource-constrained devices;
Distant-end node; With
To the connection status management devices that the connection status of described resource-constrained devices manages,
Described resource-constrained devices comprises:
Connection state information transmitting element, the connection state information during state that connected with described distant-end node for the first time by described resource-constrained devices sends to described connection status management devices, and wherein said connection state information at least comprises the address information of described resource-constrained devices, the address information of described distant-end node and Connecting quantity information;
Connect and recover/delete notice transmitting element, when the described resource-constrained devices after off-line will recover connection status with described distant-end node, connection is recovered notice and is sent to described connection status management devices; With
Connection status recovery unit, recovers the connection status with described far point node based on the described connection state information received from described connection status management devices,
Described connection status management devices comprises:
Storage unit, it is for storing the described connection state information sent from described resource-constrained devices;
Connection state information registering unit, when receiving the described connection state information sent from described resource-constrained devices, being registered and being stored in described storage unit, and
Connection status administrative unit, when receiving the connection recovery notice from described resource-constrained devices, be extracted in the described connection state information that stores in described storage unit and send it to described resource-constrained devices, making described resource-constrained devices recover the connection status with described distant-end node based on the described connection state information received from described connection status management devices.
8. the connection status management system of resource-constrained devices as claimed in claim 7, is characterized in that:
After described resource-constrained devices connects state for the first time with described distant-end node, by described connection state information transmitting element, current connection state information is sent to described connection status management devices, enter off-line mode in the moment of regulation afterwards, disconnect the connection status with distant-end node.
9. the connection status management system of resource-constrained devices as claimed in claim 7 or 8, is characterized in that:
Described resource-constrained devices also comprises resource status query unit, and when described resource-constrained devices enters line model from off-line mode, whether inquiry equipment of itself has the connection status of enough resource recoveries and described distant-end node,
When resource is enough, recovers/delete notice transmitting element by described connection and connection recovery notice is sent to described connection status management devices,
When being judged as that resource is inadequate, recovering/deleting notice transmitting element by described connection and connection deletion notice is sent to described connection status management devices.
10. the connection status management system of resource-constrained devices as claimed in claim 9, is characterized in that:
When described connection status management devices receives the message from described resource-constrained devices, described connection status administrative unit judges whether it is connect to recover notice,
When being judged as YES connection and recovering notice, be extracted in the described connection state information of local storage and send it to described resource-constrained devices,
When being judged as it not being when connecting recovery notice, and then judge whether it is connect to delete notice, when being judged as YES connection and deleting notice, delete and be stored in local connection state information, and send to described resource-constrained devices and described distant-end node by deleting notice.
The connection status management system of 11. resource-constrained devices according to any one of claim 7 ~ 10, is characterized in that:
Described connection state information also comprises request type information,
When described request type is secure communication connection, described Connecting quantity information comprises security parameter,
When described request type be data report connection time, described Connecting quantity information comprises data and reports parameter.
The connection status management system of 12. resource-constrained devices as claimed in claim 11, is characterized in that:
Described Connecting quantity information also comprises online cycle and the off-line cycle of described resource-constrained devices.
CN201410264305.3A 2014-06-13 2014-06-13 The connection status management method of resource-constrained devices and device Pending CN105224055A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410264305.3A CN105224055A (en) 2014-06-13 2014-06-13 The connection status management method of resource-constrained devices and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410264305.3A CN105224055A (en) 2014-06-13 2014-06-13 The connection status management method of resource-constrained devices and device

Publications (1)

Publication Number Publication Date
CN105224055A true CN105224055A (en) 2016-01-06

Family

ID=54993082

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410264305.3A Pending CN105224055A (en) 2014-06-13 2014-06-13 The connection status management method of resource-constrained devices and device

Country Status (1)

Country Link
CN (1) CN105224055A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101184103A (en) * 2007-12-19 2008-05-21 深圳市戴文科技有限公司 Method for accessing wireless service server through mobile terminal equipment
US20080120414A1 (en) * 2006-11-17 2008-05-22 Nandakishore Kushalnagar Representing resource constrained devices in a network
CN102185721A (en) * 2011-05-18 2011-09-14 中兴通讯股份有限公司 Method and device for accelerating communication in network management system
TW201215064A (en) * 2010-06-17 2012-04-01 Interdigital Patent Holdings Application layer protocol support for sleeping nodes in constrained networks
CN103338118A (en) * 2013-06-04 2013-10-02 北京搜狐新媒体信息技术有限公司 A communication network connection method and an apparatus thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080120414A1 (en) * 2006-11-17 2008-05-22 Nandakishore Kushalnagar Representing resource constrained devices in a network
CN101184103A (en) * 2007-12-19 2008-05-21 深圳市戴文科技有限公司 Method for accessing wireless service server through mobile terminal equipment
TW201215064A (en) * 2010-06-17 2012-04-01 Interdigital Patent Holdings Application layer protocol support for sleeping nodes in constrained networks
CN102185721A (en) * 2011-05-18 2011-09-14 中兴通讯股份有限公司 Method and device for accelerating communication in network management system
CN103338118A (en) * 2013-06-04 2013-10-02 北京搜狐新媒体信息技术有限公司 A communication network connection method and an apparatus thereof

Similar Documents

Publication Publication Date Title
CN104968037B (en) Low-power consumption Internet of Things implementation method based on agent equipment
CN107666475B (en) A kind of charger baby leasing system and its rent method
CN103338473B (en) The treatment facility of cell outage
CN102209302A (en) System and method for realizing information push of mobile terminal
CN107247604A (en) A kind of charger baby software firmware update system and its update method
JP2014501970A5 (en)
CN107968713B (en) Remote wake-up method, device and system
US20110264294A1 (en) Set-top box and energy management method
CN105450422A (en) Wireless access point fault remote automatic recovery system based on access controller and POE switch
CN103338524A (en) Wireless access method, wireless access device, wireless access system, access controller and access point equipment
CN104135460A (en) Method for keeping push channel active and push server
CN102104893A (en) Method, device and wireless access point equipment for realizing hot backup of wireless controller
CN103139018B (en) Network card status monitoring under a kind of modulation integral system and TCP communication method
CN103997533B (en) A kind of dynamic terminal long-distance maintenance method based on wireless network
JP5695053B2 (en) Mobile node assignment to routers in wPAN
CN106530465A (en) Intelligent whole door lock unit with low power consumption and implementing method of intelligent whole door lock unit
CN202111746U (en) System for realizing information push of mobile terminal
CN103560998A (en) Method and system for wireless sensor network to resist DoS attacks
CN104349311A (en) Key establishment method and system used for small-data transmission of machine-type communication
US20220224995A1 (en) Method for reading fluid meters
CN103973466B (en) A kind of method and device waking up suspend mode link
CN105224055A (en) The connection status management method of resource-constrained devices and device
CN104243110A (en) Wireless sensor network data transmission method based on non-real-time response mechanism
CN109039427B (en) Ship monitoring management device
CN105577967A (en) Incoming call reminding device in shutdown state of mobile terminal and method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160106