WO2007140721A1 - A method and system for data transmission based on peer to peer - Google Patents

A method and system for data transmission based on peer to peer Download PDF

Info

Publication number
WO2007140721A1
WO2007140721A1 PCT/CN2007/070045 CN2007070045W WO2007140721A1 WO 2007140721 A1 WO2007140721 A1 WO 2007140721A1 CN 2007070045 W CN2007070045 W CN 2007070045W WO 2007140721 A1 WO2007140721 A1 WO 2007140721A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
transmission
transmission data
sender
receiver
Prior art date
Application number
PCT/CN2007/070045
Other languages
French (fr)
Chinese (zh)
Inventor
Yi Gong
Ye Zhu
Bo Wu
Jiancheng Li
Baohe Zhang
Original Assignee
Tencent Technology (Shenzhen) Company Limited
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 Tencent Technology (Shenzhen) Company Limited filed Critical Tencent Technology (Shenzhen) Company Limited
Priority to BRPI0712694-8A priority Critical patent/BRPI0712694B1/en
Publication of WO2007140721A1 publication Critical patent/WO2007140721A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1076Resource dissemination mechanisms or network resource keeping policies for optimal resource availability in the overlay network

Definitions

  • the present invention relates to the field of point-to-point (P2P) technology, and more particularly to a P2P-based data transmission method and system. Background of the invention
  • P2P originated from the original networked communication method, such as connecting personal computers (PCs) in a building through a local area network, and dialing interconnections between different buildings via modems (Modem).
  • the communication mode built on the Transmission Control Protocol (TCP) / Internet Protocol (IP) constitutes the foundation of today's Internet, so from a technical point of view, P2P is not a new technology, but a new application technology model.
  • TCP Transmission Control Protocol
  • IP Internet Protocol
  • the Internet is mainly based on the server (Browser) or Server (Server) / Client (Client) structure application mode.
  • Such an application must set at least one server in the network, and the information can be transmitted through the server. .
  • the information is either first uploaded to the server for storage, then downloaded separately (such as a website), or the information is processed according to the proprietary rules on the server before the flow (such as mail) can be transmitted over the network.
  • instant communication technology is one of the typical representative technologies.
  • instant messaging applications two or more users communicate with each other using text, voice or files. This communication is fast and straightforward, and it is easy to communicate with non-PC network devices (such as PDAs, mobile phones, etc.), and it does not depend on The device can identify the user. Since P2P technology can be used to weaken or even get rid of the dependence on the central server, such communication is closer to the non-internet communication mode.
  • video communication is a very wide range of applications. With the popularity of video communication, users are increasingly demanding video communication. many. Among them, multiplayer video is a very urgent need. However, people are not satisfied with the simple multiplayer video. People want to add more elements to the video, such as text chat to assist video chat, chat to send custom images, and file sharing.
  • multi-person data sharing can be interpreted as an additional data transfer function such as multi-person text chat and multi-person file sharing.
  • existing multiplayer text chats and multiplayer file sharing are based on the server/client model, where the sender's text message or file is first transmitted to the server, which then distributes the text message or file to others.
  • an additional server is needed to forward the corresponding data, which not only increases the cost investment, but also destroys the original P2P audio and video system structure.
  • the main purpose of embodiments of the present invention is to propose a P2P-based data transmission method to reduce costs.
  • Another object of embodiments of the present invention is to propose a P2P-based data transmission system to reduce costs.
  • a P2P-based data transmission method which is established in advance between a sender and a receiver.
  • the method further includes:
  • the sender identifies the transmission data according to the type of the transmission data, and sends the identified transmission data to the receiver based on the P2P connection, where the type of the transmission data is at least one type;
  • the receiver parses the transmission data to obtain an identifier of the transmission data, and processes the transmission data according to the type corresponding to the identifier.
  • a P2P-based data transmission system comprising:
  • a sender configured to identify the transmission data according to a type of the transmitted data, and send the identified transmission data to the receiver according to the P2P connection, where the type of the transmitted data is at least one type;
  • a receiving end configured to parse the transmitted data to obtain an identifier of the transmitted data, and process the transmitted data according to the type corresponding to the identifier;
  • connection between the sender and the receiver is a P2P connection.
  • the sender identifies the transmission data according to the type of the transmission data, and sends the identified transmission data to the receiver based on the P2P connection.
  • the receiver parses the transmission data to obtain an identifier of the transmission data, and processes the transmission data according to the type corresponding to the identifier. Therefore, after applying the technical solution of the embodiment of the present invention, in the P2P communication mode, the sender identifies different types of data, and the receiver performs corresponding processing on different data according to the identifier to implement the same data channel.
  • the sender identifies different types of data, and the receiver performs corresponding processing on different data according to the identifier to implement the same data channel.
  • FIG. 1 is a flow chart of an exemplary method for transmitting data based on P2P according to an embodiment of the present invention.
  • 2 is a schematic flow chart of a sender transmitting data according to an embodiment of the present invention.
  • 3 is a schematic flow chart of receiving data by a receiver according to an embodiment of the present invention.
  • 4 is a schematic diagram of multi-person audio and video and text chat, in accordance with an exemplary embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a transmission queue according to an embodiment of the invention.
  • Figure 6 is a schematic diagram showing an exemplary structure of a system for transmitting data based on P2P according to an embodiment of the present invention. Mode for carrying out the invention
  • FIG. 1 is a flow chart of an exemplary method for transmitting data based on P2P according to an embodiment of the present invention.
  • the method pre-establishes a P2P connection between the sender and the receiver. As shown in FIG. 1, the method further includes:
  • Step 101 The sender identifies the transmission data according to the type of the transmission data, and sends the identified transmission data to the receiver based on the P2P connection, where the type of the transmission data is at least one.
  • Step 102 The receiver parses the transmission data to obtain an identifier of the transmission data, and processes the transmission data according to the type corresponding to the identifier.
  • the receiver After receiving the transmission data, the receiver first parses the transmission data to obtain an identifier, and then processes the transmission data according to the type corresponding to the identifier.
  • the transmission data may be parsed first to obtain an identifier, and then the transmission data is processed according to the type corresponding to the identifier.
  • the following describes an embodiment of the present invention by taking audio and video chat in an instant messaging application as an example.
  • a data channel will be established between each two people for transmission of data. For example, when N people make multi-person videos, then everyone will establish a data channel with other N-1 people, and then transfer their audio and video data to other N-1 individuals through these channels, while receiving other N- 1 person's audio and video data for audio and video communication.
  • audio and video data channels although it is specifically used to transmit audio and video data, in fact, audio and video data channels do not care what data is transmitted. With this, you can make full use of these audio and video channels. It transmits some additional data to enable additional communication functions.
  • data can be identified to facilitate parsing and processing different types of data. Since the underlying channel is the same for any data transmission, the data needs to be identified before transmission, and then the receiver parses out different data according to the unified identification data, thereby performing different processing. At the same time, since the audio and video channels are utilized, it is necessary to consider the influence on audio and video communication, and it is not suitable for directly transmitting and receiving data like a normal channel.
  • Step 201 Add corresponding identifiers to different types of data, and then uniformly add data to the data sending queue.
  • the sender needs to identify the data before transmission, so that the receiver can parse different data according to the unified identification data for different processing.
  • the sender's identification of the data is related to the functional requirements, because the receiver will handle different functional data differently.
  • the video data needs to be decoded and displayed
  • the text chat data needs to be displayed in the chat box
  • the picture data needs to be parsed and displayed in the corresponding picture format, and the like. Therefore, the sender adds the data corresponding to the first function to the first function data identifier, adds the data corresponding to the second function to the second function data identifier, and adds the data corresponding to the third function to the third function data identifier. .
  • the transmission data may be any one of audio data, video data, electronic files, instant messaging information, or any combination of more than one of them.
  • Step 201 Obtain data from the sending queue and send it to different users.
  • the transmission mode of the P2P preferably corresponds to a plurality of users, that is to say preferably corresponding to a plurality of senders and receivers, it is preferred here to transmit data to different recipients. Similarly, other senders have the same or similar transmission process.
  • each sender separately identifies the transmission data transmitted according to the type of the transmission data, wherein each sender uses the same identifier for the same type of transmission data, and each The sender transmits the identified transmission data to the recipient based on the P2P connection.
  • FIG. 3 is a receiver receiving data according to an embodiment of the present invention. Schematic diagram of an exemplary process. As shown in Figure 3, it includes:
  • Step 301 Receive data from different users, and add all data to the data processing queue
  • the P2P transmission mode preferably corresponds to a plurality of users, that is to say preferably corresponding to a plurality of senders and receivers, it is preferred here to receive data from different recipients and to add all data to the data processing queue.
  • Step 302 Acquire and parse the data from the data processing queue, and perform corresponding processing corresponding to the data of different identifiers.
  • data is first obtained from the data processing queue, and then the data is parsed to obtain a corresponding identifier, and the data corresponding to the identifier is separately processed.
  • the video data is decoded and displayed, the text chat data needs to be displayed in the chat box, the picture data is parsed and displayed in the corresponding picture format, and the like. In other words, different data is processed differently.
  • each receiver parses the received transmission data to obtain the identifier of the transmission data, and uniformly processes the transmission data with the same identifier according to the type corresponding to the identifier.
  • a multi-user multi-function system can be completed, such as multi-person text chat while multi-person audio and video chat.
  • FIG. 4 is a schematic diagram of multi-person audio and video and text chat according to an embodiment of the present invention. As can be seen from FIG. 4, a plurality of users can perform text chat while performing multi-person audio and video chat, thereby greatly promoting the intimate feeling of the chat, and does not need to improve the existing server architecture, and also greatly saves The cost.
  • the present invention when applying the present invention to multi-person chat in an instant messaging application, since the audio and video channels are utilized to transmit additional data, it is necessary to consider additional data for audio and video communication. It is preferable that the transmission and reception of data are not directly performed. In order to ensure the smooth flow of audio and video communication, an active and continuous data stream is required to be transmitted on the audio and video channels. Therefore, when using this channel to transmit additional data, the impact on the transmission of audio and video data should be minimized, so that it will not be It has any bad influence on the smoothness of audio and video communication.
  • the present invention preferably controls the transmission frequency of the additional data to avoid affecting the audio and video fluency.
  • the additional transmission data is too large, not only the data transmission is performed by adding the identifier, but also the frequency of the transmission is controlled. Otherwise, the audio and video data may be blocked due to the large amount of additional data transmission, thereby affecting the sound.
  • the fluency of video communication is not only the data transmission is performed by adding the identifier, but also the frequency of the transmission is controlled. Otherwise, the audio and video data may be blocked due to the large amount of additional data transmission, thereby affecting the sound. The fluency of video communication.
  • the present invention preferably preliminarily mixes various types of transmission data at intervals before transmitting transmission data. Due to the existence of the data transmission queue, as long as the interval of adding data to the data transmission queue is constant, the interval for sending data in the order of the queue is also fixed when transmitting, so that the network transmission fluctuation caused by the network may be ignored. Therefore, for audio and video data, when the data transmission queue is added, it is continuously added, and the additional data is inserted at equal intervals when it is added to the data transmission queue, so that the transmission data is mixed at equal intervals. Therefore, as long as the data is sequentially sent from the sending queue for transmission, the time interval for data transmission is guaranteed to be constant.
  • M additional data may be spaced every N audio/video data, where N is a positive integer greater than or equal to 1, and M is also a positive integer greater than or equal to 1.
  • the present invention has no limitation on the values of N and M.
  • the value of N can be greater than M, less than M, and equal to M. For example, when N is equal to 3, there may be 1 additional data for every 3 audio/video data intervals, or 2 additional data for every 3 audio/video data intervals, or 3 intervals for every 3 audio/video data.
  • Additional data generally choose to insert an additional data for every three audio and video data.
  • FIG. 5 is a schematic diagram of a transmission queue according to an embodiment of the invention.
  • the circular data is audio and video data
  • the block data is additional data.
  • one additional data is inserted at intervals of every three audio and video data, wherein the additional data can be electronic files, instant messaging information ( Text chat information) and so on.
  • FIG. 6 is a schematic diagram showing an exemplary structure of a P2P transmission data system according to an embodiment of the present invention.
  • the system includes a plurality of terminals, wherein each terminal can be either a sender or a receiver.
  • the system includes:
  • a sender configured to identify the transmission data according to a type of the transmitted data, and send the identified transmission data to the receiver according to the P2P connection, where the type of the transmitted data is at least one type;
  • a receiving end configured to parse the transmitted data to obtain an identifier of the transmitted data, and process the transmitted data according to the type corresponding to the identifier;
  • connection between the sender and the receiver is a P2P connection.
  • the number of the senders is at least two, and the number of the receivers is at least two.
  • Each sender is configured to separately identify the transmission data sent by the sender according to the type of the transmission data, where each sender uses the same identifier for the same type of transmission data, and each sender is further used to connect based on the P2P Transmitting the identified transmission data to a receiver;
  • Each receiver is configured to parse the transmission data it receives to obtain the identification of the transmission data, and uniformly process the transmission data with the same identification according to the type corresponding to the identification.
  • the type of transmission data is at least two, and the sender is further configured to mix the various types of transmission data equally at intervals before transmitting the transmission data.
  • the transmission data that is mixed at equal intervals includes audio/video data and additional data, and an additional data is interposed every three audio/video data.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A method for data transmission based on peer to peer (P2P), creates a P2P link in advance between the transmitter and receiver, and the method also includes: A. the transmitter identifies the said transmitting data based on the type of transmitting data, and sends the identified transmitting data to the receiver based on the said P2P link, thereinto the types of transmitting data being at least one (101); B. the receiver analyses the transmitting data to gain the identification of the transmitting data, and processes the transmitting data basing on the type corresponding to the identification (102). The embodiment of the present invention also discloses a system for data transmission based on P2P.

