CN105471841B - A kind of transmission method and device of the multi-service data based on MSRP agreements - Google Patents
A kind of transmission method and device of the multi-service data based on MSRP agreements Download PDFInfo
- Publication number
- CN105471841B CN105471841B CN201510777139.1A CN201510777139A CN105471841B CN 105471841 B CN105471841 B CN 105471841B CN 201510777139 A CN201510777139 A CN 201510777139A CN 105471841 B CN105471841 B CN 105471841B
- Authority
- CN
- China
- Prior art keywords
- data
- packet
- msrp
- equipment
- transmission
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M7/00—Arrangements for interconnection between switching centres
- H04M7/006—Networks other than PSTN/ISDN providing telephone service, e.g. Voice over Internet Protocol (VoIP), including next generation networks with a packet-switched transport layer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
- H04L65/1101—Session protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
- H04L65/1101—Session protocols
- H04L65/1104—Session initiation protocol [SIP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Multimedia (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Telephonic Communication Services (AREA)
Abstract
本发明公开了一种基于MSRP协议的多业务数据的传输方法及装置,应用于VoIP环境下,包括:预先对MSRP协议进行扩展,将发送请求包扩展为包含多种不同业务交互的扩展包;通过SIP协议建立第一设备到第二设备的MSRP链路;根据所述第一设备传输数据的扩展包中用于标识不同业务类型的数据,获取当前业务的类型;根据所述当前业务的类型以及交互方式,通过所述发送请求包中与所述当前业务的类型相对应的包,实现数据传输。本发明通过扩展MSRP协议和交互流程,使得基于MSRP应用能够支持短消息、文件等多种业务的传输,并且这些业务的传输可以在一次链接中完成,提高了网络的利用率和可靠性,能够改善用户体验。
The invention discloses a method and device for transmitting multi-service data based on the MSRP protocol, which is applied in the VoIP environment, including: extending the MSRP protocol in advance, and expanding the sending request packet into an extended packet including multiple different service interactions; Establish an MSRP link from the first device to the second device through the SIP protocol; obtain the type of the current service according to the data used to identify different service types in the extension packet of the data transmitted by the first device; according to the type of the current service And in an interactive manner, data transmission is realized through the packet corresponding to the type of the current service in the sending request packet. By extending the MSRP protocol and the interaction process, the present invention enables MSRP-based applications to support the transmission of multiple services such as short messages and files, and the transmission of these services can be completed in one link, which improves the utilization rate and reliability of the network, and can Improve user experience.
Description
技术领域technical field
本发明涉及数据传输技术领域,特别是涉及一种基于MSRP协议的多业务数据的传输方法及装置。The invention relates to the technical field of data transmission, in particular to a method and device for transmitting multi-service data based on the MSRP protocol.
背景技术Background technique
在软交换、SIP和IMS等主流的VoIP系统中,通常采用SIP+MSRP的方式实现数据业务的传输。这种方式在无线环境下的应用还存在欠缺与不足,缺点主要如下:In mainstream VoIP systems such as softswitch, SIP and IMS, SIP+MSRP is usually used to realize the transmission of data services. There are still deficiencies and deficiencies in the application of this method in the wireless environment. The main disadvantages are as follows:
(1)标准的MSRP是一个基于文本的内容交换协议,对二进制的数据业务的传输支持不足;(1) The standard MSRP is a text-based content exchange protocol, which lacks support for the transmission of binary data services;
(2)在无线环境下,由于网络传输资源有限,而MSRP是面向连接的交换协议,对于不同类型的业务传输需要建立多次连接。(2) In the wireless environment, because the network transmission resources are limited, and MSRP is a connection-oriented switching protocol, multiple connections need to be established for different types of service transmission.
鉴于此,提供一种基于MSRP协议的多业务数据的传输方法及装置是非常有必要的。In view of this, it is very necessary to provide a method and device for transmitting multi-service data based on the MSRP protocol.
发明内容Contents of the invention
本发明的目的是提供一种基于MSRP协议的多业务数据的传输方法及装置,以解决传统的SIP+MSRP的方式实现文本传输对二进制数据业务的支持不足,并且不同的数据业务传输需要建立多个MSRP链路。而在无线环境下,由于网络传输资源有限,若频繁地建立MSRP链路,造成网络开销较大,且用户体验较差的问题。The purpose of the present invention is to provide a method and device for transmitting multi-service data based on the MSRP protocol, so as to solve the problem that the traditional SIP+MSRP mode realizes that text transmission does not support binary data services, and different data service transmissions need to establish multiple MSRP links. However, in a wireless environment, due to limited network transmission resources, if MSRP links are frequently established, the network overhead will be large and the user experience will be poor.
为解决上述技术问题,本发明提供一种基于MSRP协议的多业务数据的传输方法,应用于VoIP环境下,包括:In order to solve the above technical problems, the present invention provides a method for transmitting multi-service data based on the MSRP protocol, which is applied in a VoIP environment, including:
预先对MSRP协议进行扩展,将发送请求包扩展为包含多种不同业务交互的扩展包;Extend the MSRP protocol in advance, and expand the send request packet into an extended packet containing a variety of different business interactions;
通过SIP协议建立第一设备到第二设备的MSRP链路;Establishing an MSRP link from the first device to the second device through the SIP protocol;
根据所述第一设备传输数据的扩展包中用于标识不同业务类型的数据,获取当前业务的类型;Acquiring the type of the current service according to the data used to identify different service types in the extension packet of the data transmitted by the first device;
根据所述当前业务的类型以及交互方式,通过所述发送请求包中与所述当前业务的类型相对应的包,实现数据传输。According to the type of the current service and the interaction mode, the data transmission is realized through the packet corresponding to the type of the current service in the sending request packet.
可选地,所述预先对MSRP协议进行扩展,将发送请求包扩展为包含多种不同业务交互的扩展包包括:Optionally, said extending the MSRP protocol in advance, and extending the sending request packet to include multiple different service interaction extension packets includes:
预先对MSRP协议进行扩展,将所述发送请求包由原始包扩展为包含NOTIFY包、DATA包、REQUEST包以及REPLY包四种类型的扩展包。The MSRP protocol is extended in advance, and the sending request packet is expanded from the original packet to four types of extended packets including NOTIFY packet, DATA packet, REQUEST packet and REPLY packet.
可选地,所述根据所述当前业务的类型以及交互方式,通过所述发送请求包中与所述当前业务的类型相对应的包,实现数据传输包括:Optionally, according to the type of the current service and the interaction mode, implementing the data transmission through the packet corresponding to the type of the current service in the sending request packet includes:
当所述当前业务的交互方式为短消息交互时,所述第一设备通过所述原始包直接向所述第二设备发送短消息;所述第二设备通过所述原始包直接向所述第一设备回复所述短消息。When the interaction mode of the current service is short message interaction, the first device directly sends a short message to the second device through the original packet; the second device directly sends a short message to the second device through the original packet A device replies to the short message.
可选地,所述根据所述当前业务的类型以及交互方式,通过所述发送请求包中与所述当前业务的类型相对应的包,实现数据传输包括:Optionally, according to the type of the current service and the interaction mode, implementing the data transmission through the packet corresponding to the type of the current service in the sending request packet includes:
当所述当前业务的交互方式为文件PULL方式时,所述第一设备向所述第二设备发送所述REQUEST包,请求指定的文件或数据;When the interaction mode of the current service is a file PULL mode, the first device sends the REQUEST packet to the second device to request a specified file or data;
所述第二设备接收请求后,查找本地是否有所述文件或数据,并通过所述NOTIFY包告知所述第一设备;若所述文件或数据存在,则在所述NOTIFY包中填写所述文件或数据的属性;After the second device receives the request, it searches whether there is the file or data locally, and informs the first device through the NOTIFY package; if the file or data exists, fills in the NOTIFY package with the Attributes of files or data;
所述第一设备接收到所述第二设备发送的NOTIFY包后,通过所述REPLY包告知所述第二设备开始发送;After receiving the NOTIFY packet sent by the second device, the first device notifies the second device to start sending through the REPLY packet;
所述第二设备向所述第一设备发送请求的文件或数据,直至发送完成。The second device sends the requested file or data to the first device until the sending is completed.
可选地,所述根据所述当前业务的类型以及交互方式,通过所述发送请求包中与所述当前业务的类型相对应的包,实现数据传输包括:Optionally, according to the type of the current service and the interaction mode, implementing the data transmission through the packet corresponding to the type of the current service in the sending request packet includes:
当所述当前业务的交互方式为PUSH方式时,所述第一设备向所述第二设备发送所述NOTIFY包,告知将要发送的文件或数据的属性;When the interaction mode of the current service is the PUSH mode, the first device sends the NOTIFY packet to the second device to inform the attribute of the file or data to be sent;
所述第二设备收到通知后,判断是否接收来自所述第一设备的文件或数据,通过所述REPLY包返回;After the second device receives the notification, it judges whether to receive the file or data from the first device, and returns through the REPLY packet;
所述第一设备接收到所述第二设备发送的NOTIFY包后,向所述第二设备发送所述文件或数据,直至发送完成。After receiving the NOTIFY packet sent by the second device, the first device sends the file or data to the second device until the sending is completed.
可选地,在传输完所有的文件或数据之后,还包括:Optionally, after transferring all files or data, further include:
所述第一设备通过SIP请求断开所述MSRP链路。The first device requests to disconnect the MSRP link through SIP.
本发明还提供了一种基于MSRP协议的多业务数据的传输装置,应用于VoIP环境下,包括:The present invention also provides a multi-service data transmission device based on the MSRP protocol, which is applied in a VoIP environment, including:
扩展模块,用于预先对MSRP协议进行扩展,将发送请求包扩展为包含多种不同业务交互的扩展包;The extension module is used to extend the MSRP protocol in advance, and expand the sending request packet into an extension packet including a variety of different business interactions;
建立模块,用于通过SIP协议建立第一设备到第二设备的MSRP链路;An establishment module, configured to establish an MSRP link from the first device to the second device through the SIP protocol;
获取模块,用于根据所述第一设备传输数据的扩展包中用于标识不同业务类型的数据,获取当前业务的类型;An acquisition module, configured to acquire the type of the current service according to the data used to identify different service types in the extension packet of the data transmitted by the first device;
交互模块,用于根据所述当前业务的类型以及交互方式,通过所述发送请求包中与所述当前业务的类型相对应的包,实现数据传输。The interaction module is configured to implement data transmission through the packet corresponding to the type of the current service in the sending request packet according to the type of the current service and the interaction mode.
可选地,所述扩展模块具体用于预先对MSRP协议进行扩展,将所述发送请求包由原始包扩展为包含NOTIFY包、DATA包、REQUEST包以及REPLY包四种类型的扩展包。Optionally, the extension module is specifically configured to extend the MSRP protocol in advance, and expand the sending request packet from the original packet to four types of extension packets including NOTIFY packet, DATA packet, REQUEST packet and REPLY packet.
可选地,还包括:Optionally, also include:
断开模块,用于在传输完所有的文件或数据之后,通过SIP请求断开所述MSRP链路。A disconnection module, configured to request disconnection of the MSRP link through SIP after all files or data are transmitted.
本发明所提供的基于MSRP协议的多业务数据的传输方法及装置,预先对MSRP协议进行扩展,将发送请求包扩展为包含多种不同业务交互的扩展包;通过SIP协议建立第一设备到第二设备的MSRP链路之后;根据第一设备传输数据的扩展包中用于标识不同业务类型的数据,获取当前业务的类型;根据当前业务的类型以及交互方式,通过发送请求包中与所述当前业务的类型相对应的包,从而实现数据的传输。可见,本发明在遵循IMS和SIP协议相关标准的前提下,通过扩展MSRP协议和交互流程,使得基于MSRP应用能够支持短消息、文件等多种业务的传输,并且这些业务的传输可以在一次链接中完成,提高了网络的利用率和可靠性,能够改善用户体验。The MSRP protocol-based multi-service data transmission method and device provided by the present invention extend the MSRP protocol in advance, and expand the sending request packet into an extended packet containing multiple different service interactions; establish the first device to the second device through the SIP protocol After the MSRP link of the second device; according to the data used to identify different service types in the extension packet of the data transmitted by the first device, obtain the type of the current service; according to the type of the current service and the interaction mode, send the request packet with the The package corresponding to the type of current business, so as to realize the transmission of data. It can be seen that, under the premise of following the relevant standards of the IMS and SIP protocols, by extending the MSRP protocol and the interaction process, the MSRP-based application can support the transmission of multiple services such as short messages and files, and the transmission of these services can be linked in one time. It improves the utilization rate and reliability of the network, and can improve the user experience.
附图说明Description of drawings
图1为本发明所提供的基于MSRP协议的多业务数据的传输方法的一种具体实施方式的流程图;Fig. 1 is the flow chart of a kind of embodiment of the transmission method of multi-service data based on MSRP protocol provided by the present invention;
图2为本发明所提供的基于MSRP协议的多业务数据的传输方法的另一种具体实施方式的流程图;Fig. 2 is the flow chart of another embodiment of the transmission method of multi-service data based on MSRP protocol provided by the present invention;
图3为使用扩展MSRP协议后的会话流程示意图;FIG. 3 is a schematic diagram of a session flow after using the extended MSRP protocol;
图4为本发明所提供的基于MSRP协议的多业务数据的传输方法的另一种具体实施方式中短消息交互方式的过程流程图;Fig. 4 is the process flowchart of short message interaction mode in another kind of embodiment of the transmission method of multi-service data based on MSRP protocol provided by the present invention;
图5为本发明所提供的基于MSRP协议的多业务数据的传输方法的另一种具体实施方式中文件PULL方式的过程流程图;Fig. 5 is the process flowchart of the file PULL mode in another embodiment of the transmission method of multi-service data based on MSRP protocol provided by the present invention;
图6为本发明所提供的基于MSRP协议的多业务数据的传输方法的另一种具体实施方式中文件PUSH方式的过程流程图;Fig. 6 is the process flowchart of the file PUSH mode in another embodiment of the method for transmitting multi-service data based on the MSRP protocol provided by the present invention;
图7为本发明所提供的基于MSRP协议的多业务数据的传输装置的一种具体实施方式的结构框图。FIG. 7 is a structural block diagram of a specific embodiment of an apparatus for transmitting multi-service data based on the MSRP protocol provided by the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明所提供的基于MSRP协议的多业务数据的传输方法的一种具体实施方式的流程图如图1所示,该方法具体应用于VoIP环境下,可以包括:A flow chart of a specific embodiment of the method for transmitting multi-service data based on the MSRP protocol provided by the present invention is shown in Figure 1, the method is specifically applied in the VoIP environment, and may include:
步骤S101:预先对MSRP协议进行扩展,将发送请求包扩展为包含多种不同业务交互的扩展包;Step S101: Extending the MSRP protocol in advance, expanding the sending request packet into an extended packet containing multiple different business interactions;
步骤S102:通过SIP协议建立第一设备到第二设备的MSRP链路;Step S102: establishing an MSRP link from the first device to the second device through the SIP protocol;
步骤S103:根据所述第一设备传输数据的扩展包中用于标识不同业务类型的数据,获取当前业务的类型;Step S103: Obtain the type of the current service according to the data used to identify different service types in the extension packet of the data transmitted by the first device;
步骤S104:根据所述当前业务的类型以及交互方式,通过所述发送请求包中与所述当前业务的类型相对应的包,实现数据传输。Step S104: According to the type of the current service and the interaction mode, realize data transmission through the packet corresponding to the type of the current service in the sending request packet.
本发明所提供的基于MSRP协议的多业务数据的传输方法,预先对MSRP协议进行扩展,将发送请求包扩展为包含多种不同业务交互的扩展包;通过SIP协议建立第一设备到第二设备的MSRP链路之后;根据第一设备传输数据的扩展包中用于标识不同业务类型的数据,获取当前业务的类型;根据当前业务的类型以及交互方式,通过发送请求包中与所述当前业务的类型相对应的包,从而实现数据的传输。可见,本发明在遵循IMS和SIP协议相关标准的前提下,通过扩展MSRP协议和交互流程,使得基于MSRP应用能够支持短消息、文件等多种业务的传输,并且这些业务的传输可以在一次链接中完成,提高了网络的利用率和可靠性,能够改善用户体验。The multi-service data transmission method based on the MSRP protocol provided by the present invention extends the MSRP protocol in advance, expands the sending request packet into an extended packet containing multiple different service interactions; establishes the first device to the second device through the SIP protocol After the MSRP link; according to the data used to identify different service types in the extension packet of the data transmitted by the first device, the type of the current service is obtained; according to the type of the current service and the interaction method, by sending The corresponding package of the type, so as to realize the transmission of data. It can be seen that, under the premise of following the relevant standards of the IMS and SIP protocols, by extending the MSRP protocol and the interaction process, the MSRP-based application can support the transmission of multiple services such as short messages and files, and the transmission of these services can be linked in one time. It improves the utilization rate and reliability of the network, and can improve the user experience.
本发明所提供的基于MSRP协议的多业务数据的传输方法的另一种具体实施方式的流程图如图2所示,该方法包括:The flow chart of another embodiment of the method for transmitting multi-service data based on the MSRP protocol provided by the present invention is shown in Figure 2, and the method includes:
步骤S201:预先对MSRP协议进行扩展,将发送请求包由原始包扩展为包含NOTIFY包、DATA包、REQUEST包以及REPLY包四种类型的扩展包;Step S201: Extend the MSRP protocol in advance, expand the sending request packet from the original packet to four types of extended packets including NOTIFY packet, DATA packet, REQUEST packet and REPLY packet;
步骤S202:通过SIP协议建立第一设备到第二设备的MSRP链路;Step S202: establishing an MSRP link from the first device to the second device through the SIP protocol;
步骤S203:根据第一设备传输数据的扩展包中用于标识不同业务类型的数据,获取当前业务的类型;Step S203: Obtain the type of the current service according to the data used to identify different service types in the extension packet of the data transmitted by the first device;
步骤S204:根据当前业务的类型以及交互方式,通过发送请求包中与当前业务的类型相对应的包,实现数据传输。Step S204: According to the type of the current service and the interaction mode, the data transmission is realized by sending the packet corresponding to the type of the current service in the request packet.
具体地,为了兼容MSRP协议,扩展MSRP协议将扩展部分放入内容当中,通过将Content-Type字段定义为“application/cdcf”,来标示扩展包。扩展后的SEND请求包分为NOTIFY、DATA、REQUEST、REPLY四种类型的包,通过四种包的交互实现不同业务的交互。图3为使用扩展MSRP协议后的会话流程示意图。表1为扩展MSRP协议新增的字段。Specifically, in order to be compatible with the MSRP protocol, the extended MSRP protocol puts the extension part into the content, and defines the Content-Type field as "application/cdcf" to indicate the extension package. The extended SEND request packet is divided into four types of packets: NOTIFY, DATA, REQUEST, and REPLY. The interaction of different services is realized through the interaction of the four types of packets. FIG. 3 is a schematic diagram of a session flow after using the extended MSRP protocol. Table 1 shows the newly added fields of the extended MSRP protocol.
表1Table 1
在本实施例中,扩展MSRP协议的SEND请求包分为原始包、NOTIFY、DATA、REQUEST、REPLY 5种类型的包,通过5种包的交互实现不同业务的交互。按照业务类型的以及交互方式的不同,将交互过程分为以下三种。In this embodiment, the SEND request packet of the extended MSRP protocol is divided into five types of packets: original packet, NOTIFY, DATA, REQUEST, and REPLY, and the interaction of different services is realized through the interaction of the five types of packets. According to the different business types and interaction methods, the interaction process is divided into the following three types.
(一)短消息交互方式(1) Short message interaction mode
当前业务的交互方式为短消息交互时,第一设备通过原始包直接向第二设备发送短消息;第二设备通过所述原始包直接向所述第一设备回复所述短消息。When the current service interaction mode is short message interaction, the first device directly sends a short message to the second device through the original packet; the second device directly replies the short message to the first device through the original packet.
具体交互过程的流程图如图4所示,其中A用于表示第一设备,B用于表示第二设备,该过程包括:The flow chart of the specific interaction process is shown in Figure 4, where A is used to represent the first device, and B is used to represent the second device, and the process includes:
步骤S301:通过SIP协议建立A到B的MSRP链路;Step S301: establishing an MSRP link from A to B through the SIP protocol;
步骤S302:A通过原始包直接向B发送短消息;Step S302: A directly sends a short message to B through the original packet;
步骤S303:B通过原始包直接向A回复短消息;Step S303: B directly replies the short message to A through the original packet;
步骤S304:循环执行步骤S302~S303,直到会话结束;Step S304: cyclically execute steps S302-S303 until the session ends;
步骤S305:通过SIP请求断开MSRP链路,结束会话。Step S305: request to disconnect the MSRP link through SIP, and end the session.
(二)文件PULL方式(2) File PULL method
当前业务的交互方式为文件PULL方式时,第一设备向第二设备发送所述REQUEST包,请求指定的文件或数据;第二设备接收请求后,查找本地是否有所述文件或数据,并通过NOTIFY包告知所述第一设备;若文件或数据存在,则在NOTIFY包中填写所述文件或数据的属性;第一设备接收到第二设备发送的NOTIFY包后,通过REPLY包告知第二设备开始发送;第二设备向第一设备发送请求的文件或数据,直至发送完成。When the interaction mode of the current business is the file PULL mode, the first device sends the REQUEST packet to the second device to request the specified file or data; after receiving the request, the second device checks whether the file or data exists locally, and passes The NOTIFY packet informs the first device; if the file or data exists, fill in the attributes of the file or data in the NOTIFY packet; after the first device receives the NOTIFY packet sent by the second device, it notifies the second device through the REPLY packet Start sending; the second device sends the requested file or data to the first device until the sending is completed.
具体交互过程的流程图如图5所示,包括:The flow chart of the specific interaction process is shown in Figure 5, including:
步骤S401:通过SIP协议建立A到B的MSRP链路;Step S401: establishing an MSRP link from A to B through the SIP protocol;
步骤S402:A向B发送REQUEST包,请求指定的文件或数据;Step S402: A sends a REQUEST packet to B, requesting a specified file or data;
步骤S403:B收到REQUEST后,查找本地是否有该文件或数据,通过NOTIFY包告知A。如果文件或数据存在的话,会在NOTIFY中填写文件或数据的属性。Step S403: After receiving the REQUEST, B checks whether the file or data exists locally, and informs A through a NOTIFY packet. If the file or data exists, the attributes of the file or data will be filled in NOTIFY.
步骤S404:A收到B的NOTIFY包后,通过REPLY告知B开始发送;Step S404: After receiving B's NOTIFY packet, A notifies B to start sending via REPLY;
步骤S405:B向A发送A请求的文件或数据,直到发送完成;Step S405: B sends the file or data requested by A to A until the sending is completed;
步骤S406:循环执行步骤S402~S405过程,直到传输完所有的文件或数据;Step S406: cyclically execute steps S402-S405 until all files or data are transferred;
步骤S407:A通过SIP请求断开MSRP链路,结束会话。Step S407: A requests to disconnect the MSRP link through SIP, and ends the session.
(三)文件PUSH方式(3) File PUSH method
当前业务的交互方式为PUSH方式时,第一设备向第二设备发送NOTIFY包,告知将要发送的文件或数据的属性;第二设备收到通知后,判断是否接收来自第一设备的文件或数据,通过REPLY包返回;第一设备接收到第二设备发送的NOTIFY包后,向第二设备发送文件或数据,直至发送完成。When the interaction mode of the current business is PUSH, the first device sends a NOTIFY packet to the second device to inform the attributes of the file or data to be sent; after receiving the notification, the second device judges whether to receive the file or data from the first device , return through the REPLY packet; after receiving the NOTIFY packet sent by the second device, the first device sends the file or data to the second device until the sending is completed.
具体交互过程的流程图如图6所示,包括:The flowchart of the specific interaction process is shown in Figure 6, including:
步骤S501:通过SIP协议建立A到B的MSRP链路;Step S501: establishing an MSRP link from A to B through the SIP protocol;
步骤S502:A向B发送NOTIFY包,告知将要发送的文件或数据的属性;Step S502: A sends a NOTIFY packet to B, informing the attributes of the file or data to be sent;
步骤S503:B收到NOTIFY后,决定是否接受来自A的数据或文件,通过REPLY包返回。Step S503: After receiving the NOTIFY, B decides whether to accept the data or file from A, and returns through the REPLY packet.
步骤S504:A收到B的NOTIFY包后,如果得知B准备就绪,向B发送数据或文件,直到发送完成;Step S504: After receiving B's NOTIFY packet, if A knows that B is ready, send data or files to B until the sending is completed;
步骤S505:循环执行步骤S502~S504过程,直到传输完所有的文件或数据;Step S505: cyclically execute steps S502-S504 until all files or data are transferred;
步骤S506:A通过SIP请求断开MSRP链路,结束会话。Step S506: A requests to disconnect the MSRP link through SIP, and ends the session.
本发明通过提供一种在无线VoIP环境下基于MSRP协议的多业务数据的传输方法,该方法在应用层提出了一种机制,在遵循IMS和SIP协议相关标准的前提下,通过扩展MSRP协议和交互流程,使得基于MSRP应用可支持短消息、文件等多种业务的传输,并且这些业务的传输可以在一次链接中完成,可以提高网络的利用率和可靠性,改善用户体验。The present invention provides a method for transmitting multi-service data based on the MSRP protocol in a wireless VoIP environment. The method proposes a mechanism at the application layer. On the premise of following the relevant standards of the IMS and SIP protocols, by extending the MSRP protocol and The interactive process enables MSRP-based applications to support the transmission of multiple services such as short messages and files, and the transmission of these services can be completed in one link, which can improve network utilization and reliability, and improve user experience.
本发明所提供的基于MSRP协议的多业务数据的传输装置的一种具体实施方式的结构框图如图7所示,该装置应用于VoIP环境下,包括:A structural block diagram of a specific embodiment of the multi-service data transmission device based on the MSRP protocol provided by the present invention is shown in Figure 7. The device is applied in a VoIP environment and includes:
扩展模块100,用于预先对MSRP协议进行扩展,将发送请求包扩展为包含多种不同业务交互的扩展包;The extension module 100 is used to extend the MSRP protocol in advance, and expand the sending request packet into an extension packet including multiple different business interactions;
建立模块200,用于通过SIP协议建立第一设备到第二设备的MSRP链路;An establishment module 200, configured to establish an MSRP link from the first device to the second device through the SIP protocol;
获取模块300,用于根据所述第一设备传输数据的扩展包中用于标识不同业务类型的数据,获取当前业务的类型;An acquisition module 300, configured to acquire the type of the current service according to the data used to identify different service types in the extension packet of the data transmitted by the first device;
交互模块400,用于根据所述当前业务的类型以及交互方式,通过所述发送请求包中与所述当前业务的类型相对应的包,实现数据传输。The interaction module 400 is configured to realize data transmission through the packet corresponding to the type of the current service in the sending request packet according to the type of the current service and the interaction mode.
在上述实施例的基础上,本发明所提供的基于MSRP协议的多业务数据的传输装置还可以进一步包括:On the basis of the foregoing embodiments, the device for transmitting multi-service data based on the MSRP protocol provided by the present invention may further include:
断开模块,用于在传输完所有的文件或数据之后,通过SIP请求断开所述MSRP链路。A disconnection module, configured to request disconnection of the MSRP link through SIP after all files or data are transmitted.
本发明所提供的基于MSRP协议的多业务数据的传输装置与上述方法相对应,在此不再赘述。The device for transmitting multi-service data based on the MSRP protocol provided by the present invention corresponds to the above method, and will not be repeated here.
综上,MSRP协议已经成为IMS中面向连接的数据应用的标准,然而在无线网络尤其是在网络质量相对差的环境中,IMS中基于MSRP的数据应用的可用性大大降低。本发明针对这个问题,在应用层提出了一种机制,结合MSRP协议,通过修改相关协议和交互流程,在遵循IMS和SIP协议相关标准的前提下,使得基于MSRP应用可支持短消息、文件等多种业务的传输。To sum up, the MSRP protocol has become the standard for connection-oriented data applications in IMS. However, in wireless networks, especially in environments with relatively poor network quality, the availability of MSRP-based data applications in IMS is greatly reduced. Aiming at this problem, the present invention proposes a mechanism in the application layer, combined with the MSRP protocol, by modifying the relevant protocols and interaction processes, and under the premise of following the relevant standards of the IMS and SIP protocols, the MSRP-based applications can support short messages, files, etc. Transmission of various services.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same or similar parts of each embodiment can be referred to each other.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510777139.1A CN105471841B (en) | 2015-11-12 | 2015-11-12 | A kind of transmission method and device of the multi-service data based on MSRP agreements |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510777139.1A CN105471841B (en) | 2015-11-12 | 2015-11-12 | A kind of transmission method and device of the multi-service data based on MSRP agreements |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105471841A CN105471841A (en) | 2016-04-06 |
| CN105471841B true CN105471841B (en) | 2018-09-28 |
Family
ID=55609112
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510777139.1A Active CN105471841B (en) | 2015-11-12 | 2015-11-12 | A kind of transmission method and device of the multi-service data based on MSRP agreements |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105471841B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112243012B (en) * | 2019-07-16 | 2023-06-30 | 中国移动通信有限公司研究院 | Offline message transmission method and device, server and terminal |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101300797A (en) * | 2005-09-30 | 2008-11-05 | 诺基亚公司 | Method and apparatus for instant messaging |
| CN101778056A (en) * | 2009-12-25 | 2010-07-14 | 北京邮电大学 | Processing method and system for meeting history record fusing message business and |
| CN102045242A (en) * | 2009-10-21 | 2011-05-04 | 华为技术有限公司 | Network communication method and network node equipment |
-
2015
- 2015-11-12 CN CN201510777139.1A patent/CN105471841B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101300797A (en) * | 2005-09-30 | 2008-11-05 | 诺基亚公司 | Method and apparatus for instant messaging |
| CN102045242A (en) * | 2009-10-21 | 2011-05-04 | 华为技术有限公司 | Network communication method and network node equipment |
| CN101778056A (en) * | 2009-12-25 | 2010-07-14 | 北京邮电大学 | Processing method and system for meeting history record fusing message business and |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105471841A (en) | 2016-04-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP2342883B1 (en) | File transfer in conference services | |
| CN102664899B (en) | A kind of method for processing business, Apparatus and system | |
| JP4673369B2 (en) | Method and apparatus for providing correlation means in a hybrid communication network | |
| CN107113223B (en) | Negotiation of message block sizes for message session relay protocol sessions | |
| CN104125145A (en) | Web browser based communication method, web browser based communication equipment and web browser based communication system | |
| WO2023071656A1 (en) | Information transmission method and apparatus | |
| CN106470222A (en) | A kind of document transmission method, device and application server | |
| CN102412875B (en) | File sending and receiving method and device as well as file transmission method and system | |
| CN105207860A (en) | Business acceleration system and method | |
| CN107786509A (en) | Conversation message processing method and relevant apparatus | |
| WO2007112640A1 (en) | A method and an apparatus for replacing the session id, an application server and a method for replacing the session | |
| US7899058B2 (en) | Using a hash value as a pointer to an application class in a communications device | |
| EP2987295B1 (en) | Local control of additional media session for a packet based call | |
| CN105897853A (en) | Peer-to-peer network connection method and device | |
| CN102215450B (en) | The transmission method of stationkeeping ability information and transmission system | |
| US20130077618A1 (en) | Expeditious resource reservation protocol | |
| CN105471841B (en) | A kind of transmission method and device of the multi-service data based on MSRP agreements | |
| CN102355653B (en) | Inter-terminal communication method, control equipment, user equipment, base station and network system | |
| CN102271320B (en) | Service negotiating method and system | |
| US20090248810A1 (en) | Systems and methods for querying status of peer-to-peer multimedia connections in communication systems | |
| CN101471954A (en) | Method for implementing network service, network service entity and intelligent network system | |
| CN109120578A (en) | A kind of method and device for realizing link connection processing | |
| WO2011100930A2 (en) | Method and device for transmitting and receiving notification message for presence service | |
| WO2018133542A1 (en) | File transmission method, system and apparatus, and electronic device, and computer storage medium | |
| US20170311135A1 (en) | Control Signaling Transmission Method in MCPTT Architecture and Related Device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |