CN105991697A - Point-to-point communication realization method and system - Google Patents

Point-to-point communication realization method and system Download PDF

Info

Publication number
CN105991697A
CN105991697A CN201510062780.7A CN201510062780A CN105991697A CN 105991697 A CN105991697 A CN 105991697A CN 201510062780 A CN201510062780 A CN 201510062780A CN 105991697 A CN105991697 A CN 105991697A
Authority
CN
China
Prior art keywords
electronic equipment
source electronic
point
ice
remote electronics
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
Application number
CN201510062780.7A
Other languages
Chinese (zh)
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.)
Shenzhen Futaihong Precision Industry Co Ltd
Chiun Mai Communication Systems Inc
Original Assignee
Shenzhen Futaihong Precision Industry Co Ltd
Chiun Mai Communication Systems Inc
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 Shenzhen Futaihong Precision Industry Co Ltd, Chiun Mai Communication Systems Inc filed Critical Shenzhen Futaihong Precision Industry Co Ltd
Priority to CN201510062780.7A priority Critical patent/CN105991697A/en
Publication of CN105991697A publication Critical patent/CN105991697A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a point-to-point communication realization method. The method comprises the steps of: integrating source codes of an interactive connection establishing ICE protocol into a system framework of a source end electronic device; utilizing the source end electronic device and an ICE session initiation protocol SIP interface of a far-end electronic device in communication connection with the source end electronic device to establish a point-to-point technology P2P communication model between the source end electronic device and the far-end electronic device; and utilizing the P2P communication model to realize P2P communication between the source end electronic device and the far-end electronic device. The invention further provides a point-to-point communication realization. According to the invention, point-to-point communication can be realized between the electronic devices.

Description

