CN103581362B - The method of sensor nodes to migrate to another sensor network and the network gateway - Google Patents

The method of sensor nodes to migrate to another sensor network and the network gateway Download PDF

Info

Publication number
CN103581362B
CN103581362B CN 201310597579 CN201310597579A CN103581362B CN 103581362 B CN103581362 B CN 103581362B CN 201310597579 CN201310597579 CN 201310597579 CN 201310597579 A CN201310597579 A CN 201310597579A CN 103581362 B CN103581362 B CN 103581362B
Authority
CN
Grant status
Grant
Patent type
Application number
CN 201310597579
Other languages
Chinese (zh)
Other versions
CN103581362A (en )
Inventor
赵文东
盛明哲
毛峻岭
Original Assignee
中国联合网络通信集团有限公司
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
Grant date

Links

Abstract

本发明提供了一种传感器网络节点向另一传感器网络迁移的方法和网络网关,其中,所述方法包括:第一传感器网络的第一网关与第二传感器网络的第二网关交互,申请将第一传感器网络中的多个节点以群组方式加入第二传感器网络;所述第二网关如判断所述第二传感器网络可以接纳所述多个节点,则与所述第一网关交互,将自身网关地址和为所述多个节点分配的子网地址发送给所述第一网关;所述第一网关将所述子网地址分配给所述多个节点,并通知所述多个节点将发送报文的目的地址替换为所述第二网关的地址。 The present invention provides a method and to a sensor network gateway network node migration to another sensor network, wherein said method comprises: a first interaction a second gateway network gateway a first sensor and a second sensor network, the first application a plurality of nodes of a sensor network in groups added to the second sensor network; determining as the second gateway may receive the second sensor of the plurality of network nodes, the interaction with the first gateway itself and transmitting gateway address assigned to the plurality of nodes to the first gateway subnet address; the first gateway to the subnet address assigned to the plurality of nodes, and notifies the plurality of transmitting nodes replacing the destination address of the packet is the address of the second gateway. 本发明避免了传感器网络中的多个节点向另一传感器网络迁移占用大量信令开销。 The present invention avoids the plurality of sensor nodes in a sensor network migration to another take up a lot of signaling overhead.

Description

传感器网络节点向另一传感器网络迁移的方法和网络网关 The method of sensor nodes to migrate to another sensor network and the network gateway

技术领域 FIELD

[0001]本发明涉及传感器网络节点迀移领域,尤其涉及一种传感器网络节点向另一传感器网络迀移的方法和网络网关。 [0001] The present invention relates to a sensor network node Gan shift, and in particular relates to a method for shifting a sensor network node to another sensor network and the network gateway Gan.

背景技术 Background technique

[0002 ]传感器网络(WSN)是动态变化的网络,传感器网络内节点动态变化频繁,同一时间可能存在大量节点发起迀出其所在传感器网络的请求;或者当传感器网络的网关能力有限无法继续管理本传感器网络的节点时,传感器网络网关会选择将其管理的全部或部分节点接入其它传感器网络,或者当传感器网络的节点较少,为了节省资源,传感器网络网关也会选择将其管理的全部节点接入其它传感器网络。 [0002] Sensor Network (WSN) is the network dynamics change frequently node dynamically changes in the sensor network, at the same time there may be a large number of nodes to initiate Gan out request it in a sensor network; or when limited gateway ability of the sensor network can not continue to manage the when the sensor nodes of the sensor network gateway will choose the access network which manages other sensors all or part of the nodes, or when the small sensor nodes in order to save resources, the sensor network gateway node will select all of its management access to other sensor networks.

[0003]当传感器网络内的节点需要接入其他传感器网络时,现有的做法是,欲迀出节点通过所在传感器网络的网关与其欲迀入的传感器网络的网关单独进行通信。 [0003] When a node in the sensor network requires access to other sensor network, the conventional practice, to be located through a gateway node Gan the sensor network gateway Gan into its desire to communicate sensor network separately. 随着欲迀出传感器网络的节点增多,欲迀出节点与欲迀入传感器网络网关之间的信令交互占用了大量的信令开销,降低了网关的处理能力;并且传感器网络每接入一个节点,其拓扑结构就需要进行相应的更新,耗损了大量传感器网络资源。 Gan To increase as the sensor nodes of the node to be Gan To Gan between the sensor network gateway signaling interaction takes up a lot of signaling overhead, reducing the processing capability of the gateway; access to each of the sensor network and a node topology which would need to be updated and a lot of wear sensor network resources.

发明内容 SUMMARY

[0004] 本发明提供了一种传感器网络节点向另一传感器网络迀移的方法和传感器网络网关,以解决避免传感器网络中的多个节点向另一传感器网络迀移占用大量信令开销的问题。 [0004] The present invention provides a method and a sensor to a sensor network gateway to another network node shift Gan sensor network to address the plurality of network nodes to avoid shifting sensor to another sensor network Gan take up a lot of signaling overhead .

[0005]为解决上述技术问题,本发明提供了一种传感器网络内节点向另一传感器网络迀移的方法,所述方法包括: [0005] In order to solve the above technical problem, the present invention provides a method A sensor within the sensor network to another network node Gan shift, the method comprising:

[0006]第一传感器网络的第一网关与第二传感器网络的第二网关交互,申请将第一传感器网络中的多个节点以群组方式加入第二传感器网络; [0006] The second gateway interactive network first gateway a first sensor and a second sensor network, application of the first plurality of nodes in a sensor network in groups added to the second sensor network;

[0007]所述第二网关如判断所述第二传感器网络可以接纳所述多个节点,则与所述第一网关交互,将自身网关地址和为所述多个节点分配的子网地址发送给所述第一网关; [0007] As the second gateway determines that the network may receive the second plurality of sensor nodes, the interaction with the first gateway, and gateway address itself to the plurality of transmitting nodes assigned subnet address to the first gateway;

[0008]所述第一网关将所述子网地址分配给所述多个节点,并通知所述多个节点将发送报文的目的地址替换为所述第二网关的地址。 [0008] the first gateway to the subnet address assigned to the plurality of nodes, and notifying the plurality of nodes to send the packet destination address is replaced with the address of the second gateway.

