CN104202420A - Method and device for supporting expansion of internet-of-things middleware cluster - Google Patents

Method and device for supporting expansion of internet-of-things middleware cluster Download PDF

Info

Publication number
CN104202420A
CN104202420A CN201410478865.9A CN201410478865A CN104202420A CN 104202420 A CN104202420 A CN 104202420A CN 201410478865 A CN201410478865 A CN 201410478865A CN 104202420 A CN104202420 A CN 104202420A
Authority
CN
China
Prior art keywords
things
internet
internet gateway
long
middleware
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
CN201410478865.9A
Other languages
Chinese (zh)
Other versions
CN104202420B (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.)
Guangzhou Zhongke Yide Technology Co Ltd
Original Assignee
Guangzhou Institute of Software Application Technology Guangzhou GZIS
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 Guangzhou Institute of Software Application Technology Guangzhou GZIS filed Critical Guangzhou Institute of Software Application Technology Guangzhou GZIS
Priority to CN201410478865.9A priority Critical patent/CN104202420B/en
Publication of CN104202420A publication Critical patent/CN104202420A/en
Application granted granted Critical
Publication of CN104202420B publication Critical patent/CN104202420B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method and a system for supporting expansion of an internet-of-things middleware cluster. The method comprises the following steps of receiving control instructions of an internet-of-things gateway; transmitting the control instructions to a server of an optional internet-of-things middleware by using a load balancing forwarder; establishing connection between the internet-of-things middleware and the internet-of-things gateway according to IP (internet protocol) information carried by relevant information if long connection between the internet-of-things middleware and the internet-of-things gateway is not stored in a long connection cache region which is established in advance and the relevant information of the internet-of-things gateway is not stored in a long connection mapping table which is established in advance; and transmitting the control instructions to the internet-of-things gateway. By the method, the internet-of-things middleware cluster can be expanded, and a load balancing function of the load balancing forwarder is fulfilled really.

Description

