[go: up one dir, main page]

WO2012089009A1 - Method, device, and system for transferring voice packet through multiple paths - Google Patents

Method, device, and system for transferring voice packet through multiple paths Download PDF

Info

Publication number
WO2012089009A1
WO2012089009A1 PCT/CN2011/083822 CN2011083822W WO2012089009A1 WO 2012089009 A1 WO2012089009 A1 WO 2012089009A1 CN 2011083822 W CN2011083822 W CN 2011083822W WO 2012089009 A1 WO2012089009 A1 WO 2012089009A1
Authority
WO
WIPO (PCT)
Prior art keywords
path
peer device
negotiation
media stream
information
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.)
Ceased
Application number
PCT/CN2011/083822
Other languages
French (fr)
Chinese (zh)
Inventor
孟斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of WO2012089009A1 publication Critical patent/WO2012089009A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information

Definitions

  • the present invention relates to the field of communications, and in particular, to a method, device, and system for transmitting voice messages in multiple paths. Background technique
  • the prior art fully utilizes the multi-path of the bearer network to ensure that the accessed voice service is guaranteed by QoS (Quality of Service), and when the voice is transmitted through the multipath, the signaling is first adopted.
  • the face exchange determines an RTP (Rea lt ime Transpor t Protocol) / RTCP (RTP Cont rol Protoco l, RTP Control Protocol) flow, and then negotiates another RTP/RTCP through the extension header of the RTP/RTCP flow.
  • Stream such a stream will evolve into two streams, that is, to achieve dual-issue selection.
  • the prior art has at least the following disadvantages: When transmitting voice packets by using multiple paths, if it is ensured that the accessed voice service is guaranteed by QoS, it is necessary to ensure that two independent paths are finally obtained.
  • the prior art cannot determine whether the obtained path is independent; and the dual-selection mode cannot satisfy all scenarios, and in an area where the bandwidth is not rich, it may only need to maintain one RTP stream if the originally established RTP path is If the fault occurs, it will affect the establishment of the new path. In severe cases, the establishment of the path will completely fail, and thus the QoS cannot be guaranteed. Summary of the invention
  • the embodiment of the present invention provides a method, device, and system for transmitting a voice message by using multiple paths.
  • the technical solution is as follows: On the one hand, a method for transmitting a voice message by using a multi-path is provided, the method includes: sending path negotiation information to a peer device, where the path negotiation information carries at least one address and an interface position. Information and media stream status request information;
  • the voice message is transmitted to the peer device by using one path or two paths.
  • a device for transmitting a voice message by using a multi-path includes:
  • a sending module configured to send path negotiation information to the peer device, where the path negotiation information carries at least one address, interface location information, and media stream state requirement information;
  • a receiving module configured to receive a negotiation result returned by the peer device, where the negotiation result includes a media stream state and a path address determined by the peer device according to the path negotiation information, where the media stream state is a single One of streaming, single-stream backup, and dual-issue selection;
  • a transmitting module configured to select, according to the negotiation result received by the receiving module, to transmit a voice message to the peer device by using one path or two paths.
  • Another device for transmitting a voice message by using a multi-path comprising:
  • a receiving module configured to receive path negotiation information sent by the peer device, where the path negotiation information carries at least one address, interface location information, and media stream state requirement information;
  • a determining module configured to determine a media stream state and a path address according to the path negotiation information received by the receiving module, where the media stream state is one of a single stream, a single stream backup, and a dual-issue selection; And the path of the media stream determined by the determining module and the path address thereof are returned to the peer device as a negotiation result;
  • a transmitting module configured to transmit a voice message to the peer device by using one path or two paths selected by the peer device.
  • a system for multi-path transmission of voice messages comprising: a first device and a Two devices;
  • the first device is the device of the first type of multi-path transmission voice message
  • the second device is another device for transmitting voice messages in multiple paths as described above.
  • the peer device By sending path negotiation information to the peer device to perform path negotiation with the peer device and adding interface location information to the path negotiation information, the peer device can allocate addresses in the same domain or plane, thus ensuring that the new path is used differently.
  • the path ensures that the accessed voice service is guaranteed by QoS.
  • the peer device determines the media stream state according to the call situation, thereby satisfying the scenario requirement.
  • FIG. 1 is a flowchart of a method for transmitting a voice message by using a multi-path according to a first embodiment of the present invention
  • FIG. 2 is a flowchart of a method for transmitting a voice message by using a multi-path according to Embodiment 2 of the present invention
  • FIG. 4 is a schematic diagram of a device structure for transmitting a voice message by using a multi-path according to Embodiment 4 of the present invention
  • FIG. 5 is a schematic diagram of another multi-path transmission according to Embodiment 4 of the present invention; Schematic diagram of the structure of a voice message;
  • FIG. 6 is a schematic structural diagram of a device for transmitting a multi-path voice message according to Embodiment 5 of the present invention
  • FIG. 7 is a schematic diagram of a device structure for transmitting a multi-path voice message according to Embodiment 5 of the present invention
  • FIG. 8 is a schematic structural diagram of a system for transmitting a multi-path voice message according to Embodiment 6 of the present invention. detailed description
  • Embodiment 1 provides a method for transmitting voice packets by using multiple paths. Referring to FIG. 1, the process is specifically as follows:
  • path negotiation information to the peer device, where the path negotiation information carries at least one address, interface location information, and media stream state requirement information.
  • the negotiation result includes a media stream state and a path address determined by the peer device according to the path negotiation information, where the media stream state is a single stream, a single stream backup, and a dual-issue selection.
  • the voice message is transmitted to the peer device through one path or two paths.
  • the sending the path negotiation information to the peer device includes:
  • the path negotiation information is carried in the extended signaling parameter and sent to the peer device, or the path negotiation information is carried in the voice message and sent to the peer device.
  • the voice message is transmitted to the peer device through one path or two paths, including:
  • the path is selected in the two paths according to the negotiation result, and the voice message is transmitted to the peer device through the selected path.
  • the unused path is closed.
  • the voice message is selected to be transmitted to the peer device by using one path or two paths according to the negotiation result, and specifically includes:
  • the backup path is determined according to the result of the negotiation, and the voice packet is transmitted to the peer device through the non-backup path.
  • the voice packet is transmitted to the peer device through the backup path.
  • the voice message is transmitted to the peer device through one path or two paths, including:
  • the two paths are selected according to the negotiation result.
  • the path and the peer device transmit voice packets.
  • the method provided in this embodiment by sending the path negotiation information to the peer device to perform path negotiation with the peer device, and adding the interface location information to the path negotiation information, so that the peer device can allocate the address in the same domain or plane. Therefore, it is ensured that the new path uses different paths, and the QoS guarantee is ensured for the accessed voice service.
  • the peer device determines the media stream state according to the call situation, thereby satisfying The scenario needs, and the resource saving effect can be achieved by recovering the original path resource after the original path is closed.
  • the embodiment provides a method for transmitting a voice message by using a multi-path device.
  • the method sends the path negotiation information including the interface location information and the media stream state requirement information to the peer device by the one-end device to implement the voice message of the device at both ends.
  • the transmission path is negotiated, so that the devices at both ends can ensure that the accessed voice service is QoS guaranteed and meets the scenario requirements.
  • the device that initiates the path negotiation and the device that receives the negotiation request may be an MGW, or may be a terminal, a base station, a base station controller, etc., which is not specifically limited in this embodiment.
  • the device that initiates the path negotiation is the first device, and the peer device is the second device, and the media stream state determined by the second device is a single stream, and one path for transmitting the voice packet is the original path.
  • the other path is a new path as an example, and the method provided in this embodiment is described in detail. Referring to FIG. 2, the process of the method provided in this embodiment is specifically as follows:
  • the first device sends path negotiation information to the second device, where the path negotiation information carries at least one address, interface location information, and media stream state requirement information.
  • the method does not limit the manner in which the first device sends the path negotiation information to the second device.
  • the path negotiation information may be carried in the extended signaling parameter and sent to the peer device, or The path negotiation information is carried in the voice message and sent to the peer device.
  • the path negotiation information carries at least the backup address, the interface location information, and the media stream state requirement information, and the interface location information may be domain or plane information, and the media stream state request information is used.
  • the specific content of the interface location information and the media stream state requirement information is not limited in this embodiment.
  • the extended signaling parameters may be as follows Rr :
  • A mpr tp ⁇ network type> ⁇ addres s type> connect ion addres s> ⁇ IP Doma in/P lane>
  • A mpr tps ta te ⁇ Onepa th
  • the mpr tp is used to carry the IP address
  • the network type indicates the network type
  • the connect ion addres s indicates the link address
  • Mpr tps tate indicates the status of the media stream. Onepath indicates that the media stream status is single stream, Twopath indicates that the media stream status is dual-transmit, and backup indicates that the media stream status is single-stream backup.
  • the voice message may be an RTP message, and a type for describing the state of the media stream may be added to the voice message, for example, adding 0x3 to the MPR_Type.
  • Type, and the capability of the first device and the capability of the second device are described by the type, such as: the ability of the first device is represented by Send, and the capability of the second device is represented by Receive.
  • the second device determines the media stream state and the path address according to the path negotiation information, and returns the determined media stream state and the path address thereof to the first device, where the determined media stream state is a single stream;
  • the second device sends the path negotiation information to the second device, and after receiving the path negotiation information, the second device determines the final media stream state according to the capability of the second device.
  • the path address will be determined based on the path negotiation information.
  • the second device may determine the media stream state according to the media stream state requirement information in the path negotiation information, and determine the path address according to the interface location information in the path negotiation information.
  • the media stream state may be determined as a single stream.
  • the second device since the path address is determined according to the interface location information in the path negotiation information, and the interface location information may be domain or plane information, the second device may be in the same domain or plane.
  • the IP address is selected as the path address, that is, the corresponding IP resource is allocated, and the path address matches the address carried in the path negotiation information, so that the voice message can be transmitted on a completely different path, thereby ensuring QoS.
  • the same manner as the first device sends the path negotiation information, and the extended signaling parameter may be adopted. If the voice message is an RTP message, the negotiation result is returned to the first device through the RTCP message, and the message is returned to the first device.
  • the return mode is not limited in this embodiment.
  • the first device receives the negotiation result returned by the second device, selects the original path in the original path and the new path according to the negotiation result, and transmits the voice message through the original path and the second device.
  • the status of the media stream in the negotiation result is a single stream. Therefore, when the first device selects a path for transmitting a voice message with the second device in the original path and the new path according to the negotiation result, the original path may be selected. A new path may be selected, which is not specifically limited in this embodiment. This step is only described by taking the source path of the first device as an example.
  • the first device selects a new path in the original path and the new path according to the negotiation result, and sends a voice message to the second device by using the new path.
  • the status of the media stream in the negotiation result is a single stream. Therefore, when the first device selects a path for transmitting the voice message with the second device in the original path and the new path according to the negotiation result, the path is selected through the original path and the second path. After the device sends a voice packet, it can also choose to send a voice packet to the second device through the new path.
  • the second device After receiving the voice message sent by the first device by using the new path, the second device turns off the original path, and sends a voice message to the first device by using the new path.
  • the media stream state determined by the second device in the foregoing step 202 is a single stream
  • the second device after the second device receives the voice message sent by the first device through the new path, it means that the original path becomes unused. Path, in order to guarantee a single stream, the second device will close the original path.
  • the second device can also recover the address resources of the original path, thereby saving resources.
  • the first device After receiving the voice message sent by the second device by using the new path, the first device turns off the original path, and transmits the voice message to the second device by using the new path.
  • step 205 since the media stream state determined by the second device in the foregoing step 202 is a single stream, after the first device receives the voice message sent by the second device through the new path, it means that the original path becomes The path is not used. To ensure a single stream, the first device also closes the original path.
  • the method provided in this embodiment is to send the path negotiation information to the second device by using the first device, perform path negotiation with the first device, and add the interface location information to the path negotiation information, so that the second device can be in the same domain or plane. Assigning an address in the middle ensures that the new path uses a different path, ensuring that the accessed voice service is guaranteed by QoS.
  • the second device determines the media stream according to the call situation. The status, which in turn satisfies the needs of the scene.
  • the embodiment provides a method for transmitting a voice message by using a multi-path device.
  • the method sends the path negotiation information including the interface location information and the media stream state requirement information to the peer device by the one-end device to implement the voice message of the device at both ends.
  • the transmission path is negotiated, so that the devices at both ends can ensure that the accessed voice service is QoS guaranteed and meets the scenario requirements.
  • the device that initiates the path negotiation is the first device, and the peer end is the second device, and the media stream state determined by the second device is a single stream backup, and one path of the voice packet is transmitted.
  • the other path is a new path, and the new path is determined as a backup path in the original path and the new path.
  • the method provided in this embodiment is described in detail. Referring to FIG. 3, the method of the method provided in this embodiment is specifically as follows:
  • the first device sends path negotiation information to the second device, where the path negotiation information carries at least one address, interface location information, and media stream state requirement information.
  • the step is the same as the step 201 in the foregoing embodiment 2.
  • the step 201 in the foregoing embodiment 2 For details, refer to the step 201 in the foregoing embodiment 2, and details are not described herein again.
  • the second device determines the media stream state and the path address according to the path negotiation information, and returns the determined media stream state and the path address to the first device as a negotiation result, where the determined media stream state is a single stream backup;
  • the second device sends the path negotiation information to the second device, and the second device receives the path negotiation information according to the second device.
  • the ability to determine the final media stream state in addition, will also determine the path address based on the path negotiation information.
  • the second device may determine the media stream state according to the media stream state requirement information in the path negotiation information, and determine the path address according to the interface location information in the path negotiation information.
  • the port location information may be domain or plane information.
  • the second device may select an IP address as the path address in the same domain or plane, that is, allocate the corresponding IP resource, and the path address and the address carried in the path negotiation information are Matching, thus ensuring that voice messages are transmitted on completely different paths, thereby ensuring QoS.
  • the manner in which the first device sends the path negotiation information may be returned to the first device by using the extended signaling parameter.
  • the voice control packet can be returned to the first device by using a voice control packet. If the voice packet is an RTP packet, the negotiation result can be returned to the first device through the RTCP packet, and the specific return mode is adopted.
  • the example is not limited.
  • the second device determines the media stream state as a single stream backup according to the media stream state requirement information in the path negotiation information, the second device needs to be in the original path and the new path. Determine any path as a backup path.
  • a new path is taken as a backup path as an example.
  • the first device receives the negotiation result returned by the second device, determines that the new path is the backup path, and transmits the voice message to the second device by using the original path.
  • the status of the media stream in the negotiation result returned by the second device is a single-stream backup.
  • the first device determines that the new path is the backup path according to the negotiation result, and passes the The original path and the second device transmit voice messages.
  • the first device does not receive the voice message sent by the second device by using the original path, and sends a voice message to the second device by using the new path.
  • the first device may determine that the original path is faulty. To ensure the normal transmission of the voice message, the first device enables the backup. The path, that is, the voice message is sent to the second device through the new path.
  • the specific preset time is not limited.
  • the first device and the second device may be pre-negotiated. For example, after 20 milliseconds, the first device still does not receive the second device and sends the original device through the original path. A voice packet can send a voice packet to the second device through the new path.
  • the backup device may enable the backup path if the first device determines that the packet is lost.
  • the backup path can be enabled, and if the second device is at the preset time If the voice packet sent by the first device is not received or the packet is lost, the backup path can be enabled, that is, the voice packet is sent to the second device through the new path.
  • the backup path can be used to send the voice packet to the peer device.
  • the second device After receiving the voice message sent by the first device by using the new path, the second device sends a voice message to the first device by using the new path.
  • the media stream state determined by the second device in the foregoing step 302 is a single stream backup, that is, one voice path is transmitted by using one path of the original path and the new path, and the other path is used as the backup path, then the second path is used.
  • the second device After the device receives the voice message sent by the first device through the new path, the second device also sends a voice message to the first device through the new path.
  • the second device when the second device receives the voice message sent by the first device through the new path, and then sends the voice message to the first device through the new path, the second device may also close the original path and collect the voice packet. The address resource of the original path. Similarly, after receiving the voice message sent by the second device through the new path, the first device may also close the original path and recover the address resource of the original path.
  • the method provided in this embodiment is to send the path negotiation information to the second device by using the first device, perform path negotiation with the first device, and add the interface location information to the path negotiation information, so that the second device can be in the same domain or plane. Assigning an address in the middle ensures that the new path uses a different path, ensuring that the accessed voice service is guaranteed by QoS.
  • the second device determines the media stream according to the call situation. The status, which in turn satisfies the needs of the scene.
  • the device provides a device for transmitting voice packets in a multi-path manner.
  • the device includes: a sending module 401, configured to send path negotiation information to the peer device, where the path negotiation information carries at least one address, Interface location information and media stream status requirement information;
  • the receiving module 402 is configured to receive a negotiation result returned by the peer device, where the negotiation result includes a media stream state determined by the peer device according to the path negotiation information, and a path address, where the media stream state is a single stream, a single stream backup, and a dual One of the elections;
  • the transmitting module 403 is configured to select, according to the negotiation result received by the receiving module 402, to transmit a voice message to the peer device by using one path or two paths.
  • the sending module 401 is specifically configured to carry the path negotiation information in the extended signaling parameter and send the information to the peer device, or the path negotiation information is carried in the voice message and sent to the peer device.
  • the transmitting module 403 is specifically configured to: when the status of the media stream in the negotiation result is a single stream, select one path in the two paths according to the negotiation result, and transmit the voice packet to the peer device by using the selected path; After you have determined the path you are using, close the unused path.
  • the device further includes:
  • the recycling module 404 is configured to reclaim the address resource of the unused path after the transfer module 403 closes the unused path.
  • the transmitting module 403 is specifically configured to: when the media stream state in the negotiation result is a single stream backup, and indicate that any one of the two paths is a backup path, determine the backup path according to the negotiation result, and pass the non-backup path. And transmitting the voice packet to the peer device. If the voice packet is not received or the packet is received or received by the peer device through the backup path, the voice is transmitted to the peer device through the backup path. Message.
  • the transmitting module 403 is specifically configured to: when the media stream state in the negotiation result is dual-selected, select, according to the negotiation result, the voice message is transmitted to the peer device through the two paths.
  • the device provided in this embodiment may be an MGW, or may be a terminal, a base station, a base station controller, etc., which is not specifically limited in this embodiment.
  • the device by sending the path negotiation information to the peer device, performs path negotiation with the peer device, and adds the interface location information to the path negotiation information, so that the peer device can allocate the address in the same domain or plane. Therefore, the new path is used to ensure the QoS guarantee of the accessed voice service.
  • the peer device determines the final state of the media stream according to the call situation. In addition, the scenario requirements are met, and the resource saving effect can be achieved by recovering the original path resource after the original path is closed.
  • the device includes: a receiving module 601, configured to receive path negotiation information sent by a peer device, where the path negotiation information carries at least one address. , interface location information and media stream status requirement information;
  • the determining module 602 is configured to determine the media stream according to the path negotiation information received by the receiving module 601. a status and a path address, the media stream status is one of a single stream, a single stream backup, and a dual-issue selection; the returning module 603 is configured to return the media stream status determined by the determining module 602 and the path address thereof as a negotiation result. To the peer device;
  • the transmitting module 604 is configured to send a voice message to the peer device by using one path or two paths selected by the peer device.
  • the receiving module 601 is configured to receive the extended signaling parameter that is sent by the peer device and that carries the path negotiation information, or the voice message that carries the path negotiation information that is sent by the peer device.
  • the determining module 602 is specifically configured to determine, according to the path negotiation information, that the media stream state is a single stream.
  • the returning module 603 is specifically configured to return, by using the media stream state determined by the determining module 602 as a single stream, and the path address thereof as a negotiation result. To the peer device;
  • the transmitting module 604 is specifically configured to transmit a voice message to the peer device by using the path selected by the peer device. After the devices at both ends determine the used path, the unused path is closed.
  • the device further includes:
  • the recycling module 605 is configured to reclaim the address resource of the unused path after the transfer module 604 closes the unused path.
  • the determining module 602 is specifically configured to determine, according to the path negotiation information, that the media stream state is a single stream backup, and determine any one of the two paths as a backup path;
  • the returning module 603 is specifically configured to return the media stream state determined by the determining module 602 for the single-stream backup and the path address thereof to the peer device as a negotiation result;
  • the transmitting module 604 is specifically configured to: send a voice message to the peer device through the non-backup path; if the voice message is not received in the preset time, or the packet is received or received, the voice message sent by the peer device through the backup path is received. , the voice message is transmitted to the peer device through the backup path.
  • the determining module 602 is specifically configured to determine, according to the path negotiation information, that the media stream state is a dual-selection;
  • the returning module 603 is specifically configured to return, to the peer device, the media stream state determined by the determining module 602 for the dual-issue selection and the path address thereof as a negotiation result;
  • the transmitting module 604 is specifically configured to transmit a voice message to the peer device by using two paths.
  • the device provided in this embodiment may be an MGW, or may be a terminal, a base station, a base station controller, etc., which is not specifically limited in this embodiment.
  • the device provided in this embodiment performs path negotiation with the peer device through the path negotiation information sent by the peer device, and adds the interface location information according to the path negotiation information, so that the address can be allocated in the same domain or plane, thereby ensuring new The path uses different paths to ensure that the accessed voice service is obtained.
  • the media stream state requirement information added in the path negotiation information can determine the media stream state according to the call situation, thereby satisfying the scenario requirement, and the resource saving effect can be achieved by recovering the original path resource after the original path is closed.
  • This embodiment provides a system for transmitting voice packets by using multiple paths.
  • the system includes: a first device 801 and a second device 802;
  • the first device 801 is a device for transmitting a voice message by multipath according to the foregoing embodiment 4.
  • the second device 802 is a device for transmitting a voice message by using a multipath as provided in the foregoing fifth embodiment.
  • the system provided by the embodiment sends the path negotiation information to the second device to perform path negotiation with the second device, and adds the interface location information to the path negotiation information, so that the second device can be in the same domain or plane. Assigning addresses ensures that the new path uses different paths, ensuring that the accessed voice service is guaranteed by QoS.
  • the second device determines the media according to the call situation. The final state of the flow, which satisfies the requirements of the scenario, and the resource saving effect can be achieved by recovering the original path resource after the original path is closed.
  • the device for the multi-path transmission of the voice message is only illustrated by the division of the foregoing functional modules. In practical applications, the function may be performed according to requirements. The assignment is done by different functional modules, ie the internal structure of the device is divided into different functional modules to perform all or part of the functions described above.
  • the device and the system for transmitting the voice message in the multi-path and the method for transmitting the voice message in the multi-path are provided in the same manner. For the specific implementation process, refer to the method embodiment, and details are not described herein.
  • All or part of the steps in the embodiment of the present invention may be implemented by software, and the corresponding software program may be stored in a readable storage medium such as an optical disk or a hard disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Disclosed are a method, a device, and a system for transferring a voice packet through multiple paths, which relates to the field of communications. The method comprises: sending path negotiation information to a peer device, wherein the path negotiation information at least carries an address, interface location information, and media stream state requirement information; receiving a negotiation result returned from the peer device, wherein the negotiation result comprises a media stream state and a path address of a media stream determined by the peer device according to the path negotiation information, and the media stream state is one of a single stream, single stream backup, and double transmission selective receiving; and selecting one or two paths according to the negotiation result to transfer a voice packet to the peer device. In the present invention, the path negotiation information is sent to the peer device to negotiate the path with the peer device, and the interface location information and the media stream state requirement information are added in the path negotiation information, thereby ensuring that a new path is a different path, guaranteeing QoS of an accessed voice service, and satisfying the scenario requirement.