[0009]进一步地,所述第一传感器网络的第一网关与第二传感器网络的第二网关交互,申请将第一传感器网络中的多个节点以群组方式加入第二传感器网络,包括: [0009] Further, the second gateway to the first gateway a first interaction with a second sensor network sensor network, application of the first plurality of nodes in a sensor network in groups added to the second sensor network, comprising:

[0010]第一传感器网络的第一网关向第二传感器网络的第二网关发送群组加入申请;[0011 ]所述第二网关在判断自身地址存在余量的情况下,向所述第一网关发送同意加入指令; [0010] a first sensor network first gateway to the second gateway sending the second request to join the group sensor network; [0011] In the case where the second gateway determines the presence of the remainder of its own address, to the first gateway sends agreed to join instruction;

[0012]所述第一网关向所述第二网关上报以群组方式加入第二传感器网络的多个节点的数量。 [0012] The first gateway reports the number of the plurality of nodes in groups added to the second sensor network to the second gateway.

[0013]进一步地,所述第二网关如判断所述第二传感器网络可以接纳所述多个节点,则与所述第一网关交互,将自身网关地址和为所述多个节点分配的子网地址发送给所述第一网关,包括: [0013] Further, as the second gateway determines that the network may receive the second plurality of sensor nodes, the interaction with the first gateway, and gateway address itself is allocated to the plurality of sub-nodes address to the first network gateway, comprising:

[0014]所述第二网关如判断自身剩余可用地址数量大于或等于所述多个节点的数量,则向第一网关发送接纳所述多个节点的指令; [0014] As the second gateway determines the number of remaining usable addresses itself equal to or greater than the number of the plurality of nodes, the node sends an instruction to a plurality of receiving said first gateway;

[0015]第一网关将所述多个节点组成的网络拓扑发送给第二网关; [0015] a first of said plurality of gateway nodes to a network topology consisting of a second gateway;

[0016]第二网关根据所述网络拓扑为所述多个节点分配子网地址; [0016] The second gateway allocates the subnet address of the plurality of nodes according to the network topology;

[0017]第二网关将自身网关地址和为所述多个节点分配的子网地址发送给所述第一网关。 [0017] The second gateway transmits its allocated gateway address and a subnet address of the plurality of nodes to the first gateway.

[0018] 进一步地,所述方法还包括: [0018] Preferably, the method further comprising:

[0019]所述第二网关如判断所述第二传感器网络不可接纳所述多个节点,则将第二传感器网络最大可接纳节点数N通知第一网关; [0019] As the second gateway determines that the network is not receiving the second plurality of sensor nodes, the network can then receive the second sensor the maximum number of nodes N inform the first gateway;

[0020]所述第一网关从所述第一传感器网络的所述多个节点中选取M个节点生成新的网络拓扑,并将所述新的网络拓扑发送给所述第二网关,请求将所述M个节点以群组方式加入第二传感器网络,M SN; [0020] selecting the first gateway from a first sensor of the plurality of nodes of the network node M to generate a new network topology, the new network topology and transmitted to the second gateway, the request the M nodes in groups added to the second sensor network, M SN;

[0021]所述第二网关根据所述新的网络拓扑为所述M个节点分配子网地址,将自身网关地址和分配的子网地址发送给所述第一网关; [0021] The dispensing said second gateway node of the M subnet address, sends its own subnet address and gateway address assigned to the first gateway to the new network topology;

[0022]所述第一网关将所述子网地址分配给所述M个节点,并通知所述M个节点将发送报文的目的地址替换为所述第二网关的地址。 [0022] the first gateway to the subnet address assigned to the M nodes, and notifies the M node sends the packet destination address is replaced with the address of the second gateway.

[0023] 进一步地,所述方法还包括: [0023] Preferably, the method further comprising:

[0024]第一网关与除第二传感器网络以外的其他传感器网络的网关交互,申请将所述多个节点扣除所述M个节点后的剩余节点以群组方式加入所述其他传感器网络; [0024] The first gateway gateway interact with other sensor network other than the second sensor network, the application node of said plurality of nodes deducting M nodes in groups added after the other sensor network;

[0025]在所述其他传感器网络的网关拒绝了该申请后,第一网关再次与第二传感器网络的第二网关交互,申请将所述剩余节点以群组方式加入第二传感器网络; After [0025] the other sensor network gateway rejected the application, the first gateway again interact with the second gateway a second sensor network, application of the remaining nodes in groups added to the second sensor network;

[0026]第二网关扩充第二传感器网络的子网地址;与所述第一网关交互,将自身网关地址和为所述剩余节点分配的子网地址发送给所述第一网关; [0026] The second address in the second subnetwork gateway extension sensor network; interacting with the first gateway, the gateway will send its own address and the assigned node to the remaining subnet address to the first gateway;

[0027]第一网关将子网地址分配给所述剩余节点,并通知所述剩余节点将发送报文的目的地址替换为所述第二网关的地址。 [0027] The first gateway subnet address assigned to the remaining node, and notifying the remaining node sends the packet destination address is replaced with the address of the second gateway.

[0028]为解决上述技术问题,本发明还提供了一种传感器网络网关,所述网关用于节点迀出传感器网络,所述网关包括节点迀出模块,以及地址分配模块,其中, [0028] In order to solve the above technical problem, the present invention further provides a sensor network gateway, the gateway node Gan for the sensor network, the gateway node comprising a Gan module, and an address assignment module, wherein

[0029]所述节点迀出模块,用于与其他传感器网络的网关交互,申请将本网络中的多个节点以群组方式加入所述其他传感器网络;以及接收其他传感器网络网关发送的其网关地址和为所述多个节点分配的子网地址,并将网关地址和分配的子网地址发送至地址分配模块; [0029] The node Gan a module for interacting with other sensor network gateway, the application will present a plurality of nodes in the network in groups added to the other sensor network; and receiving other sensor network gateway sends its gateway and the address assigned to said plurality of sub-nodes address and the gateway address, and subnet address assigned to the address assignment module;

[0030]所述地址分配模块,用于将所述子网地址分配给所述多个节点,并通知所述多个节点将发送报文的目的地址替换为所述其他传感器网络网关的地址。 [0030] The address assignment module, for distributing the sub-network address to the plurality of nodes, and notifying the plurality of nodes to send the packet destination IP address of the addresses of other sensor network gateway.