A kind of method and apparatus of supporting the expansion of Internet of things middleware cluster
Technical field
The application relates to technology of Internet of things field, more particularly, relates to a kind of method and apparatus of supporting the expansion of Internet of things middleware cluster.
Background technology
Internet of things system is comprised of Internet of Things application program, things-internet gateway, Internet of things middleware and thing network sensing layer hardware node.Internet of things middleware is as the bridge between attachment networked application programs and things-internet gateway, operate on server, increase along with the concurrent number of times of communicating by letter between Internet of Things application program and things-internet gateway, the resources such as calculating, network and storage of carrying the server of this Internet of things middleware operation will decrease and finally reach maximum load, thus the problem that appearance cannot connect.
In the prior art, for this situation, Internet of things middleware can be set up with the long of things-internet gateway and be connected, and makes Internet of Things application can control at any time and obtain the information of things-internet gateway and Internet of things hardware node.What is called is long to be connected, and refers to can send continuously a plurality of packets in a connection, during connecting maintenance, if there is no Packet Generation, needs both sides to send out link detecting bag, and assurance both sides connect does not interrupt.
When Internet of Things application system will be controlled Internet of Things perception hardware node, the load balancing transponder by Internet of things middleware cluster is forwarded to request on some Internet of things middleware servers according to certain strategy.Because the agreement of current existing load balancing transponder is not considered the long this situation connecting, just likely cause request not to be forwarded to and set up on the long Internet of things middleware server being connected with things-internet gateway, cause operation requests failure.In addition, owing to existing things-internet gateway to be connected with the long of Internet of things middleware, the control that this makes some Internet of Things perception hardware nodes, need to be forwarded on specific Internet of things middleware server, makes load balancing transponder can not really realize the function of load balancing.
Summary of the invention
In view of this, the application provides a kind of method and apparatus of supporting the expansion of Internet of things middleware cluster, can realize the expansion of Internet of things middleware, thereby guarantee carrying out smoothly of operation requests in Internet of things system, further can also make load balancing transponder really realize the function of load balancing.。
To achieve these goals, the existing scheme proposing is as follows:
A method of supporting the expansion of Internet of things middleware cluster, comprising:
Reception, for the control command of things-internet gateway, utilizes load balancing transponder described control command to be mail to the server of any one Internet of things middleware;
If store described Internet of things middleware in the long Connection Cache district building in advance, be not connected with the long of described things-internet gateway, and the long relevant information that stores described things-internet gateway in mapping table that connects building in advance,,
According to the IP information of carrying in described relevant information, set up and being connected of described things-internet gateway, and described control command is mail to described things-internet gateway.
Preferably, before the control command of described reception for things-internet gateway, also comprise:
The registration message sending according to the things-internet gateway receiving, sets up with the long of described things-internet gateway and is connected;
In the long Connection Cache district building in advance described in described long connection is deposited in, meanwhile, using the relevant information of the relevant information of described things-internet gateway and described Internet of things middleware as mapping relations, be stored in build in advance long and connect in mapping table.
Preferably, the relevant information of described things-internet gateway comprises: the IP information of the id information of things-internet gateway and things-internet gateway.
Preferably, the relevant information of described Internet of things middleware comprises: the IP information of the id information of Internet of things middleware and Internet of things middleware.
Preferably, described described control command is mail to described things-internet gateway after, also comprise:
The logout message sending according to the described things-internet gateway receiving is removed long connection of storing in described long Connection Cache district,, the described long mapping relations of storing in mapping table that connect is removed meanwhile.
A system of supporting the expansion of Internet of things middleware cluster, comprising: receiving element, construction unit, judging unit and transmitting element, wherein:
Described receiving element, for receiving the control command for things-internet gateway, utilizes load balancing transponder described control command to be mail to the server of any one Internet of things middleware;
Described construction unit, for building in advance long Connection Cache district and the long mapping table that connects;
The described judging unit being connected with described receiving element and described construction unit respectively, for judging whether the described long Connection Cache district of described construction unit structure stores described Internet of things middleware and be connected with the long of described things-internet gateway, and, the long relevant information that whether stores described things-internet gateway in mapping table that connects building in advance described in judgement;
The described transmitting element being connected with described judging unit, for the long Connection Cache district that ought build in advance, not storing described Internet of things middleware is connected with the long of described things-internet gateway, and while storing the relevant information of described things-internet gateway in the long connection mapping table building in advance, according to the IP information of carrying in described relevant information, set up and being connected of described things-internet gateway, and described control command is mail to described things-internet gateway.
Preferably, also comprise the registering unit being connected with described receiving element, wherein:
Described registering unit comprises sets up unit and memory cell;
The described unit of setting up, for the registration message sending according to the things-internet gateway receiving, sets up with the long of described things-internet gateway and is connected;
Described memory cell, be used for the long Connection Cache district building in advance described in described long connection is deposited in, meanwhile, using the relevant information of the relevant information of described things-internet gateway and described Internet of things middleware as mapping relations, being stored in build in advance long connects in mapping table.
Preferably, the relevant information of described things-internet gateway comprises: the IP information of the id information of things-internet gateway and things-internet gateway.
Preferably, the relevant information of described Internet of things middleware comprises: the IP information of the id information of Internet of things middleware and Internet of things middleware.
Preferably, also comprise the cancellation unit being connected with described transmitting element, the long connection of described long Connection Cache district being stored for the logout message sending according to the described things-internet gateway receiving removes, and, the described long mapping relations of storing in mapping table that connect removed meanwhile.
From above-mentioned technical scheme, can find out, the method and system of the disclosed support Internet of things middleware of the application cluster expansion, by the long Connection Cache district building in advance, storing Internet of things middleware is connected with growing of things-internet gateway and grows connection mapping table and store the expansion that the relevant information of things-internet gateway is supported Internet of things middleware cluster, once being forwarded to, the request of control do not set up on the long server connecting, can be from the long IP address information of obtaining things-internet gateway mapping table that connects, and set up being connected of Internet of things middleware server and things-internet gateway, rather than set up on the long server connecting before leaveing no choice but request to be forwarded to.The method has not only realized the expansion of Internet of things middleware cluster, and the function of load balancing that made the real realization of load balancing transponder.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiment of the application, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the disclosed a kind of flow chart of supporting the method for Internet of things middleware cluster expansion of the embodiment of the present application one;
Fig. 2 is the disclosed a kind of flow chart of supporting the method for Internet of things middleware cluster expansion of the embodiment of the present application two;
Fig. 3 is the disclosed a kind of structural representation of supporting the system of Internet of things middleware cluster expansion of the embodiment of the present application three;
Fig. 4 is the disclosed a kind of structural representation of supporting the system of Internet of things middleware cluster expansion of the embodiment of the present application four.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only the application's part embodiment, rather than whole embodiment.Embodiment based in the application, those of ordinary skills are not paying all other embodiment that obtain under creative work prerequisite, all belong to the scope of the application's protection.
For solving in prior art, the agreement of existing load balancing transponder is not considered the long this situation connecting and is caused operation requests failure, simultaneously, make load balancing transponder can not really realize the such technical problem of function of load balancing, realize the expansion of Internet of things middleware cluster, further make the real function that realizes load balancing of load balancing transponder, the application provides following technical scheme:
Embodiment mono-
As shown in Figure 1, Fig. 1 is the disclosed a kind of flow chart of supporting the method for Internet of things middleware cluster expansion of the embodiment of the present application one.The method comprises:
S101: receive the control command for things-internet gateway, control command is mail to the server of any one Internet of things middleware.
Concrete, Internet of Things application program is sent control command to certain things-internet gateway, and Internet of things middleware cluster receives the control command for things-internet gateway, utilizes load balancing transponder control command to be mail to the server of any one Internet of things middleware.
Wherein, control command is sent by Internet of Things application program, for controlling its things-internet gateway that will control, carries out corresponding action.In wisdom road lamp system, control command can be instruction or the instruction of turning off the light of turning on light, and can certainly be other instructions, and this is not restricted.
S102: whether store Internet of things middleware in the long Connection Cache district that judgement builds in advance and be connected with the long of things-internet gateway, if so, connect and carry out step S105 by length, if not, carry out step S103.
Such as, in wisdom road lamp system, when the application program of the wisdom road lamp system Centralized Controller that is 0A0B5301 to ID sends while turning off the light order, Internet of things middleware load balancing transponder is forwarded to this control command on the Internet of things middleware that ID is 0102440A, this Internet of things middleware checks the long Connection Cache district that it builds in advance, find to have set up with ID the long of the Centralized Controller that is 0A0B5301 and be connected, directly send control command.
S103: the long relevant information that whether stores things-internet gateway in mapping table that connects that judgement builds in advance, if so, carry out step S104, if not, return to step S101.
In above-mentioned wisdom road lamp system, if Internet of things middleware load balancing transponder is forwarded to this control command on the Internet of things middleware that ID is 0102440B, in the long Connection Cache district that this Internet of things middleware builds in advance at it, cannot find with the long of things-internet gateway and be connected, so, this Internet of things middleware then build in advance long take in connecting mapping table " gateway ID=0A0B5301 " inquire about as querying condition, successfully find and record <0A0B5301,10.0.0.58,0102440A, 172.168.0.21>.
If the long relevant information of not storing things-internet gateway in mapping table that connects building in advance, Internet of things middleware is to Internet of Things application feeding back unsuccessful information, pointing out unsuccessfully, can be specifically that a miscue frame is ejected in Internet of Things application, so that re-start step S101.
S104: set up and being connected of things-internet gateway according to the IP information of carrying in relevant information.
Concrete, utilize web socket (socket) set up with IP address between be connected, make to communicate by network application-level protocols such as HTTP, thus being connected of foundation and things-internet gateway.
As mentioned above, the IP=10.0.0.58 of things-internet gateway is taken out, after connecting with things-internet gateway, can send control command.
S105: control command is mail to things-internet gateway.
Control command is mail to Internet of Things application program and want the things-internet gateway of controlling, realize the control to this things-internet gateway.
As from the foregoing, the embodiment of the present application one is openly supported the method for Internet of things middleware cluster expansion, by the long Connection Cache district building in advance, storing Internet of things middleware is connected with growing of things-internet gateway and grows connection mapping table and store the expansion that the relevant information of things-internet gateway is supported Internet of things middleware cluster, once being forwarded to, the request of control do not set up on the long server connecting, can be from the long IP address information of obtaining things-internet gateway mapping table that connects, and set up being connected of Internet of things middleware server and things-internet gateway, rather than set up on the long server connecting before leaveing no choice but request to be forwarded to.The method has not only realized the expansion of Internet of things middleware cluster, and the function of load balancing that made the real realization of load balancing transponder.
Embodiment bis-
The embodiment of the present application two discloses the method for another kind of support Internet of things middleware cluster expansion, and as shown in Figure 2, Fig. 2 is the disclosed a kind of flow chart of supporting the method for Internet of things middleware cluster expansion of the embodiment of the present application two.The method comprises:
S201: the registration message sending according to the things-internet gateway receiving, set up with the long of things-internet gateway and be connected.
After things-internet gateway access network, send message register to Internet of things middleware, Internet of things middleware receives registration message, sets up with the long of things-internet gateway and is connected.
S202: long connection deposited in the long Connection Cache district building in advance, meanwhile, be stored in build in advance long using the relevant information of the relevant information of things-internet gateway and Internet of things middleware as mapping relations and connect in mapping table.
Wherein, long Connection Cache district and long these two unit of mapping table that connect can be realized by modes such as building database, buffer memorys, at this, do not limit, and can select as the case may be.
The relevant information of things-internet gateway comprises: the IP information of the id information of things-internet gateway and things-internet gateway.The relevant information of Internet of things middleware comprises: the IP information of the id information of Internet of things middleware and Internet of things middleware.
Concrete, by depositing in being connected with things-internet gateway long of setting up in the long Connection Cache district that Internet of things middleware builds in advance, the id information of the id information of things-internet gateway, IP information and Internet of things middleware, IP information four-tuple are deposited in the length connection mapping table building in advance with mapping relations simultaneously.
Such as in wisdom road lamp system, when having accessed new Centralized Controller (being things-internet gateway), Centralized Controller can send registration message to Internet of things middleware, comprises ID (0A0B5301) and the IP (10.0.0.58) of this Centralized Controller in message.Internet of things middleware is set up with the long of Centralized Controller and is connected, and long connection deposited in the long Connection Cache district building in advance, obtain ID (0102440A) and the IP (172.168.0.21) of this Internet of things middleware simultaneously, ID and IP together with Centralized Controller generate four-tuple mapping relations <0A0B5301,10.0.0.58,0102440A, 172.168.0.21>, deposits the long mapping table that connects building in advance in.
S203: receive the control command for things-internet gateway, control command is mail to the server of any one Internet of things middleware.
Concrete, Internet of Things application program is sent control command to certain things-internet gateway, and Internet of things middleware cluster receives the control command for things-internet gateway, utilizes load balancing transponder control command to be mail to the server of any one Internet of things middleware.
S204: whether store Internet of things middleware in the long Connection Cache district that judgement builds in advance and be connected with the long of things-internet gateway, if so, connect and carry out step S207 by length, if not, carry out step S205.
Such as, in wisdom road lamp system, when the application program of the wisdom road lamp system Centralized Controller that is 0A0B5301 to ID sends while turning off the light order, Internet of things middleware load balancing transponder is forwarded to this control command on the Internet of things middleware that ID is 0102440A, this Internet of things middleware checks the long Connection Cache district that it builds in advance, find to have set up with ID the long of the Centralized Controller that is 0A0B5301 and be connected, directly send control command.
S205: the long relevant information that whether stores things-internet gateway in mapping table that connects that judgement builds in advance, if so, carry out step S206, if not, return to step S203.
In above-mentioned wisdom road lamp system, if Internet of things middleware load balancing transponder is forwarded to this control command on the Internet of things middleware that ID is 0102440B, in the long Connection Cache district that this Internet of things middleware builds in advance at it, cannot find with the long of things-internet gateway and be connected, so, this Internet of things middleware then build in advance long take in connecting mapping table " gateway ID=0A0B5301 " inquire about as querying condition, successfully find and record <0A0B5301,10.0.0.58,0102440A, 172.168.0.21>.
If the long relevant information of not storing things-internet gateway in mapping table that connects building in advance, returns and control failed information, proceed step S203.
S206: set up and being connected of things-internet gateway according to the IP information of carrying in relevant information.
Concrete, utilize web socket (socket) set up with IP address between be connected, make to communicate by network application-level protocols such as HTTP, thus being connected of foundation and things-internet gateway.
As mentioned above, the IP=10.0.0.58 of things-internet gateway is taken out, with the things-internet gateway transmission control command that connects.
S207: control command is mail to things-internet gateway.
Control command is mail to Internet of Things application program and want the things-internet gateway of controlling, realize the control to this things-internet gateway.
S208: the long connection of storing in the logout message Jiang Chang Connection Cache district sending according to the things-internet gateway receiving removes, removes the long mapping relations of storing in mapping table that connect meanwhile.
Things-internet gateway deviated from network, sends message to the built vertical long Internet of things middleware connecting and nullifies, and Internet of things middleware receives logout message, and long connection the in Jiang Chang Connection Cache district removes, and the long mapping relations that connect in mapping table removed simultaneously.
After things-internet gateway off-line, need to be by erasing of information, otherwise can there is " dirty data ".Such as Internet of things middleware A has set up long connection with things-internet gateway B, and information is stored in to " long Connection Cache district " with in " the long mapping table that is connected ", after things-internet gateway B battery exhausts, long Joint failure, things-internet gateway A cannot get in touch with things-internet gateway B again.And things-internet gateway A and the long link information of things-internet gateway B are also stored in long Connection Cache district and are connected in mapping table with long, so need to remove, avoid the idle work of again things-internet gateway B being asked.
In wisdom road lamp system, when the ID Centralized Controller that is 0A0B5301 is nullified, the Internet of things middleware that ID is 0102440A is received after message, and long connection the between them removed.Meanwhile, search the long mapping table that connects, by mapping relations <0A0B5301,10.0.0.58,0102440A, 172.168.0.21> deletes.
As from the foregoing, the embodiment of the present application two is openly supported the method for Internet of things middleware cluster expansion, by the long Connection Cache district building in advance, storing Internet of things middleware is connected with growing of things-internet gateway and grows connection mapping table and store the expansion that the relevant information of things-internet gateway is supported Internet of things middleware cluster, once being forwarded to, the request of control do not set up on the long server connecting, can be from the long IP address information of obtaining things-internet gateway mapping table that connects, and set up being connected of Internet of things middleware server and things-internet gateway, rather than set up on the long server connecting before leaveing no choice but request to be forwarded to.The method has not only realized the expansion of Internet of things middleware cluster, and the function of load balancing that made the real realization of load balancing transponder.
Embodiment tri-
In order to support the expansion of Internet of things middleware cluster, make load balancing transponder realize real load balancing simultaneously, and can realize the method that the disclosed support Internet of things middleware of the embodiment of the present application one cluster is expanded, the open following system of supporting the expansion of Internet of things middleware cluster of the embodiment of the present application three.As shown in Figure 3, Fig. 3 is the disclosed a kind of structural representation of supporting the system of Internet of things middleware cluster expansion of the embodiment of the present application three.
This system comprises: receiving element 301, construction unit 302, judging unit 303 and transmitting element 304, wherein:
Receiving element 301, for receiving the control command for things-internet gateway, utilizes load balancing transponder described control command to be mail to the server of any one Internet of things middleware.
Construction unit 302, for building in advance long Connection Cache district and the long mapping table that connects.
The judging unit 303 being connected with receiving element 301 and construction unit 302 respectively, for judging whether the long Connection Cache district of construction unit 302 structures stores Internet of things middleware and be connected with the long of things-internet gateway, and, the long relevant information that whether stores things-internet gateway in mapping table that connects that judgement builds in advance.
Such as, in wisdom road lamp system, when the application program of the wisdom road lamp system Centralized Controller that is 0A0B5301 to ID sends while turning off the light order, Internet of things middleware load balancing transponder is forwarded to this control command on the Internet of things middleware that ID is 0102440A, this Internet of things middleware checks the long Connection Cache district that it builds in advance, find to have set up with ID the long of the Centralized Controller that is 0A0B5301 and be connected, directly send control command.If Internet of things middleware load balancing transponder is forwarded to this control command on the Internet of things middleware that ID is 0102440B, in the long Connection Cache district that this Internet of things middleware builds in advance at it, cannot find with the long of things-internet gateway and be connected, so, this Internet of things middleware then build in advance long take in connecting mapping table " gateway ID=0A0B5301 " inquire about as querying condition, successfully find and record <0A0B5301,10.0.0.58,0102440A, 172.168.0.21>.If the long relevant information of not storing things-internet gateway in mapping table that connects that construction unit builds in advance, judging unit returns to receiving element the failed information of controlling.
The transmitting element 304 being connected with judging unit 303, for the long Connection Cache district that ought build in advance, not storing Internet of things middleware is connected with the long of things-internet gateway, and while storing the relevant information of things-internet gateway in the long connection mapping table building in advance, according to the IP information of carrying in relevant information, set up and being connected of described things-internet gateway, and control command is mail to described things-internet gateway.
Concrete, utilize web socket (socket) set up with IP address between be connected, make to communicate by network application-level protocols such as HTTP, thus being connected of foundation and things-internet gateway.The IP=10.0.0.58 of things-internet gateway is taken out, with the things-internet gateway transmission control command that connects, realize the control to this things-internet gateway.
As from the foregoing, the embodiment of the present application three is openly supported the system of Internet of things middleware cluster expansion, the long Connection Cache district building in advance by construction unit stores Internet of things middleware and is connected with growing of things-internet gateway and grows connection mapping table and store the expansion that the relevant information of things-internet gateway is supported Internet of things middleware cluster, once judging unit is found to control request and is forwarded on the long server connecting of not foundation, transmitting element can be from the long IP address information of obtaining things-internet gateway mapping table that connects, and set up being connected of Internet of things middleware server and things-internet gateway, rather than set up on the long server connecting before leaveing no choice but request to be forwarded to.The method has not only realized the expansion of Internet of things middleware cluster, and the function of load balancing that made the real realization of load balancing transponder.
Embodiment tetra-
The embodiment of the present application four discloses the system of another kind of support Internet of things middleware cluster expansion, and as shown in Figure 4, Fig. 4 is the disclosed a kind of structural representation of supporting the system of Internet of things middleware cluster expansion of the embodiment of the present application four.
This system comprises: registering unit 401, receiving element 402, construction unit 403, judging unit 404, transmitting element 405 and cancellation unit 406, wherein:
Registering unit 401 comprises: set up unit 4011 and memory cell 4012.
Set up unit 4011, for the registration message sending according to the things-internet gateway receiving, set up with the long of things-internet gateway and be connected.
The memory cell 4012 being connected with construction unit 403, for depositing long connection in build in advance long Connection Cache district, meanwhile, using the relevant information of the relevant information of things-internet gateway and Internet of things middleware as mapping relations, being stored in build in advance long connects in mapping table.
Wherein, the relevant information of things-internet gateway comprises: the IP information of the id information of things-internet gateway and things-internet gateway.The relevant information of Internet of things middleware comprises: the IP information of the id information of Internet of things middleware and Internet of things middleware.
Concrete, by depositing in being connected with things-internet gateway long of setting up in the long Connection Cache district that Internet of things middleware builds in advance, the id information of the id information of things-internet gateway, IP information and Internet of things middleware, IP information four-tuple are deposited in the length connection mapping table building in advance with mapping relations simultaneously.
Receiving element 402, for receiving the control command for things-internet gateway, utilizes load balancing transponder described control command to be mail to the server of any one Internet of things middleware.
Construction unit 403, for building in advance long Connection Cache district and the long mapping table that connects.
Wherein, long Connection Cache district and long these two unit of mapping table that connect can be realized by modes such as building database, buffer memorys, at this, do not limit, and can select as the case may be.
The judging unit 404 being connected with receiving element 402 and construction unit 403 respectively, for judging whether the long Connection Cache district of construction unit 403 structures stores Internet of things middleware and be connected with the long of things-internet gateway, and, the long relevant information that whether stores things-internet gateway in mapping table that connects that judgement builds in advance.
The transmitting element 405 being connected with judging unit 404, for the long Connection Cache district that ought build in advance, not storing Internet of things middleware is connected with the long of things-internet gateway, and while storing the relevant information of things-internet gateway in the long connection mapping table building in advance, according to the IP information of carrying in relevant information, set up and being connected of described things-internet gateway, and control command is mail to described things-internet gateway.
The cancellation unit 406 being connected with transmitting element 405, the long connection of storing for the logout message Jiang Chang Connection Cache district sending according to the things-internet gateway receiving removes, and, the long mapping relations of storing in mapping table that connect removed meanwhile.
Things-internet gateway deviated from network, sends message to the built vertical long Internet of things middleware connecting and nullifies, and Internet of things middleware receives logout message, and long connection the in Jiang Chang Connection Cache district removes, and the long mapping relations that connect in mapping table removed simultaneously.
As from the foregoing, the embodiment of the present application four is openly supported the system of Internet of things middleware cluster expansion, the long Connection Cache district building in advance by construction unit stores Internet of things middleware and is connected with growing of things-internet gateway and grows connection mapping table and store the expansion that the relevant information of things-internet gateway is supported Internet of things middleware cluster, once judging unit is found to control request and is forwarded on the long server connecting of not foundation, transmitting element can be from the long IP address information of obtaining things-internet gateway mapping table that connects, and set up being connected of Internet of things middleware server and things-internet gateway, rather than set up on the long server connecting before leaveing no choice but request to be forwarded to.The method has not only realized the expansion of Internet of things middleware cluster, and the function of load balancing that made the real realization of load balancing transponder.
Finally, also it should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
In this specification, each embodiment adopts the mode of going forward one by one to describe, and each embodiment stresses is the difference with other embodiment, between each embodiment identical similar part mutually referring to.
Above-mentioned explanation to the disclosed embodiments, makes professional and technical personnel in the field can realize or use the application.To the multiple modification of these embodiment, will be apparent for those skilled in the art, General Principle as defined herein can be in the situation that do not depart from the application's spirit or scope, realization in other embodiments.Therefore, the application will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (10)