Description

多路径传送语音报文的方法、 设备及系统  Method, device and system for transmitting voice messages by multipath

本申请要求于 2010 年 12 月 31 日提交中国专利局、 申请号为  This application is submitted to the Chinese Patent Office on December 31, 2010, and the application number is

201010620239.0、 发明名称为 "多路径传送语音报文的方法、 设备及系统" 的 中国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域 201010620239.0, the entire disclosure of which is hereby incorporated by reference in its entirety in its entirety in its entirety in the the the the the the the the the the the the Technical field

本发明涉及通信领域,特别涉及一种多路径传送语音报文的方法、设备及 系统。 背景技术  The present invention relates to the field of communications, and in particular, to a method, device, and system for transmitting voice messages in multiple paths. Background technique

随着通讯网络 IP ( Internet Protoco l , 网际协议)化的全面推进, 传统 的语音也随着逐步转变到 IP的承载方式上。 为了提升语音业务的可靠性, 常采 用双平面组网。 当一个平面出现问题后, 业务全部切换到另外一个平面。 而目 前核心网中的 MGW ( Media GateWay, 媒体网关)是各自独立的分配 IP资源。 因 此, 如果承载网内部出现问题, 将不可避免地出现接入业务使用到故障的 IP 路径, 致使语音质量很差, 影响用户体验。  With the comprehensive advancement of the Internet (Internet Protocol), the traditional voice has gradually changed to the IP bearer. To improve the reliability of voice services, dual-plane networking is often used. When there is a problem with one plane, the business all switches to another plane. The MGW (Media GateWay, Media Gateway) in the current core network is an independent allocation of IP resources. Therefore, if there is a problem inside the bearer network, the IP path that the access service uses to the fault will inevitably occur, resulting in poor voice quality and affecting the user experience.