[0031] 进一步地, [0031] Further,

[0032]所述节点迀出模块,还用于在接收到所述其他传感器网络网关发送的最大可接纳节点数N时,从所述多个节点中选取M个节点,请求将所述M个节点以群组方式加入所述其他传感器网络,M SN;接收所述其他传感器网络网关发送的其网关地址和为所述M个节点分配的子网地址,将该网关地址和子网地址发送给所述地址分配模块; [0032] Gan out the node module is further configured to, when receiving the maximum receiving section other sensor network gateway sends the points N, M nodes selected from the plurality of nodes requesting the M nodes in groups added to the other sensor network, the SN M; receiving the another sensor network gateway sends its address and the gateway node is assigned to the M subnet address, the gateway address, and transmits to the subnet address said address assignment module;

[0033]所述地址分配模块,还用于将为M个节点分配的子网地址分配给所述M个节点,并通知所述M个节点将发送报文的目的地址替换为所述其他传感器网络网关的地址。 Subnet address [0033] The address assignment module is further configured to allocate nodes for M allocated to the M nodes, and notifies the M node sends the packet destination IP address of the other sensors address of the network gateway.

[0034]为解决上述技术问题,本发明还提供了一种传感器网络网关,所述网关用于节点迀入传感器网络,所述网关包括节点迀入模块,以及地址分配模块,其中: [0034] In order to solve the above technical problem, the present invention further provides a sensor network gateway, the gateway node Gan for the sensor network, the gateway node comprising Gan into the module, and an address assignment module, wherein:

[0035]所述节点迀入模块,用于接收其他传感器网络网关发送的多个节点以群组方式加入本传感器网络的申请,如判断本传感器网络可以接纳所述多个节点,通知地址分配模块进行地址分配;以及将来自所述地址分配模块的子网地址发送给其他传感器网络网关; [0035] Gan node into the module for receiving a plurality of other sensor network gateway node sends a request to join in groups present sensor network, such as the sensor network may receive the judgment of the plurality of nodes, the notification address assignment module address assignment; and transmitting the subnet address from the address assignment module to other sensor network gateway;

[0036] 所述地址分配模块,用于为节点分配子网地址,并将子网地址发送至所述节点迀入模块。 The [0036] address assignment module configured to assign a subnet node address, subnet and node addresses to the module into the Gan.

[0037] 进一步地, [0037] Further,

[0038]所述节点迀入模块,还用于判断出本传感器网络不可接纳所述多个节点时,向所述其他传感器网络网关发送最大可接纳节点数N;以及接收所述其他传感器网络网关发送的将M个节点以群组方式加入本传感器网络的请求,Mg N,通知所述地址分配模块为M个节点进行地址分配。 [0038] Gan into the node module is further for determining when the sensor network is not present to receive the plurality of nodes, sending to the other sensor network gateway may receive a maximum number of nodes N; and receiving the other sensor network gateway the request sent in groups of M nodes join the sensor network, Mg N, notifying the address assignment module address allocation to M nodes.

[0039] 进一步地, [0039] Further,

[0040]所述节点迀入模块,还用于接收所述其他传感器网络网关发送的将所述多个节点扣除所述M个节点后的剩余节点以群组方式加入本传感器网络的申请,扩充本传感器网络的子网地址,通知所述地址分配模块对所述剩余节点进行地址分配。 [0040] Gan into the node module is further configured to receive the request to other nodes of the plurality of sensor network gateway node sent by deducting the M nodes in groups after joining the sensor network, expansion subnet address of this sensor network, notifying the address assignment module of the address allocation of the remaining nodes.

[0041] 进一步地, [0041] Further,

[0042]所述节点迀入模块,用于接收所述其他传感器网络网关发送的请求以群组方式加入的节点的拓扑结构,并将该拓扑结构通知地址分配模块; [0042] Gan node into the module, for receiving the topology of the sensor network gateway sends another request to join in groups of nodes, and notifies the address assignment module topology;

[0043]所述地址分配模块,用于根据所述网络拓扑为节点分配子网地址。 [0043] The address assignment module for assigning an address to the subnet node according to the network topology.

[0044]上述技术方案将欲从一个传感器网络迀出的多个节点以群组的方式申请加入所述另一个传感器网络,所述另一个传感器网络的网关可以同时为该群组中的节点分配子网地址,相对每一个迀出节点与欲迀入传感器网关交互获取子网地址,极大地节省了信令开销。 [0044] For the above technical solutions Gan plurality of nodes from a group of sensor networks to apply for the addition of another sensor network, the sensor network may be another gateway node simultaneously allocated for the group subnet address, the node relative to each Gan Gan to obtain the subnet address interactive gateway sensor, significant savings in the signaling overhead.

附图说明 BRIEF DESCRIPTION

[0045]图1为本实施例的一种传感器网络内节点向另一传感器网络迀移的方法流程图; [0045] FIG. 1 is a flowchart of a method embodiment of the A sensor network node to another embodiment of the sensor network Gan shift;

[0046]图2为本实施例的用于节点迀出传感器网络的网关组成示意图; A node [0046] FIG 2 is an embodiment of the gateway Gan schematic diagram illustrating a sensor network;

[0047]图3为本实施例的用于节点迀入传感器网络的网关组成示意图。 A node [0047] FIG. 3 shows an embodiment of a sensor network gateway into Gan schematic composition.

具体实施方式 detailed description

[0048]为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。 [0048] To make the objectives, technical solutions, and advantages of the present invention will become apparent from, the accompanying drawings hereinafter in conjunction with embodiments of the present invention will be described in detail. 需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。 Incidentally, in the case of no conflict, embodiments and features of the embodiments of the present application may be arbitrarily combined with each other.

[0049]图1为本实施例的一种传感器网络内节点向另一传感器网络迀移的方法流程图。 [0049] FIG. 1 is a flowchart of the method A sensor network node to another embodiment of the sensor network Gan shift embodiment.

[0050] SlOl第一传感器网络的第一网关与第二传感器网络的第二网关交互,申请将第一传感器网络中的多个节点以群组方式加入第二传感器网络; The second gateway interaction [0050] a first network gateway SlOl a first sensor and a second sensor network, application of the first plurality of nodes in a sensor network in groups added to the second sensor network;