Point-to-point communication realization method and system
Technical field
The present invention relates to P-2-P technology, particularly relate to a kind of method and system realizing electric room point-to-point communication.
Background technology
Along with the development of network technology, P-2-P technology (peer-to-peer, P2P) has been increasingly becoming one of hot technology.P2P can realize the direct-connected communications of wan user, is usually used in the download of file-sharing content, the sharing of collaborative offer, instant messaging and the command, control, communications, and information shared with service, and has individual transmission and the advantage such as transmission speed is fast.But existing Android (Android) system does not provide P2P to service, thus cause using and cannot realize P2P communication between the electronic equipment of android system, need by privately owned server (proprietary Server) indirect communication is carried out.
Summary of the invention
In view of the foregoing, it is necessary to provide a kind of point-to-point communication realization method and system so that electric room can be communicated by P-2-P technology.
A kind of point-to-point communication implementation method, is applied in source electronic equipment, and the method comprising the steps of: the source code of interactive connection establishment ICE agreement is integrated in the system framework of source electronic equipment by (a);B () utilizes source electronic equipment and and the ICE session initiation protocol SIP interface of remote electronics of the source electronic equipment communication connection P-2-P technology P2P traffic model of setting up between source electronic equipment and remote electronics;And (c) realizes source electronic equipment by above-mentioned P2P traffic model and communicates with the P2P between remote electronics.
A kind of point-to-point communication realizes system, runs in source electronic equipment, and this system includes: integration module, for being integrated in the system framework of source electronic equipment by the source code of interactive connection establishment ICE agreement;Set up module, for utilizing source electronic equipment and and the ICE session initiation protocol SIP interface of remote electronics of the source electronic equipment communication connection P-2-P technology P2P traffic model of setting up between source electronic equipment and remote electronics;And communication module, communicate with the P2P between remote electronics for realizing source electronic equipment by above-mentioned P2P traffic model.
Compared to prior art, Point-to-point Communication Method provided by the present invention and system, can be by interactive connection establishment (Interactive Connectivity Establishment, ICE) source code of agreement is integrated in the system framework of electronic equipment, and utilizes the session initiation protocol (Session of ICE Initiation Protocol, SIP) interface sets up the P2P traffic model of electric room, communicate realizing the P2P of electric room, thus realize data between electronic devices independent, quickly transmit.
Accompanying drawing explanation
Fig. 1 is the hardware structure figure that point-to-point communication of the present invention realizes system preferred embodiment.
Fig. 2 is the functional block diagram that point-to-point communication of the present invention realizes system preferred embodiment.
Fig. 3 is the operation process chart of point-to-point communication implementation method preferred embodiment of the present invention.
Fig. 4 is the preferred embodiment that the present invention sets up that between source electronic equipment and remote electronics, P2P communicates.
Main element symbol description
Source electronic equipment 100
Point-to-point communication realizes system 10
Integration module 11
Set up module 12
Communication module 13
Communication unit 20
Processor 30
Memory element 40
Network 200
Penetrate server 300
Remote electronics 400
Communication module 50
Following detailed description of the invention will further illustrate the present invention in conjunction with above-mentioned accompanying drawing.
Detailed description of the invention
Refering to shown in Fig. 1, it it is the point-to-point communication of the present invention hardware structure figure that realizes system preferred embodiment.This point-to-point communication realizes system 10 and runs in electronic equipment, this electronic equipment can be smart mobile phone, panel computer, palm PC (Personal Digital Assistant, etc. PDA) P-2-P technology (peer-to-peer is not supported, P2P) equipment, such as, use the mobile phone of android system.Described electronic equipment includes source electronic equipment 100 and remote electronics 400.
Described source electronic equipment 100 by network 200 with penetrate server 300 and remote electronics 400 is communicatively coupled.Remote electronics 400 also includes communication module 50.Described remote electronics 400 utilizes this communication module 50 and source electronic equipment 100 and penetrates server 300 and be communicatively coupled.Described communication module 50 can be Wi-Fi chip, bluetooth (BLUETOOTH) chip, Mobile Communication Chip etc..Described network 200 is different according to the difference of communication module 50, can be bluetooth (BLUETOOTH) communication standard network or cordless communication network, mobile communications network etc..
The described server 300 that penetrates can be the servers such as TURN server.The described server 300 that penetrates is for distributing account and password to source electronic equipment 100 and remote electronics 400, and when source electronic equipment 100 and remote electronics 400 pass through account and password login, obtain source electronic equipment 100 and the outside ip address of remote electronics 400.
Described source electronic equipment 100 also includes parts, such as communication unit 20, processor 30 and memory element 40.The parts 10-40 of source electronic equipment 100 is communicated by system bus.Described communication unit 20 is for being communicatively coupled with above-mentioned communication module 50.Corresponding with communication module 50, this communication unit 20 can be Wi-Fi chip, Bluetooth chip, Mobile Communication Chip etc..
Described processor 30 realizes system 10 and all kinds of softwares installed in described source electronic equipment 100, such as operating system etc. for performing described point-to-point communication.Described memory element 40 can be to be built in the memory element (such as hard disk, storage card) of source electronic equipment 100 or be external in the storage device of source electronic equipment 100.Described memory element 40 is used for storing described point-to-point communication and realizes system 10 and service data thereof, described service data include described point-to-point communication realize that system 10 is set, receive and process after data.
Refering to shown in Fig. 2, it it is the functional block diagram of Point-to-Point Communication System preferred embodiment of the present invention.Described point-to-point communication realizes system 10 for by interactive mode connection establishment (Interactive Connectivity Establishment, ICE) during the source code of agreement is integrated to the system framework of source electronic equipment 100 and remote electronics 400 respectively, and utilize ICE session initiation protocol (the Session Initiation Protocol of source electronic equipment 100 and remote electronics 400, SIP) interface sets up the P2P traffic model between source electronic equipment 100 and remote electronics 400, and the P2P realized between source electronic equipment 100 with remote electronics 400 by this P2P traffic model is communicated.Described point-to-point communication realizes system 10 and includes integration module 11, sets up module 12 and communication module 13.Module 11-13 includes computerization programmed instruction.
Integration module 11 is for being integrated to the source code of ICE agreement in the system framework of source electronic equipment 100.In this preferred embodiment, the system framework of described source electronic equipment 100 can be Android (Android) system framework.
In this preferred embodiment, the source code introducing ICE agreement as a example by android system framework is integrated to the process of source electronic equipment 100, specific as follows: integration module 11 utilizes Android NDK that the compilation of source code of ICE agreement becomes Linux shared library (shared library), the realization part of ICE agreement to be stored to system Runtime Library layer (Library) of android system framework, and utilize the JNI(Java Native that Android platform provides Interface) ICE SIP interface is packaged into the application framework layer (Application of Java interface supply android system by method for packing Framework) use.
In this preferred embodiment, integration module 11 can also be used for being integrated in the system framework of remote electronics 400 source code of ICE agreement.
Set up module 12 for utilizing the ICE SIP interface of source electronic equipment 100 and remote electronics 400 to set up the P2P traffic model between source electronic equipment 100 and remote electronics 400.
In this preferred embodiment, setting up module 12 utilizes the ICE SIP interface of source electronic equipment 100 to log on to penetrate server 300 by source electronic equipment 100, penetrating server 300 and getting external the Internet protocol address (the Internet Protocol Address of source electronic equipment 100 and remote electronics 400, IP address) after, from penetrating, server 300 obtains source electronic equipment 100 and the outside ip address of remote electronics 400, and utilize the outside ip address of source electronic equipment 100 and remote electronics 400 to set up the data cube computation between source electronic equipment 100 and remote electronics 400.
In this preferred embodiment, source electronic equipment 100 with penetrate server 300 and remote electronics 400 to communicate used message be by the ICE message packaged by SIP, this ICE message can include Binding request message, Binding Response message, Connect request message and Connect response message etc..Described ICE message is by ICE SIP interface and the transmission and the feedback of data that penetrate server 300 and remote electronics 400 and realize instruction.Such as, source electronic equipment 100 sends the instruction of the outside ip address for acquisition request remote electronics 400 to penetrating server 300 by the ICE message of Binding request, and by the ICE message of Binding response, the outside ip address penetrating the remote electronics 400 that server 300 is sent is fed back to source electronic equipment 100.
In this preferred embodiment, set up module 12 and the ICE SIP interface of remote electronics 400 can also be utilized to log on to penetrate server 300 by remote electronics 400, so that penetrating server 300 to obtain the outside ip address of remote electronics 400.
Communication module 13 is communicated for the P2P realized between source electronic equipment 100 with remote electronics 400 by above-mentioned P2P traffic model.In this preferred embodiment, the data cube computation that communication module 13 is set up with remote electronics 400 by above-mentioned source electronic equipment 100, carry out the data communication between source electronic equipment 100 and remote electronics 400.
Refering to shown in Fig. 3, it it is the flow chart of point-to-point communication implementation method preferred embodiment of the present invention.
Step S300, the source code of ICE agreement is integrated in the system framework of source electronic equipment 100 by integration module 11.In this preferred embodiment, the system framework of described source electronic equipment 100 can be Android (Android) system framework.In this preferred embodiment, the source code of ICE agreement is also integrated in the system framework of remote electronics 400 by integration module 11.
Step S310, sets up module 12 and utilizes the ICE SIP interface of source electronic equipment 100 and remote electronics 400 to set up the P2P traffic model between source electronic equipment 100 and remote electronics 400.
In this preferred embodiment, that sets up that module 12 sets up P2P traffic model between source electronic equipment 100 and remote electronics 400 specifically comprises the following steps that the ICE utilizing source electronic equipment 100 Source electronic equipment 100 is logged on to penetrate server 300 by SIP interface, is penetrating server 300 and get the external the Internet protocol address (Internet of source electronic equipment 100 and remote electronics 400 Protocol Address, IP address) after, from penetrating, server 300 obtains source electronic equipment 100 and the outside ip address of remote electronics 400, and utilize the outside ip address of source electronic equipment 100 and remote electronics 400 to set up the data cube computation between source electronic equipment 100 and remote electronics 400.
In this preferred embodiment, set up module 12 and the ICE SIP interface of remote electronics 400 can also be utilized to log on to penetrate server 300 by remote electronics 400, so that penetrating server 300 to obtain the outside ip address of remote electronics 400.
Step S320, the P2P that communication module 13 is realized between source electronic equipment 100 with remote electronics 400 by above-mentioned P2P traffic model communicates.In this preferred embodiment, the data cube computation that communication module 13 is set up with remote electronics 400 by above-mentioned source electronic equipment 100, carry out the data communication between source electronic equipment 100 and remote electronics 400.
Refering to shown in Fig. 4, it it is the present invention preferred embodiment of setting up that between source electronic equipment and remote electronics, P2P communicates.
The source code of ICE agreement is integrated in its system framework by source electronic equipment 100, and use the account of user's (hereafter will be simply referred to as " user A ") penetrating server 300 and being distributed by source electronic equipment 100, password login to penetrating server 300, penetrate server 300 and store the account of user A, outside ip address and implicit IP address, such as, account, outside ip address and the implicit IP address of user A are stored to the data base's (not marking in Fig. 4) penetrating server 300.
The source code of ICE agreement is integrated in its system framework by remote electronics 400, and use the account of user's (hereafter will be simply referred to as " user B ") penetrating server 300 and being distributed by remote electronics 400, password login to penetrating server 300, penetrate server 300 and store the account of user B, outside ip address and implicit IP address, such as, account, outside ip address and the implicit IP address of user B are stored to the data base penetrating server 300.
Source electronic equipment 100 sends Binding request message to penetrating server 300, this Binding request message is for the outside ip address of acquisition request remote electronics 400, and the outside ip address (outside ip address of the most above-mentioned user B) penetrating the remote electronics 400 that server 300 utilizes Binding response message to be stored feeds back to source electronic equipment 100.
Source electronic equipment 100 sends Connect request message to remote electronics 400, this Connect request message sets up data cube computation for request by the outside ip address of user B and remote electronics 400, and remote electronics 400 utilizes Connect response message that the confirmation that source electronic equipment 100 and remote electronics 400 are successfully established data cube computation is fed back to source electronic equipment 100.
Source electronic equipment 100 and remote electronics 400 carry out P2P communication.
It should be noted last that, above example is only in order to illustrate technical scheme and unrestricted, although the present invention being described in detail with reference to above preferred embodiment, it will be understood by those within the art that, technical scheme can be modified or equivalent, without deviating from the spirit and scope of technical solution of the present invention.