为了提升语音质量,现有技术充分利用承载网的多路径确保接入的语音业 务得到 QoS ( Qua l i ty of Service , 服务质量)保证, 在通过多路径传送语音 才艮文时,首先通过信令面的交换确定一个 RTP( Rea l-t ime Transpor t Protocol , 实时传送协议) /RTCP ( RTP Cont rol Protoco l , RTP 控制协议) 流, 然后通 过 RTP/RTCP流的扩展头中协商出另外一个 RTP/RTCP流,这样一个流就演变成两 个流了, 即实现双发选收。  In order to improve the voice quality, the prior art fully utilizes the multi-path of the bearer network to ensure that the accessed voice service is guaranteed by QoS (Quality of Service), and when the voice is transmitted through the multipath, the signaling is first adopted. The face exchange determines an RTP (Rea lt ime Transpor t Protocol) / RTCP (RTP Cont rol Protoco l, RTP Control Protocol) flow, and then negotiates another RTP/RTCP through the extension header of the RTP/RTCP flow. Stream, such a stream will evolve into two streams, that is, to achieve dual-issue selection.

在实现本发明的过程中, 发明人发现现有技术至少存在以下缺点: 采用多路径传送语音报文时,如果确保接入的语音业务得到 QoS保证, 需 要确保最终获得的是两个独立的路径,然而现有技术无法确定获得的路径是否 是独立的; 且双发选收的模式不能满足所有的场景, 在带宽不富裕的地区, 可 能只需要保持一个 RTP流,如果最初建立的 RTP路径是故障的,会影响到新路 径的建立, 严重时会导致路径的建立完全失败, 进而无法保证 QoS。 发明内容 In the process of implementing the present invention, the inventors have found that the prior art has at least the following disadvantages: When transmitting voice packets by using multiple paths, if it is ensured that the accessed voice service is guaranteed by QoS, it is necessary to ensure that two independent paths are finally obtained. However, the prior art cannot determine whether the obtained path is independent; and the dual-selection mode cannot satisfy all scenarios, and in an area where the bandwidth is not rich, it may only need to maintain one RTP stream if the originally established RTP path is If the fault occurs, it will affect the establishment of the new path. In severe cases, the establishment of the path will completely fail, and thus the QoS cannot be guaranteed. Summary of the invention

为了确保接入的语音业务得到 QoS保证,且满足场景需求, 本发明实施例 提供了一种多路径传送语音报文的方法、 设备及系统。 所述技术方案如下: 一方面, 提供了一种多路径传送语音报文的方法, 所述方法包括: 向对端设备发送路径协商信息, 所述路径协商信息中至少携带了一个地 址、 接口位置信息和媒体流状态要求信息;  In order to ensure that the accessed voice service is QoS-guaranteed and meets the requirements of the scenario, the embodiment of the present invention provides a method, device, and system for transmitting a voice message by using multiple paths. The technical solution is as follows: On the one hand, a method for transmitting a voice message by using a multi-path is provided, the method includes: sending path negotiation information to a peer device, where the path negotiation information carries at least one address and an interface position. Information and media stream status request information;

接收所述对端设备返回的协商结果,所述协商结果中包括所述对端设备根 据所述路径协商信息确定的媒体流状态及其路径地址 , 所述媒体流状态为单 流、 单流备份和双发选收中的一种;  Receiving a negotiation result returned by the peer device, where the negotiation result includes a media stream state and a path address determined by the peer device according to the path negotiation information, where the media stream state is a single stream and a single stream backup. And one of the dual-issue selections;

根据所述协商结果选择通过一条路径或者两条路径与所述对端设备传送 语音报文。  And selecting, according to the negotiation result, the voice message is transmitted to the peer device by using one path or two paths.

还提供了一种多路径传送语音报文的设备, 所述设备包括:  A device for transmitting a voice message by using a multi-path, the device includes:

发送模块, 用于向对端设备发送路径协商信息, 所述路径协商信息中至少 携带了一个地址、 接口位置信息和媒体流状态要求信息;  a sending module, configured to send path negotiation information to the peer device, where the path negotiation information carries at least one address, interface location information, and media stream state requirement information;

接收模块, 用于接收所述对端设备返回的协商结果, 所述协商结果中包括 所述对端设备根据所述路径协商信息确定的媒体流状态及其路径地址,所述媒 体流状态为单流、 单流备份和双发选收中的一种;  a receiving module, configured to receive a negotiation result returned by the peer device, where the negotiation result includes a media stream state and a path address determined by the peer device according to the path negotiation information, where the media stream state is a single One of streaming, single-stream backup, and dual-issue selection;

传送模块,用于根据所述接收模块接收到的协商结果选择通过一条路径或 者两条路径与所述对端设备传送语音报文。  And a transmitting module, configured to select, according to the negotiation result received by the receiving module, to transmit a voice message to the peer device by using one path or two paths.

还提供了另一种多路径传送语音报文的设备, 所述设备包括:  There is also provided another device for transmitting a voice message by using a multi-path, the device comprising:

接收模块, 用于接收对端设备发送的路径协商信息, 所述路径协商信息中 至少携带了一个地址、 接口位置信息和媒体流状态要求信息;  a receiving module, configured to receive path negotiation information sent by the peer device, where the path negotiation information carries at least one address, interface location information, and media stream state requirement information;

确定模块,用于根据所述接收模块接收到的路径协商信息确定媒体流状态 及其路径地址, 所述媒体流状态为单流、 单流备份和双发选收中的一种; 返回模块,用于将所述确定模块确定的媒体流状态及其路径地址作为协商 结果返回给所述对端设备;  a determining module, configured to determine a media stream state and a path address according to the path negotiation information received by the receiving module, where the media stream state is one of a single stream, a single stream backup, and a dual-issue selection; And the path of the media stream determined by the determining module and the path address thereof are returned to the peer device as a negotiation result;

传送模块,用于通过所述对端设备选择的一条路径或者两条路径与所述对 端设备传送语音报文。  And a transmitting module, configured to transmit a voice message to the peer device by using one path or two paths selected by the peer device.

还提供了一种多路径传送语音报文的系统, 所述系统包括: 第一设备和第 二设备; A system for multi-path transmission of voice messages is also provided, the system comprising: a first device and a Two devices;

所述第一设备如上述第一种多路径传送语音报文的设备;  The first device is the device of the first type of multi-path transmission voice message;

所述第二设备如上述另一种多路径传送语音报文的设备。  The second device is another device for transmitting voice messages in multiple paths as described above.

本发明实施例提供的技术方案的有益效果是:  The beneficial effects of the technical solutions provided by the embodiments of the present invention are:

通过向对端设备发送路径协商信息与对端设备进行路径协商,并在该路径 协商信息中加入接口位置信息,使对端设备可在相同域或平面中分配地址,从 而保证了新路径使用不同的路径,确保了接入的语音业务得到 QoS保证;另外, 通过在路径协商信息中加入媒体流状态要求信息,使对端设备根据呼叫情况决 定媒体流状态, 进而满足了场景需求。 附图说明  By sending path negotiation information to the peer device to perform path negotiation with the peer device and adding interface location information to the path negotiation information, the peer device can allocate addresses in the same domain or plane, thus ensuring that the new path is used differently. The path ensures that the accessed voice service is guaranteed by QoS. In addition, by adding the media stream state requirement information to the path negotiation information, the peer device determines the media stream state according to the call situation, thereby satisfying the scenario requirement. DRAWINGS

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所 需要使用的附图作简单地介绍,显而易见地, 下面描述中的附图仅仅是本发明 的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in view of the drawings.

图 1是本发明实施例一提供的多路径传送语音报文的方法流程图; 图 2是本发明实施例二提供的多路径传送语音报文的方法流程图; 图 3是本发明实施例三提供的多路径传送语音报文的方法流程图; 图 4是本发明实施例四提供的多路径传送语音报文的设备结构示意图; 图 5 是本发明实施例四提供的另一种多路径传送语音报文的设备结构示 意图;  1 is a flowchart of a method for transmitting a voice message by using a multi-path according to a first embodiment of the present invention; FIG. 2 is a flowchart of a method for transmitting a voice message by using a multi-path according to Embodiment 2 of the present invention; FIG. 4 is a schematic diagram of a device structure for transmitting a voice message by using a multi-path according to Embodiment 4 of the present invention; FIG. 5 is a schematic diagram of another multi-path transmission according to Embodiment 4 of the present invention; Schematic diagram of the structure of a voice message;

图 6是本发明实施例五提供的多路径传送语音报文的设备结构示意图; 图 7 是本发明实施例五提供的另一种多路径传送语音报文的设备结构示 意图;  6 is a schematic structural diagram of a device for transmitting a multi-path voice message according to Embodiment 5 of the present invention; FIG. 7 is a schematic diagram of a device structure for transmitting a multi-path voice message according to Embodiment 5 of the present invention;

图 8是本发明实施例六提供的多路径传送语音报文的系统结构示意图。 具体实施方式  FIG. 8 is a schematic structural diagram of a system for transmitting a multi-path voice message according to Embodiment 6 of the present invention. detailed description

为使本发明的目的、技术方案和优点更加清楚, 下面将结合附图对本发明 实施方式作进一步地详细描述。  The embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

实施例一 本实施例提供了一种多路径传送语音报文的方法, 参见图 1 , 该方法流程 具体如下: Embodiment 1 This embodiment provides a method for transmitting voice packets by using multiple paths. Referring to FIG. 1, the process is specifically as follows:

101: 向对端设备发送路径协商信息, 该路径协商信息中至少携带了一个 地址、 接口位置信息和媒体流状态要求信息;  101: Send path negotiation information to the peer device, where the path negotiation information carries at least one address, interface location information, and media stream state requirement information.