1. a method of supporting the expansion of Internet of things middleware cluster, is characterized in that, comprising:
Reception, for the control command of things-internet gateway, utilizes load balancing transponder described control command to be mail to the server of any one Internet of things middleware;
If store described Internet of things middleware in the long Connection Cache district building in advance, be not connected with the long of described things-internet gateway, and the long relevant information that stores described things-internet gateway in mapping table that connects building in advance,,
According to the IP information of carrying in described relevant information, set up and being connected of described things-internet gateway, and described control command is mail to described things-internet gateway.
2. method according to claim 1, is characterized in that, before the control command of described reception for things-internet gateway, also comprises:
The registration message sending according to the things-internet gateway receiving, sets up with the long of described things-internet gateway and is connected;
In the long Connection Cache district building in advance described in described long connection is deposited in, meanwhile, using the relevant information of the relevant information of described things-internet gateway and described Internet of things middleware as mapping relations, be stored in build in advance long and connect in mapping table.
3. method according to claim 2, is characterized in that, the relevant information of described things-internet gateway comprises: the IP information of the id information of things-internet gateway and things-internet gateway.
4. method according to claim 2, is characterized in that, the relevant information of described Internet of things middleware comprises: the IP information of the id information of Internet of things middleware and Internet of things middleware.
5. method according to claim 2, is characterized in that, described described control command is mail to described things-internet gateway after, also comprise:
The logout message sending according to the described things-internet gateway receiving is removed long connection of storing in described long Connection Cache district,, the described long mapping relations of storing in mapping table that connect is removed meanwhile.
6. a system of supporting the expansion of Internet of things middleware cluster, is characterized in that, comprising: receiving element, construction unit, judging unit and transmitting element, wherein:
Described receiving element, for receiving the control command for things-internet gateway, utilizes load balancing transponder described control command to be mail to the server of any one Internet of things middleware;
Described construction unit, for building in advance long Connection Cache district and the long mapping table that connects;
The described judging unit being connected with described receiving element and described construction unit respectively, for judging whether the described long Connection Cache district of described construction unit structure stores described Internet of things middleware and be connected with the long of described things-internet gateway, and, the long relevant information that whether stores described things-internet gateway in mapping table that connects building in advance described in judgement;
The described transmitting element being connected with described judging unit, for the long Connection Cache district that ought build in advance, not storing described Internet of things middleware is connected with the long of described things-internet gateway, and while storing the relevant information of described things-internet gateway in the long connection mapping table building in advance, according to the IP information of carrying in described relevant information, set up and being connected of described things-internet gateway, and described control command is mail to described things-internet gateway.
7. system according to claim 6, is characterized in that, also comprises the registering unit being connected with described receiving element, wherein:
Described registering unit comprises sets up unit and memory cell;
The described unit of setting up, for the registration message sending according to the things-internet gateway receiving, sets up with the long of described things-internet gateway and is connected;
Described memory cell, be used for the long Connection Cache district building in advance described in described long connection is deposited in, meanwhile, using the relevant information of the relevant information of described things-internet gateway and described Internet of things middleware as mapping relations, being stored in build in advance long connects in mapping table.
8. system according to claim 7, is characterized in that, the relevant information of described things-internet gateway comprises: the IP information of the id information of things-internet gateway and things-internet gateway.
9. system according to claim 7, is characterized in that, the relevant information of described Internet of things middleware comprises: the IP information of the id information of Internet of things middleware and Internet of things middleware.
10. system according to claim 7, it is characterized in that, also comprise the cancellation unit being connected with described transmitting element, the long connection of described long Connection Cache district being stored for the logout message sending according to the described things-internet gateway receiving removes, meanwhile, the described long mapping relations of storing in mapping table that connect are removed.
CN201410478865.9A 2014-09-18 2014-09-18 A kind of method and apparatus for supporting Internet of things middleware cluster expansion Active CN104202420B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410478865.9A CN104202420B (en) 2014-09-18 2014-09-18 A kind of method and apparatus for supporting Internet of things middleware cluster expansion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410478865.9A CN104202420B (en) 2014-09-18 2014-09-18 A kind of method and apparatus for supporting Internet of things middleware cluster expansion