Claims (10)

1. a point-to-point communication implementation method, is applied in source electronic equipment, it is characterised in that the method includes:
Integrated step: the source code of interactive connection establishment ICE agreement is integrated in the system framework of source electronic equipment;
Establishment step: utilize source electronic equipment and and the ICE session initiation protocol SIP interface of remote electronics of the source electronic equipment communication connection P-2-P technology P2P traffic model of setting up between source electronic equipment and remote electronics;And
Communication steps: realize source electronic equipment by above-mentioned P2P traffic model and communicate with the P2P between remote electronics.
2. point-to-point communication implementation method as claimed in claim 1, it is characterised in that the system framework of described source electronic equipment is Android android system framework.
3. point-to-point communication implementation method as claimed in claim 2, it is characterised in that the source code of ICE agreement is integrated in the system framework of source electronic equipment by described integrated step by the following method:
Utilize Android NDK that the compilation of source code of ICE agreement is become Linux shared library, the realization part of ICE agreement to be stored to the system Runtime Library layer of android system framework;And
ICE SIP interface is packaged into the application framework layer of Java interface supply android system and uses by the JNI method for packing utilizing Android platform to provide.
4. point-to-point communication implementation method as claimed in claim 1, it is characterised in that described establishment step sets up the P2P traffic model between source electronic equipment and remote electronics by the following method:
Utilize the ICE of source electronic equipment Source electronic equipment is logged on to penetrate server by SIP interface;
After penetrating server and get the external the Internet protocol address of source electronic equipment and remote electronics, from penetrating, server obtains source electronic equipment and the external the Internet protocol address of remote electronics;And
The external the Internet protocol address utilizing source electronic equipment and remote electronics sets up the data cube computation between source electronic equipment and remote electronics.
5. point-to-point communication implementation method as claimed in claim 4, it is characterized in that, described source electronic equipment with penetrate server and remote electronics to communicate used message be by the ICE message packaged by SIP, this ICE message by ICE SIP interface with penetrate server and remote electronics realizes transmission and the feedback of data of instruction.
6. point-to-point communication realizes a system, runs in source electronic equipment, it is characterised in that this system includes:
Integration module, for being integrated to the source code of interactive connection establishment ICE agreement in the system framework of source electronic equipment;
Set up module, for utilizing source electronic equipment and and the ICE session initiation protocol SIP interface of remote electronics of the source electronic equipment communication connection P-2-P technology P2P traffic model of setting up between source electronic equipment and remote electronics;And
Communication module, communicates with the P2P between remote electronics for realizing source electronic equipment by above-mentioned P2P traffic model.
7. point-to-point communication as claimed in claim 6 realizes system, it is characterised in that the system framework of described source electronic equipment is Android android system framework.
8. point-to-point communication as claimed in claim 7 realizes system, it is characterised in that the source code of ICE agreement is integrated in the system framework of source electronic equipment by described integration module by the following method:
Utilize Android NDK that the compilation of source code of ICE agreement is become Linux shared library, the realization part of ICE agreement to be stored to the system Runtime Library layer of android system framework;And
ICE SIP interface is packaged into the application framework layer of Java interface supply android system and uses by the JNI method for packing utilizing Android platform to provide.
9. point-to-point communication as claimed in claim 6 realizes system, it is characterised in that described set up the P2P traffic model that module is set up between source electronic equipment and remote electronics by the following method:
Utilize the ICE of source electronic equipment Source electronic equipment is logged on to penetrate server by SIP interface;
After penetrating server and get the external the Internet protocol address of source electronic equipment and remote electronics, from penetrating, server obtains source electronic equipment and the external the Internet protocol address of remote electronics;And
The external the Internet protocol address utilizing source electronic equipment and remote electronics sets up the data cube computation between source electronic equipment and remote electronics.
10. point-to-point communication as claimed in claim 9 realizes system, it is characterized in that, described source electronic equipment with penetrate server and remote electronics to communicate used message be by the ICE message packaged by SIP, this ICE message by ICE SIP interface with penetrate server and remote electronics realizes transmission and the feedback of data of instruction.
CN201510062780.7A 2015-02-06 2015-02-06 Point-to-point communication realization method and system Pending CN105991697A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510062780.7A CN105991697A (en) 2015-02-06 2015-02-06 Point-to-point communication realization method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510062780.7A CN105991697A (en) 2015-02-06 2015-02-06 Point-to-point communication realization method and system