102: 接收对端设备返回的协商结果, 该协商结果中包括对端设备根据路 径协商信息确定的媒体流状态及其路径地址, 该媒体流状态为单流、单流备份 和双发选收中的一种;  102: Receive a negotiation result returned by the peer device, where the negotiation result includes a media stream state and a path address determined by the peer device according to the path negotiation information, where the media stream state is a single stream, a single stream backup, and a dual-issue selection. a kind

103 : 根据协商结果选择通过一条路径或者两条路径与对端设备传送语音 报文。  103: According to the negotiation result, the voice message is transmitted to the peer device through one path or two paths.

其中, 向对端设备发送路径协商信息, 具体包括:  The sending the path negotiation information to the peer device includes:

将路径协商信息携带在扩展的信令参数中发送给对端设备, 或,将路径协 商信息携带在语音报文中发送给对端设备。  The path negotiation information is carried in the extended signaling parameter and sent to the peer device, or the path negotiation information is carried in the voice message and sent to the peer device.

根据协商结果选择通过一条路径或者两条路径与对端设备传送语音报文, 具体包括:  According to the result of the negotiation, the voice message is transmitted to the peer device through one path or two paths, including:

当协商结果中的媒体流状态为单流时,根据协商结果在两条路径中选择条 个路径, 并通过选择的路径与对端设备传送语音报文;  When the status of the media stream in the negotiation result is a single stream, the path is selected in the two paths according to the negotiation result, and the voice message is transmitted to the peer device through the selected path.

在双端设备均确定了使用的路径后, 关闭不使用的路径。  After the path used by the two-end device is determined, the unused path is closed.

关闭不使用的路径之后, 还包括:  After closing the unused path, it also includes:

回收不使用的路径的地址资源。  Reclaim address resources for unused paths.

进一步地,根据协商结果选择通过一条路径或者两条路径与对端设备传送 语音报文, 具体包括:  Further, the voice message is selected to be transmitted to the peer device by using one path or two paths according to the negotiation result, and specifically includes:

当协商结果中的媒体流状态为单流备份,且指示两条路径中的任一条路径 为备份路径时,根据协商结果确定备份路径, 并通过非备份路径与对端设备传 送语音报文;  If the status of the media stream in the negotiation result is a single-stream backup, and the path of the two paths is the backup path, the backup path is determined according to the result of the negotiation, and the voice packet is transmitted to the peer device through the non-backup path.

如果在预设时间未收到语音报文或判断出丟包或接收到对端设备通过备 份路径发送的语音报文, 则通过备份路径与对端设备传送语音报文。  If no voice packet is received or a packet is received or received by the peer device through the backup path, the voice packet is transmitted to the peer device through the backup path.

根据协商结果选择通过一条路径或者两条路径与对端设备传送语音报文, 具体包括:  According to the result of the negotiation, the voice message is transmitted to the peer device through one path or two paths, including:

当协商信息中的媒体流状态为双发选收时,根据协商结果选择通过两条路 径与对端设备传送语音报文。 When the status of the media stream in the negotiation information is double-selected, the two paths are selected according to the negotiation result. The path and the peer device transmit voice packets.

本实施例提供的方法,通过向对端设备发送路径协商信息与对端设备进行 路径协商, 并在该路径协商信息中加入接口位置信息,使对端设备可在相同域 或平面中分配地址,从而保证了新路径使用不同的路径,确保了接入的语音业 务得到 QoS保证; 另外, 通过在路径协商信息中加入媒体流状态要求信息, 使 对端设备根据呼叫情况决定媒体流状态, 进而满足了场景需求,且通过在原路 径关闭后回收原路径资源, 可以达到节省资源的效果。 实施例二  The method provided in this embodiment, by sending the path negotiation information to the peer device to perform path negotiation with the peer device, and adding the interface location information to the path negotiation information, so that the peer device can allocate the address in the same domain or plane. Therefore, it is ensured that the new path uses different paths, and the QoS guarantee is ensured for the accessed voice service. In addition, by adding the media stream state requirement information to the path negotiation information, the peer device determines the media stream state according to the call situation, thereby satisfying The scenario needs, and the resource saving effect can be achieved by recovering the original path resource after the original path is closed. Embodiment 2

本实施例提供了一种多路径传送语音报文的方法,该方法通过一端设备向 对端设备发送包括接口位置信息及媒体流状态要求信息的路径协商信息,实现 两端设备对语音报文的传送路径进行协商,使两端设备在进行多路径传送语音 报文的过程中, 能够确保接入的语音业务得到 QoS保证, 并满足场景需求。 其 中, 发起路径协商的设备和接收协商请求的设备可以为 MGW, 也可以为终端、 基站、 基站控制器等, 本实施例对此不作具体限定。 为了便于说明, 本实施例 以发起路径协商的设备为第一设备, 其对端为第二设备, 第二设备确定的媒体 流状态为单流,且传送语音报文的一条路径为原路径, 另一条路径为新路径为 例, 对本实施例提供的方法进行详细描述。 参见图 2 , 本实施例提供的方法流 程具体如下:  The embodiment provides a method for transmitting a voice message by using a multi-path device. The method sends the path negotiation information including the interface location information and the media stream state requirement information to the peer device by the one-end device to implement the voice message of the device at both ends. The transmission path is negotiated, so that the devices at both ends can ensure that the accessed voice service is QoS guaranteed and meets the scenario requirements. The device that initiates the path negotiation and the device that receives the negotiation request may be an MGW, or may be a terminal, a base station, a base station controller, etc., which is not specifically limited in this embodiment. For convenience of description, in this embodiment, the device that initiates the path negotiation is the first device, and the peer device is the second device, and the media stream state determined by the second device is a single stream, and one path for transmitting the voice packet is the original path. The other path is a new path as an example, and the method provided in this embodiment is described in detail. Referring to FIG. 2, the process of the method provided in this embodiment is specifically as follows:

201: 第一设备向第二设备发送路径协商信息, 该路径协商信息中至少携 带了一个地址、 接口位置信息和媒体流状态要求信息;  201: The first device sends path negotiation information to the second device, where the path negotiation information carries at least one address, interface location information, and media stream state requirement information.

针对该步骤,本实施例不对第一设备向第二设备发送路径协商信息的方式 进行限定, 实现应用中, 可以将路径协商信息携带在扩展的信令参数中发送给 对端设备, 或, 将路径协商信息携带在语音报文中发送给对端设备。 无论采用 哪种方式发送路径协商信息, 该路径协商信息中均至少携带了备用地址、接口 位置信息和媒体流状态要求信息, 而接口位置信息具体可以是域或者平面信 息,媒体流状态要求信息用于描述对媒体流状态的要求, 本实施例不对接口位 置信息及媒体流状态要求信息的具体内容进行限定。  For this step, the method does not limit the manner in which the first device sends the path negotiation information to the second device. In the implementation, the path negotiation information may be carried in the extended signaling parameter and sent to the peer device, or The path negotiation information is carried in the voice message and sent to the peer device. The path negotiation information carries at least the backup address, the interface location information, and the media stream state requirement information, and the interface location information may be domain or plane information, and the media stream state request information is used. To describe the requirements of the media stream state, the specific content of the interface location information and the media stream state requirement information is not limited in this embodiment.

在以扩展信令参数的方式发送路径协商信息时 ,扩展的信令参数可如下所 rr : When the path negotiation information is transmitted in the manner of extending signaling parameters, the extended signaling parameters may be as follows Rr :

A= mpr tp <network type> <addres s type> connect ion addres s> < IP Doma in/P lane> A= mpr tps ta te {Onepa th | Twopa th | backup}  A= mpr tp <network type> <addres s type> connect ion addres s> < IP Doma in/P lane> A= mpr tps ta te {Onepa th | Twopa th | backup}

其中, mpr tp用于携带的 IP地址, network type表示网络类型, connect ion addres s表示链接地址, IP Doma in/P lane表示携带的 IP地址的位置。 如果携带 了这个信息则表明与主用 IP地址不一样 (主用 IP地址是通过 c = IN4/ IN6 X. X. X. X携带的)。 Mpr tps tate表示媒体流状态, Onepath表示媒体流状态为单 流, Twopath表示媒体流状态为双发选收, backup表示媒体流状态为单流备份。  The mpr tp is used to carry the IP address, the network type indicates the network type, the connect ion addres s indicates the link address, and the IP Doma in/P lane indicates the location of the carried IP address. If this information is carried, it means that it is different from the primary IP address (the primary IP address is carried by c = IN4/ IN6 X. X. X. X). Mpr tps tate indicates the status of the media stream. Onepath indicates that the media stream status is single stream, Twopath indicates that the media stream status is dual-transmit, and backup indicates that the media stream status is single-stream backup.

在以语音报文的形式发送路径协商信息时, 该语音报文可以是 RTP报文, 则可在语音 ^艮文中增加一个用于描述媒体流状态的类型, 例如, 在 MPR_Type 中增加 0x3这种类型, 并通过该类型描述第一设备的能力及第二设备的能力, 如: 以 Send表示第一设备的能力, 以 Receive表示第二设备的能力。  When the path negotiation information is sent in the form of a voice message, the voice message may be an RTP message, and a type for describing the state of the media stream may be added to the voice message, for example, adding 0x3 to the MPR_Type. Type, and the capability of the first device and the capability of the second device are described by the type, such as: the ability of the first device is represented by Send, and the capability of the second device is represented by Receive.

202: 第二设备根据路径协商信息确定媒体流状态及其路径地址, 并将确 定的媒体流状态及其路径地址作为协商结果返回给第一设备, 其中,确定的媒 体流状态为单流;  202: The second device determines the media stream state and the path address according to the path negotiation information, and returns the determined media stream state and the path address thereof to the first device, where the determined media stream state is a single stream;

具体地, 无论第一设备以何种方式向第二设备发送路径协商信息, 第二设 备在接收到该路径协商信息后,均将根据第二设备的能力确定最终的媒体流状 态, 除此之外, 还将根据路径协商信息确定路径地址。 实现应用中, 第二设备 可根据路径协商信息中的媒体流状态要求信息确定媒体流状态,并根据路径协 商信息中的接口位置信息确定其路径地址。  Specifically, the second device sends the path negotiation information to the second device, and after receiving the path negotiation information, the second device determines the final media stream state according to the capability of the second device. In addition, the path address will be determined based on the path negotiation information. In the implementation application, the second device may determine the media stream state according to the media stream state requirement information in the path negotiation information, and determine the path address according to the interface location information in the path negotiation information.

针对该步骤,如果第二设备根据路径协商信息中的媒体流状态要求信息判 断当前带宽不充足, 则可将媒体流状态确定为单流。对于第二设备确定的路径 地址, 由于该路径地址是根据路径协商信息中的接口位置信息确定的, 而该接 口位置信息可以是域或者平面信息, 因此, 第二设备可以在相同的域或者平面 中选择一个 IP地址作为路径地址, 即分配对应的 IP资源, 该路径地址与路径 协商信息中携带的地址相匹配,从而能够保证语音报文在完全不同的路径上传 送, 进而使 QoS得到保证。  For this step, if the second device determines that the current bandwidth is insufficient according to the media stream state requirement information in the path negotiation information, the media stream state may be determined as a single stream. For the path address determined by the second device, since the path address is determined according to the interface location information in the path negotiation information, and the interface location information may be domain or plane information, the second device may be in the same domain or plane. The IP address is selected as the path address, that is, the corresponding IP resource is allocated, and the path address matches the address carried in the path negotiation information, so that the voice message can be transmitted on a completely different path, thereby ensuring QoS.

进一步地,在将确定的媒体流状态及其路径地址作为协商结果返回给第一 设备时, 同第一设备发送路径协商信息的方式一样, 可以通过扩展的信令参数 将其返回给第一设备, 还可以通过语音控制报文的方式将其返回给第一设备, 如果语音报文为 RTP报文, 则可将协商结果通过 RTCP报文返回给第一设备, 具体采用哪种返回方式, 本实施例不作限定。 Further, when the determined media stream state and its path address are returned to the first device as a negotiation result, the same manner as the first device sends the path negotiation information, and the extended signaling parameter may be adopted. If the voice message is an RTP message, the negotiation result is returned to the first device through the RTCP message, and the message is returned to the first device. The return mode is not limited in this embodiment.

