CN108512679A - A kind of management method and device of gateway device - Google Patents

A kind of management method and device of gateway device Download PDF

Info

Publication number
CN108512679A
CN108512679A CN201710108376.8A CN201710108376A CN108512679A CN 108512679 A CN108512679 A CN 108512679A CN 201710108376 A CN201710108376 A CN 201710108376A CN 108512679 A CN108512679 A CN 108512679A
Authority
CN
China
Prior art keywords
group
gateway device
equipment
management platform
gateway
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.)
Granted
Application number
CN201710108376.8A
Other languages
Chinese (zh)
Other versions
CN108512679B (en
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.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Technologies Co 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201710108376.8A priority Critical patent/CN108512679B/en
Publication of CN108512679A publication Critical patent/CN108512679A/en
Application granted granted Critical
Publication of CN108512679B publication Critical patent/CN108512679B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1061Peer-to-peer [P2P] networks using node-based peer discovery mechanisms

Abstract

A kind of management method and device of gateway device, this method include:Management platform device receives the registration request that at least two gateway devices are sent;The management platform device is that at least two gateway device establishes at least one group according to the registration request and preset allocation strategy;The group information of at least one group is sent to the gateway device in group by the management platform device;The management platform device and the two-staged netgate equipment of each group at least one group establish the link, and control and be off with linking between other level-one gateway devices in each group in addition to the two-staged netgate equipment;Wherein, the two-staged netgate equipment in each group is for other level-one gateway devices in forwarding group and the interactive information between the management platform device.

Description

A kind of management method and device of gateway device
Technical field
The present invention relates to internet of things field more particularly to the management methods and device of a kind of gateway device.
Background technology
Internet of Things (Internet of Things, IoT) is to utilize radio frequency identification on the basis of computer internet The technologies such as (Radio Frequency Identification, RFID), wireless data communication construct a covering in the world ten thousand The internet of thing all things on earth.
In general, in IoT, terminal device is connected to IoT management platforms by gateway device, with magnanimity terminal equipment and The access of gateway device needs the long connection for establishing and safeguarding magnanimity, so flat to management between gateway device and management platform Platform brings huge traffic pressure.
Invention content
The present invention provides a kind of management method and device of gateway device, to solve gateway device in the prior art and pipe Platform equipment needs to safeguard the long connection of magnanimity, the larger technical problem of the traffic pressure brought.
In a first aspect, the embodiment of the present invention provides a kind of management method of gateway device.This method is from management platform device Angle be described.This method includes:Management platform device receives the registration request that at least two gateway devices are sent.Then Management platform device is that at least two gateway device establishes at least one according to the registration request and preset allocation strategy A group.Later, the group information of at least one group is sent to the gateway device in group by management platform device.Pipe Platform equipment and the two-staged netgate equipment of each group at least one group establish the link, and control with it is described every The link between other level-one gateway devices in a group in addition to the two-staged netgate equipment is off;Wherein, The other level-one gateway devices and the management platform that two-staged netgate equipment in each group is used in forwarding group are set Interactive information between standby.In this way, two-staged netgate equipment need not additionally be disposed, without additional engineering construction, no Increase hardware cost, in the case of the networking for not changing existing Internet of Things, management platform device only need in each group Established between two-staged netgate equipment and remain long and connected, without again with the net other than the two-staged netgate equipment in group It is established between the equipment of pass and maintains long connection, it is possible to the connection between management platform device and gateway device be greatly reduced Number, alleviates the traffic pressure of management platform device.
In a possible design, the registration request includes the gateway device mark of at least two gateway device ID, the management platform device are established according to the registration request and preset allocation strategy at least two gateway device At least one group, including:Gateway device with identical specified configuration is determined as the same group by the management platform device Group.In this way, the gateway device with identical specified configuration can be determined as to the same group, such as phase will be had subscribed Gateway device with set meal is determined as the same group, is convenient for management of the management platform device to the group.
In a possible design, the registration request includes the mailing address of at least two gateway device, institute It is that at least two gateway device is established at least that management platform device, which is stated, according to the registration request and preset allocation strategy One group, including:The management platform device by residing for the mailing address address field or the identical gateway of domain name section set It is standby to be determined as same group.Because identical address section or the identical gateway device of domain name section be usually all in same LAN, So in this way, the communication quality between the gateway device in group can be improved, and bandwidth can be saved.
In a possible design, the registration request includes the manufacture information of at least two gateway device, institute It is that at least two gateway device is established at least that management platform device, which is stated, according to the registration request and preset allocation strategy One group, including:Gateway device with identical manufacture information is determined as the same group by the management platform device.It is logical This method is crossed, because of manufacture information having the same, on the one hand the gateway device in group is convenient for be communicated;On the other hand, Operator would generally distribute the gateway device of different class according to different users, in order to dividing the user of different levels.
In a possible design, this method further includes:Management platform device has member at least one group Exit, the two-staged netgate equipment during newcomer is added or group is when changing, determine there is member to exit, newcomer is added Or the state of the changed group of two-staged netgate equipment changes;The stateful generation at least one group When the group of variation, the management platform device sends group's status change notification in the changed group of the state Gateway device.In this way, understand the state change of group member in time convenient for the gateway device in group, so can and The corresponding measures of Shi Zhihang, such as when there is new gateway device that group is added, new two are elected certainly in time convenient for group member Grade gateway device.
In a possible design, sends group's status change notification in the management platform device and sent out to the state Before gateway device in the group for changing, the method further includes:The management platform device receives the state and occurs The subscription request that gateway device in the group of variation is sent, the subscription request are logical for subscribing to group's state change Know;The management platform, which returns, subscribes to successfully response.In this way, it is logical to allow gateway device to subscribe to group's state change Know, improve the flexibility of this method, in order to adapt to plurality of application scenes.
Second aspect, the embodiment of the present invention provide a kind of management method of gateway device.This method is out of a group The angle of gateway device is described.This method includes:Gateway device sends registration request to management platform device.Gateway device The group information of the group where the gateway device by receiving the management platform device transmission, the group information packet Include the gateway device mark and mailing address of the group member of the group;Gateway device is according to the group information and default choosing Lift the two-staged netgate equipment that rule determines the group in the group member;Wherein, the two-staged netgate equipment with it is described Link between management platform device is in connection status, and the two-staged netgate equipment is removed in the group where the gateway device Except other level-one gateway devices and the management platform device between link and be off;The two-staged netgate is set It is ready for use on the interactive information forwarded between the group member and the management platform device.In this way, need not be additional Deployment two-staged netgate equipment does not increase hardware cost without additional engineering construction, does not change the feelings of the networking of existing Internet of Things Under condition, management platform device only needs and each establishes between the two-staged netgate equipment in group and remain long to connect, and It is established between gateway device other than two-staged netgate equipment that need not be again and in group and maintains long connection, it is possible to substantially The connection number between management platform device and gateway device is reduced, the traffic pressure of management platform device is alleviated.
In a possible design, the gateway device is according to the group information and default election regulation in the group The two-staged netgate equipment of the group is determined in group membership, including:The gateway device and other groups of compositions in the group Member is established by the mailing address and is communicated to connect;The gateway device sends the gateway device to other group members Election weight;The gateway device receives the election weight for other group members that other group members are sent; The gateway device determines described two according to the election weight of the gateway device and the election weight of other group members Grade gateway device.
In a possible design, the election weight includes initial weight, changeable weight and additional weight, at the beginning of described Beginning weight is used to characterize the resource capability of gateway device, and the changeable weight is used to characterize the operation stability of gateway device;Institute Additional weight is stated for ensureing that the two-staged netgate equipment that the group member determines is the same gateway device.By that will select Weight subdivision is lifted, election efficiency is improved.
In a possible design, election weight and the other group of the gateway device according to the gateway device The election weight of group membership determines the two-staged netgate equipment, including:The gateway device determines that the initial weight is maximum Group member;When the quantity of the maximum group member of the initial weight is 1, the gateway device determines the initial weight Maximum group member is the two-staged netgate equipment;When the quantity of the maximum group member of the initial weight is more than 1, institute It states gateway device and determines the maximum group member of changeable weight in the maximum group member of the initial weight;Described When the quantity of the maximum group member of changeable weight is 1, the gateway device determines the maximum group member of the changeable weight For the two-staged netgate equipment;When the quantity of the maximum group member of the changeable weight is more than 1, the gateway device is in institute It states and determines that a group member in the maximum group member of additional weight is institute in the maximum group member of changeable weight State two-staged netgate equipment.In this way, best two-staged netgate equipment can be selected, improves communication quality and election is imitated Rate.
In a possible design, when the gateway device is the two-staged netgate equipment, the method further includes: The gateway device receives the update notification that the management platform device is sent;The gateway device, which is downloaded, is used for newer update Data packet;The updated data package is handed down to other group members by the gateway device.In this way, in group Other level-one gateway devices downloaded from two-staged netgate equipment updated data package complete update, compared to the prior art in, each Gateway device is all updated the technical solution that data packet is downloaded, the technical solution in the embodiment of the present invention from management platform device Gateway device software upgrading efficiency can be substantially improved, and the bandwidth of management platform device, load, calculating can be greatly reduced Equal resource overheads.
In a possible design, when the gateway device is not the two-staged netgate equipment, the method is also wrapped It includes:The gateway device receives the update notification that the management platform device of the two-staged netgate device forwards issues;It is described Gateway device is sent to the two-staged netgate equipment for asking to download the solicited message for newer updated data package;It is described Gateway device downloads the updated data package;The gateway device is updated operation according to the updated data package.By this Method, other level-one gateway devices in group download updated data package from two-staged netgate equipment and complete update, compared to existing Have in technology, each gateway device is updated the technical solution that data packet is downloaded from management platform device, and the present invention is implemented Gateway device software upgrading efficiency can be substantially improved in technical solution in example, and management platform device can be greatly reduced The resource overheads such as bandwidth, load, calculating.
The third aspect, the embodiment of the present invention provide a kind of managing device of gateway device.Specifically, the device can be pipe Platform equipment.The managing device has the function of realizing management platform device in above method design.These functions can lead to Hardware realization is crossed, corresponding software realization can also be executed by hardware.The hardware or software include it is one or more with it is upper State the corresponding unit of function.
In a possible design, the concrete structure of the managing device as management platform device may include receiving single Member, processing unit and transmission unit.Receiving unit, processing unit and transmission unit can perform the corresponding work(in the above method Energy.
Fourth aspect, the embodiment of the present invention provide a kind of managing device of gateway device.Specifically, the device can be net Close equipment.The managing device has the function of realizing gateway device in above method design.These functions can pass through hardware reality It is existing, corresponding software realization can also be executed by hardware.The hardware or software include one or more and above-mentioned function phase Corresponding unit.
In a possible design, the concrete structure of the managing device as gateway device may include receiving unit, place Manage unit and transmission unit.Receiving unit, processing unit and transmission unit can perform the corresponding function in the above method.
5th aspect, the embodiment of the present invention provide a kind of network element.The network element can be management platform device.The network element packet It includes:Memory, for storing computer executable program code;Receiver, transmitter and processor, processor with it is described Memory, the receiver and transmitter coupling;Wherein said program code includes instruction, when the processor executes institute When stating instruction, described instruction makes the network element execute the method that above-mentioned management platform device executes.
6th aspect, the embodiment of the present invention provide a kind of network element.The network element can be gateway device.The network element includes:It deposits Reservoir, for storing computer executable program code;Receiver, transmitter and processor, processor and the storage Device, the receiver and transmitter coupling;Wherein said program code includes instruction, when the processor executes the finger When enabling, described instruction makes the network element execute the method that above-mentioned gateway device executes.
7th aspect, the embodiment of the present invention provides a kind of computer storage media, for being stored as above-mentioned third aspect institute Computer software instructions used in network element described in the managing device of description or the 5th aspect, and include for executing above-mentioned side Program designed by face.
Eighth aspect, the embodiment of the present invention provides a kind of computer storage media, for being stored as above-mentioned fourth aspect institute Computer software instructions used in network element described in the managing device of description or the 6th aspect, and include for executing above-mentioned side Program designed by face.
Description of the drawings
Fig. 1 is a kind of Organization Chart of Internet of Things provided in an embodiment of the present invention;
Fig. 2 is a kind of structure chart of network element provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart of the management method of gateway device provided in an embodiment of the present invention;
Fig. 4 is a kind of flow chart of the example of the management method of gateway device provided in an embodiment of the present invention;
Fig. 5 is a kind of other group members of two-staged netgate device forwards provided in an embodiment of the present invention and management platform device Between interactive information flow chart;
Fig. 6 is a kind of functional block diagram of the managing device of gateway device provided in an embodiment of the present invention;
Fig. 7 is the functional block diagram of the managing device of another gateway device provided in an embodiment of the present invention.
Specific implementation mode
The present invention provides a kind of management method and device of gateway device, to solve gateway device in the prior art and pipe Platform equipment needs to safeguard the long connection of magnanimity, the larger technical problem of the traffic pressure brought.
Following will be combined with the drawings in the embodiments of the present invention, and the technical solution in the embodiment of the present invention is described.
The terms "and/or", only a kind of incidence relation of description affiliated partner, indicates that there may be three kinds of passes System, for example, A and/or B, can indicate:Individualism A exists simultaneously A and B, these three situations of individualism B.In addition, herein Middle character "/", it is a kind of relationship of "or" to typically represent forward-backward correlation object.
For ease of illustration the management method of the gateway device in the embodiment of the present invention first introduces a kind of net of Internet of Things below The management method of network structure, the gateway device in the embodiment of the present invention can be applied in the Internet of Things.As shown in Figure 1, for this A kind of structure chart for Internet of Things that inventive embodiments provide, the embodiment of the present invention are based on existing internet of things structure, are set in gateway When for being established the link to management platform device request, management platform is that each gateway device is divided according to preset allocation strategy Group.Gateway device in group is built from two-staged netgate equipment is elected between the gateway device in group and two-staged netgate equipment Long connection is established in vertical connection between two-staged netgate equipment and management platform, two-staged netgate equipment is for other in forwarding group Interactive information between gateway device and management platform device.In this way, two-staged netgate equipment need not be additionally disposed, Without additional engineering construction, do not increase hardware cost, in the case of the networking for not changing existing Internet of Things, management platform device is only Need and each group in two-staged netgate equipment between establish and remain long and connect, without again with two in group It is established between gateway device other than grade gateway device and maintains long connection, it is possible to management platform device and net be greatly reduced The connection number between equipment is closed, the traffic pressure of management platform device is alleviated.
Specifically, to achieve the purpose of the present invention, an Internet of Things provided in an embodiment of the present invention includes following functions portion Part:
Terminal refers to " object " in net networking, is that Sensor Network network layers and transport network layer are connected in Internet of Things, realizes acquisition number According to and to network layer transmission data equipment.It is responsible for the multiple functions such as data acquisition, preliminary treatment, encryption, transmission.
Gateway device, mainly does data acquisition and sensing network and communication network may be implemented in protocol conversion, gateway device, And the protocol conversion between different type sensing network both may be implemented wide area interconnection can also realize Interconnected.Gateway Equipment can also have equipment Management Function, operator that can manage each sensing node of bottom by things-internet gateway equipment, The relevant information of each node is solved, and realizes remote control.
IoT management platforms, the platform of management equipment interconnection, are provided including equipment access, equipment telecommunication management, equipment pipe The functions such as reason, device data management, to support the various industries application of Internet of Things.
In practice, the management method of the gateway device in the embodiment of the present invention can also be applied in non-Internet of Things In, it can also apply in the structure other networks similar with structure shown in FIG. 1, the embodiment of the present invention is not especially limited.
Fig. 2 shows a kind of structural schematic diagram of network element in the embodiment of the present invention.This network element is, for example, the object in Fig. 1 A component in networking, such as terminal, gateway device, management platform.As shown in Fig. 2, the network element includes:Processor 10, hair Send device 20, receiver 30, memory 40.Memory 40, transmitter 20 and receiver 30 and processor 10 can by bus into Row connection.Certainly, it in practice, can not be between memory 40, transmitter 20 and receiver 30 and processor 10 total Cable architecture, and can be other structures, such as hub-and-spoke configuration, the application are not especially limited.
Optionally, processor 10 can be specifically general central processing unit or application-specific integrated circuit (English: Application Specific Integrated Circuit, referred to as:ASIC), can be that one or more is used to control journey The integrated circuit that sequence executes can be use site programmable gate array (English:Field Programmable Gate Array, referred to as:FPGA) the hardware circuit developed, can be baseband processor.
Optionally, processor 10 may include at least one processing core.
Optionally, memory 40 may include read-only memory (English:Read Only Memory, referred to as:ROM), with Machine accesses memory (English:Random Access Memory, referred to as:RAM one or more) and in magnetic disk storage.It deposits Reservoir 40 is used to store data and/or instruction required when processor 10 is run.The quantity of memory 40 can be one or more It is a.
Next, please also refer to shown in Fig. 3, Fig. 3 is a kind of manager of gateway device provided in an embodiment of the present invention The flow chart of method, it is understood that for the information exchange signal in framework shown in Fig. 1 between IoT management platforms and gateway device Figure.Management platform device in the present embodiment is, for example, the IoT management platforms in framework shown in Fig. 1.
Wherein, step 101 sends registration to management platform device for gateway device 1 to gateway device n and asks to step 102 The step of asking, wherein n are the integer more than or equal to 2.Corresponding, management platform device receives at least two gateway device (nets Close the registration request that equipment 1 is sent to gateway device n).
Optionally, registration request may include the gateway device mark (ID) and mailing address of gateway device.Gateway device ID is used for one gateway device of unique mark, and mailing address is used to communicate between gateway device and management platform device and net Close communication between devices.For example, the registration request that gateway device 1 is sent includes the gateway device ID of gateway device 1 and leads to Believe that address, the registration request that gateway device n is sent include the gateway device ID and mailing address of gateway device n.
Mailing address is, for example, the address procotol (Internet Protocol, IP).Optionally, mailing address may be used also To include port.
Optionally, registration request can also include password, be carried out to gateway device using password for management platform device Authentication.It is corresponding, when management platform device receives registration request, corresponding gateway is set according to gateway device ID and password It is standby to be authenticated, after the authentication is passed, execute step 103, as the gateway device distribution group.Certainly, in practice, Gateway device can not be authenticated, you can directly execute step 103.
It should be noted that the execution sequence between step 101 and step 102 does not limit, either gateway device 1 Step 101 is first carried out, can also be that gateway device n first carries out step 102, can also be that gateway device 1 is executing step 101 Meanwhile gateway device n is also executing step 102.Therefore, corresponding, if receive step 101 transmission registration request or The registration request that step 102 is sent, you can execute step 103, in other words, step 103 can be divided into multiple sub-steps and repeat to hold Row, wherein the execution sequence of every sub-steps and step 101 and step 102 is also not limit, detailed content will be rear It is continuous to be described.
In step 103, management platform device is that at least two gateways are set according to registration request and preset allocation strategy It is standby to establish at least one group.In practice, there are many realization methods for step 103, below illustrate citing.
The possible realization method of the first of step 103 is:Step 103 includes:Management platform device will have identical finger Surely the gateway device configured is determined as the same group.For example, two gateway devices have subscribed identical set meal, such as together One family has subscribed family group photo set meal, then the middle gateway device of this family can be assigned in the same group.Again Such as multiple gateway devices of same storied building or a company are divided into the same group.
Second of possible realization method of step 103 is that step 103 includes:Management platform device is by gateway device Address field or the identical gateway device of domain name section residing for mailing address are determined as same group.For example, there is identical IP Multiple gateway devices of address can be divided into the same group, because usually internet of things networking uses network address translation (Network Address Translation, NAT) networking is the same network address to public network location.
The third possible realization method of step 103 is that step 103 includes:Management platform device will have it is identical go out The gateway device of factory's information is determined as the same group.Optionally, manufacture information may include model or the factory of gateway device Family's information, it is corresponding, the identical gateway device of model can be divided into the same group, same producer can also be dispatched from the factory Gateway device is divided into the same group.
4th kind of possible realization method of step 104 is that the first above possible realization method is possible to the third Realization method in some or all of realization method combination.
It should be noted that each group can be arranged the limitation of membership, it is possible for example, by using the first When realization method, the membership of each group is no more than 20, then the quantity of the gateway device in a building is when more than 20, Remaining group is just resettled, the gateway device in a building is assigned in multiple groups, the member in each group is this Gateway device in building.
In addition, allocation strategy can be on management platform device by administrative staff's manual configuration, can also be by managing Platform device carries out adaptive configuration according to network operation situation or actual demand.
After the gateway device that management platform device is transmission registration request distributes group, management platform device can be held Row step 104 is to step 105, i.e., the gateway device that is sent to the group information of at least one group in group.
Optionally, group information includes group identification, is used for one group of unique mark, such as can be group ID, It can be group name.
Optionally, group information further includes the gateway device ID and mailing address of the group member in group.
Optionally, group information further includes the turn-on time of group member access-in management platform device, the type of gateway device Number.
For example, gateway device 1 to gateway device 3 is assigned to the same group, group name by management platform device For group 1.Gateway device 4 to gateway device 6 is also assigned to the same group by management platform device, and group name is group 2. Management platform device can (group 1, gateway device 1, IP address 1, gateway device 2, IP address 2, gateway be set by group information Standby 3, IP address 3) it is sent respectively to gateway device 1, gateway device 2 and gateway device 3.Similar, management platform device can be with By another group information (group 2, gateway device 4, IP address 4, gateway device 5, IP address 5, gateway device 6, IP address 6) point It is not sent to gateway device 4, gateway device 5 and gateway device 6.
It should be noted that step 104 and step 105 do not limit the sequencing of execution yet, because in practice, Can be etc. after all group allocations are good that the unified group information that sends can also be when being one to the gateway device in group After gateway device distributes group information, group information is just sent immediately and gives the gateway device, so step 104 and step at this time 105 may be to be performed simultaneously, it is also possible to not be performed simultaneously.
Optionally, the group information of each group can be stored in local by management platform device, convenient for inquiring each group The group information of group.
After the group information that gateway device receives management platform device transmission, it can enter and be set from election two-staged netgate Standby flow, i.e. step 106 and step 107.
After electing two-staged netgate equipment in group by step 106 and step 107, management platform device can be held Row step 108, i.e. management platform device and the two-staged netgate equipment of each group at least one group establish the link, and control Linking between other level-one gateway devices in each group in addition to two-staged netgate equipment is made to be off;Its In, the two-staged netgate equipment in each group is between the other level-one gateway devices and management platform device in forwarding group Interactive information.
Because in embodiments of the present invention, the two-staged netgate equipment in each group can be with other level-ones in forwarding group Interactive information between gateway device and management platform device, and the two-staged netgate equipment in each group is free in group Generation is lifted, so management platform device only needs the two-staged netgate equipment with each group to establish the link, that is, keeps long connection .Therefore, middle management platform device needs compared to the prior art and each gateway device keeps the long technical solution connected, Technical solution in the embodiment of the present invention need not additionally dispose two-staged netgate equipment, be not necessarily to additional engineering construction, be not added to This, in the case of not changing existing internet of things networking, you can the long company between gateway device and management platform device is greatly decreased Number is connect, the capacity of management platform device is substantially improved, reduces the resource overheads such as bandwidth, load, calculating.
Optionally, when some group is from when electing two-staged netgate equipment, group information can also include the group Two-staged netgate equipment gateway device ID and mailing address.Such as when management platform device receives the transmission of gateway device 1 When registration request, gateway device 1 is assigned in the group that one has built up according to allocation strategy, which has elected Two-staged netgate equipment, for example, gateway device 3, then management platform device can set the gateway of two-staged netgate equipment 3 at this time Standby ID and mailing address are sent to gateway device 1, then when gateway device 1 receives the group information, so that it may with do not have to again into Row is directly established and is communicated to connect with gateway device 3 from election two-staged netgate equipment, by gateway device 3 to management platform Equipment sends interactive information.
Optionally, it after some gateway device receives group information, is found by group information in addition to itself is without it When its group member, it can be understood as the two-staged netgate equipment from election is exactly itself, it is understood that for without two level net Equipment is closed from electing, so the gateway device needs to establish the link request to management platform device transmission.Management platform device exists When establishing the link request of gateway device transmission is received, if agreeing to establish the link, link is returned to the gateway device and builds Vertical success response.If after the follow-up group has other group members to be added, again from election two-staged netgate equipment, if selecting again The two-staged netgate equipment enumerated is still the gateway device, then in step 108, the two level net of management platform device and the group It closes equipment and establishes the link the process established the link as the aforementioned gateway device and management platform device, and management platform device is not It is established the link with other gateway devices of the group.If the two-staged netgate equipment re-elected out is not the gateway device, but When another gateway device, then in step 108, management platform device will disconnect with linking between the gateway device, and weigh Newly established the link with another gateway device.
Optionally, it is established the link between the management platform device and gateway device that occur in the foregoing description, can be root It establishes the link, also may be used according to message queue telemetering transmission (Message Queuing Telemetry Transport, MQTT) agreement It is established the link according to other agreements with to be, such as limitation application protocol (Constrained Application Protocol, CoAP)。
Optionally, the method further includes:Management platform device has member to exit at least one group, newcomer is added Or the two-staged netgate equipment in group is when changing, determine there is member to exit, newcomer is added or two-staged netgate equipment The state of the group of variation changes;In at least one group when stateful changed group, management platform device Group's status change notification is sent to the gateway device in the changed group of state.
Optionally, management platform device, which can be configured as, actively sends group's status change notification and changes to state Group in all gateway devices, can also be the management platform after gateway device has subscribed group's status change notification Group's status change notification is sent to the gateway device that group's status change notification is had subscribed in group by equipment.
Optionally, if desired gateway device subscribes to group's status change notification, then sending group in management platform device Before status change notification is to the gateway device in the changed group of state, the method further includes:Management platform device The subscription request that gateway device in the changed group of reception state is sent, subscribes to request for subscribing to group's state Change notification;Management platform, which returns, subscribes to successfully response.
Optionally, management platform device also records and preserves the group identification for having subscribed group's status change notification, net Close device id.
What needs to be explained here is that management platform device receives the subscription request that gateway device is sent, if the gateway device For two-staged netgate equipment, then management platform device is ordering of directly receiving that two-staged netgate equipment sends from two-staged netgate equipment Read request.If the gateway device is level-one gateway device, then receiving one by two-staged netgate equipment when management platform device The subscription request that grade gateway device is sent, similar, the subscription for being returned to management platform device by two-staged netgate equipment is successful Response is sent to each level-one gateway device.
Optionally, if subscribing to failure, gateway device can start timer period and retry.
It is described below in group from the process for electing two-staged netgate equipment, the i.e. implementation of step 106 and step 107 Process.It is identical from election process for any one gateway device in group, so below from a gateway in group The angle of equipment describes.
Gateway device, can be according to the mailing address of the group member in group information and its after receiving group information Its group member establishes communication connection, so the gateway device in group establishes communication connection between any two.Optionally, gateway It can be pacified by Transport Layer Security (Transport Layer Security, TLS) agreement or data packet transport layer between equipment The coded communication modes such as (Datagram Transport Layer Security, DTLS) agreement establish communication connection entirely.
It optionally, can be in the request when gateway device sends the request of connection communication connection to other group members Carry the gateway device ID of itself.Corresponding, receiving other group members of the request can be somebody's turn to do according to gateway device ID confirmations Whether whether gateway device in the group where itself, and can be confirmed mailing address in the group information received with itself Whether the mailing address of the gateway device is identical.
Optionally, password can be carried in the request, receiving other group members of the request can set according to gateway Standby ID and password authenticate the gateway device, when the authentication is passed, can just carry out subsequent step.
After group member establishes communication connection between any two, group member can send mutually information between any two, ask Ask currently whether there is two-staged netgate equipment, if so, existing two-staged netgate equipment then can be directly used, if not having, It then carries out from election flow.
Optionally, include from the process of election:The gateway device sends the election of the gateway device to other group members Weight;The gateway device receives the election weight for other group members that other group members are sent;The gateway device is according to this The election weight of gateway device and the election weight of other group members determine two-staged netgate equipment.For example, which sets After the standby relatively election weight of itself and the election weight of other group members, the election maximum gateway device conduct of weight is determined Two-staged netgate equipment.
Optionally, election weight includes initial weight, changeable weight and additional weight.Initial weight is set for characterizing gateway Standby resource capability.Changeable weight is used to characterize the operation stability of gateway device.Additional weight is for ensureing that group member is true Fixed two-staged netgate equipment is the same gateway device.
Optionally, initial weight is a static configuration item, represents the ability of gateway device itself.For example, initially Weight is characterized such as the static resource ability with the calculating of gateway device, storage, network, and resource capability is bigger, then just Beginning weight is bigger.It is preferential to determine the stronger gateway device of resource capability as two-staged netgate equipment in practice.
Optionally, on the one hand changeable weight can characterize the operation stability of gateway device itself, example with dynamic generation Such as in gateway device frequent recovery, frequent crash or frequent failure, then its changeable weight is reduced, is set to reduce the gateway The standby possibility for being elected as two-staged netgate equipment.On the other hand, when the two-staged netgate equipment and management platform device elected Between communication quality be less than predetermined threshold value, then also to turn down the changeable weight of the two-staged netgate equipment, triggering re-elects Two-staged netgate equipment.Pass through changeable weight, it is ensured that the gateway device of stable operation, which obtains, is more used as two-staged netgate equipment Chance.
Optionally, additional weight is used to the two or more of initial weight and changeable weight all same occurring When candidate secondary gateway device, ensure that the two-staged netgate equipment of all group member elections is the same gateway device.In reality Whether in, additional weight can also be characterized by many kinds of parameters, such as it is contemplated that have in candidate secondary gateway device Gateway device is established the link with management platform device, if so, then this is elected to be established the link with management platform device Gateway device be two-staged netgate equipment, pass through the mechanism, it is ensured that have built up link gateway device preferentially obtain two The qualification of grade gateway device.Additional weight can also use the time authenticated by management platform device, or be put down from by managing Platform device authentication is characterized to current duration is run to, and by the mechanism, ensures that the gateway device for first passing through authentication preferentially obtains Obtain the qualification of two-staged netgate equipment.Additional weight can also be characterized with the size of gateway device ID.
It is only used for for example, be not intended to limit, in practice, to characterize using other parameters above Each weight, the embodiment of the present invention are not especially limited.
In addition, in practice, other election regulation can also be taken to carry out electing certainly for two-staged netgate equipment, this hair Bright embodiment is not especially limited.
In an example, gateway device is true according to the election weight of gateway device and the election weight of other group members Determine two-staged netgate equipment, including:Gateway device determines the maximum group member of initial weight;In the maximum group's composition of initial weight When the quantity of member is 1, gateway device determines that the maximum group member of initial weight is two-staged netgate equipment;In initial weight maximum Group member quantity be more than 1 when, gateway device in the maximum group member of the initial weight determine changeable weight most Big group member;When the quantity of the maximum group member of changeable weight is 1, gateway device determines the maximum group of changeable weight Group membership is two-staged netgate equipment;When the quantity of the maximum group member of changeable weight is more than 1, gateway device determines additional power A group member in the maximum group member of weight is two-staged netgate equipment.
Weight is elected by comparing in the gateway device, when finding the two-staged netgate equipment that itself is group, if with management Platform device does not set up link also, then establishes the link request to management platform device transmission, returned receiving management platform device After the link returned is successfully established response, expression establishes the link success.If the gateway device is established with management platform device Link, then need not rebuild again.
Weight is elected by comparing in the gateway device, when finding the two-staged netgate equipment that itself is group, also monitors group The interior other group members of group establish the link request, and it includes gateway device ID that this, which establishes the link request,.The gateway device is receiving To other group members establish the link request after, according to the gateway device ID and mailing address in request, check whether and group Gateway device ID in group information is consistent with mailing address, if so, receiving this establishes the link request, establishes the link.Optionally, Other group members feedback can also be given to establish the link success response.
Optionally, can also be including password in the request, which can pass through gateway device ID and password carries out Authentication, when the authentication is passed, just establishes the link.
Weight is elected by comparing in the gateway device, when to find itself not be the two-staged netgate equipment of group, so that it may with The two-staged netgate equipment transmission elected to itself establishes the link request, and receives establishing the link into for two-staged netgate equipment return Work(responds.
Optionally, after election two-staged netgate equipment success, if when two-staged netgate equipment fault or other group members When with two-staged netgate communication between devices failure, then it can trigger two-staged netgate equipment and re-elect, the group member in group Through the above steps again from the two-staged netgate equipment elected in group.
After election two-staged netgate equipment success, two-staged netgate equipment can be by establishing between other group members Link forward the interactive information between other group members and management platform device.
To be illustrated so that gateway device 1 and gateway device 2 are divided into the same group as an example below group allocation and In group from elect two-staged netgate equipment process, please refer to Fig.4 shown in, be a kind of gateway device provided in an embodiment of the present invention Management method example flow chart.This method includes:
Step 201:Gateway device 1 sends registration request to management platform device, which carries gateway device 1 Gateway device ID and mailing address.
Optionally, which can also include password, which carries out gateway device 1 for management platform device Authentication.After the authentication is passed, management platform device can execute step 202.Certainly, it in practice, can not also carry out Authentication, but after the registration request for receiving the transmission of gateway device 1, directly execute step 202.
Step 202:Management platform device is 1 distribution group of gateway device.In practice, management platform device according to Preset allocation strategy is 1 distribution group of gateway device, if finding, gateway device 1 meets some group having built up, then Just gateway device 1 is assigned in the group having built up, and refreshes group information.If it was found that gateway device 1 is not met Group information then just creating a group for gateway device 1, and refreshes in any one group having built up, then will brush Group information after new is stored in local.In the present embodiment, it is illustrated for creating a group for gateway device 1.
Step 203:The group information of 1 group of gateway device is sent to gateway device 1 by management platform device.Group Information includes the gateway device ID and mailing address of group identification, group member.
Optionally, group information further includes the turn-on time of group member access-in management platform device, the type of group member Number.
After gateway device 1 receives group information, group information is handled, finds the information of other group members For sky, because not there is also other gateway devices to access before the group, gateway device 1 executes step 204.
Step 204:Other group members are sky, and transmission establishes the link request to management platform device.Optionally, the link For example, MQTT is linked or CoAP.
Management platform device, if receiving this establishes the link request, thens follow the steps after receiving this and establishing the link request 205。
Step 205:Management platform device sends link to gateway device 1 and is successfully established response.At this point, 1 He of gateway device Management platform device establishes link, that is, establishes long connection.
Gateway device 1 can subscribe to group's shape after establishing and linking with management platform device to management platform device State change notification executes step 206.
Step 206:Gateway device 1 sends to management platform device and subscribes to request.Optionally, subscription request includes gateway The group identification of 1 group of equipment, the gateway device ID of gateway device 1.
Optionally, if the length between gateway device 1 and management platform device is connected as MQTT links, then can utilize MQTT_SUBSCRIBE=8 is as the command code for subscribing to group's status change notification.
After management platform device receives subscription request, the subscription can be asked to handle, such as record is subscribed to The gateway device ID of the group identification of group's status change notification, gateway device 1.Further, management platform device executes Step 207.
Step 207:Management platform device is sent to gateway device 1 subscribes to successfully response.
Optionally, if subscribing to failure, management platform device can also send the response for subscribing to failure to gateway device 1.
Optionally, if the length between gateway device 1 and management platform device is connected as MQTT links, then can utilize Command codes of the MQTT_SUBACK=9 as subscription response.
Optionally, if gateway device 1 receives subscription failure response, then gateway device 1 can also start timer week Phase property retries.
It should be noted that step 206 to step 207 is optional step, that is, does not need gateway device and subscribed to, manages The gateway device that platform equipment gives tacit consent to can be into group sends group's status change notification.
Gateway device 2 executes step 208 when needing access-in management platform device.
Step 208:Gateway device 2 sends registration request to management platform device.The registration request carries gateway device 2 Gateway device ID and mailing address.
Optionally, which can also include password, which carries out gateway device 2 for management platform device Authentication.After the authentication is passed, management platform device can execute step 209.Certainly, it in practice, can not also carry out Authentication, but after the registration request for receiving the transmission of gateway device 2, directly execute step 209.
Step 209:Management platform device is 2 distribution group of gateway device.In practice, management platform device according to Preset allocation strategy is 2 distribution group of gateway device, if where finding that gateway device 2 meets the gateway device 1 having built up Group, then in group where gateway device 2 to be just assigned to the gateway device 1 having built up, and refresh group's letter Breath.
Management platform device can execute step 210 and step 211 after for 2 distribution group of gateway device.
Step 210:Management platform device sends group information to gateway device 2.
Step 211:Management platform device sends group's status change notification to gateway device 1.
Optionally, the information for the group member that group's status change notification can be only comprising variation, such as include only gateway The gateway device ID and mailing address of equipment 1.Group's status change notification can also be identical as the content that group information includes, can The group information refreshed after the access of gateway device 2 is sent to gateway device 1 to be interpreted as management platform device.
It should be noted that do not limit step 210 and step 211 executes sequence, it may be performed simultaneously, can also first hold Row step 210 can also first carry out step 211.
After gateway device 2 receives group information, it is sky to find other group members not, because before gateway device 1 It has accessed in the group, so executing step 211.
After gateway device 1 receives group's status change notification, it is found that gateway device 2 also accesses in the group, so Execute step 212.
Step 211:Other group members are not sky, and gateway device 2 enters in group from the stream for electing two-staged netgate equipment Journey.
Step 212:Other group members are not sky, and gateway device 1 enters in group from the stream for electing two-staged netgate equipment Journey.
The specific implementation process of step 211 and step 212 includes:Gateway device 1 and gateway device 2 pass through TLS, DTLS etc. Agreement establishes communication connection.Gateway device 1 and gateway device send mutually message, and whether inquiry has currently had two-staged netgate, If so, the existing two-staged netgate equipment that then be used directly, if it is not, gateway device 1 and gateway device are sent mutually respectively Gateway device ID and election weight.In embodiments of the present invention, because not electing two-staged netgate equipment, institute also before the group With two-staged netgate equipment not yet.
Next, gateway device 1 compares the election weight of itself and the election weight of gateway device 2, gateway device 2 compares The election weight of itself and the election weight of gateway device 1, gateway device 1 and gateway device determine the election maximum net of weight Equipment is closed as two-staged netgate equipment.
For example, if the static resource ability of gateway device 2, i.e. initial weight are more than the initial weight of gateway device 1, So gateway device 1 and gateway device 2 determine that gateway device 2 is the two-staged netgate equipment of the group.If gateway device 1 and gateway The initial weight of equipment 2 is identical, then just compare the changeable weight of the two again, such as the frequency that gateway device 2 crashes is higher than net The frequency that equipment 1 crashes is closed, then the changeable weight of gateway device 2 is less than the changeable weight of gateway device 1, then gateway is set Determine that gateway device 1 is the two-staged netgate equipment of the group for 1 and gateway device 2.If gateway device 1 and gateway device 2 is dynamic State weight is also identical, then the additional weight both just further judged, the standard of judgement be, for example, whether with management platform Equipment establishes the link, and in the present embodiment, because in step 204 and step 205, gateway device 1 is set with management platform It is standby to establish link, and gateway device 2 is not established the link with management platform device also, so gateway device 1 and gateway device 2 are true Determine the two-staged netgate equipment that gateway device 1 is the group.
After electing two-staged netgate equipment certainly, because of two-staged netgate equipment, i.e. gateway device 1 is set with management platform It is standby to establish link, so need not re-establish again, continue to keep long connection.And gateway device 2 will not be again to management Platform device transmission establishes the link request, but is sent to gateway device 1 and establish the link request, and gateway device 1 is asked receiving this After asking, established the link with gateway device 2, and by the link forward gateway equipment 2 be sent to the information of management platform device with And management platform device is sent to the information of gateway device 2.
At this point, the two-staged netgate equipment in management platform device and the group, i.e. gateway device 1 establish link, and With other group members in the group, i.e. link between gateway device 2 is off.
In alternatively possible realization method, after electing two-staged netgate equipment certainly, two-staged netgate equipment, i.e. gateway Equipment 1 can execute step 213, i.e., send election results to management platform device, inform that oneself being elected as two-staged netgate sets It is standby.
Corresponding, management platform device confirmation establishes link with gateway device 1, continues to maintenance and gateway device Link between 1 executes step 214.At this point, the two-staged netgate equipment in management platform device and the group, i.e. gateway Equipment 1 establishes link, and with other group members in the group, i.e. link between gateway device 2 is off.
Optionally, gateway device 2 can be sent to management platform device by gateway device 1 and subscribe to request, with subscription group Group status change notification.
Optionally, if breaking down in follow-up gateway device 1, triggering elects again from election two-staged netgate equipment Two-staged netgate equipment when becoming gateway device 2, gateway device 2 will send to management platform device and establish the link request, pipe Platform equipment receives the request, is established the link with gateway device 2.Gateway device 1 can actively disconnect and management platform device Between link, and established the link with gateway device 2.At this point, management platform device still only and the group in two-staged netgate Equipment, i.e. gateway device 2 establish link, and with other group members in the group, i.e., at the link between gateway device 1 In off-state.
Optionally, over time, it is assumed that and when group where thering is gateway device 3 to be assigned to gateway device 1, warp The each gateway device crossed in group sends whether information query has had two-staged netgate equipment between any two, it may be determined that There are two-staged netgate equipment, i.e. gateway device 2, then gateway device 2 can directly be used to be used as two-staged netgate equipment.
It should be noted that in practice, can not also inquire, when there is new gateway device to be added in group, Triggering is again from election two-staged netgate equipment.
After electing two-staged netgate equipment certainly, two-staged netgate equipment can forward other group members and management flat Interactive information between platform equipment is a kind of two-staged netgate equipment provided in an embodiment of the present invention shown in Fig. 5 Forward the flow chart of the interactive information between other group members and management platform device.In the present embodiment, with gateway device It is illustrated for upgrading.
Wherein, in step 300, administrative staff or software developer upload updated data package and issue more newly appointed Business.When management platform device receives updated data package and more new task, update notification is issued to two-staged netgate equipment, i.e., Execute step 301.
After two-staged netgate equipment receives update notification, step 302 can be executed, i.e., under being sent to management platform device Carry request.Updated data package can be sent to two-staged netgate equipment by management platform device, corresponding, and two-staged netgate equipment executes Step 303, updated data package is downloaded.After two-staged netgate equipment receives updated data package, step 304 is executed, that is, is carried out more Newly and restart, because usually after restarting, new update can just come into force.If can directly come into force after the updating, It can not have to restart two-staged netgate equipment.
After the completion of update, two-staged netgate equipment can execute step 305, i.e., report update to tie to management platform device Whether fruit, notice management platform device are updated successfully.
Management platform device can execute step 306, other groups into group after two-staged netgate equipment is updated successfully Group membership sends update notification, update notification is specifically sent to two-staged netgate equipment, then by two-staged netgate device forwards To other group members.
Step 307 can also be performed after being updated successfully in two-staged netgate equipment, that is, starts updated data package download service, Such as starts Secure File Transfer Protocol (Secure File Transfer Protocol, SFTP) download service or be based on Secure Socket Layer File Transfer Protocol (File Transfer Protocol over Secure Sockets Layer, FTPS) download service.
Other group members in group can execute step after the update notification for receiving two-staged netgate device forwards 308, i.e., it is sent to two-staged netgate equipment and downloads request.Optionally, gateway device ID can be carried in downloading request.
Two-staged netgate equipment can execute step 309, that is, locate after receiving the download request that other group members are sent Manage download request.The example asked is downloaded in one processing:Two-staged netgate equipment is according to the gateway device ID downloaded in asking Mailing address with the gateway device for downloading request is sent, checks whether the gateway device is group member, if so, receiving should The download of gateway device is asked, conversely, not receiving the download request of the gateway device then.
Optionally, password can also be carried by downloading in request, and two-staged netgate equipment can also be according to gateway device ID and close Code is authenticated, and just receives to download request when the authentication is passed, otherwise, can not receive to download request.
After the processing download request of two-staged netgate equipment, two kinds can be obtained as a result, one is receive to download request, one kind It is not receive to download request.Two-staged netgate equipment can be sent to other group members by step 310 and download request response, be used In notify the request of other group members as a result, such as success or failure.
Other group members, can be with if downloading request response representation request failure after receiving and downloading request response Periodic re-request.If downloading request response representation to ask successfully, to then follow the steps 311, i.e., from two-staged netgate equipment Updated data package is downloaded, such as is downloaded by FTPS SFTP download services.
Other group members download updated data package success after, step 312 can be executed, i.e., according to updated data package into Row updates and restarts.It should be noted that if in the case of or else restarting, updated data package can come into force, then step The step of restarting can not included in 312.
After the completion of other group members update, update result can be reported to management platform device, i.e. step 313, But in the present embodiment, which needs other group members to be sent to two-staged netgate equipment, then by two-staged netgate Device forwards are to management platform device.
Therefore, it sums up, when a gateway device is the two-staged netgate equipment in group, the method further includes: Gateway device receives the update notification that management platform device is sent;Gateway device, which is downloaded, is used for newer updated data package;Gateway Updated data package is handed down to other group members in group by equipment.
When a gateway device is not the two-staged netgate equipment in group, the method further includes:Gateway device receives The update notification that the management platform device of two-staged netgate device forwards issues;Gateway device is sent to two-staged netgate equipment for asking Seek the solicited message downloaded for newer updated data package;Gateway device downloads updated data package;Gateway device is according to update Data packet is updated operation.
It can be seen from process described above in embodiments of the present invention, one side two-staged netgate equipment can forward Interactive information in group between other group members and management platform device, such as update notification and update result.Another party Face, when gateway device updates, two-staged netgate equipment first updates, and then other level-one gateway devices in group are from two-staged netgate At equipment download updated data package complete update, compared to the prior art in, each gateway device from management platform device into Gateway device software can be substantially improved more in the technical solution that row updated data package is downloaded, the technical solution in the embodiment of the present invention New efficiency, and the resource overheads such as bandwidth, load, calculating that management platform device can be greatly reduced.
It is illustrated by taking software upgrading as an example above, but in practice, based in the embodiment of the present invention From the two-staged netgate equipment elected, more applications can be extended, such as the application of chain of command can be considered and sink to two level On gateway device.For example, management platform device needs to obtain the manufacture information of each gateway device, and management platform device is just Can the request of request manufacture information other level-one gateways in group be sent to by the two-staged netgate equipment in group to set Standby, respective manufacture information can also be passed through two-staged netgate device forwards by other level-one gateway devices by two-staged netgate equipment To management platform device.In order to save length, other applicating examples will will not enumerate.
Optionally, network element shown in Fig. 2 can be element some or all of in Fig. 1, to realize as shown in Figure 3-Figure 5 Method in part steps or Overall Steps, specific configuration can be determined according to actual needs.
Specifically, when network element shown in Fig. 2 is management platform device, receiver 30, for receiving at least two gateways The registration request that equipment is sent;Processor 10, for being described at least two according to the registration request and preset allocation strategy A gateway device establishes at least one group;Transmitter 20, for the group information of at least one group to be sent to group Gateway device in group;Wherein, the processor 10 is additionally operable to control the management platform device and at least one group In the two-staged netgate equipment of each group establish the link, and control the management platform device and remove institute in each group The link stated between other level-one gateway devices except two-staged netgate equipment is off;Wherein, each group In two-staged netgate equipment for other level-one gateway devices in forwarding group and the interaction between the management platform device Information.
Further, processor 10, receiver 30 and the transmitter 20 that the above network element as management platform device includes The specific implementation of performed operation is referred to the corresponding step executed by management platform device in the embodiment of Fig. 3-Fig. 5 Suddenly, the embodiment of the present invention repeats no more.
As another optional mode, when network element shown in Fig. 2 is gateway device, transmitter 20, for flat to management Platform equipment sends the registration request of gateway device;Receiver 30, the gateway sent for receiving the management platform device The group information of group where equipment, the group information include the gateway device mark of the group member of the group and lead to Believe address;Processor 10, for determining the group in the group member according to the group information and default election regulation The two-staged netgate equipment of group;Wherein, linking in connection shape between the two-staged netgate equipment and the management platform device State, other level-one gateway devices in the group where the gateway device in addition to the two-staged netgate equipment and the management Link between platform device is off;The two-staged netgate equipment is for forwarding the group member and the management Interactive information between platform device.
Further, processor 10, receiver 30 and the transmitter 20 that the above network element as gateway device includes are held The specific implementation of row operation is referred to the correspondence step executed by gateway device in the embodiment of Fig. 3-Fig. 5, this hair Bright embodiment repeats no more.
Fig. 6 is the simplification functional block diagram of the managing device of the first gateway device provided in an embodiment of the present invention.The management Device can be individual network element, can also be to be integrated on management platform device.The managing device includes:Receiving unit 401, Processing unit 402 and transmission unit 403.
Wherein, receiving unit 401 are asked for receiving the registration that at least two gateway devices are sent to management platform device It asks;Processing unit 402, for being established at least two gateway device according to the registration request and preset allocation strategy At least one group;Transmission unit 403 is set for the group information of at least one group to be sent to the gateway in group It is standby;Wherein, the processing unit 402 is additionally operable to control the management platform device and each group at least one group The two-staged netgate equipment of group establishes the link, and controls the management platform device and remove the two-staged netgate in each group The link between other level-one gateway devices except equipment is off;Wherein, the two level net in each group Equipment is closed for other level-one gateway devices in forwarding group and the interactive information between the management platform device.
Optionally, the registration request includes the gateway device mark ID of at least two gateway device, processing unit 402 are used for:Gateway device with identical specified configuration is determined as the same group.
Optionally, the registration request includes the mailing address of at least two gateway device, and processing unit 402 is used In:By residing for the mailing address address field or the identical gateway device of domain name section be determined as same group.
Optionally, the registration request includes the manufacture information of at least two gateway device, and processing unit 402 is used In:Gateway device with identical manufacture information is determined as the same group.
Optionally, processing unit 402 is additionally operable to:There is member to exit at least one group, newcomer is added or group When the two-staged netgate equipment in group changes, determination has member to exit, newcomer is added or the two-staged netgate equipment The state of changed group changes;Transmission unit 403 is additionally operable to:The stateful generation at least one group When the group of variation, group's status change notification is sent to the gateway device in the changed group of the state.
Optionally, receiving unit 401 is additionally operable to:Group's status change notification is sent to described in the transmission unit 403 Before gateway device in the changed group of state, the gateway device received in the changed group of the state is sent Subscription request, subscriptions ask for subscribing to group's status change notification;Transmission unit 403 is additionally operable to:Return is ordered Read successful response.
Fig. 7 is the simplification functional block diagram of the managing device of second of gateway device provided in an embodiment of the present invention.The management Device can be individual network element, can also be to be integrated on gateway device.The managing device includes:Receiving unit 501, processing Unit 502 and transmission unit 503.
Wherein, transmission unit 503, the registration request for sending gateway device to management platform device;Receiving unit 501, the group information of the group where the gateway device for receiving the management platform device transmission, group's letter Breath includes the gateway device mark and mailing address of the group member of the group;Processing unit 502, for according to the group Information and default election regulation determine the two-staged netgate equipment of the group in the group member;Wherein, the two level net It closes linking between equipment and the management platform device and is in connection status, removed in the group where the gateway device described Linking between the other level-one gateway devices and the management platform device except two-staged netgate equipment is off;Institute Two-staged netgate equipment is stated for forwarding the interactive information between the group member and the management platform device.
Optionally, processing unit 502 is used for:The gateway device is controlled with other group members in the group to pass through The mailing address establishes communication connection;By transmission unit 503 gateway device is sent to other group members Elect weight;The election weight for other group members that other group members are sent is received by receiving unit 501; The two-staged netgate equipment is determined according to the election weight of the election weight of the gateway device and other group members.
Optionally, the election weight includes initial weight, changeable weight and additional weight, and the initial weight is used for table The resource capability of gateway device is levied, the changeable weight is used to characterize the operation stability of gateway device;The additional weight is used In ensureing that the two-staged netgate equipment that the group member determines is the same gateway device.
Optionally, processing unit 502 is used for:Determine the maximum group member of the initial weight;In the initial weight When the quantity of maximum group member is 1, determine that the maximum group member of the initial weight is the two-staged netgate equipment; When the quantity of the maximum group member of initial weight is more than 1, institute is determined in the maximum group member of the initial weight State the maximum group member of changeable weight;When the quantity of the maximum group member of the changeable weight is 1, the dynamic is determined The maximum group member of weight is the two-staged netgate equipment;It is more than 1 in the quantity of the maximum group member of the changeable weight When, the group composition in the maximum group member of additional weight is determined in the maximum group member of the changeable weight Member is the two-staged netgate equipment.
Optionally, receiving unit 501 is additionally operable to:When the gateway device is the two-staged netgate equipment, described in reception The update notification that management platform device is sent;It downloads and is used for newer updated data package;Transmission unit 503 is additionally operable to:It will be described Updated data package is handed down to other group members.
Optionally, receiving unit 501 is additionally operable to:When the gateway device is not the two-staged netgate equipment, institute is received State the update notification that the management platform device of two-staged netgate device forwards issues;Transmission unit 503 is additionally operable to:To described two Grade gateway device is sent for asking to download the solicited message for newer updated data package;Receiving unit 501 is additionally operable to:Under Carry the updated data package;Processing unit 502 is additionally operable to:It is updated operation according to the updated data package.
It should be noted that managing device is shown in the form of functional unit.In the case of unrestricted, made herein Term " unit " can refer to execute the application-specific integrated circuit (ASIC) of one or more softwares or firmware program, electronic circuit, (shared, special or group) processor and memory, combinational logic circuit, and/or other suitable portions of the function are provided Part.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, system or calculate Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can Implemented in the computer-usable storage medium (including but not limited to magnetic disk storage and optical memory etc.) of program code The form of computer program product.
The embodiment of the present invention be with reference to according to the method for the embodiment of the present invention, equipment (system) and computer program product Flowchart and/or the block diagram describe.It should be understood that can be realized by computer program instructions in flowchart and/or the block diagram The combination of flow and/or box in each flow and/or block and flowchart and/or the block diagram.These calculating can be provided Processing of the machine program instruction to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices Device is to generate a machine so that the instruction executed by computer or the processor of other programmable data processing devices generates For realizing the function of being specified in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes Device.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Obviously, those skilled in the art can carry out the embodiment of the present invention various modification and variations without departing from this hair The spirit and scope of bright embodiment.In this way, if these modifications and variations of the embodiment of the present invention belong to power of the embodiment of the present invention Within the scope of profit requirement and its equivalent technologies, then the embodiment of the present invention is also intended to include these modifications and variations.

Claims (24)

1. a kind of management method of gateway device, which is characterized in that including:
Management platform device receives the registration request that at least two gateway devices are sent;
The management platform device is that at least two gateway device is built according to the registration request and preset allocation strategy Found at least one group;
The group information of at least one group is sent to the gateway device in group by the management platform device;
The management platform device and the two-staged netgate equipment of each group at least one group establish the link, and control It makes and linking in disconnection between other level-one gateway devices in each group in addition to the two-staged netgate equipment State;Wherein, the two-staged netgate equipment in each group is for other level-one gateway devices in forwarding group and described Interactive information between management platform device.
2. the method as described in claim 1, which is characterized in that the registration request includes at least two gateway device Gateway device identifies ID, and the management platform device is described at least two according to the registration request and preset allocation strategy Gateway device establishes at least one group, including:
Gateway device with identical specified configuration is determined as the same group by the management platform device.
3. the method as described in claim 1, which is characterized in that the registration request includes at least two gateway device Mailing address, the management platform device are that at least two gateway is set according to the registration request and preset allocation strategy It is standby to establish at least one group, including:
The management platform device by residing for the mailing address address field or the identical gateway device of domain name section be determined as together One group.
4. the method as described in claim 1, which is characterized in that the registration request includes at least two gateway device Manufacture information, the management platform device are that at least two gateway is set according to the registration request and preset allocation strategy It is standby to establish at least one group, including:
Gateway device with identical manufacture information is determined as the same group by the management platform device.
5. the method as described in any one of claim 1-4, which is characterized in that the method further includes:
The two level of the management platform device at least one group has member to exit, newcomer is added or group When gateway device changes, determination has member to exit, newcomer is added or the changed group of two-staged netgate equipment State change;
In at least one group when stateful changed group, the management platform device sends group's state and becomes Change notice to the gateway device in the changed group of the state.
6. method as claimed in claim 5, which is characterized in that send group's status change notification in the management platform device Before the gateway device in the changed group of the state, the method further includes:
The management platform device receives the subscription request of the transmission of the gateway device in the changed group of the state, described Request is subscribed to for subscribing to group's status change notification;
The management platform, which returns, subscribes to successfully response.
7. a kind of management method of gateway device, which is characterized in that including:
Gateway device sends registration request to management platform device;
The gateway device is believed by the group of the group where receiving the gateway device that the management platform device is sent Breath, the group information include the gateway device mark and mailing address of the group member of the group;
The gateway device determines the group according to the group information and default election regulation in the group member Two-staged netgate equipment;Wherein, linking between the two-staged netgate equipment and the management platform device is in connection status, institute State other level-one gateway devices in the group where gateway device in addition to the two-staged netgate equipment and the management platform Link between equipment is off;The two-staged netgate equipment is for forwarding the group member and the management platform Interactive information between equipment.
8. the method for claim 7, which is characterized in that the gateway device is according to the group information and default election Rule determines the two-staged netgate equipment of the group in the group member, including:
The gateway device is established by the mailing address with other group members in the group and is communicated to connect;
The gateway device sends the election weight of the gateway device to other group members;
The gateway device receives the election weight for other group members that other group members are sent;
The gateway device determines institute according to the election weight of the gateway device and the election weight of other group members State two-staged netgate equipment.
9. method as claimed in claim 8, which is characterized in that the election weight includes initial weight, changeable weight and attached Weighted, the initial weight are used to characterize the resource capability of gateway device, and the changeable weight is for characterizing gateway device Operation stability;The additional weight is used to ensure that the two-staged netgate equipment that the group member determines to be the same gateway Equipment.
10. method as claimed in claim 9, which is characterized in that the gateway device is according to the franchise of the gateway device The election weight of weight and other group members determines the two-staged netgate equipment, including:
The gateway device determines the maximum group member of the initial weight;
When the quantity of the maximum group member of the initial weight is 1, the gateway device determines that the initial weight is maximum Group member be the two-staged netgate equipment;
When the quantity of the maximum group member of the initial weight is more than 1, the gateway device is in initial weight maximum Group member in determine the maximum group member of changeable weight;
When the quantity of the maximum group member of the changeable weight is 1, the gateway device determines that the changeable weight is maximum Group member be the two-staged netgate equipment;
When the quantity of the maximum group member of the changeable weight is more than 1, the gateway device is in changeable weight maximum Group member in determine that a group member in the maximum group member of additional weight is the two-staged netgate equipment.
11. the method as described in any one of claim 7-10, which is characterized in that the gateway device be the two level net When closing equipment, the method further includes:
The gateway device receives the update notification that the management platform device is sent;
The gateway device, which is downloaded, is used for newer updated data package;
The updated data package is handed down to other group members by the gateway device.
12. the method as described in any one of claim 7-10, which is characterized in that the gateway device be the two level When gateway device, the method further includes:
The gateway device receives the update notification that the management platform device of the two-staged netgate device forwards issues;
The gateway device is sent to the two-staged netgate equipment for asking to download the request for newer updated data package Information;
The gateway device downloads the updated data package;
The gateway device is updated operation according to the updated data package.
13. a kind of managing device of gateway device, which is characterized in that including:
Receiving unit, for receiving the registration request that at least two gateway devices are sent to management platform device;
Processing unit, for according to the registration request and preset allocation strategy be at least two gateway device establish to A few group;
Transmission unit, for the group information of at least one group to be sent to the gateway device in group;
Wherein, the processing unit is additionally operable to control the management platform device and each group at least one group Two-staged netgate equipment establish the link, and control the management platform device in each group except the two-staged netgate is set The link between other level-one gateway devices except standby is off;Wherein, the two-staged netgate in each group Equipment is for other level-one gateway devices in forwarding group and the interactive information between the management platform device.
14. device as claimed in claim 13, which is characterized in that the registration request includes at least two gateway device Gateway device identify ID, the processing unit is used for:Gateway device with identical specified configuration is determined as the same group Group.
15. device as claimed in claim 13, which is characterized in that the registration request includes at least two gateway device Mailing address, the processing unit is used for:By the address field or the identical gateway device of domain name section residing for the mailing address It is determined as same group.
16. device as claimed in claim 13, which is characterized in that the registration request includes at least two gateway device Manufacture information, the processing unit is used for:Gateway device with identical manufacture information is determined as the same group.
17. the device as described in any one of claim 13-16, which is characterized in that the processing unit is additionally operable to:Described When the two-staged netgate equipment during at least one group has member to exit, newcomer is added or group changes, determination has Member exits, newcomer is added or the state of the changed group of two-staged netgate equipment changes;
The transmission unit is additionally operable to:In at least one group when stateful changed group, group's shape is sent State change notification gives the gateway device in the changed group of the state.
18. device as claimed in claim 17, which is characterized in that the receiving unit is additionally operable to:It is sent out in the transmission unit Send group's status change notification to the gateway device in the changed group of the state before, receive the state and become The subscription request that gateway device in the group of change is sent, the subscription request is for subscribing to group's status change notification;
The transmission unit is additionally operable to:It returns and subscribes to successfully response.
19. a kind of managing device of gateway device, which is characterized in that including:
Transmission unit, the registration request for sending gateway device to management platform device;
Receiving unit, the group information of the group where the gateway device for receiving the management platform device transmission, The group information includes the gateway device mark and mailing address of the group member of the group;
Processing unit, for determining the group in the group member according to the group information and default election regulation Two-staged netgate equipment;Wherein, linking between the two-staged netgate equipment and the management platform device is in connection status, institute State other level-one gateway devices in the group where gateway device in addition to the two-staged netgate equipment and the management platform Link between equipment is off;The two-staged netgate equipment is for forwarding the group member and the management platform Interactive information between equipment.
20. device as claimed in claim 19, which is characterized in that the processing unit is used for:Control the gateway device with Other group members in the group are established by the mailing address to be communicated to connect;By the transmission unit to it is described its Its group member sends the election weight of the gateway device;Other group members are received by the receiving unit to send Other group members election weight;According to the choosing of the election weight of the gateway device and other group members It lifts weight and determines the two-staged netgate equipment.
21. device as claimed in claim 20, which is characterized in that the election weight include initial weight, changeable weight and Additional weight, the initial weight are used to characterize the resource capability of gateway device, and the changeable weight is for characterizing gateway device Operation stability;The additional weight is used to ensure that the two-staged netgate equipment that the group member determines to be the same net Close equipment.
22. device as claimed in claim 21, which is characterized in that the processing unit is used for:Determine the initial weight most Big group member;When the quantity of the maximum group member of the initial weight is 1, the maximum group of the initial weight is determined Group membership is the two-staged netgate equipment;When the quantity of the maximum group member of the initial weight is more than 1, described initial The maximum group member of changeable weight is determined in the maximum group member of weight;In the maximum group's composition of the changeable weight When the quantity of member is 1, determine that the maximum group member of the changeable weight is the two-staged netgate equipment;In the changeable weight When the quantity of maximum group member is more than 1, the additional weight is determined most in the maximum group member of the changeable weight A group member in big group member is the two-staged netgate equipment.
23. the device as described in any one of claim 19-22, which is characterized in that the receiving unit is additionally operable to:Described When gateway device is the two-staged netgate equipment, the update notification that the management platform device is sent is received;It downloads for updating Updated data package;
The transmission unit is additionally operable to:The updated data package is handed down to other group members.
24. the device as described in any one of claim 19-22, which is characterized in that the receiving unit is additionally operable to:Described When gateway device is not the two-staged netgate equipment, the management platform device for receiving the two-staged netgate device forwards issues Update notification;
The transmission unit is additionally operable to:It is sent to the two-staged netgate equipment and is used for newer updated data package for asking to download Solicited message;
The receiving unit is additionally operable to:Download the updated data package;
The processing unit is additionally operable to:It is updated operation according to the updated data package.
CN201710108376.8A 2017-02-27 2017-02-27 Gateway equipment management method and device Active CN108512679B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710108376.8A CN108512679B (en) 2017-02-27 2017-02-27 Gateway equipment management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710108376.8A CN108512679B (en) 2017-02-27 2017-02-27 Gateway equipment management method and device

Publications (2)

Publication Number Publication Date
CN108512679A true CN108512679A (en) 2018-09-07
CN108512679B CN108512679B (en) 2020-09-08

Family

ID=63373181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710108376.8A Active CN108512679B (en) 2017-02-27 2017-02-27 Gateway equipment management method and device

Country Status (1)

Country Link
CN (1) CN108512679B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109474936A (en) * 2019-01-03 2019-03-15 上海顺舟智能科技股份有限公司 Applied to the Internet of Things means of communication and system between multiple lora gateways
CN111221594A (en) * 2019-12-30 2020-06-02 智车优行科技(北京)有限公司 Master-slave equipment function plug-in registration method, master equipment and slave equipment
WO2023056826A1 (en) * 2021-10-09 2023-04-13 中兴通讯股份有限公司 Network connection method, electronic device, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102378357A (en) * 2010-08-17 2012-03-14 中兴通讯股份有限公司 Wireless sensor network terminal registration method, terminals, gateway and service platform
US20120269141A1 (en) * 2011-04-22 2012-10-25 Kwang-Jun Ha Providing services according to subscription status of user equipment
CN105867314A (en) * 2015-01-20 2016-08-17 株式会社日立制作所 Remote monitoring system and communication method thereof
CN106464506A (en) * 2014-06-20 2017-02-22 三星电子株式会社 Method and apparatus for registering devices in gateway

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102378357A (en) * 2010-08-17 2012-03-14 中兴通讯股份有限公司 Wireless sensor network terminal registration method, terminals, gateway and service platform
US20120269141A1 (en) * 2011-04-22 2012-10-25 Kwang-Jun Ha Providing services according to subscription status of user equipment
CN106464506A (en) * 2014-06-20 2017-02-22 三星电子株式会社 Method and apparatus for registering devices in gateway
CN105867314A (en) * 2015-01-20 2016-08-17 株式会社日立制作所 Remote monitoring system and communication method thereof

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109474936A (en) * 2019-01-03 2019-03-15 上海顺舟智能科技股份有限公司 Applied to the Internet of Things means of communication and system between multiple lora gateways
CN109474936B (en) * 2019-01-03 2021-11-23 上海顺舟智能科技股份有限公司 Internet of things communication method and system applied among multiple lora gateways
CN111221594A (en) * 2019-12-30 2020-06-02 智车优行科技(北京)有限公司 Master-slave equipment function plug-in registration method, master equipment and slave equipment
CN111221594B (en) * 2019-12-30 2023-12-12 智车优行科技(北京)有限公司 Master-slave device function plug-in registration method, master device and slave device
WO2023056826A1 (en) * 2021-10-09 2023-04-13 中兴通讯股份有限公司 Network connection method, electronic device, and storage medium

Also Published As

Publication number Publication date
CN108512679B (en) 2020-09-08

Similar Documents

Publication Publication Date Title
US20190109768A1 (en) Management of network slices and associated services
CN111587601A (en) Network slice provisioning and operation
EP2989545B1 (en) Defining interdependent virtualized network functions for service level orchestration
US8667138B2 (en) Distributed hierarchical rendering and provisioning of cloud services
CN109952796A (en) The creation and modification of slice example can be shared
CN110049070A (en) Event notification method and relevant device
CN108886531A (en) Network and application management are carried out using service layer's ability
CN106233695A (en) Apparatus and method for managing customer end equipment
CN108270818A (en) A kind of micro services architecture system and its access method
CN106453124A (en) Traffic scheduling method and device
CN108512679A (en) A kind of management method and device of gateway device
Carmo et al. Network-cloud slicing definitions for wi-fi sharing systems to enhance 5g ultra dense network capabilities
CN108769931A (en) The method and apparatus of management and group in a kind of machine communication
CN110233865A (en) Trans-regional service calling method, device and system
Zegzhda et al. Achieving Internet of Things security via providing topological sustainability
CN108183849A (en) Device management method, equipment and system based on L2TP
CN112203261A (en) Charging pile management method and device, electronic equipment and readable storage medium
CN108234261A (en) For the service bus dispatching method of electric control system network supervision
EP2260627B1 (en) Transport independent architecture
Sharma et al. Dynamic network slicing using utility algorithms and stochastic optimization
EP2608452A1 (en) Customer premises equipment device and system and method for controlling a customer premises equipment device
CN108234165A (en) A kind of method and apparatus that gateway is configured
CN114615320B (en) Service management method, device, electronic equipment and computer readable storage medium
Maciel et al. Cloud-network slicing MANO towards an efficient IoT-cloud continuum
CN109039754A (en) A kind of management method and device of the network equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220216

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee after: Huawei Cloud Computing Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.