Publications (1)

Publication Number Publication Date
CN105991697A true CN105991697A (en) 2016-10-05

Family

ID=57036124

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510062780.7A Pending CN105991697A (en) 2015-02-06 2015-02-06 Point-to-point communication realization method and system

Country Status (1)

Country Link
CN (1) CN105991697A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102310A (en) * 2007-07-25 2008-01-09 中国科学院沈阳计算技术研究所有限公司 SIP soft switching system supporting P2P media transmission and its implementation method
CN102215121A (en) * 2010-04-07 2011-10-12 苹果公司 Apparatus and method for establishing and utilizing backup communication channels
CN102420876A (en) * 2012-01-06 2012-04-18 重庆国虹科技发展有限公司 Active peer-to-peer file transmission method for android-based intelligent mobile terminal
CN102929593A (en) * 2011-08-12 2013-02-13 中国科学院声学研究所 Method for achieving Android system to be compatible with internal application
US20140165158A1 (en) * 2012-12-06 2014-06-12 Xtreme Labs Inc. System and Method for Enterprise Security Through P2P Connection

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102310A (en) * 2007-07-25 2008-01-09 中国科学院沈阳计算技术研究所有限公司 SIP soft switching system supporting P2P media transmission and its implementation method
CN102215121A (en) * 2010-04-07 2011-10-12 苹果公司 Apparatus and method for establishing and utilizing backup communication channels
CN102929593A (en) * 2011-08-12 2013-02-13 中国科学院声学研究所 Method for achieving Android system to be compatible with internal application
CN102420876A (en) * 2012-01-06 2012-04-18 重庆国虹科技发展有限公司 Active peer-to-peer file transmission method for android-based intelligent mobile terminal
US20140165158A1 (en) * 2012-12-06 2014-06-12 Xtreme Labs Inc. System and Method for Enterprise Security Through P2P Connection

