CN111464370B - Network distribution device, Internet of things control system and network distribution method thereof - Google Patents

Network distribution device, Internet of things control system and network distribution method thereof Download PDF

Info

Publication number
CN111464370B
CN111464370B CN202010419126.8A CN202010419126A CN111464370B CN 111464370 B CN111464370 B CN 111464370B CN 202010419126 A CN202010419126 A CN 202010419126A CN 111464370 B CN111464370 B CN 111464370B
Authority
CN
China
Prior art keywords
controller
network
controllers
distribution
router
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.)
Active
Application number
CN202010419126.8A
Other languages
Chinese (zh)
Other versions
CN111464370A (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202010419126.8A priority Critical patent/CN111464370B/en
Publication of CN111464370A publication Critical patent/CN111464370A/en
Application granted granted Critical
Publication of CN111464370B publication Critical patent/CN111464370B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/0803Configuration setting
    • 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/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Abstract

The invention discloses a network distribution device, an Internet of things control system and a network distribution method thereof, wherein the device comprises: the setting unit is used for setting a DHCP server for each controller and setting two distribution network ports for each controller so that each controller has distribution network conditions; two net gapes of joining in marriage include: a dynamic network port and a static network port; the determining unit is used for determining a distribution network mode; this distribution network mode includes: a router distribution network mode or a hybrid distribution network mode or a network port distribution network mode; the control unit is used for realizing the network distribution of each controller by utilizing the router according to the network distribution mode of the router; or, according to the hybrid distribution network mode, a distribution network is realized for each controller by utilizing the distribution network ports of the router and the controller; or, according to the network port distribution mode, the network distribution of each controller is realized by using the network port of the distribution network of the controller. The scheme of the invention can solve the problem of low network establishment efficiency and achieve the effect of improving the network establishment efficiency.

Description

Network distribution device, Internet of things control system and network distribution method thereof
Technical Field
The invention belongs to the technical field of distribution networks, particularly relates to a distribution network device, an Internet of things control system and a distribution network method thereof, and particularly relates to a debugging configuration device and method for automatic and manual distribution of a controller and the Internet of things control system.
Background
With the development of network communication and internet of things technologies, the speed and efficiency of establishing network connection between devices have higher requirements, but the efficiency of establishing a network still needs to be improved.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention aims to provide a network distribution device, an internet of things control system and a network distribution method thereof to solve the problem of low network establishment efficiency and achieve the effect of improving the network establishment efficiency.
The invention provides a distribution network device, comprising: a setting unit, a determination unit and a control unit; the device comprises a setting unit, a configuration unit and a control unit, wherein the setting unit is used for setting a DHCP server for each controller and setting two network distribution ports for each controller so that each controller has a network distribution condition; two net gapes of joining in marriage include: a dynamic network port and a static network port; the determining unit is used for determining a distribution network mode; this distribution network mode includes: any one of a router distribution network mode, a hybrid distribution network mode and a network port distribution network mode; the control unit is used for realizing the network distribution of each controller by utilizing the router according to the network distribution mode of the router; or, according to the hybrid distribution network mode, a distribution network is realized for each controller by utilizing the distribution network ports of the router and the controller; or, according to the network port distribution mode, the network distribution of each controller is realized by using the network port of the distribution network of the controller.
Optionally, the setting unit sets a DHCP server for each controller, including: building a DHCP server on each controller; and/or, the setting unit sets a static net port and a dynamic net port for each controller, comprising: reserving two network ports on each controller, and enabling each controller to set a first network port of the two reserved network ports as a static network port and a second network port of the two reserved network ports as a dynamic network port; wherein, static net gape includes: a static IP network port; a dynamic portal, comprising: and (4) dynamic IP network ports.
Optionally, the determining unit determines a distribution network mode, including: determining the number of routers, and determining a distribution network mode according to the number of routers; the method comprises the following steps that when routers exist and the number of the routers reaches the required number, the distribution network mode is determined to be the router distribution network mode for realizing distribution network by utilizing the routers; under the condition that the routers exist but the number of the routers does not reach the required number, determining that the distribution network mode is a hybrid distribution network mode for realizing distribution network by utilizing distribution network ports of the routers and the controller; and under the condition of no router, determining the distribution network mode as a network port distribution network mode of realizing a distribution network by utilizing the distribution network port of the controller.
Optionally, wherein the control unit implements a distribution network for each controller by using the router, including: dividing N controllers into at least two groups, wherein each group of controllers comprises more than two controllers; controlling the dynamic network port of each controller in each group of controllers to be connected to a router; controlling each router to be connected to a control terminal; each router allocates an IP address of a set network segment to each controller connected to the router; and/or the control unit realizes the distribution of the network for each controller by utilizing the distribution network ports of the router and the controller, and the method comprises the following steps: dividing N controllers into two groups, wherein each group of controllers comprises more than two controllers; controlling the dynamic network port of each controller in the first group of controllers to be connected to a router; controlling the static network port of one controller in the first group of controllers to be connected to the dynamic network port of one controller in the second group of controllers, controlling the static network port of one controller in the second group of controllers connected to the first group of controllers to be connected to the dynamic network port of the other controller in the second group of controllers, and the like to enable each controller in the second group of controllers to be connected in sequence; controlling a static network port of an end controller in the second group of controllers to be connected to the control terminal; wherein one of the first set of controllers connected to the second set of controllers assigns an IP address and a subnet mask to one of the second set of controllers connected to the first set of controllers; and/or the control unit realizes the distribution of the network for each controller by utilizing the distribution network port of the controller, and the method comprises the following steps: controlling the static network port of one controller in the N controllers to be connected to the dynamic network port of the other controller, controlling the static network port of the other controller to be connected to the dynamic network port of the next controller, and repeating the steps to ensure that each controller in the N controllers is connected in sequence; and controlling the static network port of the tail end controller in the N controllers to be connected to the control terminal.
Optionally, the control unit implements a distribution network for each controller by using the router, and further includes: if the new controller exists, adding the new controller into any one of the at least two groups of controllers to control the new controller to be connected to the router connected with the group of controllers; and/or the control unit realizes the distribution of the network for each controller by utilizing the distribution network ports of the router and the controller, and the method further comprises the following steps: if the newly-added controller exists, after the connection between the static network port of the tail end controller in the second group of controllers and the control terminal is disconnected, controlling the static network port of the tail end controller in the second group of controllers to be connected to the dynamic network port of the newly-added controller, and then controlling the static network port of the newly-added controller to be connected to the control terminal; and/or the control unit realizes the distribution network for each controller by utilizing the distribution network port of the controller, and the method further comprises the following steps: if the newly-added controller exists, after the connection between the static network port of the tail end controller in the N controllers and the control terminal is disconnected, the static network port of the tail end controller in the N controllers is controlled to be connected to the dynamic network port of the newly-added controller, and then the static network port of the newly-added controller is controlled to be connected to the control terminal.
In match with the above device, another aspect of the present invention provides an internet of things control system, including: the network distribution device is described above.
In another aspect, the invention provides a network distribution method for an internet of things control system, which is matched with the internet of things control system, and comprises the following steps: setting a DHCP server for each controller, and setting two distribution network ports for each controller so that each controller has distribution network conditions; two net gapes of joining in marriage include: a dynamic network port and a static network port; determining a distribution network mode; this distribution network mode includes: any one of a router distribution network mode, a hybrid distribution network mode and a network port distribution network mode; according to the network distribution mode of the router, the router is used for realizing network distribution for each controller; or, according to the hybrid distribution network mode, a distribution network is realized for each controller by utilizing the distribution network ports of the router and the controller; or, according to the network port distribution mode, the network distribution of each controller is realized by using the network port of the distribution network of the controller.
Optionally, wherein, setting a DHCP server for each controller includes: building a DHCP server on each controller; and/or, each controller is provided with a static network port and a dynamic network port, and the method comprises the following steps: reserving two network ports on each controller, and enabling each controller to set a first network port of the two reserved network ports as a static network port and a second network port of the two reserved network ports as a dynamic network port; wherein, static net gape includes: a static IP network port; a dynamic portal, comprising: and (4) dynamic IP network ports.
Optionally, determining a distribution network mode includes: determining the number of routers, and determining a distribution network mode according to the number of routers; the method comprises the following steps that when routers exist and the number of the routers reaches the required number, the distribution network mode is determined to be the router distribution network mode for realizing distribution network by utilizing the routers; under the condition that the routers exist but the number of the routers does not reach the required number, determining that the distribution network mode is a hybrid distribution network mode for realizing distribution network by utilizing distribution network ports of the routers and the controller; and under the condition of no router, determining the distribution network mode as a network port distribution network mode of realizing a distribution network by utilizing the distribution network port of the controller.
Optionally, wherein a distribution network is implemented for each controller by using a router, including: dividing N controllers into at least two groups, wherein each group of controllers comprises more than two controllers; controlling the dynamic network port of each controller in each group of controllers to be connected to a router; controlling each router to be connected to a control terminal; each router allocates an IP address of a set network segment to each controller connected to the router; and/or, a distribution network is realized for each controller by utilizing the distribution network ports of the router and the controller, and the method comprises the following steps: dividing N controllers into two groups, wherein each group of controllers comprises more than two controllers; controlling the dynamic network port of each controller in the first group of controllers to be connected to a router; controlling the static network port of one controller in the first group of controllers to be connected to the dynamic network port of one controller in the second group of controllers, controlling the static network port of one controller in the second group of controllers connected to the first group of controllers to be connected to the dynamic network port of the other controller in the second group of controllers, and the like to enable each controller in the second group of controllers to be connected in sequence; controlling a static network port of an end controller in the second group of controllers to be connected to the control terminal; wherein one of the first set of controllers connected to the second set of controllers assigns an IP address and a subnet mask to one of the second set of controllers connected to the first set of controllers; and/or, the distribution network is realized for each controller by utilizing the distribution network port of the controller, and the method comprises the following steps: controlling the static network port of one controller in the N controllers to be connected to the dynamic network port of the other controller, controlling the static network port of the other controller to be connected to the dynamic network port of the next controller, and repeating the steps to ensure that each controller in the N controllers is connected in sequence; and controlling the static network port of the tail end controller in the N controllers to be connected to the control terminal.
Optionally, a distribution network is implemented for each controller by using a router, and the method further includes: if the new controller exists, adding the new controller into any one of the at least two groups of controllers to control the new controller to be connected to the router connected with the group of controllers; and/or, utilize the net mouth of distribution network of router and controller oneself to realize the net of distribution to each controller, still include: if the newly-added controller exists, after the connection between the static network port of the tail end controller in the second group of controllers and the control terminal is disconnected, controlling the static network port of the tail end controller in the second group of controllers to be connected to the dynamic network port of the newly-added controller, and then controlling the static network port of the newly-added controller to be connected to the control terminal; and/or, utilize the net mouth of distribution network of controller oneself to realize joining in marriage the net to every controller, still include: if the newly-added controller exists, after the connection between the static network port of the tail end controller in the N controllers and the control terminal is disconnected, the static network port of the tail end controller in the N controllers is controlled to be connected to the dynamic network port of the newly-added controller, and then the static network port of the newly-added controller is controlled to be connected to the control terminal.
According to the scheme of the invention, the DHCP server is arranged in each controller, the static network port and the dynamic network port are arranged on each controller, and the normal network connection of equipment corresponding to each controller is realized by using the double network ports and the DHCP communication technology when the router exists or not, so that the debugging difficulty can be reduced, and the network can be quickly established.
Furthermore, the scheme of the invention realizes the rapid distribution network method for reducing router access or not accessing the router through double network ports by adopting a mode of combining the internal DHCP server and the dynamic network port with the static network port, ensures that the equipment can rapidly establish network connection under the condition of having or not having the router, and reduces the risk of data loss caused by communication failure among the equipment due to the router failure.
Furthermore, the scheme of the invention realizes the rapid establishment of the network communication between the devices under the condition of router shortage or no router use by adopting the mode of directly connecting the dynamic network port and the static network port, and can reduce the networking cost.
Therefore, according to the scheme of the invention, by arranging the DHCP server in each controller and arranging the static network port and the dynamic network port on each controller, normal network connection of equipment corresponding to each controller is realized by using double network ports and DHCP communication technology when the router exists or not, the problem of low network establishment efficiency is solved, and the effect of improving the network establishment efficiency is achieved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
Fig. 1 is a schematic structural diagram of a distribution network device according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an embodiment of a network distribution mode of a router in the internet of things control system according to the present invention;
fig. 3 is a schematic structural diagram of an embodiment of a hybrid distribution network mode in the internet of things control system according to the present invention;
fig. 4 is a schematic structural diagram of an embodiment of a network port distribution mode in the internet of things control system.
Fig. 5 is a schematic flow chart of a network distribution method according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of an embodiment of implementing a distribution network for each controller by using a router in the method of the present invention;
fig. 7 is a schematic flow chart illustrating an embodiment of implementing a distribution network for each controller by using distribution network ports of the router and the controller themselves in the method of the present invention;
fig. 8 is a schematic flow chart of an embodiment of implementing a distribution network for each controller by using a distribution network port of the controller itself in the method of the present invention.
The reference numbers in the embodiments of the present invention are as follows, in combination with the accompanying drawings:
1-a first controller; 2-a second controller; 3-a third controller; 4-a fourth controller; 5-a fifth controller.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the specific embodiments of the present invention and the accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
According to an embodiment of the invention, a network distribution device is provided. Referring to fig. 1, a schematic diagram of an embodiment of the apparatus of the present invention is shown. The distribution network device can be applied to a distribution network during communication among a plurality of devices and communication between the plurality of devices and a computer control terminal, and the distribution network device can comprise: the device comprises a setting unit, a determining unit and a control unit.
Specifically, the setting unit may be connected to a controller of each device to be configured, and may be configured to set a DHCP server for each controller, and set two network distribution ports (e.g., a static port and a dynamic port) for each controller, so that each controller has a network distribution condition. Each controller is a controller of the equipment to be networked. Two net gapes of joining in marriage can include: dynamic network ports and static network ports.
Optionally, the setting unit sets a DHCP server for each controller, and may include: a DHCP server is built on each controller.
Alternatively, the setting unit sets one static portal and one dynamic portal for each controller, and may include: two network ports are reserved on each controller, so that each controller sets a first network port of the two reserved network ports as a static network port and sets a second network port of the two reserved network ports as a dynamic network port. The static network port may include: static IP network ports. A dynamic portal, which may include: and (4) dynamic IP network ports.
For example: when a network is distributed, a DHCP server is firstly set up on each controller. And two network ports are reserved on each controller, one network port is set as a static IP by the controller, and the other network port is set as a dynamic IP.
Therefore, each controller can have the distribution network condition by setting a DHCP server, a static IP network port and a dynamic IP network port for each controller, thereby realizing the rapid network establishment for the controllers with the distribution network condition.
Specifically, the determining unit may be connected to the controller of each device to be configured, and connected to the network establishing unit, and may be configured to determine the network distribution mode. This distribution network mode can include: any one of a router distribution network mode, a hybrid distribution network mode and a network port distribution network mode.
Optionally, the determining unit determines the distribution network mode, which may include: and determining the number of the routers, and determining a distribution network mode according to the number of the routers. Wherein:
the determining unit may be specifically configured to determine that the distribution network mode is a router distribution network mode for realizing a distribution network by using routers when there are routers and the number of routers reaches the required number.
The determining unit may be further configured to determine, when there are routers and the number of the routers does not reach the required number, that the distribution network mode is a hybrid distribution network mode in which a distribution network is implemented by using distribution network ports of the routers and the controller.
The determining unit may be further configured to determine, in the absence of a router, that the network distribution mode is a network port distribution mode in which a network is distributed by using a distribution network port of the controller itself.
Therefore, the distribution network mode is determined according to the number of the routers, an internal Dynamic Host Configuration Protocol (DHCP) server can be adopted, and a dynamic network port and a static network port are combined to realize the debugging method of the automatic distribution network and the manual distribution network, and the rapid distribution network method for reducing the access of the routers or not is realized through the double network ports, so that the network connection can be rapidly established under the condition of the existence of the routers.
Specifically, the control unit may be configured to implement a network distribution for each controller by using the router according to a network distribution manner of the router; namely, under the condition that the determined distribution network mode is the router distribution network mode, the router is used for realizing distribution network for each controller.
Optionally, the controlling unit implements a distribution network for each controller by using the router, and may include:
the control unit may be further configured to divide the N controllers into at least two groups, where each group of controllers includes two or more controllers.
The control unit may be further configured to control a dynamic gateway of each controller in each group of controllers to be connected to one router.
The control unit may be further configured to control each router to be connected to a control terminal (e.g., a computer terminal).
Each router distributes an IP address of a set network segment to each controller connected to the router so as to enable the N controllers to communicate under the same local area network.
For example: when a user selects a router to distribute a network for the equipment, a plurality of controllers can be connected according to the mode shown in fig. 2, and the router can automatically distribute an IP address of the same network segment for each equipment, so that communication among all the equipment in the same local area network can be realized.
Further optionally, the control unit may implement a distribution network for each controller by using the router, and may further include: and if the newly added controller exists, adding the newly added controller into any one of the at least two groups of controllers so as to control the newly added controller to be connected to the router connected with the group of controllers.
Therefore, the controllers are connected to different routers after being grouped, and then the different routers are connected, so that a network can be quickly established, and communication among all devices in the same local area network is realized.
Or, the control unit can also be used for realizing the distribution of the network for each controller by utilizing the distribution network ports of the router and the controller according to the hybrid distribution network mode; namely, under the condition that the determined distribution network mode is the hybrid distribution network mode, the distribution network is realized for each controller by using the distribution network ports of the router and the controller.
Optionally, the controlling unit may implement a distribution network for each controller by using the distribution network ports of the router and the controller, and the distribution network may include:
the control unit may be further configured to divide the N controllers into two groups, where each group of controllers includes two or more controllers.
The control unit can be specifically used for controlling the dynamic network port of each controller in the first group of controllers to be connected to one router; and controlling the static network port of one controller in the first group of controllers to be connected to the dynamic network port of one controller in the second group of controllers, controlling the static network port of one controller in the second group of controllers connected to the first group of controllers to be connected to the dynamic network port of the other controller in the second group of controllers, and the like so that each controller in the second group of controllers is connected in sequence.
The control unit may be further configured to control a static portal of an end controller in the second group of controllers to be connected to a control terminal (e.g., a computer terminal).
And one controller in the first group of controllers connected to the second group of controllers allocates an IP address and a subnet mask to one controller in the second group of controllers connected to the first group of controllers, so that the one controller in the first group of controllers and the one controller in the second group of controllers are in the same set network segment.
For example: when the resources of the user router are insufficient, a plurality of controllers are required to be configured in the local area network and can be connected in a manner shown in fig. 3, a static IP port of a former controller is connected with a dynamic IP port of a latter controller to form a direct connection system, and the static IP port of a tail-end controller of the system is connected to a client computer, so that the automatic and manual distribution network debugging system in the scheme of the invention is formed. In the example shown in fig. 3, since each controller is integrated with a DHCP server, when the static IP port (i.e., static IP port) of the third controller 3 is connected to the dynamic IP port (i.e., dynamic IP port) of the fourth controller 4 by a network cable, the third controller 3 allocates an IP address and a subnet mask to the dynamic IP port of the fourth controller 4, and the third controller 3 and the fourth controller 4 are in the same network segment, so that the third controller 3 and the fourth controller 4 communicate under the lan, similarly, the fourth controller 4 and the fifth controller 5 can also communicate, and so on, the fifth controller 5 can communicate with the computer, and the computer client can see the IP addresses of all the controllers, so that the computer and all the controller devices and the devices communicate with each other.
Therefore, network communication between devices can be quickly established by adopting a mode that the router is used for distributing a network and combining a dynamic network port with a static network port to be directly connected under the condition of router shortage; in addition, the access of the router is reduced, so that the networking cost can be reduced, and the risk of data loss caused by communication failure between the devices due to the routing failure is reduced.
Or the control unit can be used for realizing the distribution of the network for each controller by utilizing the distribution network port of the controller according to the network port distribution mode; namely, under the condition that the determined distribution network mode is the network port distribution network mode, the distribution network is realized for each controller by utilizing the distribution network port of the controller.
For example: by using the double network ports and the DHCP communication technology, the equipment can be normally connected with the network when the router exists or not. The debugging mode of an automatic network distribution and a manual network distribution is realized through the double network cards, and the debugging difficulty can be reduced by enabling the controller to establish network connection in two states of active addressing and passive waiting, so that the requirement of quickly establishing a network is met.
Further optionally, the control unit may implement a distribution network for each controller by using the distribution network ports of the router and the controller, and may further include: if the new controller exists, after the connection between the static network port of the end controller in the second group of controllers and the control terminal is disconnected, the static network port of the end controller in the second group of controllers is controlled to be connected to the dynamic network port of the new controller, and then the static network port of the new controller is controlled to be connected to the control terminal (such as a computer terminal).
Therefore, the DHCP server and the two distribution network ports are arranged on each controller, the debugging modes of automatic distribution network and manual distribution network are realized through the double network cards, and the network can be quickly established.
Optionally, the controlling unit may implement a distribution network for each controller by using a distribution network port of the controller itself, where the distribution network port includes:
the control unit may be further configured to control a static network port of one controller of the N controllers to be connected to a dynamic network port of another controller, control a static network port of the another controller to be connected to a dynamic network port of a next controller, and so on to connect each controller of the N controllers in sequence.
The control unit may be further configured to control a static portal of a terminal controller of the N controllers to be connected to a control terminal (e.g., a computer terminal).
For example: under the condition of no router, the communication among a plurality of controllers and the communication among the controllers and the computer terminal can be realized. If the controller devices can be connected in the manner shown in fig. 4, any router can be not connected to the system, and communication between all the devices and the computer terminal can be realized.
Therefore, network communication between the devices can be quickly established by adopting a mode of directly connecting the dynamic network port and the static network port under the condition of not using a router; in addition, the access of the router is reduced, so that the networking cost can be reduced, and the risk of data loss caused by communication failure between the devices due to the routing failure is reduced.
Further optionally, the control unit may implement a distribution network for each controller by using a distribution network port of the controller itself, and may further include: if the new controller exists, after the connection between the static network port of the end controller in the N controllers and the control terminal is disconnected, the static network port of the end controller in the N controllers is controlled to be connected to the dynamic network port of the new controller, and then the static network port of the new controller is controlled to be connected to the control terminal (such as a computer terminal).
For example: if a control device needs to be added to the local area network, only the static IP end (i.e., the static IP port) of the fifth controller 5 needs to be connected to the dynamic IP end (i.e., the dynamic IP port) of the controller to be accessed, and then the static IP end of the controller to be accessed is connected to the computer.
Therefore, after the N controllers are distributed, if the newly-added controller is arranged, the newly-added controller is controlled to be added into the network where the N controllers are located, the controllers are conveniently expanded in the network, and the distribution network convenience when equipment is newly added at any time in the control system of the Internet of things can be improved.
Through a large number of tests, the technical scheme of the invention is adopted, the normal network connection of the equipment corresponding to each controller is realized by using the double network ports and the DHCP communication technology through arranging the DHCP server in each controller and arranging the static network port and the dynamic network port on each controller, the debugging difficulty can be reduced, and the network can be quickly established.
According to the embodiment of the invention, the invention further provides an Internet of things control system corresponding to the distribution network device. This thing networking control system can include: the network distribution device is described above.
In some aspects, a router may be employed to wire the controller to the controller. For example, when all wired controllers in a company need to communicate, a convenient and fast network configuration system is needed. The scheme of the invention provides a debugging configuration method and a debugging configuration system for an automatic network distribution and a manual network distribution of a controller, which mainly realize the debugging mode of the automatic network distribution and the manual network distribution through double network cards, and can reduce the debugging difficulty by establishing network connection by adopting two states of active addressing and passive waiting so as to meet the requirement of quickly establishing a network.
The active addressing may be to access a static port of the controller integrated with the DHCP server to a dynamic port of the second controller, and the second controller can automatically obtain an IP in the same network segment. The passive waiting may refer to that the router set to automatically allocate the IP for which the controller waits for access allocates the IP.
Optionally, in the scheme of the present invention, a debugging method for an automatic distribution network and a manual distribution network is implemented in a manner of combining a Dynamic Host Configuration Protocol (DHCP) server and a dynamic network port with a static network port. By adopting the mode of combining the internal DHCP server and the dynamic network port with the static network port, the method for rapidly distributing the network by reducing the router access or not accessing the router through the double network ports is realized, and the network connection can be rapidly established under the condition of the existence of the router of the equipment.
Optionally, in the solution of the present invention, a manner of directly connecting a dynamic network port and a static network port is adopted, so that network communication between devices is quickly established in the case of router shortage or no router is used. The access of the router is reduced by adopting a mode of directly connecting a dynamic network port and a static network port, and the networking cost is reduced; the communication fault between the devices caused by the route fault and the risk of data loss are reduced.
In an alternative embodiment, a specific implementation process of the scheme of the present invention can be exemplarily described with reference to the examples shown in fig. 2 to 4.
The scheme of the invention utilizes the double network ports and the DHCP communication technology to realize that the equipment can be normally connected with the network when the router exists or not.
In an alternative embodiment, the process of debugging and configuring the distribution network automatically and manually by the controller may include:
step 1, firstly, a DHCP server is built on each controller.
For example: because a system such as window or Linux is generally embedded in a controller with a network port, for a controller provided with the system, a DHCP service is equivalent to a component of the system, and the DHCP service can be completed under a slight configuration similar to the installation of software.
And 2, reserving two network ports on each controller, setting one network port as a static IP by the controller, and setting the other network port as a dynamic IP.
For example: the operation of setting static IP and dynamic IP can be similar to the operation of selecting self-acquiring IP address or fixed IP for a computer of the user, the operation can be realized by instructions for a controller carrying the system, and the setting of the dynamic and static IP is realized for realizing the distribution of a plurality of modes through double network ports.
And 3, when the user selects the router to distribute the network for the equipment, connecting the controllers according to the mode shown in the figure 2, and automatically allocating an IP address of the same network segment to each equipment by the router, so that the communication among all the equipment in the same local area network can be realized.
For example: the router has a basic function of automatically allocating an IP address to the access equipment, and belongs to a route, the general flow is that the router can open a DHCP service, and the service can automatically allocate the IP address and a subnet mask to the equipment which is set to automatically acquire the IP according to a DHCP protocol after the DHCP service is opened.
In fig. 2, each of the first controller 1, the second controller 2, the third controller 3, the fourth controller 4, and the fifth controller 5 has one dynamic IP portal and one static IP portal. And a first controller 1, a second controller 2 and a third controller 3 respectively connected to the first router. And a fourth controller 4 and a fifth controller 5 respectively connected to the second router. The first router and the second router are respectively connected to a computer.
Optionally, when the user router resources are not enough, a plurality of controllers need to be configured into the local area network, and may be connected together in the manner shown in fig. 3, and a static IP port of a previous controller is connected to a dynamic IP port of a subsequent controller to form a direct connection system, and a static IP port of a terminal controller of the system is connected to a client computer, so that the automatic and manual distribution network debugging system in the scheme of the present invention is formed.
In fig. 3, each of the first controller 1, the second controller 2, the third controller 3, the fourth controller 4, and the fifth controller 5 has one dynamic IP portal and one static IP portal. The first controller 1 and the second controller 2 are respectively connected to the first router. The static IP port of the second controller 2 is connected to the dynamic IP port of the third controller 3, the static IP port of the third controller 3 is connected to the dynamic IP port of the fourth controller 4, the static IP port of the fourth controller 4 is connected to the dynamic IP port of the fifth controller 5, and the static IP port of the fifth controller 5 is connected to the computer.
Further, in the example shown in fig. 3, because each controller has a DHCP server integrated thereon, when the static IP port (i.e. static IP port) of the third controller 3 and the dynamic IP port (i.e. dynamic IP port) of the fourth controller 4 are connected by a network cable, the third controller 3 will assign an IP address and subnet mask to the dynamic IP port of the fourth controller 4, and the third controller 3 and the fourth controller 4 are in the same network segment, thus realizing the communication between the third controller 3 and the fourth controller 4 under the LAN, similarly, the fourth controller 4 and the fifth controller 5 can also realize the communication, and so on, the fifth controller 5 can communicate with the computer, and the computer client can see the IP addresses of all the controllers, so that the communication between the computer and all the controller equipment and between the equipment is realized.
Since the DHCP server is mounted, the router is similar to a built-in router, and the router has functions of automatically allocating an IP subnet mask to the access device, and the like, the third controller 3 allocates an IP address and a subnet mask to the dynamic IP port of the fourth controller 4, and the third controller 3 and the fourth controller 4 are in the same network segment.
The computer client can see the IP addresses of all the controllers, can check the IP addresses, and can enable the terminal to know the IP of each access controller and communicate with any one of the required controllers.
Further alternatively, if a control device needs to be added to the local area network, only the static IP end (i.e., the static IP port) of the fifth controller 5 needs to be connected to the dynamic IP end (i.e., the dynamic IP port) of the controller to be accessed, and then the static IP end of the controller to be accessed is connected to the computer.
For example: any plurality of controllers can be added, one controller can be damaged or needs to be replaced, like any controller can be removed in the connection mode, only the static IP port of the former controller from which the controller is removed needs to be connected to the dynamic IP port of the latter controller from which the controller is removed, so that the invention has the advantage that any plurality of controllers can be added, and any controller which does not need to be accessed can be removed.
In an alternative embodiment, the communication between the controllers and the computer terminal can be realized without a router. If the controller devices can be connected in the manner shown in fig. 4, any router can be not connected to the system, and communication between all the devices and the computer terminal can be realized.
For example: the method for realizing communication between all devices and between computer terminals without connecting any router to the system may specifically include: the system is characterized in that a static network port of a first controller is connected to a dynamic network port of a next controller in sequence and connected downwards, and the first controller can allocate an IP and a subnet mask which are in the same network segment with the static network port of the first controller to a second controller due to the integration of a DHCP server, so that all the controllers are in the same network segment and can realize communication.
In fig. 4, each of the first controller 1, the second controller 2, the third controller 3, the fourth controller 4, and the fifth controller 5 has one dynamic IP portal and one static IP portal. The static IP port of the first controller 1 is connected to the dynamic IP port of the second controller 2, the static IP port of the second controller 2 is connected to the dynamic IP port of the third controller 3, the static IP port of the third controller 3 is connected to the dynamic IP port of the fourth controller 4, the static IP port of the fourth controller 4 is connected to the dynamic IP port of the fifth controller 5, and the static IP port of the fifth controller 5 is connected to the computer.
It can be seen that, in order to meet the requirement of establishing a network quickly, the scheme of the present invention adopts a mode of automatically allocating an IP by using a route other than the adopted mode, mainly adopts a DHCP server integrated in a controller, and realizes networking between devices without a route by using a mode of connecting a dual-network port, such as a static IP port, with a dynamic IP port, so that a network can be established quickly, the requirement of establishing a network by a user under different use conditions can be realized, and the use convenience is better.
Since the processing and functions implemented by the internet of things control system of this embodiment substantially correspond to the embodiment, principle, and example of the device shown in fig. 1, details are not described in the description of this embodiment, and reference may be made to the relevant description in the foregoing embodiment, which is not described herein again.
Through a large number of tests, the technical scheme of the invention is adopted, and the mode of combining the internal DHCP server and the dynamic network port with the static network port is adopted, so that the rapid network distribution method for reducing the router access or not accessing the router through the double network ports is realized, the network connection of the equipment can be rapidly established under the condition of the existence of the router, and the risk of data loss caused by communication failure among the equipment due to the route failure is reduced.
According to an embodiment of the present invention, a network distribution method for an internet of things control system corresponding to the internet of things control system is also provided, as shown in fig. 5, which is a schematic flow diagram of an embodiment of the method of the present invention. The network distribution method of the IOT control system can be applied to network distribution during communication among a plurality of devices and communication between the devices and a computer control end, and can comprise the following steps: step S110 to step S150.
In step S110, a DHCP server is set for each controller, and two distribution network ports (e.g., a static port and a dynamic port) are set for each controller, so that each controller has a distribution network condition. Each controller is a controller of the equipment to be networked. Two net gapes of joining in marriage can include: dynamic network ports and static network ports.
Alternatively, the step S110 of setting a DHCP server for each controller may include: a DHCP server is built on each controller.
Alternatively, the setting of a static portal and a dynamic portal for each controller in step S110 may include: two network ports are reserved on each controller, so that each controller sets a first network port of the two reserved network ports as a static network port and sets a second network port of the two reserved network ports as a dynamic network port. The static network port may include: static IP network ports. A dynamic portal, which may include: and (4) dynamic IP network ports.
For example: when a network is distributed, a DHCP server is firstly set up on each controller. And two network ports are reserved on each controller, one network port is set as a static IP by the controller, and the other network port is set as a dynamic IP.
Therefore, each controller can have the distribution network condition by setting a DHCP server, a static IP network port and a dynamic IP network port for each controller, thereby realizing the rapid network establishment for the controllers with the distribution network condition.
In step S120, a distribution network mode is determined. This distribution network mode can include: any one of a router distribution network mode, a hybrid distribution network mode and a network port distribution network mode.
Optionally, the determining the distribution network mode in step S120 may include: and determining the number of the routers, and determining a distribution network mode according to the number of the routers. Wherein:
and determining the distribution network mode as a router distribution network mode for realizing distribution network by utilizing the routers under the condition that the routers exist and the quantity of the routers reaches the required quantity.
And under the condition that the routers exist but the number of the routers does not reach the required number, determining that the distribution network mode is a hybrid distribution network mode for realizing distribution network by utilizing the distribution network ports of the routers and the controller.
And under the condition of no router, determining the distribution network mode as a network port distribution network mode of realizing a distribution network by utilizing the distribution network port of the controller.
Therefore, the distribution network mode is determined according to the number of the routers, an internal Dynamic Host Configuration Protocol (DHCP) server can be adopted, and a dynamic network port and a static network port are combined to realize the debugging method of the automatic distribution network and the manual distribution network, and the rapid distribution network method for reducing the access of the routers or not is realized through the double network ports, so that the network connection can be rapidly established under the condition of the existence of the routers.
In step S130, according to the network distribution mode of the router, a network distribution is implemented for each controller by using the router; namely, under the condition that the determined distribution network mode is the router distribution network mode, the router is used for realizing distribution network for each controller.
Optionally, with reference to a schematic flow chart of an embodiment of the method in fig. 6, in which a router is used to implement a distribution network for each controller, a specific process of implementing a distribution network for each controller in step S130 by using a router is further described, where the specific process may include: step S210 to step S230.
Step S210, divide the N controllers into at least two groups, each group of controllers includes more than two controllers.
And step S220, controlling the dynamic network port of each controller in each group of controllers to be connected to a router.
And step S230, controlling each router to be connected to a control terminal (such as a computer terminal).
Each router distributes an IP address of a set network segment to each controller connected to the router so as to enable the N controllers to communicate under the same local area network.
For example: when a user selects a router to distribute a network for the equipment, a plurality of controllers can be connected according to the mode shown in fig. 2, and the router can automatically distribute an IP address of the same network segment for each equipment, so that communication among all the equipment in the same local area network can be realized.
Further optionally, in step S130, a distribution network is implemented for each controller by using the router, and the method may further include: and if the newly added controller exists, adding the newly added controller into any one of the at least two groups of controllers so as to control the newly added controller to be connected to the router connected with the group of controllers.
Therefore, the controllers are connected to different routers after being grouped, and then the different routers are connected, so that a network can be quickly established, and communication among all devices in the same local area network is realized.
Or, in step S140, according to the hybrid network distribution mode, a network is distributed to each controller by using the distribution network ports of the router and the controller; namely, under the condition that the determined distribution network mode is the hybrid distribution network mode, the distribution network is realized for each controller by using the distribution network ports of the router and the controller.
Optionally, with reference to a schematic flow chart of an embodiment in which a distribution network is implemented for each controller by using distribution network ports of the router and the controller in the method of the present invention shown in fig. 7, a specific process of implementing a distribution network for each controller by using distribution network ports of the router and the controller in step S140 is further described, where the specific process may include: step S310 to step S330.
Step S310, dividing the N controllers into two groups, wherein each group of controllers comprises more than two controllers.
Step S320, controlling the dynamic network port of each controller in the first group of controllers to be connected to a router; and controlling the static network port of one controller in the first group of controllers to be connected to the dynamic network port of one controller in the second group of controllers, controlling the static network port of one controller in the second group of controllers connected to the first group of controllers to be connected to the dynamic network port of the other controller in the second group of controllers, and the like so that each controller in the second group of controllers is connected in sequence.
In step S330, the static portal of the end controller in the second group of controllers is controlled to be connected to a control terminal (e.g., a computer terminal).
And one controller in the first group of controllers connected to the second group of controllers allocates an IP address and a subnet mask to one controller in the second group of controllers connected to the first group of controllers, so that the one controller in the first group of controllers and the one controller in the second group of controllers are in the same set network segment.
For example: when the resources of the user router are insufficient, a plurality of controllers are required to be configured in the local area network and can be connected in a manner shown in fig. 3, a static IP port of a former controller is connected with a dynamic IP port of a latter controller to form a direct connection system, and the static IP port of a tail-end controller of the system is connected to a client computer, so that the automatic and manual distribution network debugging system in the scheme of the invention is formed. In the example shown in fig. 3, since each controller is integrated with a DHCP server, when the static IP port (i.e., static IP port) of the third controller 3 is connected to the dynamic IP port (i.e., dynamic IP port) of the fourth controller 4 by a network cable, the third controller 3 allocates an IP address and a subnet mask to the dynamic IP port of the fourth controller 4, and the third controller 3 and the fourth controller 4 are in the same network segment, so that the third controller 3 and the fourth controller 4 communicate under the lan, similarly, the fourth controller 4 and the fifth controller 5 can also communicate, and so on, the fifth controller 5 can communicate with the computer, and the computer client can see the IP addresses of all the controllers, so that the computer and all the controller devices and the devices communicate with each other.
Further optionally, in step S140, a distribution network is implemented for each controller by using the distribution network ports of the router and the controller, and the method may further include: if there is a new controller, after the connection between the static net mouth of the end controller in the second group of controllers and the control terminal is cut off, the static net mouth of the end controller in the second group of controllers is controlled to be connected to the dynamic net mouth of the new controller, and then the static net mouth of the new controller is controlled to be connected to the control terminal (such as a computer terminal)
Therefore, network communication between devices can be quickly established by adopting a mode that the router is used for distributing a network and combining a dynamic network port with a static network port to be directly connected under the condition of router shortage; in addition, the access of the router is reduced, so that the networking cost can be reduced, and the risk of data loss caused by communication failure between the devices due to the routing failure is reduced.
Or, in step S150, according to the network port distribution mode, a distribution network is implemented for each controller by using the distribution network port of the controller; namely, under the condition that the determined distribution network mode is the network port distribution network mode, the distribution network is realized for each controller by utilizing the distribution network port of the controller.
For example: by using the double network ports and the DHCP communication technology, the equipment can be normally connected with the network when the router exists or not. The debugging mode of an automatic network distribution and a manual network distribution is realized through the double network cards, and the debugging difficulty can be reduced by enabling the controller to establish network connection in two states of active addressing and passive waiting, so that the requirement of quickly establishing a network is met.
Therefore, the DHCP server and the two distribution network ports are arranged on each controller, the debugging modes of automatic distribution network and manual distribution network are realized through the double network cards, and the network can be quickly established.
Optionally, with reference to a schematic flow chart of an embodiment in which a distribution network is implemented for each controller by using a distribution network port of the controller in the method of the present invention shown in fig. 8, a specific process of implementing a distribution network for each controller by using a distribution network port of the controller in step S150 is further described, where the specific process may include: step S410 to step S420.
And step S410, controlling the static network port of one controller in the N controllers to be connected to the dynamic network port of the other controller, controlling the static network port of the other controller to be connected to the dynamic network port of the next controller, and so on to enable each controller in the N controllers to be connected in sequence.
In step S420, the static portal of the end controller of the N controllers is controlled to be connected to a control terminal (e.g., a computer terminal).
For example: under the condition of no router, the communication among a plurality of controllers and the communication among the controllers and the computer terminal can be realized. If the controller devices can be connected in the manner shown in fig. 4, any router can be not connected to the system, and communication between all the devices and the computer terminal can be realized.
Therefore, network communication between the devices can be quickly established by adopting a mode of directly connecting the dynamic network port and the static network port under the condition of not using a router; in addition, the access of the router is reduced, so that the networking cost can be reduced, and the risk of data loss caused by communication failure between the devices due to the routing failure is reduced.
Further optionally, in step S150, a distribution network is implemented for each controller by using a distribution network port of the controller itself, and the method may further include: if the new controller exists, after the connection between the static network port of the end controller in the N controllers and the control terminal is disconnected, the static network port of the end controller in the N controllers is controlled to be connected to the dynamic network port of the new controller, and then the static network port of the new controller is controlled to be connected to the control terminal (such as a computer terminal).
For example: if a control device needs to be added to the local area network, only the static IP end (i.e., the static IP port) of the fifth controller 5 needs to be connected to the dynamic IP end (i.e., the dynamic IP port) of the controller to be accessed, and then the static IP end of the controller to be accessed is connected to the computer.
Therefore, after the N controllers are distributed, if the newly-added controller is arranged, the newly-added controller is controlled to be added into the network where the N controllers are located, the controllers are conveniently expanded in the network, and the distribution network convenience when equipment is newly added at any time in the control system of the Internet of things can be improved.
Since the processing and functions implemented by the method of this embodiment basically correspond to the embodiments, principles and examples of the internet of things control system, details are not given in the description of this embodiment, and reference may be made to the related descriptions in the embodiments, which are not described herein again.
Through a large number of tests, the technical scheme of the embodiment is adopted, and the network communication between the devices is quickly established under the condition that the router is in shortage or is not used by adopting a mode of directly connecting the dynamic network port and the static network port, and the networking cost can be reduced.
In summary, it is readily understood by those skilled in the art that the advantageous modes described above can be freely combined and superimposed without conflict.
The above description is only an example of the present invention, and is not intended to limit the present invention, and it is obvious to those skilled in the art that various modifications and variations can be made in the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (11)

1. A network-distribution apparatus, comprising: a setting unit, a determination unit and a control unit; wherein the content of the first and second substances,
the setting unit is used for setting a DHCP server for each controller and setting two distribution network ports for each controller so that each controller has distribution network conditions; two net gapes of joining in marriage include: a dynamic network port and a static network port;
the determining unit is used for determining a distribution network mode; this distribution network mode includes: any one of a router distribution network mode, a hybrid distribution network mode and a network port distribution network mode;
the control unit is used for realizing the network distribution of each controller by utilizing the router according to the network distribution mode of the router;
or, according to the hybrid distribution network mode, a distribution network is realized for each controller by utilizing the distribution network ports of the router and the controller;
or, according to the network port distribution mode, the network distribution of each controller is realized by using the network port of the distribution network of the controller.
2. The distribution network apparatus of claim 1, wherein,
the setting unit sets a DHCP server for each controller, including:
building a DHCP server on each controller;
and/or the presence of a gas in the gas,
the setting unit sets a static net mouth and a dynamic net mouth for each controller, including:
reserving two network ports on each controller, and enabling each controller to set a first network port of the two reserved network ports as a static network port and a second network port of the two reserved network ports as a dynamic network port; wherein, static net gape includes: a static IP network port; a dynamic portal, comprising: and (4) dynamic IP network ports.
3. The distribution network apparatus of claim 1, wherein the determining unit determines the distribution network mode, comprising:
determining the number of routers, and determining a distribution network mode according to the number of routers; wherein the content of the first and second substances,
under the condition that the routers are available and the number of the routers reaches the required number, determining the distribution network mode as a router distribution network mode for realizing distribution network by utilizing the routers;
under the condition that the routers exist but the number of the routers does not reach the required number, determining that the distribution network mode is a hybrid distribution network mode for realizing distribution network by utilizing distribution network ports of the routers and the controller;
and under the condition of no router, determining the distribution network mode as a network port distribution network mode of realizing a distribution network by utilizing the distribution network port of the controller.
4. The distribution network device of any one of claims 1 to 3, wherein,
the control unit realizes a distribution network for each controller by utilizing the router, and the distribution network comprises the following steps:
dividing N controllers into at least two groups, wherein each group of controllers comprises more than two controllers;
controlling the dynamic network port of each controller in each group of controllers to be connected to a router;
controlling each router to be connected to a control terminal;
each router allocates an IP address of a set network segment to each controller connected to the router;
and/or the presence of a gas in the gas,
the control unit utilizes the net gape of joining in marriage net of router and controller self to realize joining in marriage the net to every controller, includes:
dividing N controllers into two groups, wherein each group of controllers comprises more than two controllers;
controlling the dynamic network port of each controller in the first group of controllers to be connected to a router; controlling the static network port of one controller in the first group of controllers to be connected to the dynamic network port of one controller in the second group of controllers, controlling the static network port of one controller in the second group of controllers connected to the first group of controllers to be connected to the dynamic network port of the other controller in the second group of controllers, and the like to enable each controller in the second group of controllers to be connected in sequence;
controlling a static network port of an end controller in the second group of controllers to be connected to the control terminal;
wherein one of the first set of controllers connected to the second set of controllers assigns an IP address and a subnet mask to one of the second set of controllers connected to the first set of controllers;
and/or the presence of a gas in the gas,
the control unit utilizes the net gape of joining in marriage net of controller self to realize joining in marriage net to every controller, includes:
controlling the static network port of one controller in the N controllers to be connected to the dynamic network port of the other controller, controlling the static network port of the other controller to be connected to the dynamic network port of the next controller, and repeating the steps to ensure that each controller in the N controllers is connected in sequence;
and controlling the static network port of the tail end controller in the N controllers to be connected to the control terminal.
5. The distribution network apparatus of claim 4, wherein the control unit implements a distribution network for each controller using a router, further comprising:
if the new controller exists, adding the new controller into any one of the at least two groups of controllers to control the new controller to be connected to the router connected with the group of controllers;
and/or the presence of a gas in the gas,
the control unit utilizes the net gape of joining in marriage net of router and controller self to realize joining in marriage the net to every controller, still includes:
if the newly-added controller exists, after the connection between the static network port of the tail end controller in the second group of controllers and the control terminal is disconnected, controlling the static network port of the tail end controller in the second group of controllers to be connected to the dynamic network port of the newly-added controller, and then controlling the static network port of the newly-added controller to be connected to the control terminal;
and/or the presence of a gas in the gas,
the control unit utilizes the net gape of joining in marriage of controller self to realize joining in marriage the net to every controller, still includes:
if the newly-added controller exists, after the connection between the static network port of the tail end controller in the N controllers and the control terminal is disconnected, the static network port of the tail end controller in the N controllers is controlled to be connected to the dynamic network port of the newly-added controller, and then the static network port of the newly-added controller is controlled to be connected to the control terminal.
6. An internet of things control system, comprising: the distribution network apparatus of any of claims 1 to 5.
7. A network distribution method of the Internet of things control system of claim 6, comprising the following steps:
setting a DHCP server for each controller, and setting two distribution network ports for each controller so that each controller has distribution network conditions; two net gapes of joining in marriage include: a dynamic network port and a static network port;
determining a distribution network mode; this distribution network mode includes: any one of a router distribution network mode, a hybrid distribution network mode and a network port distribution network mode;
according to the network distribution mode of the router, the router is used for realizing network distribution for each controller;
or, according to the hybrid distribution network mode, a distribution network is realized for each controller by utilizing the distribution network ports of the router and the controller;
or, according to the network port distribution mode, the network distribution of each controller is realized by using the network port of the distribution network of the controller.
8. The network distribution method of the IOT control system of claim 7, wherein,
setting a DHCP server for each controller, comprising:
building a DHCP server on each controller;
and/or the presence of a gas in the gas,
setting a static network port and a dynamic network port for each controller, comprising:
reserving two network ports on each controller, and enabling each controller to set a first network port of the two reserved network ports as a static network port and a second network port of the two reserved network ports as a dynamic network port; wherein, static net gape includes: a static IP network port; a dynamic portal, comprising: and (4) dynamic IP network ports.
9. The network distribution method of the IOT control system according to claim 7, wherein the determining of the network distribution mode comprises:
determining the number of routers, and determining a distribution network mode according to the number of routers; wherein the content of the first and second substances,
under the condition that the routers are available and the number of the routers reaches the required number, determining the distribution network mode as a router distribution network mode for realizing distribution network by utilizing the routers;
under the condition that the routers exist but the number of the routers does not reach the required number, determining that the distribution network mode is a hybrid distribution network mode for realizing distribution network by utilizing distribution network ports of the routers and the controller;
and under the condition of no router, determining the distribution network mode as a network port distribution network mode of realizing a distribution network by utilizing the distribution network port of the controller.
10. The network distribution method of the IOT control system according to any one of claims 7 to 9, wherein,
utilizing a router to realize a distribution network for each controller, comprising:
dividing N controllers into at least two groups, wherein each group of controllers comprises more than two controllers;
controlling the dynamic network port of each controller in each group of controllers to be connected to a router;
controlling each router to be connected to a control terminal;
each router allocates an IP address of a set network segment to each controller connected to the router;
and/or the presence of a gas in the gas,
utilize the net gape of joining in marriage net of router and controller self to realize joining in marriage the net to every controller, include:
dividing N controllers into two groups, wherein each group of controllers comprises more than two controllers;
controlling the dynamic network port of each controller in the first group of controllers to be connected to a router; controlling the static network port of one controller in the first group of controllers to be connected to the dynamic network port of one controller in the second group of controllers, controlling the static network port of one controller in the second group of controllers connected to the first group of controllers to be connected to the dynamic network port of the other controller in the second group of controllers, and the like to enable each controller in the second group of controllers to be connected in sequence;
controlling a static network port of an end controller in the second group of controllers to be connected to the control terminal;
wherein one of the first set of controllers connected to the second set of controllers assigns an IP address and a subnet mask to one of the second set of controllers connected to the first set of controllers;
and/or the presence of a gas in the gas,
utilize the net mouth of joining in marriage of controller self to realize joining in marriage the net to every controller, include:
controlling the static network port of one controller in the N controllers to be connected to the dynamic network port of the other controller, controlling the static network port of the other controller to be connected to the dynamic network port of the next controller, and repeating the steps to ensure that each controller in the N controllers is connected in sequence;
and controlling the static network port of the tail end controller in the N controllers to be connected to the control terminal.
11. The network distribution method of the internet of things control system of claim 10, wherein a network distribution is realized for each controller by using a router, further comprising:
if the new controller exists, adding the new controller into any one of the at least two groups of controllers to control the new controller to be connected to the router connected with the group of controllers;
and/or the presence of a gas in the gas,
utilize the net mouth of joining in marriage of router and controller self to realize joining in marriage the net to every controller, still include:
if the newly-added controller exists, after the connection between the static network port of the tail end controller in the second group of controllers and the control terminal is disconnected, controlling the static network port of the tail end controller in the second group of controllers to be connected to the dynamic network port of the newly-added controller, and then controlling the static network port of the newly-added controller to be connected to the control terminal;
and/or the presence of a gas in the gas,
utilize the net gape of joining in marriage of controller self to realize joining in marriage the net to every controller, still include:
if the newly-added controller exists, after the connection between the static network port of the tail end controller in the N controllers and the control terminal is disconnected, the static network port of the tail end controller in the N controllers is controlled to be connected to the dynamic network port of the newly-added controller, and then the static network port of the newly-added controller is controlled to be connected to the control terminal.
CN202010419126.8A 2020-05-18 2020-05-18 Network distribution device, Internet of things control system and network distribution method thereof Active CN111464370B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010419126.8A CN111464370B (en) 2020-05-18 2020-05-18 Network distribution device, Internet of things control system and network distribution method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010419126.8A CN111464370B (en) 2020-05-18 2020-05-18 Network distribution device, Internet of things control system and network distribution method thereof

Publications (2)

Publication Number Publication Date
CN111464370A CN111464370A (en) 2020-07-28
CN111464370B true CN111464370B (en) 2021-05-25

Family

ID=71681123

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010419126.8A Active CN111464370B (en) 2020-05-18 2020-05-18 Network distribution device, Internet of things control system and network distribution method thereof

Country Status (1)

Country Link
CN (1) CN111464370B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112152930A (en) * 2020-09-24 2020-12-29 上海安杰环保科技股份有限公司 Routing device, method, instrument and medium with automatic DHCP (dynamic host configuration protocol) identification function
CN113746741B (en) * 2021-08-20 2023-07-18 苏州浪潮智能科技有限公司 Storage device network setting method, device, equipment and readable medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0601706D0 (en) * 2006-01-27 2006-03-08 Amrivox Ltd Automatic IP Network Determination And Configuration For Edge Devices
US8976807B2 (en) * 2011-06-07 2015-03-10 Cisco Technology, Inc. Dynamically determining hostnames of network devices
EP3117561B1 (en) * 2014-03-14 2018-10-17 Nicira Inc. Route advertisement by managed gateways
US10110450B2 (en) * 2015-12-29 2018-10-23 Vmware, Inc. Monitoring element hierarchies in a cloud computing system
CN109861851A (en) * 2019-01-14 2019-06-07 珠海格力电器股份有限公司 A kind of distribution method, apparatus, storage medium and the mobile terminal of household appliance
CN110856121B (en) * 2019-11-14 2022-03-08 深圳数联天下智能科技有限公司 Internet of things network distribution method and system, network distribution equipment and Internet of things equipment

Also Published As

Publication number Publication date
CN111464370A (en) 2020-07-28

Similar Documents

Publication Publication Date Title
CN100502413C (en) IP address requesting method for DHCP client by DHCP repeater
CN103095495B (en) Network beginning collocation method and device, system
CN108307002B (en) DHCP message processing method and device
AU2013351670B2 (en) Business scheduling method and apparatus and convergence device
CN101534329B (en) IP address assignment method and system
CN111404753B (en) Flat network configuration method, computer equipment and storage medium
CN107666419B (en) Virtual broadband access method, controller and system
CN102025798A (en) Address allocation processing method, device and system
CN111464370B (en) Network distribution device, Internet of things control system and network distribution method thereof
CN106815059A (en) Linux virtual server LVS automates O&M method and operational system
CN107809386B (en) IP address translation method, routing device and communication system
CN114070822A (en) Kubernetes Overlay IP address management method
CN110493337A (en) Data access method, gateway, system, storage medium and device
CN104468869A (en) Method for allocating IP addresses to terminals and method and device for obtaining IP addresses
CN107087023A (en) Data forwarding method and system
CN107517129B (en) Method and device for configuring uplink interface of equipment based on OpenStack
CN110351135B (en) Network equipment configuration method and device in multiple DCs
CN112203261A (en) Charging pile management method and device, electronic equipment and readable storage medium
CN104734930B (en) Method and device for realizing access of Virtual Local Area Network (VLAN) to Variable Frequency (VF) network and Fiber Channel Frequency (FCF)
US11943198B2 (en) Method for implementing multiple PDNs between indoor unit and outdoor unit, and storage medium
CN113254148A (en) Virtual machine migration method and cloud management platform
CN107017998B (en) Method and system for implementing CGN flexible backup
CN105847143A (en) VRRP (virtual router redundancy protocol)-based load balancing method and system
CN110636149A (en) Remote access method, device, router and storage medium
CN114039949B (en) Cloud service floating IP binding method and system

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