[0051]第一传感器网络的第一网关向第二传感器网络的第二网关发送群组加入申请; [0051] a first sensor network first gateway to the second gateway sending the second group of sensor network request to join;

[0052]第二网关判断自身剩余可用地址是否为0,如果自身没有剩余可用地址,可向第一网关发送拒绝加入指令;如果第二网关判断自身地址存在余量,向所述第一网关发送同意加入指令; [0052] The second gateway determines whether its own address remaining available to 0 if there is no remaining available address itself, may be added to the gateway sends a rejection to the first instruction; margin exists if the second gateway determines its own address, the first gateway sends He agreed to join instruction;

[0053]所述第一网关向所述第二网关上报以群组方式加入第二传感器网络的多个节点的数量; [0053] The first gateway reports the number of the plurality of nodes in groups added to the second sensor network to said second gateway;

[0054] S102第二网关判断所述第二传感器网络是否可以接纳所述多个节点,如可以接纳所述多个节点,执行步骤S103;否则执行步骤S105; [0054] S102 a second gateway determines whether the second plurality of sensor nodes of the network may receive, as the plurality of nodes may receive, step S103; otherwise, to step S105;

[0055]第二网关判断自身剩余可用地址数量大于或等于多个节点的数量,则向第一网关发送接纳所述多个节点的指令; [0055] The second gateway determines the number of remaining usable addresses itself equal to or greater than the number of the plurality of nodes, the node sends an instruction to a plurality of receiving said first gateway;

[0056] S103第二网关与所述第一网关交互,将自身网关地址和为所述多个节点分配的子网地址发送给所述第一网关; [0056] S103 interact with a second gateway to the first gateway, and gateway address assigned to itself to said plurality of nodes to a subnet address of the first gateway;

[0057]第一网关接收到第二网关发送的接纳多个节点的指令后,将所述多个节点组成的网络拓扑发送给第二网关; [0057] After receiving the instruction of the first gateway node receiving the plurality of second transmitting gateway, and transmits the network topology of the plurality of nodes to the second gateway;

[0058]第二网关根据所述网络拓扑为所述多个节点分配子网地址,由第二网关根据多个节点的网络拓扑进行节点地址统一规划,减小了节点间地址发生冲突的概率; [0058] The second gateway allocates the subnet address of the plurality of nodes, a node address of a second gateway unified planning plurality of nodes based on network topology, reducing the probability of occurrence of the address conflicts between nodes according to the network topology;

[0059] 第二网关除可以为所述多个节点分配子网地址外,还可为第一网关分配子网地址,以使第一网关的子网地址和多个节点的子网地址位于相同的网段,便于第一网关向所述多个节点发送消息; [0059] In addition to the second gateway subnet address may be assigned to the plurality of nodes subnet address, the first gateway may assign subnet addresses, subnet address, and so that the plurality of nodes located on the same first gateway network segment, the first gateway send a message to facilitate the plurality of nodes;

[0060] S104所述第一网关将所述子网地址分配给所述多个节点,并通知所述多个节点将发送报文的目的地址替换为所述第二网关的地址,执行步骤S109; [0060] S104 of the first gateway to the subnet address assigned to the plurality of nodes, and notifying the plurality of nodes to send the packet destination address is replaced with the address of the second gateway, step S109 is executed ;

[0061]如果所述多个节点是第一传感器网络内的全部节点,第一网关在通知所述多个节点替换发送报文的目的地址后,可变为休眠状态; [0061] If the plurality of nodes is all network nodes within the first sensor, a first gateway node notice replaces the destination address of said plurality of packets transmitted can be changed to a sleep state;

[0062] S105第二网关将第二传感器网络最大可接纳节点数N通知第一网关; [0062] S105 a second sensor network to a second gateway can receive the maximum number of nodes N inform the first gateway;

[0063] S106第一网关从所述第一传感器网络的所述多个节点中选取M个节点,请求将所述M个节点以群组方式加入第二传感器网络,M < N; [0063] S106 to select a first gateway node M from the first plurality of nodes of the sensor network, the request node to the M group joins a second sensor network, M <N;

[0064]第一网关对选取的M个节点生成新的网络拓扑,并将所述新的网络拓扑发送给所述第二网关; [0064] The first gateway generates a new network topology of the M selected node, the new network topology and transmitted to the second gateway;

[0065] S107第二网关为所述M个节点分配子网地址,将自身网关地址和分配的子网地址发送给所述第一网关; [0065] S107 a second gateway to the M assigned subnet node address, sends its own subnet address and gateway address assigned to the first gateway;

[0066]第二网关根据由M个节点生成的新的网络拓扑为所述M个节点分配子网地址; [0066] a second gateway node to the M subnet address allocation based on the new network topology generated by M nodes;

[0067] S108第一网关将所述子网地址分配给所述M个节点,并通知所述M个节点将发送报文的目的地址替换为所述第二网关的地址; [0067] S108 a first gateway to the subnet address assigned to the M nodes, and notifies the M node sends the packet destination address is replaced with the address of the second gateway;

[0068] S109流程结束。 [0068] S109 process ends.

[0069]对于第一传感器网络中所述多个节点扣除所述M个节点后的剩余节点,第一网关可以再次申请将所述剩余节点以群组方式加入其他的传感器网络,申请的流程可参照上述一种传感器网络内节点向另一传感器网络迀移的方法流程,此处不再累述。 [0069] For a first sensor of the plurality of nodes in a network node of the M deducting the nodes, a first gateway can apply again the remaining nodes in groups add additional sensor network, the application process can be the method of the above-described process with reference to a sensor network node to another sensor network Gan shift, here no longer tired. 如果接入其他的传感器网络不成功,第一网关可再次与第二传感器网络的第二网关交互,申请将所述剩余节点以群组方式加入第二传感器网络;第二网关接收到第一网关的申请后,扩充第二传感器网络的子网地址(如将原第二传感器网络的地址位数由6位码字扩充为7位码字,这样将有新的64个地址可供使用);第二网关与所述第一网关交互,将自身网关地址和为所述剩余节点分配的子网地址发送给所述第一网关;第一网关将子网地址分配给所述剩余节点,并通知所述剩余节点将发送报文的目的地址替换为所述第二网关的地址。 If unsuccessful access to other sensor network, the first gateway may again interact with a second gateway and a second sensor network, application of the remaining nodes in groups added to the second sensor network; a first gateway to a second gateway receives after application, the second expansion of the sensor network subnet address (e.g., address bits of the second original sensor network expansion by six 7-bit code word bit codewords, so that there will be 64 new addresses are available); the first gateway and a second gateway interaction, and transmits its own address to the gateway node remaining subnet address assigned to the first gateway; assigning a first gateway to the subnet addresses remaining node, and notify the remaining node sends the packet destination address is replaced with the address of the second gateway.