Description

一种基于点对点的数据传输方法及系统 技术领域  Point-to-point data transmission method and system
本发明涉及点对点 (P2P )技术领域, 更具体地说, 本发明涉及一 种基于 P2P的数据传输方法及系统。 发明背景  The present invention relates to the field of point-to-point (P2P) technology, and more particularly to a P2P-based data transmission method and system. Background of the invention
P2P起源于最初的联网通信方式, 如在建筑物内个人计算机(PC ) 通过局域网互联, 不同建筑物间通过调制解调器( Modem )远程拨号互 联。 建立在传输控制协议(TCP ) / 网际协议(IP )之上的通信模式构 成了今日互联网的基础, 所以从 ^出技术角度看, P2P不是新技术, 而 是新的应用技术模式。 虽然对 P2P的研究从未停止, 今天 P2P再一次被 关注主要是由于 Napster等共享类软件以及即时通讯类软件的出现。  P2P originated from the original networked communication method, such as connecting personal computers (PCs) in a building through a local area network, and dialing interconnections between different buildings via modems (Modem). The communication mode built on the Transmission Control Protocol (TCP) / Internet Protocol (IP) constitutes the foundation of today's Internet, so from a technical point of view, P2P is not a new technology, but a new application technology model. Although the research on P2P has never stopped, today P2P is once again concerned mainly because of the emergence of shared software such as Napster and instant messaging software.
现在互联网主要以服务器 (Server ) /浏览器 (Browser )或服务器 ( Server ) /客户端(Client )结构的应用模式为主, 这样的应用必须在网 络内设置至少一个服务器,信息通过服务器才可以传递。在这种模式下, 信息或是先集中上传到服务器保存, 然后再分别下载 (如网站), 或是 信息按服务器上专有规则处理后才可在网络上传递流动 (如邮件)。  Now the Internet is mainly based on the server (Browser) or Server (Server) / Client (Client) structure application mode. Such an application must set at least one server in the network, and the information can be transmitted through the server. . In this mode, the information is either first uploaded to the server for storage, then downloaded separately (such as a website), or the information is processed according to the proprietary rules on the server before the flow (such as mail) can be transmitted over the network.
目前基于 P2P技术的应用有很多种, 即时通信技术便是其中一种典 型代表性技术。 在即时通信应用中, 两个或多个用户相互使用文字、 语 音或文件进行交流, 这种交流方式快速和直接, 并且易于同非 PC网络 设备(如 PDA、 手机等)通信, 而且它不依赖设备即可辨别用户。 由于 利用 P2P技术可以弱化甚至摆脱对中央服务器的依赖, 这样的通信更接 近非互联网通信模式。 在目前的即时通信应用中, 视频通讯是一项非常 广泛的应用, 随着视频通讯的普及, 用户对视频通讯的各种需求越来越 多。 其中, 多人视频就是一个非常迫切的需求。 但是, 人们已经不满足 单纯进行多人视频, 人们更希望在视频的同时能加入更多的元素, 比如 以文本聊天方式辅助视频聊天, 聊天时给对方发送自定义图像, 以及文 件共享等等。 At present, there are many applications based on P2P technology, and instant communication technology is one of the typical representative technologies. In instant messaging applications, two or more users communicate with each other using text, voice or files. This communication is fast and straightforward, and it is easy to communicate with non-PC network devices (such as PDAs, mobile phones, etc.), and it does not depend on The device can identify the user. Since P2P technology can be used to weaken or even get rid of the dependence on the central server, such communication is closer to the non-internet communication mode. In the current instant messaging applications, video communication is a very wide range of applications. With the popularity of video communication, users are increasingly demanding video communication. many. Among them, multiplayer video is a very urgent need. However, people are not satisfied with the simple multiplayer video. People want to add more elements to the video, such as text chat to assist video chat, chat to send custom images, and file sharing.
在即时通信应用中, 多人数据共享的实现可以解释为实现多人文本 聊天功能和多人文件共享等附加数据传输功能。 现有的多人文本聊天和 多人文件共享都是基于服务器 /客户端模式的 ,就是发送者的文本信息或 者文件会首先被传输到服务器, 再由服务器把文本信息或文件分发给其 他人。 在这种技术中, 需要使用额外的服务器来转发相应的数据, 从而 不但增加了成本的投入, 还破坏了原有的 P2P音视频系统结构。  In instant messaging applications, the implementation of multi-person data sharing can be interpreted as an additional data transfer function such as multi-person text chat and multi-person file sharing. Existing multiplayer text chats and multiplayer file sharing are based on the server/client model, where the sender's text message or file is first transmitted to the server, which then distributes the text message or file to others. In this technology, an additional server is needed to forward the corresponding data, which not only increases the cost investment, but also destroys the original P2P audio and video system structure.
在其它基于 P2P 的应用中通常也会涉及到不同类型的数据传输问 题, 如果使用额外的服务器来转发相应的数据显然也会增加成本的投 入, 而如何节约成本是任何一种 P2P传输方式都应重点关注的。 发明内容  In other P2P-based applications, different types of data transmission problems are usually involved. If an additional server is used to forward the corresponding data, it will obviously increase the cost. How to save costs is any kind of P2P transmission method. Focused on. Summary of the invention
有鉴于此, 本发明实施例的主要目的是提出一种基于 P2P的数据传 输方法, 以降低成本。  In view of this, the main purpose of embodiments of the present invention is to propose a P2P-based data transmission method to reduce costs.
本发明实施例的另一目的是提出一种基于 P2P的数据传输系统, 以 降低成本。  Another object of embodiments of the present invention is to propose a P2P-based data transmission system to reduce costs.
为达到上述目的, 本发明实施例的技术方案是这样实现的: 一种基于 P2P 的数据传输方法, 预先在发送方和接收方之间建立 To achieve the above objective, the technical solution of the embodiment of the present invention is implemented as follows: A P2P-based data transmission method, which is established in advance between a sender and a receiver.
P2P连接, 该方法还包括: P2P connection, the method further includes:
A、 发送方根据传输数据的类型对所述传输数据进行标识, 并基于 所述 P2P连接向接收方发送所述经过标识的传输数据, 其中传输数据的 类型至少为一种; B、 接收方解析传输数据以获取传输数据的标识, 并依据标识所对 应的类型对传输数据进行处理。 A. The sender identifies the transmission data according to the type of the transmission data, and sends the identified transmission data to the receiver based on the P2P connection, where the type of the transmission data is at least one type; B. The receiver parses the transmission data to obtain an identifier of the transmission data, and processes the transmission data according to the type corresponding to the identifier.
一种基于 P2P的数据传输系统, 该系统包括:  A P2P-based data transmission system, the system comprising:
发送方, 用于根据传输数据的类型对所述传输数据进行标识, 并基 于 P2P连接向接收方发送所述经过标识的传输数据, 其中传输数据的类 型至少为一种;  a sender, configured to identify the transmission data according to a type of the transmitted data, and send the identified transmission data to the receiver according to the P2P connection, where the type of the transmitted data is at least one type;
接收方, 用于解析传输数据以得到传输数据的标识, 并依据标识所 对应的类型对传输数据进行处理;  a receiving end, configured to parse the transmitted data to obtain an identifier of the transmitted data, and process the transmitted data according to the type corresponding to the identifier;
所述发送方和接收方之间的连接为 P2P连接。  The connection between the sender and the receiver is a P2P connection.
从上述技术方案中可以看出, 在本发明实施例的基于 P2P的数据传 输方法中,发送方根据传输数据的类型对传输数据进行标识,并基于 P2P 连接向接收方发送经过标识的传输数据, 接收方解析传输数据以获取传 输数据的标识, 并依据标识所对应的类型对传输数据进行处理。 由此可 见, 应用本发明实施例的技术方案以后, 在 P2P通信模式中, 在发送方 对不同类型的数据进行标识, 接收方根据标识对不同的数据进行相应的 处理, 以实现利用同一数据通道来传送不同种类的数据, 并不需要使用 额外的服务器来转发数据, 所以能够节约成本地发送不同类型的传输数 据。 附图简要说明  As can be seen from the foregoing technical solutions, in the P2P-based data transmission method of the embodiment of the present invention, the sender identifies the transmission data according to the type of the transmission data, and sends the identified transmission data to the receiver based on the P2P connection. The receiver parses the transmission data to obtain an identifier of the transmission data, and processes the transmission data according to the type corresponding to the identifier. Therefore, after applying the technical solution of the embodiment of the present invention, in the P2P communication mode, the sender identifies different types of data, and the receiver performs corresponding processing on different data according to the identifier to implement the same data channel. To transmit different kinds of data, there is no need to use an additional server to forward data, so it is possible to transmit different types of transmission data at a cost-effective manner. BRIEF DESCRIPTION OF THE DRAWINGS
图 1为本发明实施例的基于 P2P传输数据的示范性方法流程图。 图 2为根据本发明实施例发送方发送数据的示范性流程示意图。 图 3为根据本发明实施例接收方接收数据的示范性流程示意图。 图 4 为根据本发明示范性实施例的多人音视频和文本聊天的示意 图。 图 5为根据本发明一实施例的发送队列示意图。 1 is a flow chart of an exemplary method for transmitting data based on P2P according to an embodiment of the present invention. 2 is a schematic flow chart of a sender transmitting data according to an embodiment of the present invention. 3 is a schematic flow chart of receiving data by a receiver according to an embodiment of the present invention. 4 is a schematic diagram of multi-person audio and video and text chat, in accordance with an exemplary embodiment of the present invention. FIG. 5 is a schematic diagram of a transmission queue according to an embodiment of the invention.
图 6为本发明实施例的基于 P2P传输数据的系统的示范性结构示意 图。 实施本发明的方式  Figure 6 is a schematic diagram showing an exemplary structure of a system for transmitting data based on P2P according to an embodiment of the present invention. Mode for carrying out the invention
为使本发明的目的、 技术方案和优点表达得更加清楚明白, 下面结 合附图及具体实施例对本发明再作进一步详细的说明。  The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
在本发明实施例中: 在 P2P通信模式中, 在发送方对不同类型的数 据进行标识, 接收方根据标识对不同的数据进行相应的处理, 以实现利 用同一数据通道来传送不同种类的数据, 无需釆用额外的服务器, 从而 极大地节约成本。  In the embodiment of the present invention, in the P2P communication mode, different types of data are identified by the sender, and the receiver performs corresponding processing on different data according to the identifier, so as to realize different types of data by using the same data channel. Significant cost savings without the need to use additional servers.
图 1为本发明实施例的基于 P2P传输数据的示范性方法流程图。 该 方法预先在发送方和接收方之间建立 P2P连接, 如图 1所示, 该方法还 包括:  1 is a flow chart of an exemplary method for transmitting data based on P2P according to an embodiment of the present invention. The method pre-establishes a P2P connection between the sender and the receiver. As shown in FIG. 1, the method further includes:
步骤 101 : 发送方根据传输数据的类型对所述传输数据进行标识, 并基于所述 P2P连接向接收方发送所述经过标识的传输数据, 其中传输 数据的类型至少为一种。  Step 101: The sender identifies the transmission data according to the type of the transmission data, and sends the identified transmission data to the receiver based on the P2P connection, where the type of the transmission data is at least one.
对于仅用于传送数据的数据通道而言, 其实并不关心传输的是什么 内容。 因此, 可以对不同类型的数据分别进行标识, 然后再将标识后的 数据统一通过 P2P连接的数据通道进行传送。  For a data channel that is only used to transfer data, it does not care what is being transferred. Therefore, different types of data can be separately identified, and then the identified data is uniformly transmitted through the P2P connected data channel.
步骤 102: 接收方解析传输数据以获取传输数据的标识, 并依据标 识所对应的类型对传输数据进行处理。  Step 102: The receiver parses the transmission data to obtain an identifier of the transmission data, and processes the transmission data according to the type corresponding to the identifier.
接收方获取传输数据后, 首先对传输数据进行解析以获取标识, 然 后依据标识所对应的类型对传输数据进行处理。  After receiving the transmission data, the receiver first parses the transmission data to obtain an identifier, and then processes the transmission data according to the type corresponding to the identifier.
在这里, 由于接收方接收的传输数据有多种, 因此需要区别进行处 理。 可以首先对传输数据进行解析以获取标识, 然后依据标识所对应的 类型对传输数据进行处理。 Here, since the receiver receives a variety of transmission data, it needs to be distinguished. Reason. The transmission data may be parsed first to obtain an identifier, and then the transmission data is processed according to the type corresponding to the identifier.
比如, 下面以即时通讯应用中的音视频聊天为例对本发明实施例进 行说明。  For example, the following describes an embodiment of the present invention by taking audio and video chat in an instant messaging application as an example.
首先, 当多人在进行 P2P通讯时, 将会在每两个人之间建立起一条 数据通道, 以用于传输数据的传输。 比如, 当 N个人进行多人视频时, 那么每个人都会和其他 N - 1个人建立起数据通道, 然后通过这些通道 把自己的音视频数据传输给其他 N - 1 个人, 同时接收来自其他 N - 1 个人的音视频数据, 从而进行音视频通讯。  First, when multiple people are communicating in P2P, a data channel will be established between each two people for transmission of data. For example, when N people make multi-person videos, then everyone will establish a data channel with other N-1 people, and then transfer their audio and video data to other N-1 individuals through these channels, while receiving other N- 1 person's audio and video data for audio and video communication.
然而, 对于音视频数据通道而言, 虽然是专门用来传输音视频数据 的, 但其实音视频数据通道并不关心传输的是什么数据, 利用这一点, 可以充分地利用这些音视频通道, 让其传输一些附加的数据, 从而实现 额外的通讯功能。 根据本发明实施例, 可以对数据进行标识, 从而便于 解析并处理不同类型的数据。 由于底层通道对于任何数据的传输都一视 同仁, 所以在传输之前需要对数据进行标识, 然后接收方根据统一标识 的数据解析出不同的数据, 从而进行不同的处理。 同时, 由于利用的是 音视频通道, 所以要考虑对音视频通讯的影响, 而不适宜像一般的通道 那样直接进行数据的发送和接收。 为了保证音视频通讯的流畅, 需要有 源源不断的数据流在音视频通道上进行传输。 那么在使用此通道传输附 加数据时就要把对音视频数据传输的影响降到最低, 使之不会对音视频 通讯的流畅度产生过大影响。  However, for audio and video data channels, although it is specifically used to transmit audio and video data, in fact, audio and video data channels do not care what data is transmitted. With this, you can make full use of these audio and video channels. It transmits some additional data to enable additional communication functions. According to an embodiment of the present invention, data can be identified to facilitate parsing and processing different types of data. Since the underlying channel is the same for any data transmission, the data needs to be identified before transmission, and then the receiver parses out different data according to the unified identification data, thereby performing different processing. At the same time, since the audio and video channels are utilized, it is necessary to consider the influence on audio and video communication, and it is not suitable for directly transmitting and receiving data like a normal channel. In order to ensure the smooth communication of audio and video, a continuous stream of data is required to be transmitted on the audio and video channels. Therefore, when using this channel to transmit additional data, the impact on audio and video data transmission should be minimized so that it does not have an excessive impact on the smoothness of audio and video communication.
下面分别对应用本发明实施例的发送方和接收方的传输方式进行说 明。  The transmission modes of the sender and the receiver to which the embodiment of the present invention is applied will be described below.
图 2为根据本发明实施例发送方发送数据的示范性流程示意图。 如 图 2所示, 该方法包括: 步骤 201 : 对不同类型的数据分别加入相应的标识, 然后将数据统 一加入数据发送队列; 2 is a schematic flow chart of a sender transmitting data according to an embodiment of the present invention. As shown in Figure 2, the method includes: Step 201: Add corresponding identifiers to different types of data, and then uniformly add data to the data sending queue.
发送方在传输之前需要对数据进行标识, 从而接收方能根据统一标 识的数据解析出不同的数据, 以进行不同的处理。 在这里, 发送方对数 据的标识跟功能需求有关, 因为接收方对不同的功能数据将做不同的处 理。 比如,视频数据需要解码并显示、文本聊天数据需要在聊天框显示、 图片数据需要以相应的图片格式解析并显示等。 因此在发送方, 将对应 于第一功能的数据加入第一功能数据标识, 将对应于第二功能的数据加 入第二功能数据标识, 将对应于第三功能的数据加入第三功能数据标识 等。发送方对不同功能(也就是不同种类)的数据加入了不同的标识后, 将这些数据统一加入数据发送队列。在这里,传输数据可以为音频数据、 视频数据、 电子文件、 即时通讯信息中的任一种或其中多于一种的任意 组合。  The sender needs to identify the data before transmission, so that the receiver can parse different data according to the unified identification data for different processing. Here, the sender's identification of the data is related to the functional requirements, because the receiver will handle different functional data differently. For example, the video data needs to be decoded and displayed, the text chat data needs to be displayed in the chat box, the picture data needs to be parsed and displayed in the corresponding picture format, and the like. Therefore, the sender adds the data corresponding to the first function to the first function data identifier, adds the data corresponding to the second function to the second function data identifier, and adds the data corresponding to the third function to the third function data identifier. . After the sender adds different identifiers to the data of different functions (that is, different types), the data is uniformly added to the data sending queue. Here, the transmission data may be any one of audio data, video data, electronic files, instant messaging information, or any combination of more than one of them.
步骤 201 : 从发送队列中获取数据, 并且向不同的用户发送。  Step 201: Obtain data from the sending queue and send it to different users.
由于 P2P的传送方式优选对应于多个用户, 也就是说优选对应于多 个发送方和接收方, 在这里优选向不同的接收方发送数据。 同理, 其它 的发送方具有相同或者相似的发送流程。  Since the transmission mode of the P2P preferably corresponds to a plurality of users, that is to say preferably corresponding to a plurality of senders and receivers, it is preferred here to transmit data to different recipients. Similarly, other senders have the same or similar transmission process.
当发送方的数目至少为两个时, 每个发送方才艮据传输数据的类型对 其所发送的传输数据分别进行标识, 其中各发送方对相同类型的传输数 据采用相同的标识, 并且每个发送方基于 P2P连接向接收方发送所述经 过标识的传输数据。  When the number of senders is at least two, each sender separately identifies the transmission data transmitted according to the type of the transmission data, wherein each sender uses the same identifier for the same type of transmission data, and each The sender transmits the identified transmission data to the recipient based on the P2P connection.
这样就实现了多种功能的数据向多个用户分发的方式。 而对于接收 方, 也同样要建立起多路数据的接收和多种功能数据的解析处理等机 制。  This enables a multi-functional data distribution to multiple users. For the receiver, it is also necessary to establish a mechanism for receiving multiple data and analyzing and processing multiple functional data.
对应于图 1所示的流程, 图 3为根据本发明实施例接收方接收数据 的示范性流程示意图。 如图 3所示, 包括: Corresponding to the flow shown in FIG. 1, FIG. 3 is a receiver receiving data according to an embodiment of the present invention. Schematic diagram of an exemplary process. As shown in Figure 3, it includes:
步骤 301 : 接收来自不同用户的数据, 并将所有数据加入数据处理 队列;  Step 301: Receive data from different users, and add all data to the data processing queue;
由于 P2P的传送方式优选对应于多个用户, 也就是说优选对应于多 个发送方和接收方, 在这里优选从不同的接收方接收数据, 并将所有数 据加入数据处理队列。  Since the P2P transmission mode preferably corresponds to a plurality of users, that is to say preferably corresponding to a plurality of senders and receivers, it is preferred here to receive data from different recipients and to add all data to the data processing queue.
步骤 302: 从数据处理队列中获取并解析数据, 对应于不同标识的 数据进行相应的处理。  Step 302: Acquire and parse the data from the data processing queue, and perform corresponding processing corresponding to the data of different identifiers.
在这里, 首先从数据处理队列中获取数据, 然后对数据进行解析以 得到相应的标识, 并且对标识所对应的数据进行分别的处理。 比如对视 频数据进行解码并显示、 对文本聊天数据需要在聊天框进行显示、 对图 片数据以相应的图片格式解析并显示等。 也就是说, 对不同的功能的数 据做不同的处理。  Here, data is first obtained from the data processing queue, and then the data is parsed to obtain a corresponding identifier, and the data corresponding to the identifier is separately processed. For example, the video data is decoded and displayed, the text chat data needs to be displayed in the chat box, the picture data is parsed and displayed in the corresponding picture format, and the like. In other words, different data is processed differently.
其中, 当接收方的数目至少为两个时, 每个接收方解析其所接收到 的传输数据以获取传输数据的标识, 并对标识相同的传输数据依据与标 识相对应的类型统一进行处理。  Wherein, when the number of the receivers is at least two, each receiver parses the received transmission data to obtain the identifier of the transmission data, and uniformly processes the transmission data with the same identifier according to the type corresponding to the identifier.
显然, 根据上述方法, 通过对 P2P多人音视频通道的重复利用, 可 以完成多用户多功能的系统, 比如在多人音视频聊天的同时进行多人文 本聊天。  Obviously, according to the above method, by reusing the P2P multi-person audio and video channel, a multi-user multi-function system can be completed, such as multi-person text chat while multi-person audio and video chat.
图 4为根据本发明实施例的多人音视频和文本聊天的示意图。 由图 4可见, 多个用户在进行多人音视频聊天的同时, 还能够进行文本聊天, 从而极大地促进了聊天的亲密感受, 并且不需要对现有服务器架构进行 改进, 而且还极大地节约了成本。  4 is a schematic diagram of multi-person audio and video and text chat according to an embodiment of the present invention. As can be seen from FIG. 4, a plurality of users can perform text chat while performing multi-person audio and video chat, thereby greatly promoting the intimate feeling of the chat, and does not need to improve the existing server architecture, and also greatly saves The cost.
另外, 当应用本发明到即时通讯应用中的多人聊天时, 由于利用的 是音视频通道来传送附加数据, 所以需要考虑附加数据对音视频通讯的 影响,优选不直接进行数据的发送和接收。为了保证音视频通讯的流畅, 需要有源源不断的数据流在音视频通道上进行传输, 因此在使用此通道 传输附加数据时就要把对音视频数据传输的影响降到最低, 使之不会对 音视频通讯的流畅度产生任何不好影响。 本发明优选对附加数据的传输 频率进行控制, 避免对音视频流畅度造成影响。 In addition, when applying the present invention to multi-person chat in an instant messaging application, since the audio and video channels are utilized to transmit additional data, it is necessary to consider additional data for audio and video communication. It is preferable that the transmission and reception of data are not directly performed. In order to ensure the smooth flow of audio and video communication, an active and continuous data stream is required to be transmitted on the audio and video channels. Therefore, when using this channel to transmit additional data, the impact on the transmission of audio and video data should be minimized, so that it will not be It has any bad influence on the smoothness of audio and video communication. The present invention preferably controls the transmission frequency of the additional data to avoid affecting the audio and video fluency.
当附加传输数据过大的时候, 不但要通过加入标识对数据进行分片 传输, 还要控制其传输的频率, 否则就有可能由于附加数据的大量传输 而导致音视频数据的阻塞, 从而影响音视频通讯的流畅性。  When the additional transmission data is too large, not only the data transmission is performed by adding the identifier, but also the frequency of the transmission is controlled. Otherwise, the audio and video data may be blocked due to the large amount of additional data transmission, thereby affecting the sound. The fluency of video communication.
因此, 本发明优选在发送传输数据之前, 发送方预先将各种类型的 传输数据等间隔混合。 由于数据发送队列的存在, 所以只要附加数据加 入数据发送队列的间隔是一定的, 则发送的时候按队列顺序取数据发送 的间隔也是一定的, 这样就可以忽略网络原因造成的网络传输波动。 所 以, 对于音视频数据而言, 加入数据发送队列的时候是连续加入的, 而 附加数据在加入数据发送队列的时候是等间隔插入的, 这样传输数据就 是等间隔混合的。 因此只要定期的从发送队列顺序获取数据进行发送, 就可以保证数据发送的时间间隔是一定的。  Therefore, the present invention preferably preliminarily mixes various types of transmission data at intervals before transmitting transmission data. Due to the existence of the data transmission queue, as long as the interval of adding data to the data transmission queue is constant, the interval for sending data in the order of the queue is also fixed when transmitting, so that the network transmission fluctuation caused by the network may be ignored. Therefore, for audio and video data, when the data transmission queue is added, it is continuously added, and the additional data is inserted at equal intervals when it is added to the data transmission queue, so that the transmission data is mixed at equal intervals. Therefore, as long as the data is sequentially sent from the sending queue for transmission, the time interval for data transmission is guaranteed to be constant.
在这里,在所述经过等间隔混合的传输数据中,可以每 N个音 /视频 数据间隔 M个附加数据, 其中 N为大于或等于 1的正整数, M也为大 于或等于 1的正整数。 本发明对 N和 M的取值并无限定, N的值既可 以大于 M, 也可以小于 M, 还可以等于 M。 比如, 当 N等于 3的时候, 可以每 3个音 /视频数据间隔 1个附加数据, 也可以每 3个音 /视频数据 间隔 2个附加数据,还可以每 3个音 /视频数据间隔 3个附加数据, 一般 选择每三个音视频数据插入一个附加数据。  Here, in the equally spaced mixed transmission data, M additional data may be spaced every N audio/video data, where N is a positive integer greater than or equal to 1, and M is also a positive integer greater than or equal to 1. . The present invention has no limitation on the values of N and M. The value of N can be greater than M, less than M, and equal to M. For example, when N is equal to 3, there may be 1 additional data for every 3 audio/video data intervals, or 2 additional data for every 3 audio/video data intervals, or 3 intervals for every 3 audio/video data. Additional data, generally choose to insert an additional data for every three audio and video data.
显然, 以上虽然以 N等于 3为例进行说明,但是本发明对 N的取值 并无任何限定。 图 5为根据本发明一实施例的发送队列示意图。 图 5中圆状数据为 音视频数据, 块状数据为附加数据, 由图 5可见, 每隔 3个音视频数据 等间隔插入 1个附加数据, 其中附加数据可以为电子文件、 即时通讯信 息 (文本聊天信息)等。 Obviously, although the above description is made by taking N equal to 3 as an example, the present invention does not limit the value of N. FIG. 5 is a schematic diagram of a transmission queue according to an embodiment of the invention. In Fig. 5, the circular data is audio and video data, and the block data is additional data. As can be seen from Fig. 5, one additional data is inserted at intervals of every three audio and video data, wherein the additional data can be electronic files, instant messaging information ( Text chat information) and so on.
图 6 为本发明实施例的基于 P2P传输数据系统的示范性结构示意 图。 如图 6所示, 该系统包括若干终端, 其中每一终端既可为发送方, 又可为接收方。 该系统包括:  FIG. 6 is a schematic diagram showing an exemplary structure of a P2P transmission data system according to an embodiment of the present invention. As shown in FIG. 6, the system includes a plurality of terminals, wherein each terminal can be either a sender or a receiver. The system includes:
发送方, 用于根据传输数据的类型对所述传输数据进行标识, 并基 于 P2P连接向接收方发送所述经过标识的传输数据, 其中传输数据的类 型至少为一种;  a sender, configured to identify the transmission data according to a type of the transmitted data, and send the identified transmission data to the receiver according to the P2P connection, where the type of the transmitted data is at least one type;
接收方, 用于解析传输数据以得到传输数据的标识, 并依据标识所 对应的类型对传输数据进行处理;  a receiving end, configured to parse the transmitted data to obtain an identifier of the transmitted data, and process the transmitted data according to the type corresponding to the identifier;
所述发送方和接收方之间的连接为 P2P连接。  The connection between the sender and the receiver is a P2P connection.
优选地, 所述发送方的数目至少为两个, 所述接收方的数目至少为 两个,  Preferably, the number of the senders is at least two, and the number of the receivers is at least two.
每个发送方, 用于根据传输数据的类型对其所发送的传输数据分别 进行标识, 其中各发送方对相同类型的传输数据采用相同的标识, 每个 发送方进一步用于基于所述 P2P连接向接收方发送所述经过标识的传输 数据;  Each sender is configured to separately identify the transmission data sent by the sender according to the type of the transmission data, where each sender uses the same identifier for the same type of transmission data, and each sender is further used to connect based on the P2P Transmitting the identified transmission data to a receiver;
每个接收方, 用于解析其所接收到的传输数据以获取传输数据的标 识, 并对标识相同的传输数据依据与标识相对应的类型统一进行处理。  Each receiver is configured to parse the transmission data it receives to obtain the identification of the transmission data, and uniformly process the transmission data with the same identification according to the type corresponding to the identification.
更加优选地, 所述传输数据的类型至少为两种, 所述发送方进一步 用于, 在发送传输数据之前将各种类型的传输数据等间隔混合。 其中经 过等间隔混合的传输数据包括音 /视频数据和附加数据, 并且每三个音 / 视频数据间隔一个附加数据。 由此可见, 应用本发明实施例以后, 可以在 P2P多人音视频通讯的 基础上, 对已有的音视频通道可以重复利用, 从而实现了无需服务器分 发的多人文本聊天、 多人文件共享等多人数据共享, 并且还可以保证音 视频通讯的流畅性。 More preferably, the type of transmission data is at least two, and the sender is further configured to mix the various types of transmission data equally at intervals before transmitting the transmission data. The transmission data that is mixed at equal intervals includes audio/video data and additional data, and an additional data is interposed every three audio/video data. It can be seen that after applying the embodiment of the present invention, the existing audio and video channels can be reused on the basis of P2P multi-person audio and video communication, thereby realizing multi-person text chat and multi-person file sharing without server distribution. Wait for multi-person data sharing, and also ensure the smoothness of audio and video communication.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的 保护范围。 凡在本发明的精神和原则之内, 所作的任何修改、等同替换、 改进等, 均应包含在本发明的保护范围之内。  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权利要求书 Claim
1、 一种基于点对点 P2P的数据传输方法, 预先在发送方和接收方 之间建立 P2P连接, 其特征在于, 该方法还包括:  A peer-to-peer P2P-based data transmission method, in which a P2P connection is established between a sender and a receiver, and the method further includes:
A、 发送方根据传输数据的类型对所述传输数据进行标识, 并基于 所述 P2P连接向接收方发送所述经过标识的传输数据, 其中传输数据的 类型至少为一种;  A. The sender identifies the transmission data according to the type of the transmission data, and sends the identified transmission data to the receiver according to the P2P connection, where the type of the transmission data is at least one type;
B、 接收方解析传输数据以获取传输数据的标识, 并依据标识所对 应的类型对传输数据进行处理。  B. The receiver parses the transmission data to obtain the identifier of the transmission data, and processes the transmission data according to the type corresponding to the identifier.
2、根据权利要求 1所述的数据传输方法, 其特征在于, 所述发送方 的数目至少为两个, 所述接收方的数目至少为两个,  The data transmission method according to claim 1, wherein the number of the senders is at least two, and the number of the receivers is at least two.
所述步骤 A包括: 每个发送方根据传输数据的类型对其所发送的传 输数据分别进行标识, 其中各发送方对相同类型的传输数据采用相同的 标识, 并且每个发送方基于 P2P连接向接收方发送所述经过标识的传输 数据;  The step A includes: each sender separately identifies the transmission data sent by the sender according to the type of the transmission data, wherein each sender uses the same identifier for the same type of transmission data, and each sender is based on the P2P connection. Receiving, by the receiver, the identified transmission data;
所述步骤 B为: 每个接收方解析其所接收到的传输数据以获取传输 数据的标识, 并对标识相同的传输数据依据与标识相对应的类型统一进 行处理。  The step B is: each receiver parses the received transmission data to obtain an identifier of the transmission data, and uniformly processes the transmission data with the same identifier according to the type corresponding to the identifier.
3、根据权利要求 1或 2所述的数据传输方法, 其特征在于, 所述传 输数据为音频数据、 视频数据、 电子文件、 即时通讯信息中的任一种或 其中多于一种的任意组合。  The data transmission method according to claim 1 or 2, wherein the transmission data is any one of audio data, video data, electronic file, instant messaging information, or any combination of more than one of .
4、根据权利要求 1或 2所述的数据传输方法, 其特征在于, 所述传 输数据的类型至少为两种, 该方法进一步包括: 在发送传输数据之前, 发送方预先将各种类型的传输数据等间隔混合;  The data transmission method according to claim 1 or 2, wherein the type of the transmission data is at least two, the method further comprising: transmitting, by the sender, various types of transmissions before transmitting the transmission data. Data is mixed at equal intervals;
步骤 A所述基于 P2P连接向接收方发送经过标识的传输数据为:基 于 P2P连接向接收方发送所述被等间隔混合的传输数据。 Step A, according to the P2P connection, sending the identified transmission data to the receiver as: The equally spaced mixed transmission data is transmitted to the receiver at the P2P connection.
5、根据权利要求 4所述的数据传输方法, 其特征在于, 所述经过等 间隔混合的传输数据包括音 /视频数据和附加数据。  The data transmission method according to claim 4, wherein the equally spaced mixed transmission data includes audio/video data and additional data.
6、根据权利要求 5所述的数据传输方法, 其特征在于, 在所述经过 等间隔混合的传输数据中, 每 N个音 /视频数据间隔 M个附加数据, 其 中 N为大于或等于 1的正整数, M为大于或等于 1的正整数。  The data transmission method according to claim 5, wherein in the equally spaced mixed transmission data, M additional data is spaced every N audio/video data, wherein N is greater than or equal to 1. A positive integer, M is a positive integer greater than or equal to 1.
7、根据权利要求 5或 6所述的数据传输方法, 其特征在于, 所述附 加数据为电子文件或即时通讯信息。  The data transmission method according to claim 5 or 6, wherein the additional data is an electronic file or instant messaging information.
8、 一种基于 P2P的数据传输系统, 其特征在于, 该系统包括: 发送方, 用于根据传输数据的类型对所述传输数据进行标识, 并基 于 P2P连接向接收方发送所述经过标识的传输数据, 其中传输数据的类 型至少为一种;  A P2P-based data transmission system, the system comprising: a sender, configured to identify the transmission data according to a type of transmission data, and send the identifier to the receiver based on the P2P connection Transmitting data, wherein the type of data transmitted is at least one;
接收方, 用于解析传输数据以得到传输数据的标识, 并依据标识所 对应的类型对传输数据进行处理;  a receiving end, configured to parse the transmitted data to obtain an identifier of the transmitted data, and process the transmitted data according to the type corresponding to the identifier;
所述发送方和接收方之间的连接为 P2P连接。  The connection between the sender and the receiver is a P2P connection.
9、 根据权利要求 8所述的基于 P2P的数据传输系统, 其特征在于, 所述发送方的数目至少为两个, 所述接收方的数目至少为两个,  The P2P-based data transmission system according to claim 8, wherein the number of the senders is at least two, and the number of the receivers is at least two.
每个发送方, 用于根据传输数据的类型对其所发送的传输数据分别 进行标识, 其中各发送方对相同类型的传输数据采用相同的标识, 每个 发送方进一步用于基于所述 P2P连接向接收方发送所述经过标识的传输 数据;  Each sender is configured to separately identify the transmission data sent by the sender according to the type of the transmission data, where each sender uses the same identifier for the same type of transmission data, and each sender is further used to connect based on the P2P Transmitting the identified transmission data to a receiver;
每个接收方, 用于解析其所接收到的传输数据以获取传输数据的标 识, 并对标识相同的传输数据依据与标识相对应的类型统一进行处理。  Each receiver is configured to parse the transmission data it receives to obtain the identification of the transmission data, and uniformly process the transmission data with the same identification according to the type corresponding to the identification.
10、根据权利要求 8所述的基于 P2P的数据传输系统,其特征在于, 所述传输数据的类型至少为两种, 所述发送方进一步用于, 在发送传输数据之前将各种类型的传输数 据等间隔混合。 The P2P-based data transmission system according to claim 8, wherein the type of the transmission data is at least two types. The sender is further configured to mix the various types of transmission data equally at intervals before transmitting the transmission data.
PCT/CN2007/070045 2006-05-29 2007-05-22 A method and system for data transmission based on peer to peer WO2007140721A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
BRPI0712694-8A BRPI0712694B1 (en) 2006-05-29 2007-05-22 peer-to-peer data transmission method and system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNB2006100806935A CN100518114C (en) 2006-05-29 2006-05-29 Point-to-point data transmission method and system
CN200610080693.5 2006-05-29

