CN104580516A - Internal and external network switching method and device based on web website home gateway system - Google Patents
Internal and external network switching method and device based on web website home gateway system Download PDFInfo
- Publication number
- CN104580516A CN104580516A CN201510044361.0A CN201510044361A CN104580516A CN 104580516 A CN104580516 A CN 104580516A CN 201510044361 A CN201510044361 A CN 201510044361A CN 104580516 A CN104580516 A CN 104580516A
- Authority
- CN
- China
- Prior art keywords
- webpage
- intranet
- home
- address
- communication server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 21
- 238000004891 communication Methods 0.000 claims abstract description 29
- 238000005516 engineering process Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 4
- 239000000203 mixture Substances 0.000 description 4
- RTZKZFJDLAIYFH-UHFFFAOYSA-N Diethyl ether Chemical compound CCOCC RTZKZFJDLAIYFH-UHFFFAOYSA-N 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides an internal and external network switching method and device based on a web website home gateway system, belongs to the field of Internet, particularly relates to intelligent home control technology and aims to solve the technical problem of IP address switching when a user terminal controls intelligent home equipment in a home internal network or external network through a web control page. The internal and external network switching method includes that the user terminal accesses a leading webpage of a communication server, the leading webpage compares an IP address of a visitor and a broadband dynamic IP address in a database to decide whether to jump to an internal network control webpage or an external network control webpage. The internal and external network switching device comprises the communication server, an IP data packet sending module and the user terminal, and the IP data packet sending module acquires the broadband dynamic IP address through a method of sending an IP data packet to the communication server regularly.
Description
Technical field
The present invention relates to Intelligent housing field, particularly relate to a kind of intranet and extranet switching method and apparatus based on web site home gateway system.
Background technology
Along with the development of the industries such as Internet of Things, Smart Home product also becomes more abundant and universal.Different manufacturers, different model, multiple intelligent home device of difference in functionality and the complicated operation produced, awkward problem is there is in order to solve in same family, disclose a patent of invention " a kind of home gateway system of sing on web website and method to set up thereof " (application number is 201210279002.X), the method of this patent utilization Web site custom control page, solves the problem of smart home control device in same Interface Control of different manufacturers.
But current is all much mobile device for controlling the subscriber terminal equipment of Smart Home, generally all carry with due to these equipment and be in roaming state, when sometimes roaming into in-home from outer net (such as owner comes back home from unit), sometimes outer net is roamed into from Intranet, if still controlled by above-mentioned control webpage, because be the broadband dynamic IP addressing obtained by what control address, when user is for can produce the phenomenon that cannot access during Intranet to some home router.
In addition, subscriber terminal equipment is when family's network internal access is in the intelligent home device in same home network, best mode conducts interviews with local address, home router can be avoided like this to do restriction to port when mapping, decrease access path simultaneously, improve the speed of access.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of intranet and extranet switching method and apparatus based on web site home gateway system, for solve user terminal within the family net or outer net time by web control webpage intelligent home device is controlled time IP address switchover problem.
For achieving the above object, the present invention adopts following technical scheme:
Relate to the intranet and extranet changing method based on web site home gateway system, the method comprises:
The user terminal browser access communication server;
Open leading webpage;
Leading webpage obtains IP address from visiting information;
Leading webpage takes out the broadband dynamic IP addressing deposited from the database of the communication server;
Leading webpage compares said two devices IP address;
If identical, webpage jumps to Intranet and controls webpage;
If different, webpage jumps to outer net and controls webpage.
The acquisition methods of broadband dynamic IP addressing is:
The IP Packet Generation module timing be connected in home network sends IP data packet signal to the communication server incessantly, the communication server takes out source IP address from the packet received, and this address is deposited in database, after the communication server receives packet again, the source IP address extracted is refreshed the address that database Central Plains is deposited, so refresh again and again, make the broadband dynamic IP addressing maintaining up-to-date acquisition in database.
Relate to the intranet and extranet switching device shifter based on web site home gateway system, comprising:
The communication server, it is a computer server connect on the internet with fixed ip address or domain name, comprise leading webpage, Intranet control webpage, outer net controls webpage, IP packet-receiving module, database, for the access of user terminal is provided and receive IP Packet Generation module the data packet signal sent out;
Home network, be in the family take router as the computer network of core, comprise the composition such as home router, wide-band terminal, for provide household internal equipment communication connection and by broadband access the Internet;
IP Packet Generation module, be a program module in a set of network and singlechip computer or computer equipment, this module is connected in home network, timing can send IP data packet signal to the communication server;
User terminal is the equipments for surfing the net such as computer, PAD, mobile phone, from the Internet or home network access, for controlling the home equipment be connected in home network;
Home equipment is connected to home network comprises the intelligent home device such as household electrical appliance, video monitoring.
As seen from the above technical solutions, method and apparatus of the present invention, solve the control webpage switching problem when home equipment in family being controlled when user terminal is in in-home or is in outer net, user can be controlled household equipment respectively by local address or outer net address at Local or Remote.
Accompanying drawing explanation
The flow chart of the intranet and extranet changing method that Fig. 1 provides for the embodiment of the present invention;
The webpage redirect schematic diagram that Fig. 2 provides for the embodiment of the present invention;
The flow chart that the Packet Generation that Fig. 3 provides for the embodiment of the present invention receives;
The network topological diagram of the device that Fig. 4 provides for the embodiment of the present invention.
Embodiment
Be described in further detail technical scheme of the present invention below in conjunction with the drawings and specific embodiments, to make those skilled in the art the present invention may be better understood and can be implemented, but example is not as a limitation of the invention.
Embodiments provide a kind of intranet and extranet changing method of the home gateway system based on web site, as shown in Figure 1, comprising:
Step 101, the user terminal access communication server, described user terminal can be positioned at the network of household internal, namely in Intranet, also can in the optional position of the Internet, namely in outer net; Step 102, the leading webpage of the communication server opened by the browser in user terminal; Step 103, the program statement in leading webpage reads the source IP address of visitor; Step 104, the program statement in leading webpage reads relevant broadband dynamic IP addressing from the database of the communication server; Step 105, compares described source IP address and dynamic IP addressing, if the two is identical; Step 106, jumps to Intranet and controls webpage by webpage; Step 105, if the two address is different; Step 107, jumps to outer net and controls webpage by webpage.
The webpage redirect schematic diagram that Fig. 2 provides for the embodiment of the present invention, wherein leading webpage 201 can form with ASP script editor, includes statements such as reading visitor source IP, reading database, webpage redirect; Intranet controls webpage 202, and be the webpage of a series of linking button compositions of a HTM language editor, webpage can jump in corresponding application by button click by user, and the address in described linking button applies corresponding IP address of internal network with home equipment; Outer net controls webpage 203, also be the webpage of a series of linking button compositions of a HTM language editor, webpage can jump in corresponding application by button click by user, address in described linking button applies corresponding outer net IP address and port numbers with home equipment, described outer net IP address and port numbers are the port numbers corresponding when arranging mapping of the broadband dynamic IP addressing that obtains of the communication server and home router respectively.
For obtaining broadband dynamic IP addressing, the mode of the Packet Generation that the embodiment of the present invention provides and reception, flow chart is shown in Fig. 3, comprises IP Packet Generation module 301 and the communication server 302 forms.Wherein, IP Packet Generation module 301, is one and is connected on the ether single-chip microcomputer in home network or a program module in computer equipment, and this module timing can send IP data packet signal to the communication server; The communication server 302, it is the computer server with fixed ip address or domain name connect on the internet, IP receives data packets program is installed, this program intercept and receive IP Packet Generation module 301 the packet sent out, and therefrom taking-up source IP address is deposited in database, and deposited IP address date is constantly refreshed.
In the step 303 of Fig. 3, IP Packet Generation module 301 sends an IP data packet signal to the communication server, takes out source IP address, and deposit in database by this address after the communication server receives; Step 304, through the interval time of setting, IP Packet Generation module 301 sends again an IP data packet signal to the communication server, and the source IP address received refreshes database by the communication server.IP Packet Generation module 301 sends data packet signal again and again, makes to deposit in the database of the communication server up-to-date broadband user and holds IP address information, be the broadband dynamic IP addressing of acquisition.
Embodiments provide a kind of intranet and extranet switching device shifter based on web site home gateway system, as shown in Figure 4, comprising:
The communication server 401, it is a computer server with operating system, web host, database, with private-line mode accessing Internet 403, and there is fixed ip address or domain name, IP receives data packets program, leading webpage are installed, Intranet controls webpage, outer net controls webpage, for receive IP Packet Generation module the IP data packet signal sent out, and therefrom extract source IP address and deposit in database, and for accepting the access of user terminal, the situation according to visiting IP address carries out webpage redirect;
IP Packet Generation module 406, with the single-chip microcomputer composition with ethernet feature, is connected with the home router 405 of home network, sends IP data packet signal for timing to the communication server 401;
Home equipment 408, be the equipment in access home network, be connected with the Internet 403 by home router 405, wide-band terminal 404, this equipment comprises intelligent home device, video monitoring equipment etc., in the present embodiment as controlled equipment;
User terminal 402 and user terminal 407, respectively by outer net or in-home accessing Internet, comprise the equipment that computer, PAD, mobile phone etc. can be surfed the Net, for the control to home equipment 408.
Although describe the present invention by the diagram of the embodiment of the present invention, the scope of claim is restricted to so in detail by present invention applicant never in any form.Be to be understood that for those skilled in the art: it still can be modified to the technical scheme described in foregoing embodiments, or equivalent replacement is carried out to wherein portion of techniques feature, and these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.
Claims (6)
1., based on an intranet and extranet changing method for web site home gateway system, it is characterized in that, comprising:
The leading webpage of the user terminal access communication server;
Leading webpage reads the broadband dynamic IP addressing in the IP address of visitor, reading database, the two is contrasted;
If described contrast is identical, webpage jumps to Intranet and controls webpage;
If described contrast is different, webpage jumps to outer net and controls webpage.
2. according to claim 1 based on the intranet and extranet changing method of web site home gateway system, it is characterized in that, described user terminal can from home network Intranet or outer net optional position accessing Internet.
3. according to claim 1 based on the intranet and extranet changing method of web site home gateway system, it is characterized in that, described broadband dynamic IP addressing constantly sends IP data packet signal to the communication server by the IP Packet Generation module be placed in home network to obtain.
4. according to claim 1 based on the intranet and extranet changing method of web site home gateway system, it is characterized in that, the linking button that described Intranet control webpage is made up of a series of internal address forms.
5. according to claim 1 based on the intranet and extranet changing method of web site home gateway system, it is characterized in that, the linking button that described outer net control webpage is made up of a series of broadbands dynamic IP addressing and port numbers forms, and described port numbers arranges number set when intranet and extranet map in home router.
6., based on an intranet and extranet switching device shifter for web site home gateway system, it is characterized in that, comprising:
The communication server, for receive IP Packet Generation module the IP data packet signal sent out, control webpage for providing leading webpage, Intranet, outer net control webpage;
IP Packet Generation module, sends IP data packet signal for timing to the communication server;
Home equipment, is access home network and the equipment that can be controlled by user terminal;
User terminal, for the terminal equipment controlled home equipment by home network or the Internet.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510044361.0A CN104580516B (en) | 2015-01-24 | 2015-01-24 | Intranet and extranet switching method and apparatus based on web site home gateway system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510044361.0A CN104580516B (en) | 2015-01-24 | 2015-01-24 | Intranet and extranet switching method and apparatus based on web site home gateway system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104580516A true CN104580516A (en) | 2015-04-29 |
CN104580516B CN104580516B (en) | 2018-10-30 |
Family
ID=53095673
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510044361.0A Expired - Fee Related CN104580516B (en) | 2015-01-24 | 2015-01-24 | Intranet and extranet switching method and apparatus based on web site home gateway system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104580516B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107276979A (en) * | 2017-04-26 | 2017-10-20 | 浙江远望信息股份有限公司 | A kind of method that automatic detection terminal device intranet and extranet interconnect behavior |
CN107426218A (en) * | 2017-07-28 | 2017-12-01 | 杭州聪普智能科技有限公司 | A kind of smart home intranet and extranet method for handover control |
CN108306758A (en) * | 2017-12-26 | 2018-07-20 | 三维通信股份有限公司 | A kind of implementation method that indoor distributed antenna system intranet and extranet access |
CN110708301A (en) * | 2019-09-24 | 2020-01-17 | 贝壳技术有限公司 | User request processing method and device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101030919A (en) * | 2006-03-02 | 2007-09-05 | 中兴通讯股份有限公司 | Method for converting duplexing interface board address realtime network address |
CN101060493A (en) * | 2007-05-14 | 2007-10-24 | 中兴通讯股份有限公司 | A method of private network user access the server in a private network through domain name |
CN101800783A (en) * | 2010-02-08 | 2010-08-11 | 深圳市同洲电子股份有限公司 | Method, device, and system for allocating IP addresses |
CN101841484A (en) * | 2010-05-12 | 2010-09-22 | 中国科学院计算技术研究所 | Method and system for realizing NAT traversal in structured P2P network |
CN103873826A (en) * | 2014-03-06 | 2014-06-18 | 浙江宇视科技有限公司 | Media stream sending control method and device |
-
2015
- 2015-01-24 CN CN201510044361.0A patent/CN104580516B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101030919A (en) * | 2006-03-02 | 2007-09-05 | 中兴通讯股份有限公司 | Method for converting duplexing interface board address realtime network address |
CN101060493A (en) * | 2007-05-14 | 2007-10-24 | 中兴通讯股份有限公司 | A method of private network user access the server in a private network through domain name |
CN101800783A (en) * | 2010-02-08 | 2010-08-11 | 深圳市同洲电子股份有限公司 | Method, device, and system for allocating IP addresses |
CN101841484A (en) * | 2010-05-12 | 2010-09-22 | 中国科学院计算技术研究所 | Method and system for realizing NAT traversal in structured P2P network |
CN103873826A (en) * | 2014-03-06 | 2014-06-18 | 浙江宇视科技有限公司 | Media stream sending control method and device |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107276979A (en) * | 2017-04-26 | 2017-10-20 | 浙江远望信息股份有限公司 | A kind of method that automatic detection terminal device intranet and extranet interconnect behavior |
CN107276979B (en) * | 2017-04-26 | 2021-03-05 | 浙江远望信息股份有限公司 | Method for automatically detecting interconnection behaviors of internal network and external network of terminal equipment |
CN107426218A (en) * | 2017-07-28 | 2017-12-01 | 杭州聪普智能科技有限公司 | A kind of smart home intranet and extranet method for handover control |
CN108306758A (en) * | 2017-12-26 | 2018-07-20 | 三维通信股份有限公司 | A kind of implementation method that indoor distributed antenna system intranet and extranet access |
CN108306758B (en) * | 2017-12-26 | 2020-10-13 | 三维通信股份有限公司 | Method for realizing access to internal network and external network of indoor distributed antenna system |
CN110708301A (en) * | 2019-09-24 | 2020-01-17 | 贝壳技术有限公司 | User request processing method and device, electronic equipment and storage medium |
CN110708301B (en) * | 2019-09-24 | 2022-06-24 | 贝壳找房(北京)科技有限公司 | User request processing method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN104580516B (en) | 2018-10-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104660682B (en) | A kind of OPC data collection and monitoring intelligent terminal based on TD-LTE | |
CN104202222B (en) | The intelligent domestic appliance controller and its communication means | |
CN102722551B (en) | Intelligent switching method and system for browser kernels | |
CN104580516A (en) | Internal and external network switching method and device based on web website home gateway system | |
CN102811187B (en) | A kind of home gateway system and its setting method based on Web site | |
CN103384367A (en) | Device searching method | |
CN106292565A (en) | The control method of home appliance and control system | |
CN105794152B (en) | The system and method and device of the interaction based on web are carried out with building automatic | |
CN106487922A (en) | A kind of cross-platform mobile access system of Internet of Things | |
CN103347037A (en) | WCF realization-based communication front-end processor system and communicating method | |
CN103139019A (en) | Smart home service system | |
CN108270733A (en) | A kind of method and system for managing smart machine | |
CN101383789B (en) | Household gateway device, system and method implementing access to and controlling household network | |
CN104023262A (en) | HTML-based multi-screen set top box remote controller system and method | |
CN103973762A (en) | Method for communication between host and intelligent terminal of intelligent home system | |
US20120260113A1 (en) | Changing Device Behavior Based on External Information | |
CN102148702B (en) | Method for managing network by utilizing network configuration protocol | |
CN104063227B (en) | A kind of instruction learning method based on Internet of Things | |
CN104506425A (en) | Instant messaging system based on family cloud host and method thereof | |
CN102130807A (en) | Equipment discovery method for realizing real-time dynamic networking in personal internet | |
CN105812157A (en) | Internet-of-things equipment management system and method | |
CN209088989U (en) | A kind of data acquisition gateway | |
Ningqing et al. | Design and implementation of a smart home control system | |
Chang et al. | Application of wireless sensor network and gprs technology in development of remote monitoring system | |
CN102710017B (en) | MMS-based interaction method and system of real-time data of intelligent substation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20181030 |