[0070]图2为本实施例的用于节点迀出传感器网络的网关组成示意图。 A node [0070] Example 2 of the present embodiment of the sensor network gateway Gan a schematic composition diagram.

[0071]该传感器网络网关包括节点迀出模块,以及地址分配模块,其中, [0071] The sensor network includes a gateway node Gan the module, and an address assignment module, wherein

[0072]所述节点迀出模块,用于与其他传感器网络的网关交互,申请将本网络中的多个节点以群组方式加入所述其他传感器网络;以及接收其他传感器网络网关发送的其网关地址和为所述多个节点分配的子网地址,并将网关地址和分配的子网地址发送至地址分配模块; [0072] The node Gan a module for interacting with other sensor network gateway, the application will present a plurality of nodes in the network in groups added to the other sensor network; and receiving other sensor network gateway sends its gateway and the address assigned to said plurality of sub-nodes address and the gateway address, and subnet address assigned to the address assignment module;

[0073]所述节点迀出模块在于与其他传感器网络的网关交互,申请将本网络中的多个节点以群组方式加入所述其他传感器网络时,可首先向所述其他传感器网络网关发送群组加入申请,在接收到来自其他传感器网络网关的同意加入指令后,将所述节点的数量上报给所述其他传感器网络的网关,等待所述其他传感器网络网关判断该其他传感器网络是否可接纳如此数量的节点; When [0073] the module comprising a gateway node Gan interact with other sensor network, a plurality of application nodes present in the network in groups added to the other sensor network, the sensor may first network gateway to the other transmission group group join request, upon receiving an approval from the other sensor network gateway add command, the number of nodes of the other sensors reporting to the gateway network, waiting for the other sensor network gateway determines whether the network receiving such other sensors the number of nodes;

[0074]所述节点迀出模块在获取到所述其他传感器网络网关发送的可接纳所述多个节点的指令后,可将所述多个节点组成的网络拓扑发送给所述其他传感器网络网关,以供所述其他传感器网络网关分配节点子网地址时参考; [0074] The node Gan module after obtaining an instruction may receive the plurality of nodes of the sensor network gateway sends the other, may transmit the network topology of the plurality of nodes to said network gateway other sensors , when a reference sensor for the other network gateway node assigned subnet address;

[0075]所述地址分配模块,用于将所述子网地址分配给所述多个节点,并通知所述多个节点将发送报文的目的地址替换为所述其他传感器网络网关的地址。 [0075] The address assignment module, for distributing the sub-network address to the plurality of nodes, and notifying the plurality of nodes to send the packet destination IP address of the addresses of other sensor network gateway.

[0076]上述节点迀出模块,还用于在接收到所述其他传感器网络网关发送的最大可接纳节点数N时,从所述多个节点中选取M个节点,请求将所述M个节点以群组方式加入所述其他传感器网络,M < N,同样地,在请求所述M个节点以群组方式加入所述其他传感器网络时,可将M个节点的网络拓扑发送给所述其他传感器网络;接收所述其他传感器网络网关发送的其网关地址和为所述M个节点分配的子网地址,将该网关地址和子网地址发送给所述地址分配模块; [0076] The node Gan the module is further configured to, when receiving the maximum receiving section other sensor network gateway sends the points N, M nodes selected from the plurality of nodes, the node requests the M in groups added to the other sensor network, M <N, in the same manner, upon request of the M nodes in groups other sensors added to the network, M may transmit the network topology to the other nodes sensor network; receiving the other sensors send their network gateway and gateway address assigned to the M nodes subnet address, the gateway address, and subnet address to the address assignment module;

[0077]对于所述多个节点扣除所述M个节点后的剩余节点,节点迀出模块可继续向传感器网络网关申请该剩余节点以群组方式加入; [0077] deducting the node after the node M, Gan node for a node of the plurality of modules may continue to apply to the remaining nodes of the sensor network gateway is added in groups;

[0078] 地址分配模块,还用于将为M个节点分配的子网地址分配给所述M个节点,并通知所述M个节点将发送报文的目的地址替换为所述其他传感器网络网关的地址。 Subnet address [0078] The address assignment module is further configured to allocate nodes for M allocated to the M nodes, and notifies the M is replaced with the nodes of the sensor network gateway sends another packet destination address the address of.

[0079]图3为本实施例的用于节点迀入传感器网络的网关组成示意图。 A node [0079] FIG. 3 shows an embodiment of a sensor network gateway into Gan schematic composition.

[0080]该网关包括节点迀入模块,以及地址分配模块,其中, [0080] The gateway node comprises a module into Gan, and an address assignment module, wherein

[0081]节点迀入模块,用于接收其他传感器网络网关发送的多个节点以群组方式加入本传感器网络的申请,如判断本传感器网络可以接纳所述多个节点,通知地址分配模块进行地址分配;以及将来自所述地址分配模块的子网地址发送给其他传感器网络网关; A plurality of nodes [0081] Gan the node module for receiving other sensor network gateway sends the request to join in groups present sensor network, such as the sensor network may receive the judgment of the plurality of nodes, an address notification address assignment module allocation; and from the address assignment module subnet address to another sensor network gateway;

[0082]地址分配模块,用于为节点分配子网地址,并将子网地址发送至所述节点迀入模块。 [0082] The address assignment module configured to assign a subnet node address, subnet and node addresses to the module into the Gan.