203: 第一设备接收第二设备返回的协商结果, 根据协商结果在原路径和 新路径中选择原路径, 并通过原路径与第二设备传送语音报文;  203: The first device receives the negotiation result returned by the second device, selects the original path in the original path and the new path according to the negotiation result, and transmits the voice message through the original path and the second device.

针对该步骤, 由于协商结果中的媒体流状态为单流, 因此, 第一设备根据 协商结果在原路径和新路径中选择与第二设备传送语音报文的路径时,既可以 选择原路径, 也可以选择新路径, 本实施例对此不作具体限定, 该步骤仅以第 一设备选择源路径为例进行描述。  For this step, the status of the media stream in the negotiation result is a single stream. Therefore, when the first device selects a path for transmitting a voice message with the second device in the original path and the new path according to the negotiation result, the original path may be selected. A new path may be selected, which is not specifically limited in this embodiment. This step is only described by taking the source path of the first device as an example.

204: 第一设备根据协商结果在原路径和新路径中选择新路径, 并通过新 路径向第二设备发送语音报文;  204: The first device selects a new path in the original path and the new path according to the negotiation result, and sends a voice message to the second device by using the new path.

该步骤中, 由于协商结果中的媒体流状态为单流, 因此, 第一设备根据协 商结果在原路径和新路径中选择与第二设备传送语音报文的路径时,选择通过 原路径与第二设备传送语音报文后,也可以改为选择通过新路径向第二设备发 送语音报文。  In this step, the status of the media stream in the negotiation result is a single stream. Therefore, when the first device selects a path for transmitting the voice message with the second device in the original path and the new path according to the negotiation result, the path is selected through the original path and the second path. After the device sends a voice packet, it can also choose to send a voice packet to the second device through the new path.

205 : 第二设备接收到第一设备通过新路径发送的语音报文后, 关闭原路 径, 并通过新路径向第一设备发送语音报文;  205: After receiving the voice message sent by the first device by using the new path, the second device turns off the original path, and sends a voice message to the first device by using the new path.

具体地, 由于第二设备在上述步骤 202中确定的媒体流状态为单流, 因而 在第二设备接收到第一设备通过新路径发送的语音报文后, 即意味着原路径 成为了不使用的路径, 为了保证单流, 第二设备将原路径关闭。  Specifically, since the media stream state determined by the second device in the foregoing step 202 is a single stream, after the second device receives the voice message sent by the first device through the new path, it means that the original path becomes unused. Path, in order to guarantee a single stream, the second device will close the original path.

优选地, 第二设备在关闭原路径之后, 还可以回收原路径的地址资源, 从 而节省资源。  Preferably, after the original device is closed, the second device can also recover the address resources of the original path, thereby saving resources.

206 : 第一设备接收到第二设备通过新路径发送的语音报文后, 关闭原路 径, 并通过新路径与第二设备传送语音报文。  206: After receiving the voice message sent by the second device by using the new path, the first device turns off the original path, and transmits the voice message to the second device by using the new path.

同上述步骤 205 , 由于第二设备在上述步骤 202中确定的媒体流状态为单 流, 因而在第一设备接收到第二设备通过新路径发送的语音报文后, 即意味 着原路径成为了不使用路径, 为了保证单流, 第一设备也将原路径关闭。  With the above step 205, since the media stream state determined by the second device in the foregoing step 202 is a single stream, after the first device receives the voice message sent by the second device through the new path, it means that the original path becomes The path is not used. To ensure a single stream, the first device also closes the original path.

第一设备在关闭原路径之后,还可以回收原路径的地址资源,从而节省资 源。 本实施例提供的方法,通过第一设备向第二设备发送路径协商信息, 与第 一设备进行路径协商, 并在该路径协商信息中加入接口位置信息,使第二设备 可在相同域或平面中分配地址,从而保证了新路径使用不同的路径,确保了接 入的语音业务得到 QoS保证; 另外,通过在路径协商信息中加入媒体流状态要 求信息, 使第二设备根据呼叫情况决定媒体流状态, 进而满足了场景需求。 实施例三 After the original device closes the original path, the address resource of the original path can also be recovered, thereby saving resources. The method provided in this embodiment is to send the path negotiation information to the second device by using the first device, perform path negotiation with the first device, and add the interface location information to the path negotiation information, so that the second device can be in the same domain or plane. Assigning an address in the middle ensures that the new path uses a different path, ensuring that the accessed voice service is guaranteed by QoS. In addition, by adding the media stream state requirement information to the path negotiation information, the second device determines the media stream according to the call situation. The status, which in turn satisfies the needs of the scene. Embodiment 3

本实施例提供了一种多路径传送语音报文的方法,该方法通过一端设备向 对端设备发送包括接口位置信息及媒体流状态要求信息的路径协商信息,实现 两端设备对语音报文的传送路径进行协商,使两端设备在进行多路径传送语音 报文的过程中, 能够确保接入的语音业务得到 QoS保证, 并满足场景需求。 为 了便于说明, 本实施例仍以发起路径协商的设备为第一设备, 其对端为第二设 备, 并以第二设备确定的媒体流状态为单流备份,且传送语音报文的一条路径 为原路径, 另一条路径为新路径, 并在原路径和新路径中确定新路径为备份路 径为例, 对本实施例提供的方法进行详细描述。 参见图 3 , 本实施例提供的方 法流程具体如下:  The embodiment provides a method for transmitting a voice message by using a multi-path device. The method sends the path negotiation information including the interface location information and the media stream state requirement information to the peer device by the one-end device to implement the voice message of the device at both ends. The transmission path is negotiated, so that the devices at both ends can ensure that the accessed voice service is QoS guaranteed and meets the scenario requirements. For the convenience of the description, the device that initiates the path negotiation is the first device, and the peer end is the second device, and the media stream state determined by the second device is a single stream backup, and one path of the voice packet is transmitted. For the original path, the other path is a new path, and the new path is determined as a backup path in the original path and the new path. The method provided in this embodiment is described in detail. Referring to FIG. 3, the method of the method provided in this embodiment is specifically as follows:

301: 第一设备向第二设备发送路径协商信息, 该路径协商信息中至少携 带了一个地址、 接口位置信息和媒体流状态要求信息;  301: The first device sends path negotiation information to the second device, where the path negotiation information carries at least one address, interface location information, and media stream state requirement information.

其中, 该步骤同上述实施例二中的步骤 201 , 具体可参见上述实施例二中 的步骤 201 , 此处不再贅述。  The step is the same as the step 201 in the foregoing embodiment 2. For details, refer to the step 201 in the foregoing embodiment 2, and details are not described herein again.

302: 第二设备根据路径协商信息确定媒体流状态及其路径地址, 并将确 定的媒体流状态及其路径地址作为协商结果返回给第一设备, 其中,确定的媒 体流状态为单流备份;  The second device determines the media stream state and the path address according to the path negotiation information, and returns the determined media stream state and the path address to the first device as a negotiation result, where the determined media stream state is a single stream backup;

针对该步骤, 同上述实施例二中的步骤 202 , 无论第一设备以何种方式向 第二设备发送路径协商信息, 该第二设备在接收到该路径协商信息后, 均将根 据第二设备的能力确定最终的媒体流状态, 除此之外,还将根据路径协商信息 确定路径地址。 实现应用中, 第二设备可根据路径协商信息中的媒体流状态要 求信息确定媒体流状态,并根据路径协商信息中的接口位置信息确定其路径地 址。且由于该路径地址是根据路径协商信息中的接口位置信息确定的, 而该接 口位置信息可以是域或者平面信息, 因此, 第二设备可以在相同的域或者平面 中选择一个 IP地址作为路径地址, 即分配对应的 IP资源, 该路径地址与路径 协商信息中携带的地址相匹配,从而能够保证语音报文在完全不同的路径上传 送, 进而使 QoS得到保证。 For the step, in the same manner as the step 202 in the second embodiment, the second device sends the path negotiation information to the second device, and the second device receives the path negotiation information according to the second device. The ability to determine the final media stream state, in addition, will also determine the path address based on the path negotiation information. In the implementation, the second device may determine the media stream state according to the media stream state requirement information in the path negotiation information, and determine the path address according to the interface location information in the path negotiation information. And because the path address is determined according to interface location information in the path negotiation information, and the connection is The port location information may be domain or plane information. Therefore, the second device may select an IP address as the path address in the same domain or plane, that is, allocate the corresponding IP resource, and the path address and the address carried in the path negotiation information are Matching, thus ensuring that voice messages are transmitted on completely different paths, thereby ensuring QoS.

此外,在将确定的媒体流状态及其路径地址作为协商结果返回给第一设备 时, 同第一设备发送路径协商信息的方式一样, 可以通过扩展的信令参数将其 返回给第一设备,还可以通过语音控制报文的方式将其返回给第一设备,如果 语音报文为 RTP报文, 则可将协商结果通过 RTCP报文返回给第一设备, 具体 采用哪种返回方式, 本实施例不作限定。  In addition, when the determined media stream state and the path address are returned to the first device as the negotiation result, the manner in which the first device sends the path negotiation information may be returned to the first device by using the extended signaling parameter. The voice control packet can be returned to the first device by using a voice control packet. If the voice packet is an RTP packet, the negotiation result can be returned to the first device through the RTCP packet, and the specific return mode is adopted. The example is not limited.

与上述实施例二中的步骤 202不同的是,如果第二设备根据路径协商信息 中的媒体流状态要求信息将媒体流状态确定为单流备份,则第二设备还需要在 原路径和新路径中确定任一条路径作为备份路径。在本实施例中, 以将新路径 作为备份路径为例。  Different from the step 202 in the second embodiment, if the second device determines the media stream state as a single stream backup according to the media stream state requirement information in the path negotiation information, the second device needs to be in the original path and the new path. Determine any path as a backup path. In this embodiment, a new path is taken as a backup path as an example.

303 : 第一设备接收第二设备返回的协商结果, 根据协商结果确定新路径 为备份路径, 并通过原路径与第二设备传送语音报文;  303: The first device receives the negotiation result returned by the second device, determines that the new path is the backup path, and transmits the voice message to the second device by using the original path.

具体地,由于第二设备返回的协商结果中的媒体流状态为单流备份,因此, 第一设备接收到第二设备返回的协商结果后,将根据协商结果确定新路径为备 份路径, 并通过原路径与第二设备传送语音报文。  Specifically, the status of the media stream in the negotiation result returned by the second device is a single-stream backup. After receiving the negotiation result returned by the second device, the first device determines that the new path is the backup path according to the negotiation result, and passes the The original path and the second device transmit voice messages.

304:第一设备在预设时间未接收到第二设备通过原路径发送的语音报文, 则通过新路径向第二设备发送语音报文;  304: The first device does not receive the voice message sent by the second device by using the original path, and sends a voice message to the second device by using the new path.

针对该步骤,如果第一设备在预设时间未接收到第二设备通过原路径发送 的语音报文, 则可以判断出原路径发生故障, 为了保证语音报文的正常传送, 第一设备启用备份路径, 即通过新路径向第二设备发送语音报文。  For the first step, if the first device does not receive the voice message sent by the second device through the original path, the first device may determine that the original path is faulty. To ensure the normal transmission of the voice message, the first device enables the backup. The path, that is, the voice message is sent to the second device through the new path.

其中, 本实施例不对具体的预设时间进行限定, 实际应用中, 可由第一设 备和第二设备预先协商, 例如, 在 20毫秒后第一设备仍未接收到第二设备通 过原路径发送的语音报文, 则可以通过新路径向第二设备发送语音报文。  In this embodiment, the specific preset time is not limited. In an actual application, the first device and the second device may be pre-negotiated. For example, after 20 milliseconds, the first device still does not receive the second device and sends the original device through the original path. A voice packet can send a voice packet to the second device through the new path.

