Embodiment
In the following detailed description, a large amount of specific detail is proposed, so that provide thorough understanding of the present invention.But, person of skill in the art will appreciate that, also can implement the present invention even without these specific detail.In other cases, do not describe well-known method, process, assembly and circuit in detail, in order to avoid affect the understanding of the present invention.
Term as used herein " Intranet " and " outer net " are relative definition, and such as Intranet is the local area network (LAN) that the first router is set up, and outer net is the network outside the local area network (LAN) of the first router foundation; Or such as Intranet is the local area network (LAN) that router is set up, and outer net is the Internet.
Term as used herein " network equipment " is defined as the electric equipment with networking (wired or wireless) function, such as intelligent washing machine, intelligent air condition, intelligent refrigerator, intelligent television etc.
Term as used herein " IP address " only should not be interpreted as mailing address, should also be appreciated that as the port that this IP address is bound.
The flow chart of the sending controling instruction according to some illustrative embodiment is shown referring now to Fig. 1, Fig. 1;
As shown in Figure 1, in some illustrative embodiment, disclose a kind of method sent control information, be applied to the device with routing function, method comprises:
S11, receiving package are containing the message identifying title and control command; Wherein, the corresponding corresponding network equipment of described mark title and mailing address.
S12, described control command is sent to the described network equipment according to the mailing address that described mark title is corresponding.
The flow chart of the sending controling instruction according to some illustrative embodiment is shown referring now to Fig. 2, Fig. 2.
In some illustrative embodiment, device has for accessed outer net IP address; This device is also built with a local area network (LAN); One or more network equipments is had access in this local area network (LAN); Each network equipment has for accessed IP address of internal network, set up by ICP/IP protocol and mapping relations between the IP address of internal network storing outer net IP address and each network equipment, and the mapping relations of the mark title of each network equipment and the IP address of internal network of this network equipment; Wherein, the mapping relations of storage can store in table form, such as mapping relations table.
Set up above-mentioned mapping relations, to solve in prior art an outer net IP address and can only set up the problem of mapping relations with an IP address of internal network.
As shown in Figure 2, according to some illustrative embodiment, and said apparatus, disclose a kind of method sent control information, comprising:
S21, include mark title and the message of control command according to outer net IP address accept.
Wherein, the port that outer net IP binds address, this port can be 8086 ports, 8080 ports or other ports.Such as include the mark title A of first network equipment and the message for the control command A ' that controls first network equipment according to outer net IP address accept.
S22, according to the mapping relations between the mark title of the network equipment and the IP address of internal network of the network equipment, and the mapping relations between the outer net IP address of the IP address of internal network of the network equipment and device, the control command in the described message according to outer net IP address accept is directly sent according to the IP address of internal network of the network equipment.Such as, the mark title A of first network equipment, its IP address of internal network is 192.168.1.101; The mark title B of second network equipment, its IP address of internal network is 192.168.1.102; The mark title C of the 3rd network equipment, its IP address of internal network is 192.168.1.103; After receiving mark title A, according to the mapping relations between the mark title of the network equipment and the IP address of internal network of the network equipment, find the IP address of internal network 192.168.1.101 of first network equipment; According to the mapping relations between the IP address of internal network of the network equipment and the outer net IP address of device, control command is sent to first network equipment according to the IP address of internal network 192.168.1.101 of first network equipment.
In some illustrative embodiment, mark title can be DDNS or the static name of the network equipment; DDNS or static name set up the outer net IP address bindings had with device on corresponding name server, when conducting interviews with DDNS for communication terminal, and can the outer net IP address of access means through name server; By the method, user can not need to remember loaded down with trivial details IP address, or IP address is dynamic IP addressing, and user cannot remember, and is accessed be convenient to user operation by the mode of domain name.
In some illustrative embodiment, device has and the DDNS of outer net IP address binding or static name on name server, as Main Domain; What identification name was called the network equipment has DDNS or the static name of corresponding relation, as subdomain name with Main Domain; By the method, user only needs for device registers a Main Domain on name server, configures the subdomain name of the network equipment corresponding to Main Domain in a device, decreases the cost of user for each network device registration domain name cost.
In some illustrative embodiment, also include the IP address of communication terminal in the message that device receives, described method also comprises:
Receive the state information that the network equipment sends, and the state information received is sent to communication terminal according to the IP address of communication terminal.
In some illustrative embodiment, device 100 is defined as intelligent router, or has the terminal of intelligent router function, such as PC, desktop computer, mobile computer, laptop computer, notebook, flat computer (tablet computer), server computer, handheld computer, hand-held device, PDA device (personal digital assistant), hand-held PDA device, plate carries device, the outer device of plate, mixing arrangement (such as by cellular telephone functionality and PDA device functional combination), consumption device, car-mounted device, non-car-mounted device, move or mancarried device, non-moving or non-portable device, cell phone, PCS device (person-to-person communication service unit), the PDA device of combining wireless communicator, move or Portable GPS device (GPS device), DVB device (digital television broadcasting device), less calculation element, non-desktop computer, " the less performance of size is higher " (CSLL) device, super mobile device (UMD), super mobile PC (UMPC), mobile Internet device (MID), " Origami " device or calculation element, support the device of dynamic composition meter (Dynamically Composable Computing, DCC), or miscellaneous equipment.
The flow chart of the sending controling instruction according to some illustrative embodiment is shown referring now to Fig. 3, Fig. 3.
As shown in Figure 3, in some illustrative embodiment, disclose a kind of method of sending controling instruction, be applied to communication terminal, method comprises:
S31, communication terminal send to the domain name of the network equipment message including mark title and control command.
In this flow process, name server with after domain name access, is transferred the destination address of this message to the IP address corresponding with this domain name by communication terminal.
In some illustrative embodiment, identification name is called DDNS or the static name of the network equipment.
In some illustrative embodiment, identification name is called the dynamic subdomain name of the network equipment or static subdomain name.
In some illustrative embodiment, in described message, also there is the IP address of communication terminal; Described method also comprises:
Communication terminal receives the state information of the network equipment forwarded from the device with routing function.
The flow chart of the net control equipment according to some illustrative embodiment is shown referring now to Fig. 4, Fig. 4.
As shown in Figure 4, in some illustrative embodiment, disclose a kind of method of net control equipment, be applied to and comprise: in the system of the dynamic domain name server in communication terminal, intelligent router, one or more network equipment and the Internet; All-network equipment is structured in the Intranet side that intelligent router creates; Each network equipment has unique DDNS.
For each network equipment, its DDNS and its for accessed IP address of internal network, there are mapping relations; The outer net IP address of its IP address of internal network and intelligent router has mapping relations; The outer net IP address of its DDNS and intelligent router has binding relationship on dynamic domain name server.
Intelligent router has DDNS client.
After intelligent router powers on, obtain a dynamic IP addressing; Intelligent router sends to the dynamic domain name server of the Internet (outer net side), the dynamic IP addressing that Regeneration dynamics domain name is bound in dynamic domain name server by DDNS client by the dynamic IP addressing (i.e. outer net IP address) of self and with the DDNS that this dynamic IP addressing has a network equipment of binding relationship.
According to said system environment, in some illustrative embodiment, disclose a kind of method of net control equipment, comprising:
S41, communication terminal are with the DDNS of network equipment access dynamic domain name server, the DDNS of concurrent SCN Space Cable Network equipment and control command message, the DDNS that dynamic domain name server is accessed according to communication terminal, parse the dynamic IP addressing (the outer net IP address of intelligent router) of this DDNS binding, and provide the access object of communication terminal to be converted to this dynamic IP addressing, the message that communication terminal sends is sent to intelligent router according to the dynamic IP addressing parsed.
S42, intelligent router include the DDNS of the network equipment and the message of control command according to outer net IP address accept, and according to the mapping relations between the DDNS of the network equipment and the IP address of internal network of the network equipment, and the mapping relations between the outer net IP address of intelligent router and the IP address of internal network of the network equipment, the control command in the described message according to outer net IP address accept is directly sent according to the IP address of internal network of the network equipment.
S43, the network equipment receive control command, and perform corresponding operation.
In some illustrative embodiment, also include the IP address of this communication terminal in the message that communication terminal sends, described method also can comprise:
After the message that intelligent router received communication terminal sends, set up the binding relationship between the DDNS in the IP address of this communication terminal and message.
Current state information is sent to intelligent router according to the outer net IP address of intelligent router after performing corresponding operation by the network equipment.
State information is sent to communication terminal according to the IP address of communication terminal by intelligent router.
Communication terminal receives and checks state information.
In some illustrative embodiment, the method for sending controling instruction is applied to and comprises: in the system of the dynamic domain name server in communication terminal, intelligent router, one or more network equipment and the Internet; All-network equipment is structured in the Intranet side that intelligent router creates; Each network equipment has unique dynamic subdomain name; Intelligent router has the Main Domain with the dynamic subdomain name corresponding relation of the network equipment; The subdomain of the such as network equipment is called ac.zhangsan.abc.com; The Main Domain of intelligent router is zhangsan.abc.com; User can find Main Domain corresponding to this subdomain name to conduct interviews at the subdomain name of the input network equipment.
For each network equipment, its dynamic subdomain name and its for accessed IP address of internal network, there are mapping relations; The outer net IP address of its IP address of internal network and intelligent router has mapping relations.
The DDNS (Main Domain) of intelligent router and the outer net IP address of intelligent router have binding relationship on dynamic subdomain name server.
Intelligent router has DDNS client.
After intelligent router powers on, obtain a dynamic IP addressing; Intelligent router by DDNS client by the dynamic IP addressing (i.e. outer net IP address) of self and send to the dynamic domain name server of the Internet (outer net side), the dynamic IP addressing that Regeneration dynamics domain name is bound in dynamic domain name server with the DDNS of self.
According to said system environment, in the illustrative embodiment shown in Fig. 4, the DDNS of the described network equipment is the dynamic subdomain name of the network equipment.
With reference now to Fig. 5, Fig. 5, show the device of the sending controling instruction according to said method and illustrative embodiment, such as intelligent router.
As shown in Figure 5, intelligent router comprises: intelligent router outer net IP address (dynamic IP addressing) and DDNS are sent to the upper dynamic domain name server (such as dynamic state server 106) in the Internet (outer net side), keeps the IP address relationship of the DDNS in dynamic domain name server and outer net side and current consistent DDNS client; And mutual reverse proxy device (such as reverse proxy device 107) is carried out to the data of outer net side and Intranet side.
In some illustrative embodiment, the reverse proxy device of intelligent router comprises: receiving package contains the receiver module (such as receiver module 101) of the message of mark title and control command, wherein, and the corresponding corresponding network equipment of mark title and mailing address; And described control command is sent to the sending module (such as sending module 102) of the described network equipment according to the mailing address that described mark title is corresponding.
In some illustrative embodiment, described mailing address is the IP address of internal network of the network equipment;
In some illustrative embodiment, the message including mark title and control command that described receiver module sends from the communication terminal of outer net side according to the outer net IP address accept of intelligent router.
In some illustrative embodiment, the mailing address of described outer net IP address and one or more network equipment has mapping relations.
In some illustrative embodiment, according to the described mailing address obtained, and described mapping relations, control described control command that described receiver module receives by described sending module directly sends to described network equipment control module (such as control module 105) according to described mailing address.
In some illustrative embodiment, the outer net IP address of described mark title and described device has binding relationship.Described identification name is called DDNS (such as being obtained by registration in dynamic domain name server (such as peanut shell)) or the static name (such as configuring acquisition by operator when the network equipment dispatches from the factory) of the network equipment.
In some illustrative embodiment, control command is sent to this network equipment by the DDNS of the network equipment or IP address of internal network corresponding to static name by described sending module.
In some illustrative embodiment, the reverse proxy device of described device also comprises: for after device sending controling instruction, receive the feedback receive module (such as feedback receive module 103) of the state information that the described network equipment sends, for the described state information received being sent to the feedback sending module (such as feeding back sending module 104) of described communication terminal.
In some illustrative embodiment, in described message, also comprise the IP address of described communication terminal in outer net side; Described state information is sent to described communication terminal according to the IP address of described communication terminal by feedback sending module.
In some illustrative embodiment, described mark title correspondence has a Main Domain, and the outer net IP address of this Main Domain and described device has mapping relations.Such as, described device has DDNS (static name), and this domain name is as Main Domain, and described identification name is called by device to the dynamic subdomain name of the network equipments configuration of Intranet side, static subdomain name;
In some illustrative embodiment, the Main Domain of device and the subdomain name of the network equipment have corresponding relation; Such as: network equipment subdomain is called ac.zhangsan.abc.com; The Main Domain of device is zhangsan.abc.com; User can find Main Domain corresponding to this subdomain name to conduct interviews at the subdomain name of the input network equipment.
In some illustrative embodiment, described sending module is used for, according to the IP address of Intranet side corresponding to the dynamic subdomain name of each network equipment of Intranet side, static subdomain name or device identifier, described control command is sent to the corresponding network equipment.
The explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.