[0083]该节点迀入模块,还用于判断出本传感器网络不可接纳所述多个节点时,向所述其他传感器网络网关发送最大可接纳节点数N;以及接收所述其他传感器网络网关发送的将M个节点以群组方式加入本传感器网络的请求,M SN,通知所述地址分配模块为M个节点进行地址分配; [0083] Gan into the node module is further configured to present is determined that the network is not receiving the plurality of sensor nodes, maximum transmission number of nodes N receiving sensor to the other network gateway; and receiving the other sensor network gateway sends M nodes will be added in groups present sensor network request, M SN, notifying the address assignment module address allocation to M nodes;

[0084]所述节点迀入模块,还用于接收所述其他传感器网络网关发送的将所述多个节点扣除所述M个节点后的剩余节点以群组方式加入本传感器网络的申请,扩充本传感器网络的子网地址,通知所述地址分配模块对所述剩余节点进行地址分配; [0084] Gan into the node module is further configured to receive the request to other nodes of the plurality of sensor network gateway node sent by deducting the M nodes in groups after joining the sensor network, expansion subnet address of this sensor network, notifying the address assignment module of the address allocation of the remaining nodes;

[0085]上述节点迀入模块可接收所述其他传感器网络网关发送的请求以群组方式加入节点的拓扑结构,并在通知所述地址分配模块为节点分配地址时,将所述节点的拓扑结构通知所述地址分配模块;所述地址分配模块在接收到节点迀出模块发送的节点拓扑结构后,根据该网络拓扑为节点分配子网地址。 When [0085] The module may receive node Gan into the other sensor network gateway request sent in groups added to the topology of the nodes, and assigned node address notifying the address assignment module, the topology of the node notifying the address assignment module; the address assignment module Gan after receiving the transmission nodes in the topology of the node module, according to the network topology subnet address assigned to the node.

[0086]本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。 [0086] Those of ordinary skill in the art will be appreciated that the above-described method may be all or part of the steps by a program instructing relevant hardware is completed, the program may be stored in a computer-readable storage medium, such as read only memory, etc., magnetic or optical disk. 可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现,相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。 Alternatively, all or part of the steps of the above-described embodiments may be implemented using one or more integrated circuits, respectively, each module / unit in the above-described embodiments may be implemented using a form of hardware, software functional modules may also be employed forms. 本发明不限制于任何特定形式的硬件和软件的结合。 The present invention is not limited to any specific combination of hardware and software form.

[0087]需要说明的是,本发明还可有其他多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。 [0087] Incidentally, the present invention can have a variety of other embodiments, without departing from the spirit and essence of the invention, those skilled in the art may make various corresponding modifications and variations according to the present invention , but the protection scope of these respective modifications and variations of the present invention should belong to the appended claims.