Similar Documents

Publication Publication Date Title
CN105122931B (en) Electronic equipment and the method that personal cloud device is registered in its portal user server
CN102710534B (en) A kind of network communication method across application and equipment
US20140020061A1 (en) Automatic provisioning in mobile to mobile platforms
CN106648117B (en) The implementation method and device of voice broadcast in virtual scene interaction client
CN108322549A (en) Cloud desktop computer system based on middleware and application method
CN104283878B (en) The method of safe mobile terminal and its access Cloud Server based on cloud service
CN105264902A (en) System for universal remote media control in a multi-user, multi-platform, multi-device environment
US20120059879A1 (en) Method for Achieving P2P Communication on Webpage
CN103986786A (en) Remote cloud desktop operation system
CN102752137A (en) Device and method for actively setting network parameters of virtual machine
CN104378410A (en) Minitype private cloud storage and transmission system and method
CN104052746A (en) Heterogeneous application single sign-on system and method
CN103281361A (en) Personal cloud cooperation system and data management method
CN109981360A (en) Internet of things equipment website activating method, device, system and storage medium
CN104917794A (en) Data sharing method, device and system
CN105812413B (en) Communication method and device
CN103166957A (en) Data interaction method between virtual game and true environment game
CN104823410A (en) Parameter configuration system
CN103067260B (en) Realize method and the device of instant messaging
CN107113281A (en) Content shared method, terminal, server and system
US20140201262A1 (en) User device, communication server and control method thereof
CN104391576A (en) Remote input method and device based on wireless Ethernet
CN104184804B (en) Cloud storage system and its offer and the system and method from its downloading data
CN105991697A (en) Point-to-point communication realization method and system
CN103167038A (en) Data transmission method of user terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20161005

WD01 Invention patent application deemed withdrawn after publication