Publications (2)

Publication Number Publication Date
CN104202420A true CN104202420A (en) 2014-12-10
CN104202420B CN104202420B (en) 2017-10-13

Family

ID=52087645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410478865.9A Active CN104202420B (en) 2014-09-18 2014-09-18 A kind of method and apparatus for supporting Internet of things middleware cluster expansion

Country Status (1)

Country Link
CN (1) CN104202420B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468830A (en) * 2014-12-29 2015-03-25 广州中国科学院软件应用技术研究所 Web service method based on internet of things and internet of things system
CN110011910A (en) * 2019-04-08 2019-07-12 陈鹏 A kind of gateway communication system and gateway communication method for supporting multi-protocols equipment to access
WO2020024991A1 (en) * 2018-08-01 2020-02-06 中兴通讯股份有限公司 Internet of things gateway access method and device, and storage medium
CN110855455A (en) * 2019-11-26 2020-02-28 南京甄视智能科技有限公司 Message forwarding method and device in IOT cluster
CN111200662A (en) * 2020-01-17 2020-05-26 南京甄视智能科技有限公司 Message forwarding method and device in Internet of things, storage medium and server
CN112118275A (en) * 2019-06-20 2020-12-22 北京车和家信息技术有限公司 Overload processing method, Internet of things platform and computer readable storage medium
CN113691605A (en) * 2021-08-18 2021-11-23 深圳市晨北科技有限公司 Data transmission method and device, electronic equipment and storage medium
CN114422569A (en) * 2021-12-30 2022-04-29 天翼云科技有限公司 Message pushing method and device of cloud desktop

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217558A (en) * 2007-12-26 2008-07-09 中国移动通信集团湖北有限公司 An operation middleware service load balancing method
CN102291808A (en) * 2011-06-03 2011-12-21 莫雅静 Network communication method, communication equipment and middleware of communication equipment
CN102857505A (en) * 2012-09-06 2013-01-02 上海计算机软件技术开发中心 Data bus middleware of Internet of things
CN103957280A (en) * 2014-05-21 2014-07-30 中国科学院重庆绿色智能技术研究院 Connection allocation and scheduling method of sensor network in Internet of things

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217558A (en) * 2007-12-26 2008-07-09 中国移动通信集团湖北有限公司 An operation middleware service load balancing method
CN102291808A (en) * 2011-06-03 2011-12-21 莫雅静 Network communication method, communication equipment and middleware of communication equipment
CN102857505A (en) * 2012-09-06 2013-01-02 上海计算机软件技术开发中心 Data bus middleware of Internet of things
CN103957280A (en) * 2014-05-21 2014-07-30 中国科学院重庆绿色智能技术研究院 Connection allocation and scheduling method of sensor network in Internet of things

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468830B (en) * 2014-12-29 2018-04-27 广州中国科学院软件应用技术研究所 A kind of web service method and Internet of things system based on Internet of Things
CN104468830A (en) * 2014-12-29 2015-03-25 广州中国科学院软件应用技术研究所 Web service method based on internet of things and internet of things system
WO2020024991A1 (en) * 2018-08-01 2020-02-06 中兴通讯股份有限公司 Internet of things gateway access method and device, and storage medium
CN110798329A (en) * 2018-08-01 2020-02-14 中兴通讯股份有限公司 Internet of things gateway access method, equipment and storage medium
CN110011910B (en) * 2019-04-08 2022-01-18 陈鹏 Gateway communication system and gateway communication method supporting multi-protocol device access
CN110011910A (en) * 2019-04-08 2019-07-12 陈鹏 A kind of gateway communication system and gateway communication method for supporting multi-protocols equipment to access
CN112118275A (en) * 2019-06-20 2020-12-22 北京车和家信息技术有限公司 Overload processing method, Internet of things platform and computer readable storage medium
CN112118275B (en) * 2019-06-20 2023-07-11 北京车和家信息技术有限公司 Overload processing method, internet of things platform and computer readable storage medium
CN110855455A (en) * 2019-11-26 2020-02-28 南京甄视智能科技有限公司 Message forwarding method and device in IOT cluster
CN110855455B (en) * 2019-11-26 2021-06-22 南京甄视智能科技有限公司 Message forwarding method and device in IOT cluster
CN111200662A (en) * 2020-01-17 2020-05-26 南京甄视智能科技有限公司 Message forwarding method and device in Internet of things, storage medium and server
CN113691605A (en) * 2021-08-18 2021-11-23 深圳市晨北科技有限公司 Data transmission method and device, electronic equipment and storage medium
CN114422569A (en) * 2021-12-30 2022-04-29 天翼云科技有限公司 Message pushing method and device of cloud desktop