需要说明的是,除了第一设备在预设时间未接收到第二设备通过原路径发 送的语音报文时, 可以启用备份路径, 如果第一设备判断出丟包, 同样可以启 用备份路径。 同理, 除了第一设备可以启用备份路径, 第二设备如果在预设时 间未接收到第一设备通过原路径发送的语音报文或是判断出丟包,同样可以启 用备份路径, 即通过新路径向第二设备发送语音报文。 另外, 无论是第一设备 还是第二设备,如果接收到对端设备通过备份路径发送的语音报文, 均可同样 采用备份路径向对端设备发送语音报文。 It should be noted that, in addition to the first device not receiving the voice message sent by the second device through the original path, the backup device may enable the backup path if the first device determines that the packet is lost. Similarly, except for the first device, the backup path can be enabled, and if the second device is at the preset time If the voice packet sent by the first device is not received or the packet is lost, the backup path can be enabled, that is, the voice packet is sent to the second device through the new path. In addition, whether the first device or the second device receives the voice packet sent by the peer device through the backup path, the backup path can be used to send the voice packet to the peer device.

305 : 第二设备接收到第一设备通过新路径发送的语音报文后, 改为通过 新路径向第一设备发送语音报文。  305: After receiving the voice message sent by the first device by using the new path, the second device sends a voice message to the first device by using the new path.

具体地, 由于在上述步骤 302中第二设备确定的媒体流状态为单流备份, 即采用原路径和新路径中的一个路径传送语音报文,将另一个路径作为备份路 径, 则在第二设备接收到第一设备通过新路径发送的语音报文后, 为了保持单 流, 第二设备也改为通过新路径向第一设备发送语音报文。  Specifically, because the media stream state determined by the second device in the foregoing step 302 is a single stream backup, that is, one voice path is transmitted by using one path of the original path and the new path, and the other path is used as the backup path, then the second path is used. After the device receives the voice message sent by the first device through the new path, the second device also sends a voice message to the first device through the new path.

优选地, 为了节省资源, 当第二设备接收到第一设备通过新路径发送的语 音报文后,并改为通过新路径向第一设备发送语音报文时,也可以关闭原路径, 并回收原路径的地址资源; 同理, 第一设备接收到第二设备通过新路径发送的 语音报文后, 也可以关闭原路径, 并回收原路径的地址资源。  Preferably, in order to save resources, when the second device receives the voice message sent by the first device through the new path, and then sends the voice message to the first device through the new path, the second device may also close the original path and collect the voice packet. The address resource of the original path. Similarly, after receiving the voice message sent by the second device through the new path, the first device may also close the original path and recover the address resource of the original path.

本实施例提供的方法,通过第一设备向第二设备发送路径协商信息, 与第 一设备进行路径协商, 并在该路径协商信息中加入接口位置信息,使第二设备 可在相同域或平面中分配地址,从而保证了新路径使用不同的路径,确保了接 入的语音业务得到 QoS保证; 另外,通过在路径协商信息中加入媒体流状态要 求信息, 使第二设备根据呼叫情况决定媒体流状态, 进而满足了场景需求。 实施例四  The method provided in this embodiment is to send the path negotiation information to the second device by using the first device, perform path negotiation with the first device, and add the interface location information to the path negotiation information, so that the second device can be in the same domain or plane. Assigning an address in the middle ensures that the new path uses a different path, ensuring that the accessed voice service is guaranteed by QoS. In addition, by adding the media stream state requirement information to the path negotiation information, the second device determines the media stream according to the call situation. The status, which in turn satisfies the needs of the scene. Embodiment 4

本实施例提供了一种多路径传送语音报文的设备,参见图 4 ,该设备包括: 发送模块 401 , 用于向对端设备发送路径协商信息, 该路径协商信息中至 少携带了一个地址、 接口位置信息和媒体流状态要求信息;  The device provides a device for transmitting voice packets in a multi-path manner. Referring to FIG. 4, the device includes: a sending module 401, configured to send path negotiation information to the peer device, where the path negotiation information carries at least one address, Interface location information and media stream status requirement information;

接收模块 402 , 用于接收对端设备返回的协商结果, 该协商结果中包括对 端设备根据路径协商信息确定的媒体流状态及其路径地址,该媒体流状态为单 流、 单流备份和双发选收中的一种;  The receiving module 402 is configured to receive a negotiation result returned by the peer device, where the negotiation result includes a media stream state determined by the peer device according to the path negotiation information, and a path address, where the media stream state is a single stream, a single stream backup, and a dual One of the elections;

传送模块 403 , 用于根据接收模块 402接收到的协商结果选择通过一条路 径或者两条路径与对端设备传送语音报文。 其中, 发送模块 401 , 具体用于将路径协商信息携带在扩展的信令参数中 发送给对端设备, 或, 将路径协商信息携带在语音报文中发送给对端设备。 The transmitting module 403 is configured to select, according to the negotiation result received by the receiving module 402, to transmit a voice message to the peer device by using one path or two paths. The sending module 401 is specifically configured to carry the path negotiation information in the extended signaling parameter and send the information to the peer device, or the path negotiation information is carried in the voice message and sent to the peer device.

传送模块 403 , 具体用于当协商结果中的媒体流状态为单流时, 根据协商 结果在两条路径中选择一条路径, 并通过选择的路径与对端设备传送语音报 文; 在两端设备均确定了使用的路径后, 则关闭不使用的路径。  The transmitting module 403 is specifically configured to: when the status of the media stream in the negotiation result is a single stream, select one path in the two paths according to the negotiation result, and transmit the voice packet to the peer device by using the selected path; After you have determined the path you are using, close the unused path.

优选地, 参见图 5 , 该设备还包括:  Preferably, referring to FIG. 5, the device further includes:

回收模块 404 , 用于在传送模块 403关闭不使用的路径之后, 回收不使用 的路径的地址资源。  The recycling module 404 is configured to reclaim the address resource of the unused path after the transfer module 403 closes the unused path.

进一步地, 传送模块 403 , 具体用于当协商结果中的媒体流状态为单流备 份,且指示两条路径中的任一条路径为备份路径时,根据协商结果确定备份路 径, 并通过非备份路径与对端设备传送语音报文; 如果在预设时间未收到语音 报文或判断出丟包或接收到对端设备通过备份路径发送的语音报文 ,则通过备 份路径与对端设备传送语音报文。  Further, the transmitting module 403 is specifically configured to: when the media stream state in the negotiation result is a single stream backup, and indicate that any one of the two paths is a backup path, determine the backup path according to the negotiation result, and pass the non-backup path. And transmitting the voice packet to the peer device. If the voice packet is not received or the packet is received or received by the peer device through the backup path, the voice is transmitted to the peer device through the backup path. Message.

可选地, 传送模块 403 , 具体用于当协商结果中的媒体流状态为双发选收 时, 根据协商结果选择通过两条路径与对端设备传送语音报文。  Optionally, the transmitting module 403 is specifically configured to: when the media stream state in the negotiation result is dual-selected, select, according to the negotiation result, the voice message is transmitted to the peer device through the two paths.

需要说明的是, 本实施例提供的设备可以为 MGW, 也可以为终端、 基站、 基站控制器等, 本实施例对此不作具体限定。  It should be noted that the device provided in this embodiment may be an MGW, or may be a terminal, a base station, a base station controller, etc., which is not specifically limited in this embodiment.

本实施例提供的设备,通过向对端设备发送路径协商信息与对端设备进行 路径协商, 并在该路径协商信息中加入接口位置信息,使对端设备可在相同域 或平面中分配地址,从而保证了新路径使用不同的路径,确保了接入的语音业 务得到 QoS保证; 另外, 通过在路径协商信息中加入媒体流状态要求信息, 使 对端设备根据呼叫情况决定媒体流的最终状态, 进而满足了场景需求,且通过 在原路径关闭后回收原路径资源, 可以达到节省资源的效果。 实施例五  The device provided in this embodiment, by sending the path negotiation information to the peer device, performs path negotiation with the peer device, and adds the interface location information to the path negotiation information, so that the peer device can allocate the address in the same domain or plane. Therefore, the new path is used to ensure the QoS guarantee of the accessed voice service. In addition, by adding the media stream state requirement information to the path negotiation information, the peer device determines the final state of the media stream according to the call situation. In addition, the scenario requirements are met, and the resource saving effect can be achieved by recovering the original path resource after the original path is closed. Embodiment 5

本实施例提供了一种多路径传送语音报文的设备,参见图 6 ,该设备包括: 接收模块 601 , 用于接收对端设备发送的路径协商信息, 该路径协商信息 中至少携带了一个地址、 接口位置信息和媒体流状态要求信息;  This embodiment provides a device for transmitting a voice message by using a multi-path. Referring to FIG. 6, the device includes: a receiving module 601, configured to receive path negotiation information sent by a peer device, where the path negotiation information carries at least one address. , interface location information and media stream status requirement information;

确定模块 602 , 用于根据接收模块 601接收到的路径协商信息确定媒体流 状态及其路径地址, 该媒体流状态为单流、 单流备份和双发选收中的一种; 返回模块 603 , 用于将确定模块 602确定的媒体流状态及其路径地址作为 协商结果返回给对端设备; The determining module 602 is configured to determine the media stream according to the path negotiation information received by the receiving module 601. a status and a path address, the media stream status is one of a single stream, a single stream backup, and a dual-issue selection; the returning module 603 is configured to return the media stream status determined by the determining module 602 and the path address thereof as a negotiation result. To the peer device;

传送模块 604 , 用于通过对端设备选择的一条路径或者两条路径与对端设 备传送语音报文。  The transmitting module 604 is configured to send a voice message to the peer device by using one path or two paths selected by the peer device.

其中, 接收模块 601 , 具体用于接收对端设备发送的携带了路径协商信息 的扩展的信令参数,或,接收对端设备发送的携带了路径协商信息的语音报文。  The receiving module 601 is configured to receive the extended signaling parameter that is sent by the peer device and that carries the path negotiation information, or the voice message that carries the path negotiation information that is sent by the peer device.

确定模块 602 , 具体用于根据路径协商信息确定媒体流状态为单流; 相应地, 返回模块 603 , 具体用于将确定模块 602确定的为单流的媒体流 状态及其路径地址作为协商结果返回给对端设备;  The determining module 602 is specifically configured to determine, according to the path negotiation information, that the media stream state is a single stream. Correspondingly, the returning module 603 is specifically configured to return, by using the media stream state determined by the determining module 602 as a single stream, and the path address thereof as a negotiation result. To the peer device;

传送模块 604 , 具体用于通过对端设备选择的路径与对端设备传送语音报 文; 在两端设备均确定了使用的路径后, 则关闭不使用的路径。  The transmitting module 604 is specifically configured to transmit a voice message to the peer device by using the path selected by the peer device. After the devices at both ends determine the used path, the unused path is closed.

优选地, 参见图 7 , 该设备还包括:  Preferably, referring to FIG. 7, the device further includes:

回收模块 605 , 用于在传送模块 604关闭不使用的路径之后, 回收不使用 的路径的地址资源。  The recycling module 605 is configured to reclaim the address resource of the unused path after the transfer module 604 closes the unused path.

进一步地, 确定模块 602 , 具体用于根据路径协商信息确定媒体流状态为 单流备份, 并将两条路径中的任一条路径确定为备份路径;  Further, the determining module 602 is specifically configured to determine, according to the path negotiation information, that the media stream state is a single stream backup, and determine any one of the two paths as a backup path;

相应地, 返回模块 603 , 具体用于将确定模块 602确定的为单流备份的媒 体流状态及其路径地址作为协商结果返回给对端设备;  Correspondingly, the returning module 603 is specifically configured to return the media stream state determined by the determining module 602 for the single-stream backup and the path address thereof to the peer device as a negotiation result;

