CN104506425A - Instant messaging system based on family cloud host and method thereof - Google Patents
Instant messaging system based on family cloud host and method thereof Download PDFInfo
- Publication number
- CN104506425A CN104506425A CN201410855063.5A CN201410855063A CN104506425A CN 104506425 A CN104506425 A CN 104506425A CN 201410855063 A CN201410855063 A CN 201410855063A CN 104506425 A CN104506425 A CN 104506425A
- Authority
- CN
- China
- Prior art keywords
- family
- main frame
- cloud main
- instant
- address
- 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.)
- Pending
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides an instant messaging system based on family cloud host and a method thereof, belongs to the technical field of cloud computing, and specifically relate to a family cloud application technology. The technical problem to be solved by the invention is the application of the instant message in the family cloud host which is accessed via a broadband. The invention provides a instant messaging system; the instant messaging system comprises a family cloud host, a communication server, and a instant messaging terminal; the invention provides a instant messaging method; the method comprises the following steps: continuously sending, by an IP data packet sending module in the family cloud host, IP data packets to the communication server; obtaining, by the communication server, a broadband dynamic IP address therefrom, and storing the broadband dynamic IP address into a database; when the instant messaging terminal needs to initiate a session, obtaining the IP address from the database firstly, and then establishing communication with the corresponding family cloud host.
Description
Technical field
The present invention relates to field of cloud calculation, particularly a kind ofly relate to instant communicating system based on family's cloud main frame and method thereof.
Background technology
Along with the development of Internet technology, immediate communication tool (IM, Instant Messaging) program is widely used.
Current instant messaging product has micro-letter, Fetion, credulity, QQ etc., and major function has good friend to chat, group chat, transmission image or video information, transmission file etc., and these application enhance the contact of people, facilitate the communication of people.More universal along with what use, instant messaging has developed into one of means of communication the most conventional.But the platform that current instant messaging uses is all the framework based on publicly-owned cloud substantially, the inevasible hidden danger that there is privacy, secure context, although market also there is the immediate communication tool used based on enterprises that can be installed on home server, but the outer net IP address that this server need provide fixing is installed, because the aspects such as cost are considered, be difficult to accomplish general user, particularly the use of domestic consumer.
Along with the development of cloud computing technology, family's cloud is also at development, and family's cloud is for core with family's cloud main frame, by the wired or wireless network in family, the equipment that can network of access family, and being connected with the Internet by broadband is one is family and the privately owned cloud set up.Because information is all kept at this locality, the privacy of publicly-owned cloud, the defect of secure context therefore can be avoided.But owing to adopting the mode accessing Internet in broadband, operator provides dynamic IP addressing, this address can regularly change along with the time, therefore directly cannot install with it, run instant messaging serve end program.
Summary of the invention
Technical problem to be solved by this invention is to provide and a kind ofly relates to instant communicating system based on family's cloud main frame and method thereof, for installing instant messaging serve end program on family's cloud main frame, and solve the communication issue of family's cloud main frame by broadband and instant communication terminal.
For achieving the above object, the present invention adopts following technical scheme:
Relate to the instant communicating system based on family's cloud main frame, comprising:
The communication server, for receiving the IP packet that family's cloud main frame sends, obtains the broadband dynamic IP addressing of described family cloud main frame thus, and obtains the IP address of described family cloud main frame for instant communication client;
Instant communication terminal, for the communication such as the instant messaging service end in family cloud main frame conversates, for depositing the IP address of the family's cloud main frame obtained from the communication server;
Home router, for family's cloud main frame by wide-band terminal access band, and is mapped to outer net address and port numbers by internal address and port numbers;
Family's cloud main frame, for communicating with instant communication terminal, sends IP data packet signal for timing to the communication server.
In addition, IP receives data packets program is installed in the communication server; Instant communication client program is installed in instant communication terminal; Instant messaging serve end program and IP Packet Generation modular program are installed in family's cloud main frame.
The instant communicating system based on family's cloud main frame that the embodiment of the present invention provides, because the IP Packet Generation module timing in instant messaging serve end program sends IP data packet signal to the communication server, IP receives data packets program in the described communication server extracts source IP address by from the IP packet received, and deposited in database, owing to constantly receiving and refreshing IP address information, the address of depositing becomes up-to-date broadband dynamic IP addressing.
Relate to the instant communication method based on family's cloud main frame, the method comprises:
IP Packet Generation module timing in family's cloud main frame sends IP data packet signal to the communication server incessantly, source IP address information in the IP packet received is deposited in database by the communication server, and along with the up-to-date information received, constantly refresh database, what this database was preserved is broadband dynamic IP addressing;
In instant communication terminal, when instant communication client program brings into operation, first accessing communication server, the broadband dynamic IP addressing of family's cloud main frame is taken out from the database of this server, and deposit in this locality, further instant communication client program according to address above mentioned access family cloud main frame, and communicates with the instant messaging serve end program in family cloud main frame, sets up instant communication session and connects;
When there is signal interruption when instant communication client and the session of instant messaging service end, instant communication client is again by accessing communication server, obtain the broadband dynamic IP addressing deposited in the described communication server, and upgrade the IP address depositing in this locality, client-side program contacts the instant messaging service end of family's cloud main frame again according to the IP address of depositing, and recovers the session connection of interruption.
As seen from the above technical solutions, method and apparatus of the present invention, on family's cloud main frame that instant communicating system can be made to be applied to wide band system accessing Internet, solves the application problem of the instant messaging in the dynamic IP addressing of broadband.
Accompanying drawing explanation
The instant communicating system network topological diagram based on family's cloud main frame that Fig. 1 provides for the embodiment of the present invention;
The program scheme of installation that Fig. 2 provides for the embodiment of the present invention;
The flow chart of the Packet Generation that Fig. 3 provides for the embodiment of the present invention;
The instant messaging communication flow diagram 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.
Figure 1 shows that the instant communicating system network topological diagram based on family's cloud main frame that the embodiment of the present invention provides.Comprise the communication server 101, be one with the computer server of private-line mode accessing Internet 103, this server has fixed ip address or domain name, for receiving the IP packet that family's cloud main frame 106 sends, and provide the access of the instant communication terminal 107 in instant communication terminal 102 or home network; Instant communication terminal 102 is the terminal equipments such as computer, mobile phone, PAD, and this equipment, by the direct accessing Internet 103 of each automatic network, carries out communicating and session for the instant messaging service end in same family cloud main frame; Wide-band terminal 104, for the broadband network by optical fiber or copper cable access carrier; Home router 105 is family expenses multiport router, and be the transfer gateway connecting household internal net and the Internet, this router has virtual server function, can arrange the IP address of IP address of internal network, port numbers and outer net, the mapping of port numbers; Family's cloud main frame 106, it is the computer equipment of a Windows operating system, for to the communication server 101 timed sending IP packet, and carry out communicating and session with the access instant communication terminal 107 of in-home or the instant communication terminal 102 of accessing Internet; Instant communication terminal 107 is terminal equipments such as computer, mobile phone, PAD, intelligent TV set of access home network.
Fig. 2 is the program scheme of installation that the embodiment of the present invention provides.Comprise: IP receives data packets program 201, this program is arranged in the communication server 202, the mode of available C# and socket socket is programmed, in program, port number and IP address are bound, and make program be in wait-receiving mode state in the mode of Infinite Cyclic, after receiving IP packet, source IP address in packet is extracted, and deposit in database, after again receiving IP data packet signal, by the source IP address taken out, the IP address information in database is refreshed; Instant communication client program 203, is arranged in instant communication terminal 204, this program except there is the function of common instant communication client software, when startup or the disconnection reconnecting of program.First accessing communication server 202, takes out IP address, and deposits in this locality from the database of this server, is used as access family cloud main frame 207, and sets up with instant messaging serve end program wherein and communicate and session; Instant messaging serve end program 206, is installed in family's cloud main frame 207, carries out communicating and session for same instant communication terminal 204; IP Packet Generation module 205, be installed in family's cloud main frame 207 together with instant communication server end program 206, it is the program of an energy timed sending IP packet, in order to pare down expenses and raise the efficiency, send IP packet and can adopt udp protocol, programme with C#, in a program the port numbers that the IP address of the communication server 202, preparation open is bound as object IP address and port numbers, timing is at a certain time interval given out a contract for a project to the communication server 202, wherein interval time is shorter, and the broadband IP dynamic address accuracy of acquisition is higher.
Embodiments provide a kind of method of the instant messaging based on family's cloud main frame, comprising:
Figure 3 shows that the Packet Generation flow process figure that the embodiment of the present invention provides.Comprise family's cloud main frame 301, an IP packet is installed wherein to give out a contract for a project program, this give out a contract for a project programmatic binding target ip address and port numbers, target ip address is wherein the fixed ip address set by the communication server 302, port numbers is the port numbers of socket binding in the IP receives data packets program in the communication server 302, program of giving out a contract for a project sends IP data packet signal incessantly in the mode of timing, makes to keep up-to-date IP address information in the database of the communication server 302; The communication server 302, IP receives data packets program has wherein been installed, this program is monitored the port numbers of specifying in Infinite Cyclic mode, once after receiving the IP data packet signal that family's cloud main frame sends, extract source IP address, as the broadband dynamic IP addressing obtained stored in database, and after again receiving new IP address, database is refreshed; In step 303, represent that family's cloud main frame 301 sends a data packet signal when bringing into operation, this data packet signal is sent to the communication server 302 through the Internet, through sending second data packet signal 304 after the interval time that sets in program of giving out a contract for a project, again send through interval time, so again and again IP data packet signal is sent to the communication server 302.
Fig. 4 represents and comprises the instant messaging communication flow diagram that the embodiment of the present invention provides: when instant communication terminal 402 starts, in step 404, instant communication terminal 402 is accessing communication server 403 first, sends request signal to the communication server 403; In step 405, the communication server 403 sends answer signal to instant communication terminal, from database, take out the dynamic IP signal of the family's cloud main frame 401 deposited, this signal is returned to instant communication terminal 402, and instant communication terminal 402 obtains above-mentioned information and deposits in this locality simultaneously; In step 406, instant communication terminal sends request signal according to deposited IP address to family's cloud main frame 401; In step 407, the instant messaging serve end program in family's cloud main frame 401 responds instant communication terminal 402, sets up communication and conversates.
In above-mentioned communication and conversation procedure, due to the change of broadband dynamic IP addressing or other reason cause communication disruption time, instant communication terminal communication flow diagram according to above-mentioned Fig. 4 carries out same step again, until again set up communication and session.
It should be noted that, in home router, need to arrange virtual server function, by port open required by instant messaging serve end program in family's cloud main frame, map in the virtual server of home router, make instant communication client by the instant messaging serve end program in internet access family cloud main frame.
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 (7)
1. based on an instant communicating system for family's cloud main frame, it is characterized in that, comprising:
Family's cloud main frame, by broadband access the Internet, communicates and session with same instant communication terminal foundation for sending timing IP data packet signal to the communication server;
The communication server, with private-line mode accessing Internet, for receiving the IP packet that family's cloud main frame sends, for providing broadband dynamic IP addressing to instant communication terminal;
Instant communication client, direct accessing Internet or by home router accessing Internet, first obtains the IP address for accessing family's cloud main frame from the communication server during initiation session, then communicates with corresponding family's cloud main frame with described IP address.
2. according to claim 1 based on the instant communicating system of family's cloud main frame, it is characterized in that, described instant communicating system also comprises home router, for the mapping of IP address and port numbers between Intranet and outer net.
3. according to claim 1 based on the instant communicating system of family's cloud main frame, it is characterized in that, described family cloud main frame comprises IP Packet Generation module, sends IP data packet signal for timing to the communication server.
4. according to claim 1 based on the instant communicating system of family's cloud main frame, it is characterized in that, the described communication server comprises installs IP receives data packets program, for the IP packet that the IP packet module received in family's cloud main frame sends, in order to extract and to deposit broadband IP dynamic address information.
5. according to claim 1 based on the instant communicating system of family's cloud main frame, it is characterized in that, described instant communication client comprises instant communication client program, for obtaining the IP address needed for access family cloud main frame from the communication server, and carry out communicating and session with the instant messaging serve end program in family cloud main frame with described IP address.
6. based on an instant communication method for family's cloud main frame, it is characterized in that, comprise
Family's cloud main frame timing sends IP packet, in order to obtain the broadband dynamic IP addressing of described family cloud main frame to the communication server incessantly;
When instant communication terminal starts, first accessing communication server, obtains the IP address of family's cloud main frame, and accesses described family cloud main frame with described IP address, carries out communicating and session with the instant messaging serve end program installed in described family cloud main frame;
When instant communication terminal and described communication and conversation, instant communication terminal is accessing communication server again, again obtains the IP address of described family cloud main frame, and again accesses family's cloud main frame with described IP address, re-establishes communication and session.
7. according to claim 6 based on the instant communication method of family's cloud main frame, it is characterized in that, instant communication terminal, to the access of family's cloud main frame, needs to arrange the virtual server function of home router, maps the IP address of intranet and extranet and port.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410855063.5A CN104506425A (en) | 2014-12-26 | 2014-12-26 | Instant messaging system based on family cloud host and method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410855063.5A CN104506425A (en) | 2014-12-26 | 2014-12-26 | Instant messaging system based on family cloud host and method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104506425A true CN104506425A (en) | 2015-04-08 |
Family
ID=52948140
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410855063.5A Pending CN104506425A (en) | 2014-12-26 | 2014-12-26 | Instant messaging system based on family cloud host and method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104506425A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106656772A (en) * | 2016-11-08 | 2017-05-10 | 周家晶 | Network access system and method |
CN106685947A (en) * | 2016-12-23 | 2017-05-17 | Tcl集团股份有限公司 | Smart-TV private cloud equipment access method and system |
CN107231452A (en) * | 2017-06-01 | 2017-10-03 | 山东浪潮通软信息科技有限公司 | A kind of multi-network environment intelligence adaptable method of privately owned Mobile solution |
CN112671888A (en) * | 2020-12-21 | 2021-04-16 | 龙存(苏州)科技有限公司 | Remote connection method and system based on cloud service |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103051642A (en) * | 2013-01-18 | 2013-04-17 | 上海云和信息系统有限公司 | Method for realizing accessing of local area network equipment in firewall based on VPN (Virtual Private Network) and network system |
CN103139305A (en) * | 2013-01-27 | 2013-06-05 | 陈为人 | Device, method and setting thereof by using mobile terminal to control broadband user side apparatus |
CN103312800A (en) * | 2013-05-25 | 2013-09-18 | 陈为人 | Method and device for controlling broadband customer premise equipment (CPE) through instant messaging |
-
2014
- 2014-12-26 CN CN201410855063.5A patent/CN104506425A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103051642A (en) * | 2013-01-18 | 2013-04-17 | 上海云和信息系统有限公司 | Method for realizing accessing of local area network equipment in firewall based on VPN (Virtual Private Network) and network system |
CN103139305A (en) * | 2013-01-27 | 2013-06-05 | 陈为人 | Device, method and setting thereof by using mobile terminal to control broadband user side apparatus |
CN103312800A (en) * | 2013-05-25 | 2013-09-18 | 陈为人 | Method and device for controlling broadband customer premise equipment (CPE) through instant messaging |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106656772A (en) * | 2016-11-08 | 2017-05-10 | 周家晶 | Network access system and method |
CN106656772B (en) * | 2016-11-08 | 2020-06-19 | 周家晶 | Network access system |
CN106685947A (en) * | 2016-12-23 | 2017-05-17 | Tcl集团股份有限公司 | Smart-TV private cloud equipment access method and system |
CN106685947B (en) * | 2016-12-23 | 2021-04-13 | 深圳市Tcl高新技术开发有限公司 | Access method and system for private cloud equipment of smart television |
CN107231452A (en) * | 2017-06-01 | 2017-10-03 | 山东浪潮通软信息科技有限公司 | A kind of multi-network environment intelligence adaptable method of privately owned Mobile solution |
CN112671888A (en) * | 2020-12-21 | 2021-04-16 | 龙存(苏州)科技有限公司 | Remote connection method and system based on cloud service |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104348903B (en) | It is a kind of to establish point-to-point online communication system and its device | |
CN103442224A (en) | NAT penetration-based video monitoring access strategy and realization method | |
US20150312296A1 (en) | Method and device for pushing multimedia resource and display terminal | |
CN105610888A (en) | Method of using socket to push message based on Android and system thereof | |
CN103107983B (en) | Data management method of network system and related system thereof | |
CN106604119B (en) | Network penetration method and system for private cloud equipment of smart television | |
CN104967656B (en) | Remote transmission system for monitoring house deformation in real time through wireless ZigBee data acquisition | |
CN104506425A (en) | Instant messaging system based on family cloud host and method thereof | |
CN107919971A (en) | Method, apparatus and system for audio/video communication connection disaster tolerance | |
CN103812900A (en) | Data synchronization method, device and system | |
CN111800341B (en) | Cross-router terminal communication method and device | |
CN105959188B (en) | Method and device for controlling user terminal to be on-line | |
EP2432194A1 (en) | Method, device and system for information synchronization | |
CN202094935U (en) | Dynamic IP network based remote switch signal control system | |
KR101771594B1 (en) | System and method for configuration of smart home grid using a network attaced storage | |
CN105991377B (en) | The method for finding and communicating between universal plug and play UPnP device | |
JP2014078773A (en) | Data management system | |
WO2017000447A1 (en) | Control method, device and system for intelligent household appliance | |
CN104917725A (en) | Method and system for trans-NAT communication between serial server and network device | |
CN103414713A (en) | Method, device and DLNA device with access to cloud medium resource | |
CN100477607C (en) | Method and device of legal monitoring | |
CN102244843B (en) | Client setting incoming call looks the method for bell and sharing video frequency | |
Kortebi et al. | Home network assistant: Towards better diagnostics and increased customer satisfaction | |
CN105429880A (en) | Network equipment and method for performing router forwarding by network equipment | |
CN105282753A (en) | Intelligent network method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150408 |