Publications (1)

Publication Number Publication Date
WO2007140721A1 true WO2007140721A1 (en) 2007-12-13

Family

ID=38801070

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2007/070045 WO2007140721A1 (en) 2006-05-29 2007-05-22 A method and system for data transmission based on peer to peer

Country Status (5)

Country Link
CN (1) CN100518114C (en)
BR (1) BRPI0712694B1 (en)
MY (1) MY169684A (en)
RU (1) RU2399160C1 (en)
WO (1) WO2007140721A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309233B (en) * 2008-06-04 2010-09-08 腾讯科技(深圳)有限公司 Method realizing TCP connection reusing in instant communication
CN101355588B (en) * 2008-09-08 2012-08-01 创新科存储技术(深圳)有限公司 Data transmission method and transmission terminal base on peer-to-peer network
CN101848269A (en) * 2009-03-26 2010-09-29 乐金电子(中国)研究开发中心有限公司 3G mobile phone and method thereof for transmitting video files
CN102082773B (en) * 2009-11-30 2014-03-19 北京广利核系统工程有限公司 Communication method based on inter-column security communication network protocol of reactor protection system
CN102255827B (en) * 2011-06-16 2014-06-25 北京奥米特科技有限公司 Video chatting method, device and system
CN104427289B (en) * 2013-09-02 2019-03-29 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN104468675B (en) * 2013-09-25 2019-06-11 中兴通讯股份有限公司 Data processing method and equipment
CN103986646A (en) * 2014-05-30 2014-08-13 Tcl集团股份有限公司 Message transmission method, system and terminal device
CN108616722B (en) * 2018-04-18 2021-02-26 中南大学 Embedded high-definition video acquisition and data stream transmission system
CN110730203A (en) * 2019-09-04 2020-01-24 华为技术有限公司 P2P communication method and device
CN113125849A (en) * 2021-04-06 2021-07-16 上海创能国瑞新能源科技股份有限公司 Method and device for processing data of intelligent electric meter

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1578278A (en) * 2003-07-01 2005-02-09 微软公司 Transport system for instant messaging
CN1625161A (en) * 2003-12-02 2005-06-08 腾讯科技(深圳)有限公司 Method and system of information playback in immediate communication

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1578278A (en) * 2003-07-01 2005-02-09 微软公司 Transport system for instant messaging
CN1625161A (en) * 2003-12-02 2005-06-08 腾讯科技(深圳)有限公司 Method and system of information playback in immediate communication