传送模块 604 , 具体用于通过非备份路径与对端设备传送语音报文; 如果 在预设时间未收到语音报文或判断出丟包或接收到对端设备通过备份路径发 送的语音报文, 则通过备份路径与对端设备传送语音报文。  The transmitting module 604 is specifically configured to: send a voice message to the peer device through the non-backup path; if the voice message is not received in the preset time, or the packet is received or received, the voice message sent by the peer device through the backup path is received. , the voice message is transmitted to the peer device through the backup path.

可选地, 确定模块 602 , 具体用于根据路径协商信息确定媒体流状态为双 发选收;  Optionally, the determining module 602 is specifically configured to determine, according to the path negotiation information, that the media stream state is a dual-selection;

相应地, 返回模块 603 , 具体用于将确定模块 602确定的为双发选收的媒 体流状态及其路径地址作为协商结果返回给对端设备;  Correspondingly, the returning module 603 is specifically configured to return, to the peer device, the media stream state determined by the determining module 602 for the dual-issue selection and the path address thereof as a negotiation result;

传送模块 604 , 具体用于通过两条路径与对端设备传送语音报文。  The transmitting module 604 is specifically configured to transmit a voice message to the peer device by using two paths.

需要说明的是, 本实施例提供的设备可以为 MGW, 也可以为终端、 基站、 基站控制器等, 本实施例对此不作具体限定。 本实施例提供的设备,通过对端设备发送的路径协商信息与对端设备进行 路径协商, 并根据该路径协商信息中加入接口位置信息, 可在相同域或平面中 分配地址, 从而保证了新路径使用不同的路径, 确保了接入的语音业务得到It should be noted that the device provided in this embodiment may be an MGW, or may be a terminal, a base station, a base station controller, etc., which is not specifically limited in this embodiment. The device provided in this embodiment performs path negotiation with the peer device through the path negotiation information sent by the peer device, and adds the interface location information according to the path negotiation information, so that the address can be allocated in the same domain or plane, thereby ensuring new The path uses different paths to ensure that the accessed voice service is obtained.

QoS保证; 另外, 通过路径协商信息中加入的媒体流状态要求信息, 可以根据 呼叫情况决定媒体流状态, 进而满足了场景需求,且通过在原路径关闭后回收 原路径资源, 可以达到节省资源的效果。 实施例六 QoS guarantee; In addition, the media stream state requirement information added in the path negotiation information can determine the media stream state according to the call situation, thereby satisfying the scenario requirement, and the resource saving effect can be achieved by recovering the original path resource after the original path is closed. . Embodiment 6

本实施例提供了一种多路径传送语音报文的系统,参见图 8 ,该系统包括: 第一设备 801和第二设备 802 ;  This embodiment provides a system for transmitting voice packets by using multiple paths. Referring to FIG. 8, the system includes: a first device 801 and a second device 802;

第一设备 801如上述实施例四提供的多路径传送语音报文的设备; 第二设备 802如上述实施例五提供的多路径传送语音报文的设备。  The first device 801 is a device for transmitting a voice message by multipath according to the foregoing embodiment 4. The second device 802 is a device for transmitting a voice message by using a multipath as provided in the foregoing fifth embodiment.

本实施例提供的系统,通过第一设备向第二设备发送路径协商信息与第二 设备进行路径协商, 并在该路径协商信息中加入接口位置信息,使第二设备可 在相同域或平面中分配地址,从而保证了新路径使用不同的路径,确保了接入 的语音业务得到 QoS保证; 另夕卜,通过在路径协商信息中加入媒体流状态要求 信息,使第二设备根据呼叫情况决定媒体流的最终状态,进而满足了场景需求, 且通过在原路径关闭后回收原路径资源, 可以达到节省资源的效果。 需要说明的是:上述实施例提供的多路径传送语音报文的设备在多路径传 送语音报文时, 仅以上述各功能模块的划分进行举例说明, 实际应用中, 可以 根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分 成不同的功能模块, 以完成以上描述的全部或者部分功能。 另外, 上述实施例 提供的多路径传送语音报文的设备、系统与多路径传送语音报文的方法实施例 属于同一构思, 其具体实现过程详见方法实施例, 这里不再贅述。  The system provided by the embodiment sends the path negotiation information to the second device to perform path negotiation with the second device, and adds the interface location information to the path negotiation information, so that the second device can be in the same domain or plane. Assigning addresses ensures that the new path uses different paths, ensuring that the accessed voice service is guaranteed by QoS. In addition, by adding media stream state request information to the path negotiation information, the second device determines the media according to the call situation. The final state of the flow, which satisfies the requirements of the scenario, and the resource saving effect can be achieved by recovering the original path resource after the original path is closed. It should be noted that, in the multi-path transmission of the voice message, the device for the multi-path transmission of the voice message is only illustrated by the division of the foregoing functional modules. In practical applications, the function may be performed according to requirements. The assignment is done by different functional modules, ie the internal structure of the device is divided into different functional modules to perform all or part of the functions described above. In addition, the device and the system for transmitting the voice message in the multi-path and the method for transmitting the voice message in the multi-path are provided in the same manner. For the specific implementation process, refer to the method embodiment, and details are not described herein.

上述本发明实施例序号仅仅为了描述, 不代表实施例的优劣。  The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.

本发明实施例中的全部或部分步骤, 可以利用软件实现,相应的软件程序 可以存储在可读取的存储介质中, 如光盘或硬盘等。  All or part of the steps in the embodiment of the present invention may be implemented by software, and the corresponding software program may be stored in a readable storage medium such as an optical disk or a hard disk.