Claims (11)

  1. 1.一种传感器网络内节点向另一传感器网络迀移的方法,其特征在于,所述方法包括: 第一传感器网络的第一网关与第二传感器网络的第二网关交互,申请将第一传感器网络中的多个节点以群组方式加入第二传感器网络; 所述第二网关如判断所述第二传感器网络可以接纳所述多个节点,则与所述第一网关交互,将自身网关地址和为所述多个节点分配的子网地址发送给所述第一网关; 所述第一网关将所述子网地址分配给所述多个节点,并通知所述多个节点将发送报文的目的地址替换为所述第二网关的地址。 1. A method for the sensor network node to another network Gan shift sensor, wherein, said method comprising: interacting a second gateway network first gateway a first sensor and a second sensor network, the first application a plurality of sensor nodes in a sensor in groups added to the second network; determining as the second gateway may receive the second sensor of the plurality of network nodes, the interaction with the first gateway, the gateway itself and transmitting the address to the plurality of nodes assigned to the first gateway subnet address; the first gateway to the subnet address assigned to the plurality of nodes, and notifying the plurality of nodes transmitting packets replacing the destination address of the packet is the address of the second gateway.
  2. 2.如权利要求1所述的方法,其特征在于,所述第一传感器网络的第一网关与第二传感器网络的第二网关交互,申请将第一传感器网络中的多个节点以群组方式加入第二传感器网络,包括: 第一传感器网络的第一网关向第二传感器网络的第二网关发送群组加入申请; 所述第二网关在判断自身地址存在余量的情况下,向所述第一网关发送同意加入指令; 所述第一网关向所述第二网关上报以群组方式加入第二传感器网络的多个节点的数量。 2. The method according to claim 1, characterized in that the second gateway to the first gateway a first interaction with a second sensor network sensor network, application of the first plurality of sensor nodes in the network to the group joins a second sensor network, comprising: a first sensor a first network gateway sends the request to join the group of the second gateway a second sensor network; in the case where the second gateway determines the presence of the remainder of its own address, to the agrees to join said first gateway sends an instruction; the first gateway reports the number of the plurality of nodes in groups added to the second sensor network to the second gateway.
  3. 3.如权利要求2所述的方法,其特征在于,所述第二网关如判断所述第二传感器网络可以接纳所述多个节点,则与所述第一网关交互,将自身网关地址和为所述多个节点分配的子网地址发送给所述第一网关,包括: 所述第二网关如判断自身剩余可用地址数量大于或等于所述多个节点的数量,则向第一网关发送接纳所述多个节点的指令; 第一网关将所述多个节点组成的网络拓扑发送给第二网关; 第二网关根据所述网络拓扑为所述多个节点分配子网地址; 第二网关将自身网关地址和为所述多个节点分配的子网地址发送给所述第一网关。 3. The method according to claim 2, wherein said second gateway is determined as the second sensor may receive the plurality of network nodes, the interaction with the first gateway, and gateway address itself transmitting said plurality of nodes assigned subnet address to the first gateway, comprising: determining the number of the second gateway as its own address remaining available equal to or greater than the number of the plurality of nodes, a first gateway is sent to the receiving said plurality of instruction node; a first plurality of gateway nodes of the network topology to a second gateway; network topology according to the second gateway to said plurality of assigned sub-node addresses; second gateway and sends its own address assigned to the gateway of the subnet address of the plurality of nodes to the first gateway.
  4. 4.如权利要求1或2所述的方法,其特征在于,所述方法还包括: 所述第二网关如判断所述第二传感器网络不可接纳所述多个节点,则将第二传感器网络最大可接纳节点数N通知第一网关; 所述第一网关从所述第一传感器网络的所述多个节点中选取M个节点生成新的网络拓扑,并将所述新的网络拓扑发送给所述第二网关,请求将所述M个节点以群组方式加入第二传感器网络,M SN; 所述第二网关根据所述新的网络拓扑为所述M个节点分配子网地址,将自身网关地址和分配的子网地址发送给所述第一网关; 所述第一网关将所述子网地址分配给所述M个节点,并通知所述M个节点将发送报文的目的地址替换为所述第二网关的地址。 4. The method of claim 1 or claim 2, wherein said method further comprises: determining the second gateway as the network is not receiving the second plurality of sensor nodes, then the second sensor network the maximum number of nodes N receiving a first notification gateway; M select the first gateway node generates a new network topology from the node of the first plurality of sensor network, and send to the new network topology the second gateway, requests the M nodes in groups added to the second sensor network, the SN M; according to the second gateway to the new network topology of the M assigned subnet node address, and subnet address and gateway address assigned to itself is sent to the first gateway; the first gateway to the subnet address assigned to the M nodes, and notifies the M node sends the packet destination address replacing the address of the second gateway.
  5. 5.如权利要求4所述的方法,其特征在于,所述方法还包括: 第一网关与除第二传感器网络以外的其他传感器网络的网关交互,申请将所述多个节点扣除所述M个节点后的剩余节点以群组方式加入所述其他传感器网络; 在所述其他传感器网络的网关拒绝了该申请后,第一网关再次与第二传感器网络的第二网关交互,申请将所述剩余节点以群组方式加入第二传感器网络; 第二网关扩充第二传感器网络的子网地址;与所述第一网关交互,将自身网关地址和为所述剩余节点分配的子网地址发送给所述第一网关; 第一网关将子网地址分配给所述剩余节点,并通知所述剩余节点将发送报文的目的地址替换为所述第二网关的地址。 5. The method according to claim 4, characterized in that, said method further comprising: a first gateway to interact with other sensor network gateway other than the second sensor network, the application will be deducted from the plurality of nodes M after the node remaining nodes in groups added to the other sensor network; after the other sensor network gateway rejected the request, the gateway first gateway again a second interaction with a second sensor network, with the application the remaining nodes in groups added to the second sensor network; a second address in the second subnetwork gateway extension sensor network; interacting with the first gateway, the gateway address and its own subnet address assigned to the remaining nodes to transmit the first gateway; assigning a first gateway to the subnet addresses remaining node, and notifying the remaining node sends the packet destination address is replaced with the address of the second gateway.
  6. 6.—种传感器网络网关,其特征在于,所述网关用于节点迀出传感器网络,所述网关包括节点迀出模块,以及地址分配模块,其中, 所述节点迀出模块,用于与其他传感器网络的网关交互,申请将本网络中的多个节点以群组方式加入所述其他传感器网络;以及接收其他传感器网络网关发送的其网关地址和为所述多个节点分配的子网地址,并将网关地址和分配的子网地址发送至地址分配模块; 所述地址分配模块,用于将所述子网地址分配给所述多个节点,并通知所述多个节点将发送报文的目的地址替换为所述其他传感器网络网关的地址。 6.- species sensor network gateway, wherein the gateway node Gan for the sensor network, the gateway node comprising a Gan module, and an address assignment module, wherein, the node Gan a module for communicating with other interactive sensor network gateway, the application will present a plurality of nodes in the network in groups added to the other sensor network; and receiving other sensor network gateway sends its address and the gateway allocated to nodes of the plurality of subnet addresses, and the gateway address, and subnet address assigned to the address assignment module; said address assignment module for assigning the sub-network address to the plurality of nodes, and notifying the plurality of nodes transmitting packets address of the destination IP address of another sensor network gateway.
  7. 7.如权利要求6所述的网关,其特征在于, 所述节点迀出模块,还用于在接收到所述其他传感器网络网关发送的最大可接纳节点数N时,从所述多个节点中选取M个节点,请求将所述M个节点以群组方式加入所述其他传感器网络,M < N;接收所述其他传感器网络网关发送的其网关地址和为所述M个节点分配的子网地址,将该网关地址和子网地址发送给所述地址分配模块; 所述地址分配模块,还用于将为M个节点分配的子网地址分配给所述M个节点,并通知所述M个节点将发送报文的目的地址替换为所述其他传感器网络网关的地址。 7. The gateway according to claim 6, wherein said node Gan out module is further used for receiving the maximum number of points N of the receiving section may be other sensor network gateway transmitted from the plurality of nodes M selected node, requesting the M nodes in groups added to the other sensor network, M <N; the other receiving sensor network gateway sends its address to the gateway node of the M sub-distribution network address, subnet and gateway address and transmits the address to the address assignment module; said address assignment module is further configured to assign subnet address for node M to the M allocated nodes, and notifies the M node sends packets to the destination address of the replacement address of the another sensor network gateway.
  8. 8.—种传感器网络网关,其特征在于,所述网关用于节点迀入传感器网络,所述网关包括节点迀入模块,以及地址分配模块,其中: 所述节点迀入模块,用于接收其他传感器网络网关发送的多个节点以群组方式加入本传感器网络的申请,如判断本传感器网络可以接纳所述多个节点,通知地址分配模块进行地址分配;以及将来自所述地址分配模块的子网地址发送给其他传感器网络网关; 所述地址分配模块,用于为节点分配子网地址,并将子网地址发送至所述节点迀入模块。 8.- species sensor network gateway, wherein the gateway node Gan for the sensor network, the gateway node comprising Gan into the module, and an address assignment module, wherein: the node into the Gan module, for receiving the other application sensor network gateway node sends a plurality of sensors in groups joined the network, such as the sensor network may receive the judgment of the plurality of nodes, the notification address assignment module address allocation; and from the sub-address assignment module network address to another sensor network gateway; said address assignment module for assigning node subnet address, and subnet addresses to the node module into the Gan.
  9. 9.如权利要求8所述的网关,其特征在于, 所述节点迀入模块,还用于判断出本传感器网络不可接纳所述多个节点时,向所述其他传感器网络网关发送最大可接纳节点数N;以及接收所述其他传感器网络网关发送的将M个节点以群组方式加入本传感器网络的请求,M5N,通知所述地址分配模块为M个节点进行地址分配。 9. The gateway according to claim 8, wherein the node into the Gan module is further used for determining that the present network is not receiving the plurality of sensor nodes, maximum transmission to the other receiving sensor network gateway nodes N; and receiving the other sensor network gateway node M will be transmitted in groups of a request to join the sensor network, M5N, notifying the address assignment module address allocation to M nodes.
  10. 10.如权利要求9所述的网关,其特征在于, 所述节点迀入模块,还用于接收所述其他传感器网络网关发送的将所述多个节点扣除所述M个节点后的剩余节点以群组方式加入本传感器网络的申请,扩充本传感器网络的子网地址,通知所述地址分配模块对所述剩余节点进行地址分配。 10. The gateway according to claim 9, wherein said node into Gan module is further used for the remaining nodes of the plurality of nodes after receiving the another sensor network gateway sends the M subtraction node request to join in groups present sensor network, the sensor network of the present expansion subnet address, notifying the address assignment module of the address allocation of the remaining nodes.
  11. 11.如权利要求8或9或10所述的网关,其中, 所述节点迀入模块,用于接收所述其他传感器网络网关发送的请求以群组方式加入的节点的拓扑结构,并将该拓扑结构通知地址分配模块; 所述地址分配模块,用于根据所述网络拓扑为节点分配子网地址。 11. The gateway of claim 8 or 9 or as claimed in claim 10, wherein the node into the Gan module, for receiving the topology of the sensor network gateway sends another request to join in groups of nodes, and the topology notification address assignment module; said address assignment module for assigning a node subnet address according to the network topology.