Also Published As

Publication number Publication date
RU2008150399A (en) 2010-07-10
CN101083576A (en) 2007-12-05
CN100518114C (en) 2009-07-22
BRPI0712694B1 (en) 2019-10-29
RU2399160C1 (en) 2010-09-10
BRPI0712694A2 (en) 2012-07-03
MY169684A (en) 2019-05-13

Similar Documents

Publication Publication Date Title
WO2007140721A1 (en) A method and system for data transmission based on peer to peer
JP4942936B2 (en) Method and system for group communication
JP5249763B2 (en) Multicast delivery of multimedia content on demand
KR100810759B1 (en) P2P File Transmission System and Method
US7921157B2 (en) Duplicating digital streams for digital conferencing using switching technologies
CN105493510B (en) Data communication system and method
US20070280230A1 (en) Method and system for service discovery across a wide area network
JP5678198B2 (en) Mobile Internet service realization method, gateway, proxy and system
Heinz et al. Priorities in stream transmission control protocol (sctp) multistreaming
WO2007068209A1 (en) A method, system and device for transmitting ims instant messages
CN113162989A (en) MQTT-Websocket-based message transceiving method
JP5172850B2 (en) Session-based communication
US20080025306A1 (en) Internet protocol television system, method for providing internet protocol multicast TV signal, TV transferring apparatus, and TV receiving apparatus
WO2013075492A1 (en) Method and system for message communication based on open service publishing platform
US8346941B2 (en) Method for transmitting data from and to a control device
JP2010500804A (en) A method for information diffusion in distributed networks
US20060031560A1 (en) Method and system for transferring a file between data processing devices using a communication or instant messaging program
TWI407727B (en) A Method and System of Data Transmission Based on Peer - to - Peer P2P
CN113572678A (en) Instant messaging method realized based on websocket
CN111225252B (en) PON gateway UPNP video live broadcast method based on openwrt system
WO2010045830A1 (en) Method and apparatus for implementing stream media service
Cui et al. Onechat: Enabling group chat and messaging in opportunistic networks
KR100621328B1 (en) Method and System for Providing Multimedia Streaming Service by Using Information on Multicasting
WO2008091156A1 (en) A method and device for transferring a message
CN116582521A (en) Multi-user video-end conference data processing system and method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 07721668

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 6345/CHENP/2008

Country of ref document: IN

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2008150399

Country of ref document: RU

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC.EPO FORM 1205A DATED:15.04.2009

122 Ep: pct application non-entry in european phase

Ref document number: 07721668

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: PI0712694

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20081128