以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发明的 精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的 保护范围之内。 The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim 1、 一种多路径传送语音报文的方法, 其特征在于, 所述方法包括: 向对端设备发送路径协商信息, 所述路径协商信息中至少携带了一个地 址、 接口位置信息和媒体流状态要求信息;  A method for transmitting a voice message by using a multi-path, wherein the method includes: sending path negotiation information to the peer device, where the path negotiation information carries at least one address, interface location information, and media stream state. Request information; 接收所述对端设备返回的协商结果,所述协商结果中包括所述对端设备根 据所述路径协商信息确定的媒体流状态及其路径地址 , 所述媒体流状态为单 流、 单流备份和双发选收中的一种;  Receiving a negotiation result returned by the peer device, where the negotiation result includes a media stream state and a path address determined by the peer device according to the path negotiation information, where the media stream state is a single stream and a single stream backup. And one of the dual-issue selections; 根据所述协商结果选择通过一条路径或者两条路径与所述对端设备传送 语音报文。  And selecting, according to the negotiation result, the voice message is transmitted to the peer device by using one path or two paths. 2、 根据权利要求 1所述的方法, 其特征在于, 所述向对端设备发送路径 协商信息, 具体包括: The method according to claim 1, wherein the sending the path negotiation information to the peer device includes: 将所述路径协商信息携带在扩展的信令参数中发送给所述对端设备, 或, 将所述路径协商信息携带在语音报文中发送给所述对端设备。  The path negotiation information is carried in the extended signaling parameter and sent to the peer device, or the path negotiation information is carried in the voice message and sent to the peer device. 3、 根据权利要求 1所述的方法, 其特征在于, 所述根据所述协商结果选 择通过一条路径或者两条路径与所述对端设备传送语音报文, 具体包括: 当所述协商结果中的媒体流状态为单流时,根据所述协商结果在所述两条 路径中选择一条路径, 并通过选择的路径与所述对端设备传送语音报文; 在双端设备均确定了使用的路径后, 关闭不使用的路径。 The method according to claim 1, wherein the selecting, by the negotiation result, the voice message to be transmitted to the peer device by using one path or two paths, specifically includes: When the media stream state is a single stream, a path is selected in the two paths according to the negotiation result, and a voice message is transmitted to the peer device by using the selected path; After the path, close the unused path. 4、 根据权利要求 3所述的方法, 其特征在于, 所述关闭不使用的路径之 后, 还包括: 4. The method according to claim 3, wherein after the closing the unused path, the method further comprises: 回收所述不使用的路径的地址资源。  Reclaim the address resource of the unused path. 5、 根据权利要求 1所述的方法, 其特征在于, 所述根据所述协商结果选 择通过一条路径或者两条路径与所述对端设备传送语音报文, 具体包括: 当所述协商结果中的媒体流状态为单流备份,且指示两条路径中的任一条 路径为备份路径时,根据所述协商结果确定备份路径, 并通过非备份路径与所 述对端设备传送语音报文; The method according to claim 1, wherein the selecting, according to the negotiation result, the voice message is sent to the peer device by using one path or two paths, specifically: when the negotiation result is When the status of the media stream is a single-stream backup and indicates that any of the two paths is a backup path, the backup path is determined according to the negotiation result, and the non-backup path is used. The peer device transmits a voice message; 如果在预设时间未收到语音报文或判断出丟包或接收到所述对端设备通 过所述备份路径发送的语音报文,则通过所述备份路径与所述对端设备传送语 音报文。  If the voice packet is not received or the packet is received or received by the peer device, the voice message is sent to the peer device through the backup path. Text. 6、 根据权利要求 1所述的方法, 其特征在于, 所述根据所述协商结果选 择通过一条路径或者两条路径与所述对端设备传送语音报文, 具体包括: 当所述协商结果中的媒体流状态为双发选收时,根据所述协商结果选择通 过所述两条路径与所述对端设备传送语音报文。 The method according to claim 1, wherein the selecting, according to the negotiation result, the voice message is sent to the peer device by using one path or two paths, specifically: when the negotiation result is According to the result of the negotiation, the voice stream is transmitted to the peer device by using the two paths according to the negotiation result. 7、 一种多路径传送语音报文的设备, 其特征在于, 所述设备包括: 发送模块, 用于向对端设备发送路径协商信息, 所述路径协商信息中至少 携带了一个地址、 接口位置信息和媒体流状态要求信息; A device for transmitting a voice message by using a multi-path, wherein the device includes: a sending module, configured to send path negotiation information to the peer device, where the path negotiation information carries at least one address and an interface position. Information and media stream status request information; 接收模块, 用于接收所述对端设备返回的协商结果, 所述协商结果中包括 所述对端设备根据所述路径协商信息确定的媒体流状态及其路径地址,所述媒 体流状态为单流、 单流备份和双发选收中的一种;  a receiving module, configured to receive a negotiation result returned by the peer device, where the negotiation result includes a media stream state and a path address determined by the peer device according to the path negotiation information, where the media stream state is a single One of streaming, single-stream backup, and dual-issue selection; 传送模块,用于根据所述接收模块接收到的协商结果选择通过一条路径或 者两条路径与所述对端设备传送语音报文。  And a transmitting module, configured to select, according to the negotiation result received by the receiving module, to transmit a voice message to the peer device by using one path or two paths. 8、 根据权利要求 7所述的设备, 其特征在于, 所述发送模块, 具体用于 将所述路径协商信息携带在扩展的信令参数中发送给所述对端设备, 或,将所 述路径协商信息携带在语音报文中发送给所述对端设备。 The device according to claim 7, wherein the sending module is configured to: carry the path negotiation information in an extended signaling parameter, and send the information to the peer device, or The path negotiation information is carried in the voice message and sent to the peer device. 9、 根据权利要求 7所述的设备, 其特征在于, 所述传送模块, 具体用于 当所述协商结果中的媒体流状态为单流时,根据所述协商结果在所述两条路径 中选择一条路径, 并通过选择的路径与所述对端设备传送语音报文; 在两端设 备均确定了使用的路径后, 则关闭不使用的路径。 The device according to claim 7, wherein the transmitting module is specifically configured to: when the status of the media stream in the negotiation result is a single stream, according to the negotiation result, in the two paths Select a path and transmit voice packets to the peer device through the selected path. After the devices at both ends determine the path to be used, the unused path is closed. 10、 根据权利要求 9所述的设备, 其特征在于, 所述设备还包括: 回收模块, 用于在所述传送模块关闭不使用的路径之后, 回收所述不使用 的路径的地址资源。 The device according to claim 9, wherein the device further comprises: And a recycling module, configured to reclaim an address resource of the unused path after the transmitting module closes the unused path. 11、 根据权利要求 7所述的设备, 其特征在于, 所述传送模块, 具体用于 当所述协商结果中的媒体流状态为单流备份,且指示所述两条路径中的任一条 路径为备份路径时,根据所述协商结果确定备份路径, 并通过非备份路径与所 述对端设备传送语音报文;如果在预设时间未收到语音报文或判断出丟包或接 收到所述对端设备通过所述备份路径发送的语音报文,则通过所述备份路径与 所述对端设备传送语音报文。 The device according to claim 7, wherein the transmitting module is specifically configured to: when the status of the media stream in the negotiation result is a single stream backup, and indicate any one of the two paths When the path is backed up, the backup path is determined according to the result of the negotiation, and the voice packet is transmitted to the peer device through the non-backup path; if the voice packet is not received within the preset time, the packet is lost or received. The voice message sent by the peer device through the backup path is used to transmit a voice message to the peer device through the backup path. 12、 根据权利要求 7所述的设备, 其特征在于, 所述传送模块, 具体用于 当所述协商结果中的媒体流状态为双发选收时,根据所述协商结果选择通过所 述两条路径与所述对端设备传送语音报文。 The device according to claim 7, wherein the transmitting module is specifically configured to: when the status of the media stream in the negotiation result is dual-selection, select, by the two The strip path and the peer device transmit a voice message. 1 3、 一种多路径传送语音报文的设备, 其特征在于, 所述设备包括: 接收模块, 用于接收对端设备发送的路径协商信息, 所述路径协商信息中 至少携带了一个地址、 接口位置信息和媒体流状态要求信息; A device for transmitting a voice message by using a multi-path, the device includes: a receiving module, configured to receive path negotiation information sent by a peer device, where the path negotiation information carries at least one address, Interface location information and media stream status requirement information; 确定模块,用于根据所述接收模块接收到的路径协商信息确定媒体流状态 及其路径地址, 所述媒体流状态为单流、 单流备份和双发选收中的一种; 返回模块,用于将所述确定模块确定的媒体流状态及其路径地址作为协商 结果返回给所述对端设备;  a determining module, configured to determine a media stream state and a path address according to the path negotiation information received by the receiving module, where the media stream state is one of a single stream, a single stream backup, and a dual-issue selection; And the path of the media stream determined by the determining module and the path address thereof are returned to the peer device as a negotiation result; 传送模块,用于通过所述对端设备选择的一条路径或者两条路径与所述对 端设备传送语音报文。  And a transmitting module, configured to transmit a voice message to the peer device by using one path or two paths selected by the peer device. 14、 根据权利要求 1 3所述的设备, 其特征在于, 所述接收模块, 具体用 于接收所述对端设备发送的携带了所述路径协商信息的扩展的信令参数, 或, 接收所述对端设备发送的携带了所述路径协商信息的语音报文。 The device according to claim 13, wherein the receiving module is configured to receive an extended signaling parameter that is sent by the peer device and that carries the path negotiation information, or The voice message that is sent by the peer device and carries the path negotiation information. 15、 根据权利要求 1 3所述的设备, 其特征在于, 所述确定模块, 具体用于根据所述路径协商信息确定媒体流状态为单流; 相应地, 所述返回模块, 具体用于将所述确定模块确定的为单流的媒体流 状态及其路径地址作为协商结果返回给所述对端设备; 15. Apparatus according to claim 13 wherein: The determining module is specifically configured to determine, according to the path negotiation information, that the media stream state is a single stream. Correspondingly, the returning module is specifically configured to determine, by the determining module, a single stream media stream state and a path thereof. The address is returned to the peer device as a result of the negotiation; 所述传送模块,具体用于通过所述对端设备选择的路径与所述对端设备传 送语音报文; 在两端设备均确定了使用的路径后, 则关闭不使用的路径。  The transmitting module is configured to transmit a voice message to the peer device by using the path selected by the peer device. After the devices at both ends determine the used path, the unused path is closed. 16、 根据权利要求 15所述的设备, 其特征在于, 所述设备还包括: 回收模块, 用于在所述传送模块关闭不使用的路径之后, 回收所述不使用 的路径的地址资源。 The device according to claim 15, wherein the device further comprises: a recycling module, configured to reclaim an address resource of the unused path after the transmitting module closes the unused path. 17、 根据权利要求 1 3所述的设备, 其特征在于, 17. Apparatus according to claim 13 wherein: 所述确定模块,具体用于根据所述路径协商信息确定媒体流状态为单流备 份, 并将所述两条路径中的任一条路径确定为备份路径;  The determining module is specifically configured to determine, according to the path negotiation information, that the media stream state is a single stream backup, and determine any one of the two paths as a backup path; 相应地, 所述返回模块, 具体用于将所述确定模块确定的为单流备份的媒 体流状态及其路径地址作为协商结果返回给所述对端设备;  Correspondingly, the returning module is specifically configured to return, to the peer device, the media stream state and the path address of the single stream backup determined by the determining module as a negotiation result; 所述传送模块, 具体用于通过非备份路径与所述对端设备传送语音报文; 如果在预设时间未收到语音报文或判断出丟包或接收到所述对端设备通过所 述备份路径发送的语音报文,则通过所述备份路径与所述对端设备传送语音报 文。  The transmitting module is specifically configured to: send a voice message to the peer device by using a non-backup path; if the voice message is not received at a preset time, or the packet is determined to be received or received by the peer device, The voice packet sent by the backup path transmits a voice message to the peer device through the backup path. 18、 根据权利要求 1 3所述的设备, 其特征在于, 18. Apparatus according to claim 13 wherein: 所述确定模块,具体用于根据所述路径协商信息确定媒体流状态为双发选 收;  The determining module is specifically configured to determine, according to the path negotiation information, that the media stream state is dual-issue selection; 相应地, 所述返回模块, 具体用于将所述确定模块确定的为双发选收的媒 体流状态及其路径地址作为协商结果返回给所述对端设备;  Correspondingly, the returning module is specifically configured to return, to the peer device, the media stream state determined by the determining module for the dual-issue selection and the path address thereof as a negotiation result; 所述传送模块, 具体用于通过两条路径与所述对端设备传送语音报文。  The transmitting module is specifically configured to transmit a voice message to the peer device by using two paths. 19、 一种多路径传送语音报文的系统, 其特征在于, 所述系统包括: 第一 设备和第二设备; 所述第一设备如所述权利要求 7至权利要求 中任一权利要求所述的设 所述第二设备如所述权利要求 13至权利要求 18中任一权利要求所述的设 A system for transmitting a voice message by using a multi-path, wherein the system includes: a first device and a second device; The first device according to any one of claims 7 to 20, wherein the second device is configured according to any one of claims 13 to 18.
PCT/CN2011/083822 2010-12-31 2011-12-12 Method, device, and system for transferring voice packet through multiple paths Ceased WO2012089009A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010620239.0A CN102137094B (en) 2010-12-31 2010-12-31 Method, device and system for transmitting voice message in multipath
CN201010620239.0 2010-12-31

Publications (1)

Publication Number Publication Date
WO2012089009A1 true WO2012089009A1 (en) 2012-07-05

Family

ID=44296750

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/083822 Ceased WO2012089009A1 (en) 2010-12-31 2011-12-12 Method, device, and system for transferring voice packet through multiple paths

Country Status (2)

Country Link
CN (1) CN102137094B (en)
WO (1) WO2012089009A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017032125A1 (en) * 2015-08-26 2017-03-02 中兴通讯股份有限公司 Dcn function configuration method and apparatus

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137094B (en) * 2010-12-31 2014-04-02 华为技术有限公司 Method, device and system for transmitting voice message in multipath
CN102868683B (en) * 2012-08-23 2015-06-03 东南大学 Terminal-to-terminal based voice safety multi-path communication system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006043756A1 (en) * 2004-10-22 2006-04-27 Sk Telecom Co., Ltd. Video telephony service method in mobile communication network
CN101197772A (en) * 2007-12-26 2008-06-11 华为技术有限公司 Method, device and system for realizing media plane multipath
CN101616156A (en) * 2009-07-24 2009-12-30 中兴通讯股份有限公司 A signaling negotiation method and device for realizing RTP data stream multiplexing
WO2010111880A1 (en) * 2009-04-03 2010-10-07 中兴通讯股份有限公司 Method and system for transmitting large message mode converged ip messages
CN102137094A (en) * 2010-12-31 2011-07-27 华为技术有限公司 Method, device and system for transmitting voice message in multipath

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006043756A1 (en) * 2004-10-22 2006-04-27 Sk Telecom Co., Ltd. Video telephony service method in mobile communication network
CN101197772A (en) * 2007-12-26 2008-06-11 华为技术有限公司 Method, device and system for realizing media plane multipath
WO2010111880A1 (en) * 2009-04-03 2010-10-07 中兴通讯股份有限公司 Method and system for transmitting large message mode converged ip messages
CN101616156A (en) * 2009-07-24 2009-12-30 中兴通讯股份有限公司 A signaling negotiation method and device for realizing RTP data stream multiplexing
CN102137094A (en) * 2010-12-31 2011-07-27 华为技术有限公司 Method, device and system for transmitting voice message in multipath

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017032125A1 (en) * 2015-08-26 2017-03-02 中兴通讯股份有限公司 Dcn function configuration method and apparatus

Also Published As

Publication number Publication date
CN102137094A (en) 2011-07-27
CN102137094B (en) 2014-04-02

Similar Documents

Publication Publication Date Title
CN103634299B (en) Based on multi-link real time streaming terminal and method
CN102546418B (en) Overlay-network-multipath-transmission-based Internet protocol multimedia subsystem (IMS) client and media exchange method
WO2009039754A1 (en) Method, media gateway and system for controlling redundant data packets transport
US20070223491A1 (en) Apparatus and method for providing quality of service in wireless communication system
JP2004266330A (en) Communication terminal device and control method therefor
JP2008541532A (en) Signaling of quality of service (QoS) parameters for multimedia sessions
CN101227482A (en) Method, device and system for media negotiation in Internet telephone call
CN101146100B (en) A Realization Method of SIP VoIP Based on Transmission Protocol SCTP and DCCP
CN105071897B (en) A kind of network real-time audio conversation media data multi-path redundancy transmission method
CN100571249C (en) An Ethernet communication method for real-time deterministic transmission
WO2013174327A1 (en) Media stream transmission method and device
WO2013167065A2 (en) Method of data retransmission in coordination service transmission and access network gateway thereof
WO2011120463A2 (en) Method, system and network device for quality of service (qos) negotiation in cross-medium networks
CN111107445B (en) Media protocol stream optimization method and system
CN112994946A (en) Link aggregation method
JP2009522959A (en) Method and apparatus for conserving network capacity by releasing QOS resources
CN103634303A (en) Method and system for realizing VoIP (voice over internet protocol) communication
WO2012089009A1 (en) Method, device, and system for transferring voice packet through multiple paths
JP2005123993A (en) Packet communication apparatus and packet communication method
CN104168613B (en) Transmission method and device when switching in a kind of mobile cloud computing environment
CN101399822A (en) Method for determining media stream path relation and call control system
WO2011000291A1 (en) Method, device and system for associating real-time transport protocol (rtp) packets in session initiation protocol (sip) session
CN116132503B (en) Data transmission method, device and equipment
CN103841085B (en) The implementation method of the real-time Communication for Power based on WWW and device
EP4358591B1 (en) Data transmission method and related device

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: 11853960

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11853960

Country of ref document: EP

Kind code of ref document: A1