CN 201310597579 2013-11-22 2013-11-22 The method of sensor nodes to migrate to another sensor network and the network gateway CN103581362B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201310597579 CN103581362B (en) 2013-11-22 2013-11-22 The method of sensor nodes to migrate to another sensor network and the network gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201310597579 CN103581362B (en) 2013-11-22 2013-11-22 The method of sensor nodes to migrate to another sensor network and the network gateway

Publications (2)

Publication Number Publication Date
CN103581362A true CN103581362A (en) 2014-02-12
CN103581362B true CN103581362B (en) 2016-09-07

Family

ID=50052269

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201310597579 CN103581362B (en) 2013-11-22 2013-11-22 The method of sensor nodes to migrate to another sensor network and the network gateway

Country Status (1)

Country Link
CN (1) CN103581362B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340328A (en) * 2007-07-04 2009-01-07 上海木牛信息技术有限公司 System and method for networking of Zigbee wireless sensor network in building management
WO2012016337A1 (en) * 2010-08-06 2012-02-09 Simon Fraser University System and method for self-calibrating, self-organizing and localizing sensors in wireless sensor networks
CN102448022A (en) * 2010-09-30 2012-05-09 上海贝尔股份有限公司 Sensor network group mobility management method and system
CN102457903A (en) * 2010-10-19 2012-05-16 中兴通讯股份有限公司 Access control method for accessing wireless sensor network to telecommunication network by multiple gateways and apparatus thereof
CN102594885A (en) * 2012-02-10 2012-07-18 中国科学院计算机网络信息中心 Sensor network analyzing intercommunicating platform, sensor network intercommunicating method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340328A (en) * 2007-07-04 2009-01-07 上海木牛信息技术有限公司 System and method for networking of Zigbee wireless sensor network in building management
WO2012016337A1 (en) * 2010-08-06 2012-02-09 Simon Fraser University System and method for self-calibrating, self-organizing and localizing sensors in wireless sensor networks
CN102448022A (en) * 2010-09-30 2012-05-09 上海贝尔股份有限公司 Sensor network group mobility management method and system
CN102457903A (en) * 2010-10-19 2012-05-16 中兴通讯股份有限公司 Access control method for accessing wireless sensor network to telecommunication network by multiple gateways and apparatus thereof
CN102594885A (en) * 2012-02-10 2012-07-18 中国科学院计算机网络信息中心 Sensor network analyzing intercommunicating platform, sensor network intercommunicating method and system

Also Published As

Publication number Publication date Type
CN103581362A (en) 2014-02-12 application

Similar Documents

Publication Publication Date Title
US6704293B1 (en) Broadcast as a triggering mechanism for route discovery in ad-hoc networks
US5805924A (en) Method and apparatus for configuring fabrics within a fibre channel system
US6507873B1 (en) Network address assigning system
US20060126611A1 (en) System and method for a distributed server for peer-to-peer networks
US7035279B2 (en) Flow allocation in a ring topology
US20070165632A1 (en) Method of providing a rendezvous point
US20110075673A1 (en) Methods and Apparatus for Distribution of IP Layer Routing Information in Peer-to-Peer Overlay Networks
CN1949784A (en) IP address requesting method for DHCP client by DHCP repeater
US20100214979A1 (en) Gateway advertisement in a wireless mesh
US20110320577A1 (en) System and method for location based address assignment in the distribution of traffic in a virtual gateway
CN102394819A (en) Electoral machinery and device of appointed VLAN (virtual local area network) transmitter in TRILL network
US20070268821A1 (en) Rpr representation in ospf-te
CN102223303A (en) Load equilibrium method based on transparent interconnection of lots of links (TRILL) and routing bridge (RB)
CN101753635A (en) Method and system of collocating IPV6 (internet protocol version 6) addresses
CN101330531A (en) Method for processing DHCP address allocation and DHCP relay
JP2005204016A (en) Address-assigning method in sensor network
US20100214959A1 (en) Automatic network address assignment in a wireless mesh
US20100217655A1 (en) Services advertisement in a wireless mesh
CN101217448A (en) A method and system to realize gateway dynamic load sharing
US20030088673A1 (en) Automatic allocation of subnet identifiers in a network
CN101141494A (en) Method for settling resource allocation conflict under load sharing condition
CN102098354A (en) Method and server for allocating dynamic host configuration protocol (DHCP) addresses
CN103814554A (en) Communication method, device and system of virtual extensible local area network
US20070036090A1 (en) Structured addressing method for wireless networks
US20090034539A1 (en) Address assignment apparatus, address assignment method, and computer product

Legal Events

Date Code Title Description
C06 Publication
C14 Grant of patent or utility model