Also Published As

Publication number Publication date
CN104202420B (en) 2017-10-13

Similar Documents

Publication Publication Date Title
CN104202420A (en) Method and device for supporting expansion of internet-of-things middleware cluster
WO2022037322A1 (en) Network topology management system and method for home networking
CN102223365B (en) User access method and device based on SSL (Secure Socket Layer) VPN (Virtual Private Network) gateway cluster
CN102291320B (en) MAC (media access control) address learning method and edge device
US8755283B2 (en) Synchronizing state among load balancer components
CN101964799B (en) Solution method of address conflict in point-to-network tunnel mode
CN102594678B (en) Method for large-scale networking of dynamic virtual private network (DVPN) and client
CN101136926B (en) Packet forwarding method under asymmetric routing condition and network address conversion gateway
US8838831B2 (en) Populating location wiremap databases
CN103209108B (en) A kind of route generating method based on DVPN and equipment
CN105264493A (en) Dynamic virtual machines migration over information centric networks
CN102739775A (en) Method for monitoring and managing Internet of Things data acquisition server cluster
CN103441932B (en) A kind of Host routes list item generates method and apparatus
CN103236971B (en) A kind of routing conversion of the Internet content
JP2008283670A (en) Access, connectivity and interoperability for device and service
CN103546572B (en) A kind of cloudy storing networking system and method
CN103618801B (en) Method, equipment and the system of a kind of P2P resource-sharing
CN101127714B (en) A route management method and device for wireless mesh network
CN113055297B (en) Network topology discovery method and device
CN106101617A (en) A kind of message transmitting method, Apparatus and system
CN102333027A (en) Traffic load sharing realization method based on virtual router redundancy protocol extend (VRRPE) backup group and realization apparatus thereof
JP2014155072A5 (en)
CN104601365A (en) Monitoring method and device for node device
CN108965036A (en) Configure across public network equipment exchanging visit method, system, server and storage medium
CN104113609A (en) MAC address distributing method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20190409

Address after: 510000 Room 1921, 27 Huanshi Avenue Center, Nansha District, Guangzhou City, Guangdong Province

Patentee after: Guangzhou Zhongke Yide Technology Co., Ltd.

Address before: 511458 8th Floor, Building A, 1121 Haibin Road, Nansha District, Guangzhou City, Guangdong Province

Patentee before: Institute of Software Application Technology, Guangzhou & Chinese Academy of Sciences

CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 510000 Room 501, no.221-1, Huanshi Avenue West, Nansha District, Guangzhou City, Guangdong Province (self compiled room 01)

Patentee after: Guangzhou Zhongke Yide Technology Co.,Ltd.

Address before: 510000 Room 1921, 27 Huanshi Avenue Center, Nansha District, Guangzhou City, Guangdong Province

Patentee before: Guangzhou Zhongke Yide Technology Co.,Ltd.