CN103841085B - The implementation method of the real-time Communication for Power based on WWW and device - Google Patents
The implementation method of the real-time Communication for Power based on WWW and device Download PDFInfo
- Publication number
- CN103841085B CN103841085B CN201210480873.8A CN201210480873A CN103841085B CN 103841085 B CN103841085 B CN 103841085B CN 201210480873 A CN201210480873 A CN 201210480873A CN 103841085 B CN103841085 B CN 103841085B
- Authority
- CN
- China
- Prior art keywords
- terminal
- session
- bandwidth requirement
- request message
- message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
- H04L65/1069—Session establishment or de-establishment
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Multimedia (AREA)
- Mobile Radio Communication Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明实施例公开了基于万维网的实时通信的实现方法及装置,包括:代理设备检测到终端发起的基于万维网的实时通信的会话请求消息,所述会话请求消息中包括带宽需求;若所述会话请求消息中包括的带宽需求大于所述终端的用户签约配置信息中包括的带宽需求,则修改所述会话请求消息中包括带宽需求,使得所述会话请求消息中包括的带宽需求小于等于所述终端的用户签约配置信息中包括的带宽需求;将所述修改后的会话请求消息发送给另一终端,可以解决基于万维网的实时通信业务不能根据带宽变化动态调整业务流信息而影响通信业务的问题。
The embodiment of the present invention discloses a method and device for realizing real-time communication based on the World Wide Web, including: a proxy device detects a session request message of a real-time communication based on the World Wide Web initiated by a terminal, and the session request message includes a bandwidth requirement; if the session The bandwidth requirement included in the request message is greater than the bandwidth requirement included in the user subscription configuration information of the terminal, then modify the bandwidth requirement included in the session request message so that the bandwidth requirement included in the session request message is less than or equal to the terminal The bandwidth requirement included in the user subscription configuration information; sending the modified session request message to another terminal can solve the problem that the real-time communication service based on the World Wide Web cannot dynamically adjust the service flow information according to the bandwidth change and affect the communication service.
Description
技术领域technical field
本发明实施例涉及通信技术领域,尤其涉及一种基于万维网的实时通信的实现方法及装置。The embodiments of the present invention relate to the technical field of communication, and in particular, to a method and device for realizing real-time communication based on the World Wide Web.
背景技术Background technique
图1为基于万维网的实时通信(英文:Web Real-Time Communication,简称WebRTC)的系统架构图,如图1所示,终端1可以通过浏览器访问Web服务器,其中,Web服务器例如可以通过超文本传输协议(英文:Hypertext TransferProtocol,简称HTTP)或WebSocket与终端1通信,其中,WebSocket用以终端1在浏览器中实现和Web服务器的双向通信。同时,Web服务器通过信令路径与终端2对应的其他Web服务器交互,以协商终端1和终端2需要建立的流媒体会话中的业务流信息,其中,业务流信息中包括带宽需求、编码格式、业务类型、业务端口等信息,从而使得终端1和终端2之间建立流媒体通信路径,实现语音、视频、数据等流媒体业务。Figure 1 is a system architecture diagram of real-time communication (English: Web Real-Time Communication, WebRTC for short) based on the World Wide Web. The transmission protocol (English: Hypertext Transfer Protocol, referred to as HTTP) or WebSocket communicates with the terminal 1, wherein the WebSocket is used for the terminal 1 to realize two-way communication with the Web server in the browser. At the same time, the web server interacts with other web servers corresponding to terminal 2 through the signaling path to negotiate the service flow information in the streaming media session that terminal 1 and terminal 2 need to establish, wherein the service flow information includes bandwidth requirements, encoding formats, Service type, service port and other information, so that a streaming media communication path is established between terminal 1 and terminal 2, and streaming media services such as voice, video, and data are realized.
然而,在实际应用中,由于无线网络速率的波动导致终端1和终端2之间的流媒体业务所需的带宽不能得到保证时,目前,基于万维网的实时通信业务不能根据无线网络状态动态调整业务流信息中的带宽需求,从而会影响基于万维网的实时通信业务。However, in practical applications, when the bandwidth required for the streaming media service between Terminal 1 and Terminal 2 cannot be guaranteed due to the fluctuation of the wireless network rate, at present, the real-time communication service based on the World Wide Web cannot dynamically adjust the service according to the wireless network status. Bandwidth requirements in streaming information, thereby affecting real-time communication services based on the World Wide Web.
发明内容Contents of the invention
本发明提供一种基于万维网的实时通信的实现方法及装置,用以解决基于万维网的实时通信业务不能根据无线网络状态动态调整业务流信息中的带宽需求而影响通信业务的问题。The invention provides a method and device for realizing real-time communication based on the World Wide Web, which is used to solve the problem that the real-time communication service based on the World Wide Web cannot dynamically adjust the bandwidth requirement in the service flow information according to the state of the wireless network and affect the communication service.
第一方面,本发明提供一种基于万维网的实时通信的实现方法,包括:In a first aspect, the present invention provides a method for realizing real-time communication based on the World Wide Web, including:
代理设备检测到终端发起的基于万维网的实时通信的会话请求消息,所述会话请求消息中包括带宽需求;The proxy device detects a session request message based on WWW-based real-time communication initiated by the terminal, and the session request message includes a bandwidth requirement;
若所述会话请求消息中包括的带宽需求大于所述终端的用户签约配置信息中包括的带宽需求,则修改所述会话请求消息中包括的带宽需求,使得所述会话请求消息中包括的带宽需求小于等于所述终端的用户签约配置信息中包括的带宽需求;If the bandwidth requirement included in the session request message is greater than the bandwidth requirement included in the user subscription configuration information of the terminal, modify the bandwidth requirement included in the session request message so that the bandwidth requirement included in the session request message less than or equal to the bandwidth requirement included in the user subscription configuration information of the terminal;
将所述修改后的会话请求消息发送给另一终端。Send the modified session request message to another terminal.
基于第一方面,在第一方面的第一种可能的实现方式中,将所述修改后的会话请求消息发送给另一终端之前,包括:Based on the first aspect, in a first possible implementation manner of the first aspect, before sending the modified session request message to another terminal, the method includes:
所述代理设备根据所述修改后的会话请求消息,创建临时会话状态信息表,将所述修改后的会话请求消息中包括的带宽需求保存到所述临时会话状态信息表中。The proxy device creates a temporary session state information table according to the modified session request message, and saves the bandwidth requirement included in the modified session request message into the temporary session state information table.
基于第一方面的第一种可能的实现方式,在第二种可能的实现方式中,将所述修改后的会话请求消息发送给另一终端之后,还包括:Based on the first possible implementation of the first aspect, in the second possible implementation, after sending the modified session request message to another terminal, further include:
所述代理设备检测到所述另一终端回应的基于万维网的实时通信的应答消息;The agent device detects the response message of the WWW-based real-time communication responded by the other terminal;
若所述应答消息中包括的带宽需求与所述临时会话状态信息表中包括的带宽需求不一致,则根据所述应答消息中包括的带宽需求更新所述临时会话状态信息表中的带宽需求;If the bandwidth requirement included in the response message is inconsistent with the bandwidth requirement included in the temporary session state information table, updating the bandwidth requirement in the temporary session state information table according to the bandwidth requirement included in the response message;
将所述应答消息发送给所述终端。Send the response message to the terminal.
基于第一方面以及第一方面的第一和第二种中的任一种可能的实现方式,在第三种可能的实现方式中,所述方法还包括:Based on the first aspect and any one of the first and second possible implementations of the first aspect, in a third possible implementation, the method further includes:
所述代理设备接收与所述终端连接的无线接入点设备发送的链路状态变化消息,根据所述链路状态变化消息调整所述临时会话状态信息表中的带宽需求;The proxy device receives a link state change message sent by a wireless access point device connected to the terminal, and adjusts the bandwidth requirement in the temporary session state information table according to the link state change message;
所述代理设备向所述终端发送会话更新消息,所述会话更新消息中包括所述调整后的带宽需求。The proxy device sends a session update message to the terminal, where the session update message includes the adjusted bandwidth requirement.
基于第一方面的第三种可能的实现方式,在第四种可能的实现方式中,所述代理设备向所述终端发送会话更新消息之后,包括:Based on the third possible implementation of the first aspect, in a fourth possible implementation, after the proxy device sends the session update message to the terminal, it includes:
所述代理设备检测到所述终端发起的基于万维网的实时通信的会话更新请求消息,所述会话更新请求消息中包括所述调整后的带宽需求;The agent device detects a session update request message of the WWW-based real-time communication initiated by the terminal, and the session update request message includes the adjusted bandwidth requirement;
将所述会话更新请求消息发送给所述另一终端。sending the session update request message to the other terminal.
基于第一方面的第四种可能的实现方式,在第五种可能的实现方式中,将所述会话更新请求消息发送给所述另一终端之后,包括:Based on the fourth possible implementation of the first aspect, in a fifth possible implementation, after sending the session update request message to the other terminal, include:
所述代理设备检测到所述另一终端回应的基于万维网的实时通信的会话更新应答消息;The agent device detects the session update response message of the WWW-based real-time communication responded by the other terminal;
若所述会话更新应答消息中包括的带宽需求与所述代理设备保存的临时会话状态信息表中包括的带宽需求不一致,则根据所述会话更新应答消息中包括的带宽需求更新所述临时会话状态信息表中的带宽需求;If the bandwidth requirement included in the session update response message is inconsistent with the bandwidth requirement included in the temporary session state information table saved by the proxy device, update the temporary session state according to the bandwidth requirement included in the session update response message Bandwidth requirements in the information table;
将所述会话更新应答消息发送给所述终端。sending the session update response message to the terminal.
第二方面,本发明提供一种基于万维网的实时通信的实现装置,包括:In a second aspect, the present invention provides a device for realizing real-time communication based on the World Wide Web, including:
监测模块,用于检测到终端发起的基于万维网的实时通信的会话请求消息,所述会话请求消息中包括带宽需求;A monitoring module, configured to detect a session request message for real-time communication based on the World Wide Web initiated by the terminal, where the session request message includes a bandwidth requirement;
调整模块,用于若所述会话请求消息中包括的带宽需求大于所述终端的用户签约配置信息中包括的带宽需求,则修改所述会话请求消息中包括的带宽需求,使得所述会话请求消息中包括的带宽需求小于等于所述终端的用户签约配置信息中包括的带宽需求;An adjustment module, configured to modify the bandwidth requirement included in the session request message if the bandwidth requirement included in the session request message is greater than the bandwidth requirement included in the user subscription configuration information of the terminal, so that the session request message The bandwidth requirement included in is less than or equal to the bandwidth requirement included in the user subscription configuration information of the terminal;
发送模块,用于将所述调整模块修改后的会话请求消息发送给所述另一终端。A sending module, configured to send the session request message modified by the adjustment module to the other terminal.
基于第二方面,在第二方面的第一种可能的实现方式中,所述装置还包括:Based on the second aspect, in a first possible implementation manner of the second aspect, the device further includes:
创建模块,用于根据所述调整模块修改后的会话请求消息中包括的带宽需求,创建临时会话状态信息表,将所述修改后的会话请求消息中包括的带宽需求保存到所述临时会话状态信息表中。A creating module, configured to create a temporary session state information table according to the bandwidth requirement included in the session request message modified by the adjustment module, and save the bandwidth requirement included in the modified session request message to the temporary session state information sheet.
基于第二方面的第一种可能的实现方式,在第二种可能的实现方式中,监测模块,还用于检测到所述另一终端回应的基于万维网的实时通信的应答消息;Based on the first possible implementation of the second aspect, in a second possible implementation, the monitoring module is further configured to detect a response message of the real-time communication based on the World Wide Web responded by the other terminal;
所述调整模块,还用于若所述应答消息中包括的带宽需求与所述临时会话状态信息表中包括的带宽需求不一致,则根据所述应答消息中包括的带宽需求更新所述创建模块创建的临时会话状态信息表中的带宽需求;The adjustment module is further configured to update the bandwidth requirements included in the response message according to the bandwidth requirements included in the response message if the bandwidth requirements included in the response message are inconsistent with the bandwidth requirements included in the temporary session state information table. The bandwidth requirements in the temporary session state information table;
所述发送模块,还用于将所述应答消息发送给所述终端。The sending module is further configured to send the response message to the terminal.
基于第二方面以及第二方面的第一和第二种中的任一种可能的实现方式,在第三种可能的实现方式中,所述调整模块,还用于根据所述终端连接的无线接入点设备发送的链路状态变化消息,调整所述创建模块创建的临时会话状态信息表中的带宽需求;Based on the second aspect and any one of the first and second possible implementations of the second aspect, in a third possible implementation, the adjustment module is further configured to: The link state change message sent by the access point device adjusts the bandwidth requirement in the temporary session state information table created by the creation module;
所述发送模块,还用于向所述终端发送会话更新消息,所述会话更新消息中包括所述调整模块调整后的带宽需求。The sending module is further configured to send a session update message to the terminal, where the session update message includes the bandwidth requirement adjusted by the adjustment module.
基于第二方面的第三种可能的实现方式,在第四种可能的实现方式中,所述监测模块,还用于检测到所述终端发起的基于万维网的实时通信的会话更新请求消息,所述会话更新请求消息中包括所述调整后的带宽需求;Based on the third possible implementation manner of the second aspect, in a fourth possible implementation manner, the monitoring module is further configured to detect a session update request message of a WWW-based real-time communication initiated by the terminal, and The session update request message includes the adjusted bandwidth requirement;
所述发送模块,还用于将所述会话更新请求消息发送给所述另一终端。The sending module is further configured to send the session update request message to the other terminal.
基于第二方面的第四种可能的实现方式,在第五种可能的实现方式中,所述监测模块,还用于检测到所述另一终端回应的基于万维网的实时通信的会话更新应答消息;Based on the fourth possible implementation of the second aspect, in a fifth possible implementation, the monitoring module is further configured to detect a session update response message of a real-time communication based on the World Wide Web that is responded by the other terminal ;
所述调整模块,还用于若所述会话更新应答消息中包括的带宽需求与所述代理设备保存的临时会话状态信息表中包括的带宽需求不一致,则根据所述会话更新应答消息中包括的带宽需求更新所述临时会话状态信息表中的带宽需求;The adjustment module is further configured to: if the bandwidth requirement included in the session update response message is inconsistent with the bandwidth requirement included in the temporary session state information table saved by the proxy device, then according to the bandwidth requirement included in the session update response message The bandwidth requirement updates the bandwidth requirement in the temporary session state information table;
所述发送模块,还用于将所述监测模块检测到的会话更新应答消息发送给所述终端。The sending module is further configured to send the session update response message detected by the monitoring module to the terminal.
本发明通过代理设备监测到终端向另一终端发送的会话请求消息,根据会话请求消息中包括的带宽需求,以及该终端的用户签约配置信息中包括的带宽需求,确定会话请求消息中包括的带宽需求是否与大于该终端的用户签约配置信息中包括的带宽需求,若是,则对会话请求消息中包括的带宽需求进行修改,使得会话请求消息中带宽需求小于该终端的用户签约配置信息中包括的带宽需求;从而可以实现根据终端的用户签约配置信息中包括的带宽需求调整终端发起的会话请求消息中的带宽需求。The present invention monitors a session request message sent by a terminal to another terminal through a proxy device, and determines the bandwidth included in the session request message according to the bandwidth requirement included in the session request message and the bandwidth requirement included in the user subscription configuration information of the terminal Whether the requirement is greater than the bandwidth requirement included in the user subscription configuration information of the terminal, if so, modify the bandwidth requirement included in the session request message so that the bandwidth requirement in the session request message is smaller than the bandwidth requirement included in the terminal user subscription configuration information Bandwidth requirement; thus, the bandwidth requirement in the session request message initiated by the terminal can be adjusted according to the bandwidth requirement included in the user subscription configuration information of the terminal.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1为基于万维网的实时通信WebRTC的系统架构图;Figure 1 is a system architecture diagram of real-time communication WebRTC based on the World Wide Web;
图2为本发明一实施例提供的基于万维网的实时通信的实现方法的流程示意图;FIG. 2 is a schematic flow diagram of a method for implementing real-time communication based on the World Wide Web provided by an embodiment of the present invention;
图3为本发明另一实施例提供的基于万维网的实时通信的实现方法的流程示意图;3 is a schematic flowchart of a method for implementing real-time communication based on the World Wide Web provided by another embodiment of the present invention;
图4为本发明另一实施例提供的基于万维网的实时通信的实现方法的信令图;FIG. 4 is a signaling diagram of a method for implementing real-time communication based on the World Wide Web provided by another embodiment of the present invention;
图5为本发明另一实施例提供的基于万维网的实时通信的实现方法的信令图;FIG. 5 is a signaling diagram of a method for implementing real-time communication based on the World Wide Web provided by another embodiment of the present invention;
图6为本发明另一实施例提供的基于万维网的实时通信的实现方法的信令图;FIG. 6 is a signaling diagram of a method for implementing real-time communication based on the World Wide Web provided by another embodiment of the present invention;
图7为本发明另一实施例提供的基于万维网的实时通信的实现装置的结构示意图;FIG. 7 is a schematic structural diagram of a device for realizing real-time communication based on the World Wide Web provided by another embodiment of the present invention;
图8为本发明另一实施例提供的基于万维网的实时通信的实现装置的结构示意图;FIG. 8 is a schematic structural diagram of a device for realizing real-time communication based on the World Wide Web provided by another embodiment of the present invention;
图9为本发明另一实施例提供的基于万维网的实时通信的实现系统的结构示意图。FIG. 9 is a schematic structural diagram of a system for realizing real-time communication based on the World Wide Web provided by another embodiment of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
图2为本发明一实施例提供的基于万维网的实时通信的实现方法的流程示意图,如图2所示,本实施例的基于万维网的实时通信的实现方法可以包括:FIG. 2 is a schematic flowchart of a method for implementing real-time communication based on the World Wide Web provided by an embodiment of the present invention. As shown in FIG. 2 , the method for implementing real-time communication based on the World Wide Web in this embodiment may include:
201、代理设备检测到终端发起的基于万维网的实时通信的会话请求消息,所述会话请求消息中包括带宽需求。201. The proxy device detects a session request message of a WWW-based real-time communication initiated by a terminal, where the session request message includes a bandwidth requirement.
其中,终端发起的基于万维网的实时通信的会话请求消息是终端通过Web服务器向另一终端发起的会话请求消息。Wherein, the session request message of the WWW-based real-time communication initiated by the terminal is a session request message initiated by the terminal to another terminal through the Web server.
举例来说,该会话请求消息是会话描述协议(英文:SessionDescriptionProtocol,简称SDP)中规定的一种请求消息,如offer消息。For example, the session request message is a request message specified in the Session Description Protocol (English: Session Description Protocol, SDP for short), such as an offer message.
该终端发送该会话请求消息,以请求和另一终端之间建立流媒体业务。该会话请求消息中包括带宽需求,其中,会话请求消息中包括的带宽需求是该终端为待建立的流媒体业务所请求的带宽。通常,会话请求消息中还可以包括业务类型、业务端口以及终端的IP地址等业务流信息。The terminal sends the session request message to request to establish a streaming media service with another terminal. The session request message includes a bandwidth requirement, wherein the bandwidth requirement included in the session request message is the bandwidth requested by the terminal for the streaming media service to be established. Usually, the session request message may also include service flow information such as service type, service port, and terminal IP address.
其中,代理设备是基于万维网的实时通信(英文:Web Real-timecommunication,简称WebRTC)代理。该WebRTC代理可以采用安装有WebRTC软件的主板来实现。举例来说,该安装有WebRTC软件的主板可以设置在无线局域网(英文:wireless local area network,简称WLAN)控制器中。该WLAN控制器通常用于管理和控制无线接入点(英文:accesspoint,简称AP)设备,为无线接入点设备提供业务配置。该WLAN控制器可以是遵循请求注解(英文:Request for Comments,简称RFC)5415的接入控制器(英文:Access Controller,简称AC)。Wherein, the agent device is a real-time communication (English: Web Real-timecommunication, WebRTC for short) agent based on the World Wide Web. The WebRTC agent can be implemented by using a main board installed with WebRTC software. For example, the mainboard on which the WebRTC software is installed may be set in a wireless local area network (English: wireless local area network, WLAN for short) controller. The WLAN controller is usually used to manage and control a wireless access point (English: accesspoint, AP for short) device, and provide service configuration for the wireless access point device. The WLAN controller may be an access controller (English: Access Controller, AC for short) complying with Request for Comments (English: Request for Comments, RFC for short) 5415.
在本发明的一个实施方式中,终端通过无线接入点设备连接网络后,终端通过浏览器在所述终端上创建流媒体会话信息,例如分配媒体会话端口、语音视频编码格式等,之后,终端通过Web服务器向另一终端发送会话请求消息。代理设备检测到终端通过Web服务器向另一终端发起的会话请求消息,获取该会话请求消息中包括的业务流信息,并进一步获取包括在业务流信息中的带宽需求。In one embodiment of the present invention, after the terminal connects to the network through a wireless access point device, the terminal creates streaming media session information on the terminal through a browser, such as allocating media session ports, audio and video encoding formats, etc. After that, the terminal Send a session request message to another terminal through the web server. The proxy device detects a session request message initiated by the terminal to another terminal through the web server, obtains the service flow information included in the session request message, and further obtains the bandwidth requirement included in the service flow information.
202、代理设备确定所述会话请求消息中包括的带宽需求是否大于所述终端的用户签约配置信息中包括的带宽需求,若代理设备确定所述会话请求消息中包括的带宽需求小于等于所述终端的用户签约配置信息中包括的带宽需求,则执行步骤203,若代理设备确定所述会话请求消息中包括的带宽需求大于所述终端的用户签约配置信息中包括的带宽需求,则执行步骤204。202. The proxy device determines whether the bandwidth requirement included in the session request message is greater than the bandwidth requirement included in the user subscription configuration information of the terminal, if the proxy device determines that the bandwidth requirement included in the session request message is less than or equal to the terminal Step 203 is executed if the proxy device determines that the bandwidth requirement included in the session request message is greater than the bandwidth requirement included in the user subscription configuration information of the terminal, then step 204 is executed.
其中,用户签约配置信息是在终端向网络运营商签约时,由网络运营商为该终端配置的用户签约配置信息。举例来说,终端向网络运营商注册网络成功之后,代理设备例如可以从网络运营商的验证、授权和记账(英文:Authentication AuthorizationAccounting,简称AAA)服务器或者归属用户服务器(英文:Home Subscriber Server,简称HSS)中获取并保存与该终端对应的用户签约配置信息,其中,用户签约配置信息中包括带宽需求,通常,用户签约配置信息中包括的带宽需求是指可以授权给终端用户使用的最大带宽。Wherein, the user subscription configuration information is the user subscription configuration information configured for the terminal by the network operator when the terminal signs a contract with the network operator. For example, after the terminal successfully registers with the network operator on the network, the proxy device may, for example, obtain the authentication, authorization and accounting (English: Authentication Authorization Accounting, AAA) server of the network operator or the home subscriber server (English: Home Subscriber Server, The user subscription configuration information corresponding to the terminal is obtained and stored in HSS for short, where the user subscription configuration information includes the bandwidth requirement. Usually, the bandwidth requirement included in the user subscription configuration information refers to the maximum bandwidth that can be authorized to the terminal user. .
举例来说,若用户签约配置信息中包括的带宽需求为512千比特每秒(英文:kilobit per second,简称kbps),假设终端发起的业务流信息中包括的带宽需求为1百万比特每秒(英文:megabit per second,简称Mbps),则可以确定业务流信息中包括的带宽需求大于所述终端的用户签约配置信息中包括的带宽需求。如果用户签约配置信息中的带宽需求为1Mbps,业务流信息中的带宽需求为512kbps,则可以确定业务流信息中包括的带宽需求小于所述终端的用户签约配置信息中包括的带宽需求。For example, if the bandwidth requirement included in the user subscription configuration information is 512 kilobits per second (English: kilobit per second, kbps for short), assume that the bandwidth requirement included in the service flow information initiated by the terminal is 1 million bits per second (English: megabit per second, Mbps for short), it can be determined that the bandwidth requirement included in the service flow information is greater than the bandwidth requirement included in the user subscription configuration information of the terminal. If the bandwidth requirement in the user subscription configuration information is 1 Mbps and the bandwidth requirement in the service flow information is 512 kbps, it can be determined that the bandwidth requirement included in the service flow information is smaller than the bandwidth requirement included in the user subscription configuration information of the terminal.
203、代理设备将所述会话请求消息通过Web服务器发送给另一终端。203. The proxy device sends the session request message to another terminal through the Web server.
代理设备若确定终端发起的会话请求消息中包括的带宽需求小于等于所述终端的用户签约配置信息中包括的带宽需求,代理设备将所述会话请求消息通过WEB服务器发送给另一终端;If the proxy device determines that the bandwidth requirement included in the session request message initiated by the terminal is less than or equal to the bandwidth requirement included in the user subscription configuration information of the terminal, the proxy device sends the session request message to another terminal through the WEB server;
可选地,代理设备在该代理设备上创建临时会话状态信息表,并将会话请求消息中包括的带宽需求保存到临时会话状态信息表中,通常,在实际应用中,除了将会话请求消息中包括的带宽需求保存到临时会话状态信息表中之外,代理设备还可以将会话请求消息中包括的其他业务流信息,例如业务类型,业务端口以及终端的IP地址,保存到临时会话状态信息表中。Optionally, the proxy device creates a temporary session state information table on the proxy device, and saves the bandwidth requirement included in the session request message into the temporary session state information table. Usually, in practical applications, in addition to the session request message In addition to saving the included bandwidth requirements in the temporary session state information table, the proxy device can also save other service flow information included in the session request message, such as service type, service port and terminal IP address, into the temporary session state information table middle.
204、代理设备修改所述会话请求消息中包括的带宽需求,使得所述会话请求消息中包括的带宽需求小于等于所述用户签约配置信息中包括的带宽需求,将修改后的会话请求消息通过Web服务器发送给另一终端。204. The proxy device modifies the bandwidth requirement included in the session request message so that the bandwidth requirement included in the session request message is less than or equal to the bandwidth requirement included in the user subscription configuration information, and transmits the modified session request message through the Web The server sends to another terminal.
在确定终端发起的会话请求消息中包括的带宽需求大于所述终端的用户签约配置信息中包括的带宽需求的情况下,代理设备可以修改所述会话请求消息中包括的带宽需求,使得会话请求消息中包括的带宽需求小于等于所述用户签约配置信息中包括的带宽需求。When it is determined that the bandwidth requirement included in the session request message initiated by the terminal is greater than the bandwidth requirement included in the user subscription configuration information of the terminal, the proxy device may modify the bandwidth requirement included in the session request message so that the session request message The bandwidth requirement included in is less than or equal to the bandwidth requirement included in the user subscription configuration information.
可选地,代理设备根据所述修改后的会话请求消息,在所述代理设备上创建临时会话状态信息表,并将修改后的会话请求消息中的带宽需求保存到临时会话状态信息表中,通常,在实际应用中,除了将修改后的会话请求消息中的带宽需求保存到临时会话状态信息表中之外,代理设备还可以将修改后的会话请求消息中包括的其他业务流信息,例如业务类型,业务端口以及终端的IP地址,保存到临时会话状态信息表中。Optionally, the proxy device creates a temporary session state information table on the proxy device according to the modified session request message, and saves the bandwidth requirement in the modified session request message into the temporary session state information table, Usually, in practical applications, in addition to saving the bandwidth requirements in the modified session request message into the temporary session state information table, the proxy device can also store other service flow information included in the modified session request message, such as The service type, service port and IP address of the terminal are stored in the temporary session state information table.
205、代理设备检测到另一终端回应的基万维网的实时通信的应答消息。205. The agent device detects a reply message of the real-time communication based on the World Wide Web that is responded by another terminal.
其中,另一终端发起的基于万维网的实时通信的应答消息是另一终端通过Web服务器向终端发送的预应答或应答消息。Wherein, the response message of the WWW-based real-time communication initiated by the other terminal is a pre-response or response message sent by the other terminal to the terminal through the Web server.
举例来说,应答消息是会话描述协议中规定的一种应答消息,如Pre-answer或answer消息。For example, the reply message is a kind of reply message stipulated in the session description protocol, such as a Pre-answer or answer message.
该应答消息中包括另一终端回应的带宽需求,进一步地,该应答消息中还包括另一终端回应的其他业务流信息,例如另一端口的IP地址、另一终端应答的业务类型、业务端口等信息。The response message includes the bandwidth requirement responded by the other terminal, and further, the response message also includes other service flow information responded by the other terminal, such as the IP address of the other port, the service type answered by the other terminal, the service port and other information.
在本发明的一个实施方式中,代理设备将会话请求消息或者修改后的会话请求消息发送给另一终端之后,另一终端通过浏览器在另一终端上创建流媒体会话信息,例如分配媒体会话端口,又例如,根据接收到的会话请求消息中的业务流信息,根据业务流信息中包括的业务类型,选择支持所述业务类型的语音视频编码格式,如果存在多个支持所述业务类型的语音视频编码格式,则根据预设语音视频编码格式信息优先级,优先使用优先级排序最前的语音视频编码格式,或者在多个支持的语音视频编码格式中任选一个语音视频编码格式。之后,另一终端通过Web服务器向终端回复预应答或应答消息。In one embodiment of the present invention, after the proxy device sends the session request message or the modified session request message to another terminal, the other terminal creates streaming media session information on the other terminal through a browser, such as assigning a media session For another example, according to the service flow information in the received session request message, according to the service type included in the service flow information, select a voice and video coding format that supports the service type, if there are multiple Voice and video coding format, according to the priority of the preset voice and video coding format information, give priority to using the voice and video coding format with the highest priority, or choose a voice and video coding format among multiple supported voice and video coding formats. Afterwards, another terminal replies a pre-response or response message to the terminal through the web server.
在本发明实施例采用代理设备创建临时会话状态信息表的实现方式中,代理设备检测到另一终端通过Web服务器向终端发送的预应答或应答消息;预应答或应答消息中包括另一终端应答的带宽需求以及其他业务流信息;通常,另一终端应答的带宽需求不会超过代理设备发送给另一终端的会话请求消息中包含的带宽需求。In the implementation of the embodiment of the present invention using a proxy device to create a temporary session state information table, the proxy device detects a pre-response or response message sent by another terminal to the terminal through a Web server; the pre-response or response message includes another terminal response The bandwidth requirements and other service flow information; usually, the bandwidth requirements of the other terminal response will not exceed the bandwidth requirements contained in the session request message sent by the proxy device to the other terminal.
假设所述预应答或应答消息中包括的带宽需求与所述临时会话状态信息表中包括的带宽需求不一致,代理设备根据所述预应答或应答消息中包括的带宽需求,更新代理设备上创建的临时会话状态信息表中的带宽需求,例如,假设终端发起的会话请求消息中包括的带宽需求为1Mbps,假设代理设备检测该终端发起的会话请求消息中包括的带宽需求没有超出该终端的用户签约配置信息中包括的带宽需求,如果另一终端的最大带宽需求为512Kbps,当另一终端向终端发送的预应答或应答消息中的带宽需求为512kbps,代理设备根据所述预应答或应答消息中包括的带宽需求更新代理设备上创建的临时会话状态信息表中的带宽需求,即代理设备将代理设备上创建的临时会话状态信息表中带宽需求更新为512Kbps。Assuming that the bandwidth requirement included in the pre-reply or reply message is inconsistent with the bandwidth requirement included in the temporary session state information table, the proxy device updates the The bandwidth requirement in the temporary session state information table, for example, assume that the bandwidth requirement included in the session request message initiated by the terminal is 1 Mbps, and assume that the proxy device detects that the bandwidth requirement included in the session request message initiated by the terminal does not exceed the user subscription of the terminal The bandwidth requirements included in the configuration information, if the maximum bandwidth requirement of another terminal is 512Kbps, when the bandwidth requirement in the pre-reply or response message sent by another terminal to the terminal is 512kbps, the proxy device The included bandwidth requirement updates the bandwidth requirement in the temporary session state information table created on the proxy device, that is, the proxy device updates the bandwidth requirement in the temporary session state information table created on the proxy device to 512Kbps.
在实际应用中,假设终端发起的会话请求消息中包括多个业务类型,而另一终端只应答了部分业务类型时,代理设备根据所述预应答或应答消息中包括的业务类型更新代理设备上创建的临时会话状态信息表中的业务类型,以便及时释放代理设备的资源空间。In practical applications, if the session request message initiated by the terminal includes multiple service types, and the other terminal only responds to part of the service types, the proxy device updates the The business type in the created temporary session state information table, so as to release the resource space of the proxy device in time.
206、代理设备将所述应答消息发送给所述终端。206. The proxy device sends the response message to the terminal.
终端接收到应答消息后,更新所述终端上的流媒体会话信息,例如保存另一终端的IP地址、另一终端的业务端口、另一终端应答的业务流信息、语音视频编解码格式等。终端通过浏览器根据更新后的流媒体会话信息,然后使用修改后的流媒体会话信息进行通信。After receiving the response message, the terminal updates the streaming media session information on the terminal, such as saving the IP address of the other terminal, the service port of the other terminal, the service flow information answered by the other terminal, the audio and video codec format, and the like. The terminal uses the modified streaming media session information to communicate according to the updated streaming media session information through the browser.
可选的,上述会话请求消息或应答消息中除了包括带宽需求之外,还包括终端的IP地址、另一端口的IP地址、业务类型、业务端口等。可选地,代理设备进一步可以获取会话请求消息或应答消息中的业务类型,配置与该业务类型对应的服务质量等级信息,之后,将该业务类型对应的服务质量等级信息发送给与所述终端连接的无线无线接入点设备,以使无线接入点设备根据所述服务质量等级信息,设置与所述服务质量等级信息对应的优先级,从而使得无线接入点设备检测到来自终端的业务流后,根据业务流信息中包括的业务类型,确定该业务类型对应的服务质量(英文:quality of service,简称QoS)等级,然后对该业务流进行相应的优先级标记,从而可以实现根据业务流的优先级进行调度,例如,高优先级的业务报文先传输,低优先级的业务报文后传输,保证了不同业务流的服务质量QoS。Optionally, besides the bandwidth requirement, the above session request message or response message also includes the IP address of the terminal, the IP address of another port, service type, service port and so on. Optionally, the proxy device can further obtain the service type in the session request message or the response message, configure the service quality level information corresponding to the service type, and then send the service quality level information corresponding to the service type to the terminal The wireless access point device connected, so that the wireless access point device sets the priority corresponding to the quality of service level information according to the service quality level information, so that the wireless access point device detects the service from the terminal After the flow, according to the service type included in the service flow information, determine the service quality (English: quality of service, referred to as QoS) level corresponding to the service type, and then mark the corresponding priority of the service flow, so that it can be realized according to the service Flow priority scheduling, for example, high-priority service packets are transmitted first, and low-priority service packets are transmitted later, ensuring the quality of service (QoS) of different service flows.
本发明实施例通过代理设备监测到终端向另一终端发送的会话请求消息,根据会话请求消息中包括的带宽需求,以及该终端的用户签约配置信息中包括的带宽需求,确定会话请求消息中包括的带宽需求是否与大于该终端的用户签约配置信息中包括的带宽需求,若是,则对会话请求消息中包括的带宽需求进行修改,使得会话请求消息中包括的带宽需求小于该终端的用户签约配置信息中包括的带宽需求;从而可以实现根据终端的用户签约配置信息中包括的带宽需求动态地调整终端发起的业务流信息中的带宽需求,使得终端与另一终端之间基于万维网的实时通信业务不会受到影响,保证终端与另一终端之间的流媒体会话的连续性。In the embodiment of the present invention, the proxy device monitors the session request message sent by the terminal to another terminal, and determines the session request message included in the session request message according to the bandwidth requirement included in the session request message and the bandwidth requirement included in the user subscription configuration information of the terminal. whether the bandwidth requirement included in the user subscription configuration information of the terminal is greater than the bandwidth requirement included in the terminal’s user subscription configuration information; if so, modify the bandwidth requirement included in the session request message so that the bandwidth requirement included in the session request message is smaller than the terminal’s user subscription configuration The bandwidth requirements included in the information; thus, it is possible to dynamically adjust the bandwidth requirements in the service flow information initiated by the terminal according to the bandwidth requirements included in the user subscription configuration information of the terminal, so that the real-time communication service based on the World Wide Web between the terminal and another terminal It will not be affected, and the continuity of the streaming media session between the terminal and another terminal is guaranteed.
在本发明实施例采用代理设备创建临时会话状态信息表的实现方式中,本发明实施例可以进一步采用图3所示的实现方式。图3为本发明实施例的一种实现方式提供的基于万维网的实时通信的实现方法的流程示意图。该方法包括:In the implementation manner of the embodiment of the present invention in which the proxy device is used to create the temporary session state information table, the embodiment of the present invention may further adopt the implementation manner shown in FIG. 3 . FIG. 3 is a schematic flowchart of a method for implementing real-time communication based on the World Wide Web provided by an implementation manner of an embodiment of the present invention. The method includes:
301、代理设备接收无线接入点设备发送的链路状态变化消息。301. The proxy device receives a link state change message sent by a wireless access point device.
当无线接入点设备监测到所述终端与所述另一终端之间的链路状态发生变化时,例如,当链路的丢包率或重传率大于指定的门限后,或者链路的信噪比(英文:signal-to-noise ratio,简称SNR)大于指定的门限后,或者信干噪比(英文:signal to interferenceplus noise ratio,简称SINR)大于指定的门限后,无线接入点设备向代理设备发送链路状态变化消息,其中,链路状态变化消息中包括终端标识和链路信息,其中,链路信息中包括链路标识,进一步地,链路信息中还可以包括丢包率、重传率或信噪比中的至少一项。When the wireless access point device detects that the link state between the terminal and the other terminal changes, for example, when the packet loss rate or retransmission rate of the link is greater than a specified threshold, or the After the signal-to-noise ratio (English: signal-to-noise ratio, referred to as SNR) is greater than the specified threshold, or the signal to interference plus noise ratio (English: signal to interferenceplus noise ratio, referred to as SINR) is greater than the specified threshold, the wireless access point device Send a link state change message to the proxy device, where the link state change message includes a terminal identifier and link information, where the link information includes a link identifier, and further, the link information may also include a packet loss rate , at least one of retransmission rate or signal-to-noise ratio.
302、代理设备根据所述链路状态变化消息调整所述临时会话状态信息表中的带宽需求。302. The proxy device adjusts the bandwidth requirement in the temporary session state information table according to the link state change message.
代理设备中可以保存有预设的门限和带宽需求变化量的对应关系。具体实现时,例如,当终端与另一终端之间的链路的丢包率大于第一预设门限,例如10%时,代理设备可以根据与第一预设门限对应的带宽需求变化量调整临时会话状态信息表中的带宽需求,如减少20%;当终端与另一终端之间的链路的丢包率大于第二预设门限,例如25%时,代理设备可以根据与第二预设门限对应的带宽需求变化量调整临时会话状态信息表中的带宽需求,如减少40%。The proxy device may store the correspondence between the preset threshold and the bandwidth demand variation. During specific implementation, for example, when the packet loss rate of the link between the terminal and another terminal is greater than the first preset threshold, such as 10%, the proxy device can adjust the The bandwidth demand in the temporary session state information table, such as reducing by 20%; when the packet loss rate of the link between the terminal and another terminal is greater than the second preset threshold, such as 25%, the proxy device can Set the bandwidth demand variation corresponding to the threshold to adjust the bandwidth demand in the temporary session state information table, for example, reduce it by 40%.
又例如,假设终端与另一终端之间的链路的SNR小于第三预设门限时,代理设备可以相应减少临时会话状态信息表中的带宽需求。For another example, assuming that the SNR of the link between the terminal and another terminal is smaller than the third preset threshold, the proxy device may correspondingly reduce the bandwidth requirement in the temporary session state information table.
303、代理设备向终端发送会话更新消息,所述会话更新消息中包括调整后的带宽需求。303. The proxy device sends a session update message to the terminal, where the session update message includes the adjusted bandwidth requirement.
举例来说,会话更新消息是会话描述协议中规定的一种通知消息,如notify消息。For example, the session update message is a notification message specified in the session description protocol, such as a notify message.
该会话更新消息中包括代理设备调整后的带宽需求,其中,调整后的业务流信息包括减少后的带宽需求。The session update message includes the adjusted bandwidth requirement of the proxy device, wherein the adjusted service flow information includes the reduced bandwidth requirement.
终端收到会话更新消息后,检测调整后的带宽需求是否满足终端和另一终端之间的流媒体业务所需要的最小带宽,如果满足,则终端调整所述终端上的流媒体会话信息,向另一终端发送会话更新请求消息,并在会话更新请求消息中包括所述调整后的带宽需求。After the terminal receives the session update message, it detects whether the adjusted bandwidth requirement meets the minimum bandwidth required by the streaming media service between the terminal and another terminal, and if so, the terminal adjusts the streaming media session information on the terminal to send The other terminal sends a session update request message, and includes the adjusted bandwidth requirement in the session update request message.
304、代理设备检测到终端发起的基于万维网的实时通信的会话更新请求消息。304. The proxy device detects the session update request message of the WWW-based real-time communication initiated by the terminal.
其中,终端发起的基于万维网的实时通信的会话更新请求消息为终端通过Web服务器向另一终端发起的会话更新请求消息。Wherein, the session update request message of the WWW-based real-time communication initiated by the terminal is a session update request message initiated by the terminal to another terminal through the Web server.
举例来说,会话更新请求消息是会话描述协议中规定的一种请求消息,如notifyrequest消息。For example, the session update request message is a request message specified in the session description protocol, such as a notifyrequest message.
该会话更新请求消息中包括调整后的带宽需求,其中,调整后的带宽需求包括代理设备减少后的带宽需求。The session update request message includes the adjusted bandwidth requirement, where the adjusted bandwidth requirement includes the reduced bandwidth requirement of the proxy device.
305、代理设备将所述会话更新请求消息通过Web服务器发送给另一终端。305. The proxy device sends the session update request message to another terminal through the Web server.
可选地,另一终端接收会话更新请求消息后,可以检查调整后的带宽需求是否满足终端和另一终端之间的流媒体业务所需要的最小带宽,如果满足,则另一终端根据调整后的带宽需求调整所述另一终端上的流媒体会话信息,并向终端回复会话更新应答消息;Optionally, after the other terminal receives the session update request message, it can check whether the adjusted bandwidth requirement meets the minimum bandwidth required by the streaming media service between the terminal and the other terminal. Adjust the streaming media session information on the other terminal according to the bandwidth requirement, and reply a session update response message to the terminal;
可选地,另一终端接收会话更新请求消息之前,终端已经根据代理设备发送的会话更新消息,检测调整后的带宽需求是否满足终端和另一终端之间的流媒体业务所需要的最小带宽,因此,另一终端接收会话更新请求消息之后,可以直接根据调整后的带宽需求调整所述另一终端上的流媒体会话信息,并向终端回复会话更新应答消息。Optionally, before the other terminal receives the session update request message, the terminal has detected whether the adjusted bandwidth requirement meets the minimum bandwidth required by the streaming media service between the terminal and the other terminal according to the session update message sent by the proxy device, Therefore, after another terminal receives the session update request message, it can directly adjust the streaming media session information on the other terminal according to the adjusted bandwidth requirement, and reply a session update response message to the terminal.
306、代理设备检测到所述另一终端回应的基于万维网的实时通信的会话更新应答消息。306. The proxy device detects the session update response message of the real-time communication based on the World Wide Web responded by the other terminal.
其中,所述另一终端回应的基于万维网的实时通信的会话更新应答消息为所述另一终端通过Web服务器向终端发起的会话更新应答消息。Wherein, the session update response message of the WWW-based real-time communication responded by the other terminal is a session update response message initiated by the other terminal to the terminal through the Web server.
举例来说,会话更新应答消息是会话描述协议中规定的一种应答消息,如notifyresponse消息。For example, the session update response message is a response message specified in the session description protocol, such as a notifyresponse message.
该会话更新应答消息中包括另一终端应答的带宽需求,进一步地,会话更新应答消息中还可以包括另一终端应答的其他业务流信息,例如,另一终端应答的业务类型、业务端口以及另一终端的IP地址等信息。The session update response message includes the bandwidth requirements answered by the other terminal. Further, the session update response message may also include other service flow information answered by the other terminal, for example, the service type, service port, and other information answered by the other terminal. Information such as the IP address of a terminal.
若所述会话更新应答消息中包括的带宽需求与所述代理设备创建的临时会话状态信息表中包括的带宽需求不一致,则根据所述会话更新应答消息中包括的带宽需求更新所述临时会话状态信息表中的带宽需求。If the bandwidth requirement included in the session update response message is inconsistent with the bandwidth requirement included in the temporary session state information table created by the proxy device, update the temporary session state according to the bandwidth requirement included in the session update response message Bandwidth requirements in the information table.
307、代理设备将所述会话更新应答消息发送给所述终端。307. The proxy device sends the session update response message to the terminal.
终端通过浏览器根据会话更新应答消息更新所述终端上的流媒体会话信息,然后使用修改后的流媒体会话信息进行通信。The terminal updates the streaming media session information on the terminal through the browser according to the session update response message, and then communicates using the modified streaming media session information.
本发明实施例中通过无线接入点设备在监测到终端与所述另一终端之间的链路状态发生变化时,无线接入点设备向代理设备发送链路状态变化消息,代理设备根据所述链路状态变化消息重新调整所述代理设备创建的临时会话状态信息表中包括的带宽需求,并向终端发送会话更新消息,以使终端根据会话更新消息,向另一终端发送会话更新请求消息,触发另一终端向终端返回会话更新应答消息;从而当无线网络受到无线信号的干扰,或者无线网络速率存在不同程度的波动,或者无线网络的带宽不能得到保证时,通过代理设备可以动态地调整终端发起的业务流信息中的带宽需求,从而不会对基于万维网的实时通信业务造成影响,保证了业务的连续性。In the embodiment of the present invention, when the wireless access point device detects that the link state between the terminal and the other terminal changes, the wireless access point device sends a link state change message to the agent device, and the agent device The link state change message readjusts the bandwidth requirements included in the temporary session state information table created by the proxy device, and sends a session update message to the terminal, so that the terminal sends a session update request message to another terminal according to the session update message , to trigger another terminal to return a session update response message to the terminal; thus, when the wireless network is interfered by wireless signals, or the wireless network rate fluctuates to varying degrees, or the bandwidth of the wireless network cannot be guaranteed, the proxy device can dynamically adjust The bandwidth requirement in the service flow information initiated by the terminal will not affect the real-time communication service based on the World Wide Web, thereby ensuring the continuity of the service.
图4为本发明另一实施例提供的基于万维网的实时通信的实现方法的信令图;如图4所示,当终端向另一终端发起语音或视频实时通信的过程,具体包括:FIG. 4 is a signaling diagram of a method for implementing real-time communication based on the World Wide Web provided by another embodiment of the present invention; as shown in FIG. 4 , when a terminal initiates a voice or video real-time communication process to another terminal, it specifically includes:
401、WebRTC代理监测到终端发起的会话请求消息。401. The WebRTC agent detects a session request message initiated by the terminal.
具体实现时,终端通过浏览器访问Web服务器,通过Web服务器向另一终端发起会话请求消息,该会话请求消息用于请求与另一终端建立流媒体会话,流媒体会话包括语音,视频和数据传输中的至少一项。During specific implementation, the terminal accesses the Web server through the browser, and initiates a session request message to another terminal through the Web server. The session request message is used to request to establish a streaming media session with another terminal, and the streaming media session includes voice, video and data transmission. At least one of the .
在终端发起会话请求消息前,终端通过浏览器在所述终端上创建流媒体会话信息,包括分配媒体会话端口、语音视频编码格式等。Before the terminal initiates a session request message, the terminal creates streaming media session information on the terminal through a browser, including allocating media session ports, audio and video coding formats, and the like.
WebRTC代理监测到会话请求消息,在WebRTC代理上创建临时会话状态信息表;具体实现时,WebRTC代理解释并获取会话请求消息中包括的带宽需求以及其他业务流信息;The WebRTC proxy monitors the session request message, and creates a temporary session status information table on the WebRTC proxy; during specific implementation, the WebRTC proxy interprets and obtains the bandwidth requirements and other business flow information included in the session request message;
WebRTC代理根据获取的会话请求消息中包括的带宽需求和终端的用户签约配置信息中的带宽需求进行相应的处理,例如,当业务流信息中的带宽需求大于用户签约配置信息中的带宽需求时,则修改业务流信息中的带宽需求,使得业务流信息中的带宽需求小于用户签约配置信息中的带宽需求。The WebRTC agent performs corresponding processing according to the bandwidth requirements included in the obtained session request message and the bandwidth requirements in the terminal user subscription configuration information. For example, when the bandwidth requirements in the service flow information are greater than the bandwidth requirements in the user subscription configuration information, Then modify the bandwidth requirement in the service flow information, so that the bandwidth requirement in the service flow information is smaller than the bandwidth requirement in the user subscription configuration information.
402、WebRTC代理通过Web服务器将会话请求消息或修改后的会话请求消息发送另一终端。402. The WebRTC agent sends the session request message or the modified session request message to another terminal through the Web server.
403、WebRTC代理检测到另一终端回复的预应答消息。403. The WebRTC proxy detects a pre-response message replied by another terminal.
具体地,另一终端收到会话请求消息或修改后的会话请求消息之后,通过浏览器在所述另一终端上创建流媒体会话信息,例如,分配会话端口;例如,根据会话请求消息或修改后的会话请求消息中的业务流信息,获取终端支持的语音视频等媒体信息,选择本次会话使用的媒体信息,可选地,如果另一终端支持多个语音视频编码格式,根据用户指令任选一个支持的语音视频编码格式。然后,另一终端通过Web服务器向终端发送预应答消息。Specifically, after the other terminal receives the session request message or the modified session request message, it creates streaming media session information on the other terminal through the browser, for example, assigning a session port; for example, according to the session request message or the modified The service flow information in the subsequent session request message, obtain the media information such as audio and video supported by the terminal, and select the media information used in this session. Optionally, if another terminal supports multiple audio and video encoding formats, any Select a supported audio and video encoding format. Then, another terminal sends a pre-response message to the terminal through the web server.
WebRTC代理检测到另一终端回复的预应答消息之后,另一终端回复的预应答消息中的带宽需求与WebRTC代理上的临时会话状态信息表中的带宽需求不一致时,WebRTC代理根据预应答消息中的带宽需求更新所述WebRTC代理上的临时会话状态信息表中的带宽需求。通常,WebRTC代理还可以将预应答消息中的其他业务流信息,例如另一终端应答的业务类型、业务端口以及另一终端的IP地址,保存到临时会话状态信息表中。After the WebRTC agent detects the pre-response message replied by another terminal, if the bandwidth requirement in the pre-response message replied by another terminal is inconsistent with the bandwidth requirement in the temporary session state information table on the WebRTC agent, the WebRTC agent will respond according to the pre-response message Update the bandwidth requirement in the temporary session state information table on the WebRTC proxy. Usually, the WebRTC agent can also save other service flow information in the pre-response message, such as the service type, service port and IP address of another terminal answered by another terminal, into the temporary session state information table.
404、WebRTC代理将预应答消息发送给终端。404. The WebRTC agent sends the pre-response message to the terminal.
405、终端根据预应答消息,更新所述终端上的流媒体会话信息。405. The terminal updates the streaming media session information on the terminal according to the pre-response message.
终端接收到预应答消息之后,需要根据预应答消息中的带宽需求以及其他业务流信息,更新所述终端上的流媒体会话信息,例如,保存另一终端的IP地址和业务端口以及另一终端支持的语音或视频的编解码格式,又例如,假设另一终端只应答了部分业务流信息,终端根据另一终端应答的部分业务流信息,删除其他部分业务流信息,又例如,更新终端上的流媒体会话信息中的带宽需求。After the terminal receives the pre-response message, it needs to update the streaming media session information on the terminal according to the bandwidth requirements and other service flow information in the pre-response message, for example, save the IP address and service port of the other terminal and the other terminal's Supported voice or video codec format, another example, assuming that another terminal only responds to part of the service flow information, the terminal deletes other part of the service flow information according to the part of the service flow information answered by the other terminal, and for example, updates the service flow information on the terminal Bandwidth requirements in the streaming session information for .
此时,终端和另一终端之间建立了流媒体通信路径,终端和另一终端可以通过建立的流媒体通信路径,根据各自的流媒体会话信息实现流媒体会话。或者At this point, a streaming media communication path is established between the terminal and another terminal, and the terminal and another terminal can implement a streaming media session according to their respective streaming media session information through the established streaming media communication path. or
406、WebRTC代理检测到另一终端通过Web服务器向终端发送的应答消息。406. The WebRTC agent detects a response message sent by another terminal to the terminal through the Web server.
假设另一终端根据用户指令接受会话请求,即可触发另一终端通过Web服务器向终端发送应答消息。Assuming that the other terminal accepts the session request according to the user instruction, the other terminal can be triggered to send a response message to the terminal through the Web server.
WebRTC代理检测到另一终端回复的应答消息之后,另一终端回复的应答消息中的带宽需求与WebRTC代理上的临时会话状态信息表中的带宽需求不一致时,WebRTC代理根据应答消息中的带宽需求更新所述WebRTC代理上的临时会话状态信息表中的带宽需求。通常,WebRTC代理还可以将应答消息中的其他业务流信息,例如另一终端应答的业务类型、业务端口以及另一终端的IP地址,保存到临时会话状态信息表中。After the WebRTC agent detects the response message replied by another terminal, if the bandwidth requirement in the response message returned by the other terminal is inconsistent with the bandwidth requirement in the temporary session state information table on the WebRTC agent, the WebRTC agent will respond according to the bandwidth requirement in the response message Update the bandwidth requirement in the temporary session state information table on the WebRTC proxy. Usually, the WebRTC agent can also save other service flow information in the response message, such as the service type, service port and IP address of another terminal answered by another terminal, into the temporary session state information table.
407、WebRTC代理将应答消息发送给终端;407. The WebRTC agent sends the response message to the terminal;
408、终端根据应答消息,更新所述终端上的流媒体会话信息。408. The terminal updates the streaming media session information on the terminal according to the response message.
例如,保存另一终端的IP地址和业务端口以及另一终端支持的语音或视频的编解码格式,又例如,假设另一终端只应答了部分业务流信息,终端根据另一终端应答的部分业务流信息,删除其他部分业务流信息。For example, save the IP address and service port of the other terminal and the codec format of the voice or video supported by the other terminal. For another example, assuming that the other terminal only answers part of the service flow information, the terminal Flow information, delete other part of business flow information.
终端通过浏览器根据更新后的流媒体会话信息,然后使用修改后的业务流信息进行通信。The terminal communicates with the modified service flow information according to the updated streaming media session information through the browser.
可选地,代理设备进一步可以获取会话请求消息或应答消息中的业务类型,配置与该业务类型对应的服务质量等级信息,之后,将该业务类型对应的服务质量等级信息发送给与所述终端连接的无线无线接入点设备,以使无线接入点设备根据所述服务质量等级信息,设置与所述服务质量等级信息对应的优先级,从而使得无线接入点设备检测到来自终端的业务流后,根据业务流信息中包括的业务类型,确定该业务类型对应的QoS等级,然后对该业务流进行相应的优先级标记。Optionally, the proxy device can further obtain the service type in the session request message or the response message, configure the service quality level information corresponding to the service type, and then send the service quality level information corresponding to the service type to the terminal The wireless access point device connected, so that the wireless access point device sets the priority corresponding to the quality of service level information according to the service quality level information, so that the wireless access point device detects the service from the terminal After the flow, according to the service type included in the service flow information, determine the QoS level corresponding to the service type, and then mark the corresponding priority on the service flow.
例如,终端向另一终端发送会话媒体流时,无线接入点设备可以检测来自终端的媒体流,获取媒体流中的业务流信息,根据获取的业务流信息中的业务类型确定对应的Qos等级信息,根据确定的Qos等级信息确定对应的业务流的优先级。当媒体流是IPv4报文,则可以将优先级标识添加到第4版互联网协议(英文:Internet Protocol version 4,简称IPv4)报文的服务类型(英文:Type of Service,简称ToS)字段。在实际应用中,下一跳设备在接收到带有优先级标识的媒体流时,可以根据优先级标识进行传输,例如高优先级的媒体流先传输,低优先级的媒体流后传输。For example, when a terminal sends a session media stream to another terminal, the wireless access point device can detect the media stream from the terminal, obtain the service flow information in the media stream, and determine the corresponding QoS level according to the service type in the obtained service flow information information, and determine the priority of the corresponding service flow according to the determined Qos level information. When the media stream is an IPv4 packet, the priority identifier may be added to the Type of Service (English: Type of Service, ToS for short) field of the Internet Protocol version 4 (English: Internet Protocol version 4, IPv4 for short) packet. In practical applications, when the next-hop device receives a media stream with a priority identifier, it can transmit according to the priority identifier, for example, a high-priority media stream is transmitted first, and a low-priority media stream is transmitted later.
又例如,另一终端向终端发送会话媒体流时,无线接入点设备可以检测来自另一终端的媒体流,获取媒体流中的业务流信息,根据获取的业务流信息中的业务类型确定对应的Qos等级信息,根据确定的Qos等级信息确定对应的业务流的优先级。无线接入点设备根据优先级标识确定媒体流对应的优先级的发送队列并发送给终端。高优先级的媒体流先传输给终端,低优先级的媒体流后传输终端。For another example, when another terminal sends a session media stream to the terminal, the wireless access point device can detect the media stream from the other terminal, obtain the service flow information in the media stream, and determine the corresponding service type according to the service type in the obtained service flow information. The Qos level information of the corresponding service flow is determined according to the determined Qos level information. The wireless access point device determines the sending queue corresponding to the priority of the media stream according to the priority identifier and sends it to the terminal. High-priority media streams are transmitted to the terminal first, and low-priority media streams are transmitted to the terminal later.
本发明实施例通过代理设备监测到终端向另一终端发送的会话请求消息,根据会话请求消息中包括的带宽需求,以及该终端的用户签约配置信息中包括的带宽需求,确定会话请求消息中包括的带宽需求是否与大于该终端的用户签约配置信息中包括的带宽需求,若是,则对会话请求消息中包括的带宽需求进行修改,使得会话请求消息中包括的带宽需求小于该终端的用户签约配置信息中包括的带宽需求;之后,将修改后的会话请求消息发送给另一终端;从而可以实现根据终端的用户签约配置信息中包括的带宽需求动态地调整终端发起的业务流信息中的带宽需求,从而不会对基于万维网的实时通信业务造成影响,保证了业务的连续性。In the embodiment of the present invention, the proxy device monitors the session request message sent by the terminal to another terminal, and determines the session request message included in the session request message according to the bandwidth requirement included in the session request message and the bandwidth requirement included in the user subscription configuration information of the terminal. whether the bandwidth requirement included in the user subscription configuration information of the terminal is greater than the bandwidth requirement included in the terminal’s user subscription configuration information; if so, modify the bandwidth requirement included in the session request message so that the bandwidth requirement included in the session request message is smaller than the terminal’s user subscription configuration The bandwidth requirement included in the information; afterward, the modified session request message is sent to another terminal; thus, the bandwidth requirement in the service flow information initiated by the terminal can be dynamically adjusted according to the bandwidth requirement included in the terminal's user subscription configuration information , so that it will not affect the real-time communication business based on the World Wide Web, ensuring the continuity of the business.
图5为本发明另一实施例提供的基于万维网的实时通信的实现方法的信令图;如图5所示,当另一终端向终端发起语音或视频实时通信的过程,具体包括:FIG. 5 is a signaling diagram of a method for implementing a real-time communication based on the World Wide Web provided by another embodiment of the present invention; as shown in FIG. 5 , when another terminal initiates a voice or video real-time communication process to the terminal, it specifically includes:
501、WebRTC代理监测到另一终端发起的会话请求消息。501. The WebRTC agent detects a session request message initiated by another terminal.
另一终端通过Web服务器向终端发起会话请求消息,该会话请求消息用于请求与终端建立流媒体会话,流媒体会话包括语音或视频或数据传输中的至少一项。Another terminal initiates a session request message to the terminal through the web server, and the session request message is used to request to establish a streaming media session with the terminal, and the streaming media session includes at least one of voice, video, or data transmission.
在另一终端发起会话请求消息前,另一终端通过浏览器在所述另一终端上创建流媒体会话信息,包括分配媒体会话端口、语音视频编码格式等。Before another terminal initiates a session request message, another terminal creates streaming media session information on the other terminal through a browser, including allocating media session ports, audio and video coding formats, and the like.
WebRTC代理监视到会话请求消息之后,在WebRTC代理上创建临时会话状态信息表;具体实现时,WebRTC代理解释并获取会话请求消息中包括的带宽需求以及其他业务流信息。After the WebRTC proxy monitors the session request message, it creates a temporary session state information table on the WebRTC proxy; during specific implementation, the WebRTC proxy interprets and obtains the bandwidth requirements and other business flow information included in the session request message.
WebRTC代理根据获取的会话请求消息中包括的带宽需求以及终端的用户签约配置信息中的带宽需求进行处理,例如,当会话请求消息中包括的带宽需求大于终端的用户签约配置信息中的带宽需求时,则修改会话请求消息中包括的带宽需求。The WebRTC agent performs processing according to the bandwidth requirement included in the obtained session request message and the bandwidth requirement in the terminal's user subscription configuration information, for example, when the bandwidth requirement included in the session request message is greater than the bandwidth requirement in the terminal's user subscription configuration information , modify the bandwidth requirement included in the session request message.
502、WebRTC代理将会话请求消息或修改后的会话请求消息发送终端。502. The WebRTC proxy sends the session request message or the modified session request message to the terminal.
503、WebRTC代理检测到终端回复的预应答消息。503. The WebRTC proxy detects the pre-response message returned by the terminal.
具体地,终端收到会话请求消息或修改后的会话请求消息之后,通过浏览器在所述终端上创建流媒体会话信息,例如,分配会话端口;例如,根据会话请求消息或修改后的会话请求消息中的业务流信息,获取另一终端支持的语音视频等媒体信息,选择本次会话使用的媒体信息,可选地,如果终端支持多个语音视频编码格式,则根据用户指令任选一个语音视频编码格式。然后,通过Web服务器向另一终端发送预应答消息。Specifically, after receiving the session request message or the modified session request message, the terminal creates streaming media session information on the terminal through the browser, for example, assigning a session port; for example, according to the session request message or the modified session request The business flow information in the message obtains media information such as voice and video supported by another terminal, and selects the media information used in this session. Optionally, if the terminal supports multiple voice and video encoding formats, select a voice according to user instructions Video encoding format. Then, send a pre-response message to another terminal through the web server.
WebRTC代理检测到终端回复的预应答消息之后,终端回复的预应答消息中的带宽需求与WebRTC代理上的临时会话状态信息表中的带宽需求不一致时,WebRTC代理根据预应答消息中的带宽需求更新所述WebRTC代理上的临时会话状态信息表中的带宽需求。通常,WebRTC代理还可以将预应答消息中的其他业务流信息,例如终端应答的业务类型、业务端口以及终端的IP地址,保存到临时会话状态信息表中。After the WebRTC proxy detects the pre-response message returned by the terminal, if the bandwidth requirement in the pre-response message returned by the terminal is inconsistent with the bandwidth requirement in the temporary session state information table on the WebRTC proxy, the WebRTC proxy updates according to the bandwidth requirement in the pre-response message Bandwidth requirements in the temporary session state information table on the WebRTC proxy. Usually, the WebRTC agent can also save other service flow information in the pre-response message, such as the service type, service port and IP address of the terminal answered by the terminal, into the temporary session state information table.
504、WebRTC代理将预应答消息通过Web服务器发送给另一终端。504. The WebRTC proxy sends the pre-response message to another terminal through the Web server.
505、另一终端根据预应答消息,更新所述另一终端上的流媒体会话信息。505. The other terminal updates the streaming media session information on the other terminal according to the pre-response message.
当另一终端接收到预应答消息之后,需要根据预应答消息中包含的带宽需求以及其他业务流信息,更新所述另一终端上的流媒体会话信息,例如,保存终端的IP地址和业务端口以及终端支持的语音或视频的编解码格式,又例如,假设终端只应答了部分业务流信息,另一终端根据终端应答的部分业务流信息,删除其他部分业务流信息;又例如,根据预应答消息中包含的带宽需求更新所述另一终端上的流媒体会话信息中的带宽需求。After another terminal receives the pre-response message, it needs to update the streaming media session information on the other terminal according to the bandwidth requirements and other service flow information contained in the pre-response message, for example, save the terminal's IP address and service port And the audio or video codec format supported by the terminal. For another example, assuming that the terminal only responds to part of the service flow information, the other terminal deletes other part of the service flow information according to the part of the service flow information answered by the terminal; another example, according to the pre-answer The bandwidth requirement included in the message updates the bandwidth requirement in the streaming media session information on the other terminal.
此时,终端和另一终端之间建立了流媒体通信路径,终端和另一终端可以通过建立的流媒体通信路径,根据各自的流媒体会话信息实现流媒体会话。或者At this point, a streaming media communication path is established between the terminal and another terminal, and the terminal and another terminal can implement a streaming media session according to their respective streaming media session information through the established streaming media communication path. or
506、WebRTC代理检测到终端通过Web服务器向另一终端发送的应答消息。506. The WebRTC proxy detects the response message sent by the terminal to another terminal through the Web server.
假设终端根据用户指令接受会话请求,即可触发终端通过Web服务器向另一终端发送应答消息。Assuming that the terminal accepts the session request according to the user instruction, the terminal can be triggered to send a response message to another terminal through the Web server.
WebRTC代理检测到终端回复的应答消息之后,终端回复的应答消息中的带宽需求与WebRTC代理上的临时会话状态信息表中的带宽需求不一致时,WebRTC代理根据应答消息中的带宽需求更新所述WebRTC代理上的临时会话状态信息表中的带宽需求。通常,WebRTC代理还可以将应答消息中的其他业务流信息,例如终端应答的业务类型、业务端口以及终端的IP地址,保存到临时会话状态信息表中。After the WebRTC agent detects the response message returned by the terminal, if the bandwidth requirement in the response message returned by the terminal is inconsistent with the bandwidth requirement in the temporary session state information table on the WebRTC agent, the WebRTC agent updates the WebRTC agent according to the bandwidth requirement in the response message Bandwidth requirements in the temporary session state information table on the proxy. Usually, the WebRTC agent can also save other service flow information in the response message, such as the service type, service port and terminal IP address of the terminal response, into the temporary session state information table.
507、WebRTC代理将应答消息发送给另一终端。507. The WebRTC proxy sends the response message to another terminal.
508、另一终端根据应答消息,更新所述另一终端上的流媒体会话信息。508. The other terminal updates the streaming media session information on the other terminal according to the response message.
例如,保存终端的IP地址和业务端口以及终端支持的语音或视频的编解码格式,又例如,假设终端只应答了部分业务流信息,另一终端根据终端应答的部分业务流信息,删除其他部分业务流信息。此时,终端和另一终端通过流媒体通信路径进行实时流媒体通信。For example, save the IP address and service port of the terminal, as well as the audio or video codec formats supported by the terminal. For another example, suppose the terminal only responds to part of the service flow information, and another terminal deletes other parts according to the part of the service flow information answered by the terminal business flow information. At this time, the terminal and another terminal perform real-time streaming media communication through the streaming media communication path.
本发明实施例通过代理设备监测到另一终端向终端发送的会话请求消息,根据会话请求消息中包括的带宽需求,以及该终端的用户签约配置信息中包括的带宽需求,确定会话请求消息中包括的带宽需求是否与大于该终端的用户签约配置信息中包括的带宽需求,若是,则对会话请求消息中包括的带宽需求进行修改,使得会话请求消息中包括的带宽需求小于该终端的用户签约配置信息中包括的带宽需求;之后,将修改后的会话请求消息发送给终端;从而可以实现根据终端的用户签约配置信息中包括的带宽需求动态地调整另一终端发起的业务流信息中的带宽需求,从而不会对基于万维网的实时通信业务造成影响,保证了业务的连续性。In the embodiment of the present invention, the proxy device monitors the session request message sent by another terminal to the terminal, and determines the session request message included in the session request message according to the bandwidth requirement included in the session request message and the bandwidth requirement included in the user subscription configuration information of the terminal. whether the bandwidth requirement included in the user subscription configuration information of the terminal is greater than the bandwidth requirement included in the terminal’s user subscription configuration information; if so, modify the bandwidth requirement included in the session request message so that the bandwidth requirement included in the session request message is smaller than the terminal’s user subscription configuration The bandwidth requirement included in the information; after that, the modified session request message is sent to the terminal; thus, the bandwidth requirement in the service flow information initiated by another terminal can be dynamically adjusted according to the bandwidth requirement included in the user subscription configuration information of the terminal , so that it will not affect the real-time communication business based on the World Wide Web, ensuring the continuity of the business.
图6为本发明另一实施例提供的基于万维网的实时通信的实现方法的信令图,当无线网络受到无线信号的干扰等因素,或者无线网络速率存在不同程度的波动,或者无线网络带宽不能得到保证时,影响到基于万维网的实时通信业务,为了克服这个问题,本实施例可以通过无线接入点设备监测链路状态变化信息触发会话更新的流程,具体过程如图6所示,包括:Fig. 6 is a signaling diagram of a method for realizing real-time communication based on the World Wide Web provided by another embodiment of the present invention. When it is guaranteed, it will affect the real-time communication service based on the World Wide Web. In order to overcome this problem, this embodiment can monitor the link state change information through the wireless access point device to trigger the process of session update. The specific process is shown in Figure 6, including:
601、无线接入点设备检测到无线链路状态发生变化。601. The wireless access point device detects that a wireless link state changes.
其中,无线链路是指终端与另一终端之间建立的流媒体通信链路。Wherein, the wireless link refers to a streaming media communication link established between a terminal and another terminal.
例如,当无线链路的丢包率或重传率大于指定的门限后,或者无线链路的信噪比或信干噪比大于指定的门限后,无线接入点设备可以检测无线链路状态发生变化。For example, when the packet loss rate or retransmission rate of the wireless link is greater than the specified threshold, or the signal-to-noise ratio or signal-to-interference-noise ratio of the wireless link is greater than the specified threshold, the wireless access point device can detect the status of the wireless link change.
602、无线接入点设备向WebRTC代理发送无线链路状态变化信息。602. The wireless access point device sends wireless link state change information to the WebRTC proxy.
其中,无线链路状态变化信息包括终端标识或链路信息,其中,链路信息包括链路标识,进一步地,链路信息还可以包括丢包率或信噪比中的至少一项。Wherein, the wireless link state change information includes a terminal identifier or link information, wherein the link information includes a link identifier, and further, the link information may further include at least one of a packet loss rate or a signal-to-noise ratio.
603、WebRTC代理根据无线链路状态变化信息,调整WebRTC代理中保存的临时会话状态信息表。603. The WebRTC agent adjusts the temporary session state information table stored in the WebRTC agent according to the wireless link state change information.
代理设备中可以保存有预设的门限和带宽需求变化量的对应关系。具体实现时,例如,当终端与另一终端之间的链路的丢包率大于第一预设门限,例如10%时,代理设备可以根据与第一预设门限对应的带宽需求变化量调整临时会话状态信息表中的带宽需求,如减少20%;当终端与另一终端之间的链路的丢包率大于第二预设门限,例如25%时,代理设备可以根据与第二预设门限对应的带宽需求变化量调整临时会话状态信息表中的带宽需求,如减少40%。The proxy device may store the correspondence between the preset threshold and the bandwidth demand variation. During specific implementation, for example, when the packet loss rate of the link between the terminal and another terminal is greater than the first preset threshold, such as 10%, the proxy device can adjust the The bandwidth demand in the temporary session state information table, such as reducing by 20%; when the packet loss rate of the link between the terminal and another terminal is greater than the second preset threshold, such as 25%, the proxy device can Set the bandwidth demand variation corresponding to the threshold to adjust the bandwidth demand in the temporary session state information table, for example, reduce it by 40%.
又例如,假设终端与另一终端之间的链路的SNR小于第三预设门限时,代理设备可以相应减少临时会话状态信息表中的带宽需求。For another example, assuming that the SNR of the link between the terminal and another terminal is smaller than the third preset threshold, the proxy device may correspondingly reduce the bandwidth requirement in the temporary session state information table.
604、WebRTC代理发送会话更新消息给终端。604. The WebRTC proxy sends a session update message to the terminal.
其中,会话更新消息中包括更新后的带宽需求。Wherein, the session update message includes the updated bandwidth requirement.
605、WebRTC代理检测到终端通过Web服务器向另一终端发送会话更新请求消息。605. The WebRTC proxy detects that the terminal sends a session update request message to another terminal through the Web server.
终端收到会话更新消息后,检测更新后的带宽需求是否满足终端和另一终端之间的流媒体会话所需要的最小带宽,如果满足,则终端更新所述终端创建的流媒体会话信息,即根据会话更新消息中包括的更新后的带宽需求,修改流媒体会话信息中包括的带宽需求,之后,向另一终端发送会话更新请求消息,并在会话更新请求消息中携带更新后的带宽需求。其中,会话更新请求消息中包括的更新后的带宽需求可以与会话更新消息中包括的更新后的带宽需求不一样。After the terminal receives the session update message, it detects whether the updated bandwidth requirement meets the minimum bandwidth required by the streaming media session between the terminal and another terminal, and if so, the terminal updates the streaming media session information created by the terminal, namely Modify the bandwidth requirement included in the streaming media session information according to the updated bandwidth requirement included in the session update message, and then send a session update request message to another terminal, and carry the updated bandwidth requirement in the session update request message. Wherein, the updated bandwidth requirement included in the session update request message may be different from the updated bandwidth requirement included in the session update message.
若WebRTC代理检测到会话更新请求消息中的带宽需求与WebRTC代理中保存的临时会话状态信息表中的带宽需求不一致,WebRTC代理更新WebRTC代理中保存的临时会话状态信息表中的带宽需求。If the WebRTC agent detects that the bandwidth requirement in the session update request message is inconsistent with the bandwidth requirement in the temporary session state information table saved in the WebRTC agent, the WebRTC agent updates the bandwidth requirement in the temporary session state information table saved in the WebRTC agent.
606、WebRTC代理通过Web服务器向另一终端发送会话更新请求消息。606. The WebRTC proxy sends a session update request message to another terminal through the Web server.
607、WebRTC代理检测到另一终端通过Web服务器向终端返回会话更新应答消息。607. The WebRTC agent detects that another terminal returns a session update response message to the terminal through the web server.
可选地,另一终端接收会话更新请求消息后,可以检查会话更新请求消息中的带宽需求是否满足终端和另一终端之间的流媒体会话所需要的最小带宽,如果满足,则另一终端调整所述另一终端上创建的流媒体会话信息,并通过Web服务器回复会话更新应答消息给终端。Optionally, after another terminal receives the session update request message, it can check whether the bandwidth requirement in the session update request message meets the minimum bandwidth required by the streaming media session between the terminal and another terminal, and if so, the other terminal Adjust the streaming media session information created on the other terminal, and reply a session update response message to the terminal through the web server.
若WebRTC代理检测到会话更新应答消息中的带宽需求与WebRTC代理中保存的临时会话状态信息表中的带宽需求不一致,WebRTC代理更新临时会话状态信息表中的带宽需求。If the WebRTC proxy detects that the bandwidth requirement in the session update response message is inconsistent with the bandwidth requirement in the temporary session state information table saved in the WebRTC proxy, the WebRTC proxy updates the bandwidth requirement in the temporary session state information table.
608、WebRTC代理将会话更新应答消息发送给终端。608. The WebRTC proxy sends the session update response message to the terminal.
此时,终端利用浏览器根据会话更新应答消息中的带宽需求,更新所述终端上创建的流媒体会话信息,然后使用修改后的流媒体会话信息进行通信。At this time, the terminal uses the browser to update the streaming media session information created on the terminal according to the bandwidth requirement in the session update response message, and then communicates using the modified streaming media session information.
本发明实施例中通过无线接入点设备在监测到终端与所述另一终端之间的链路状态发生变化时,无线接入点设备向WebRTC代理发送链路状态变化消息,WebRTC代理根据所述链路状态变化消息重新调整WebRTC代理上的临时会话状态信息表中包括的带宽需求,并向终端发送会话更新消息,以使终端根据会话更新消息中包括的更新后的带宽需求,向另一终端发送会话更新请求消息,触发另一终端向终端返回会话更新应答消息;从而当无线网络受到无线信号的干扰,或者无线网络速率存在不同程度的波动,或者无线网络的带宽不能得到保证时,通过webRTC代理可以动态地调整终端发起的业务流信息中的带宽需求,从而不会对基于万维网的实时通信业务造成影响,保证了业务的连续性。In the embodiment of the present invention, when the wireless access point device detects that the link state between the terminal and the other terminal changes, the wireless access point device sends a link state change message to the WebRTC proxy, and the WebRTC proxy The above link state change message readjusts the bandwidth requirement included in the temporary session state information table on the WebRTC proxy, and sends a session update message to the terminal, so that the terminal can send a message to another terminal according to the updated bandwidth requirement included in the session update message. The terminal sends a session update request message, triggering another terminal to return a session update response message to the terminal; thus, when the wireless network is interfered by wireless signals, or the wireless network rate fluctuates to varying degrees, or the bandwidth of the wireless network cannot be guaranteed, through The webRTC agent can dynamically adjust the bandwidth requirements in the service flow information initiated by the terminal, so that it will not affect the real-time communication service based on the World Wide Web and ensure the continuity of the service.
图7为本发明另一实施例提供的基于万维网的实时通信的实现装置的结构示意图;如图7所示,包括:FIG. 7 is a schematic structural diagram of an implementation device for real-time communication based on the World Wide Web provided by another embodiment of the present invention; as shown in FIG. 7 , it includes:
监测模块71,用于检测到终端发起的基于万维网的实时通信的会话请求消息,所述会话请求消息中包括带宽需求;The monitoring module 71 is configured to detect a session request message initiated by the terminal based on the World Wide Web real-time communication, and the session request message includes a bandwidth requirement;
调整模块72,用于若所述会话请求消息中包括的带宽需求大于所述终端的用户签约配置信息中包括的带宽需求,则修改所述会话请求消息中包括的带宽需求,使得所述会话请求消息中包括的带宽需求小于等于所述终端的用户签约配置信息中包括的带宽需求;An adjustment module 72, configured to modify the bandwidth requirement included in the session request message if the bandwidth requirement included in the session request message is greater than the bandwidth requirement included in the user subscription configuration information of the terminal, so that the session request The bandwidth requirement included in the message is less than or equal to the bandwidth requirement included in the user subscription configuration information of the terminal;
发送模块73,用于将所述调整模块72修改后的会话请求消息发送给所述另一终端。A sending module 73, configured to send the session request message modified by the adjusting module 72 to the other terminal.
在本发明的一个实施方式中,所述装置还包括:In one embodiment of the invention, the device also includes:
创建模块74,用于根据所述调整模块修改后的会话请求消息中包括的带宽需求,创建临时会话状态信息表,将所述修改后的会话请求消息中包括的带宽需求保存待所述临时会话状态信息表中。The creating module 74 is used to create a temporary session state information table according to the bandwidth requirement included in the session request message modified by the adjustment module, and save the bandwidth requirement included in the modified session request message for the temporary session status information table.
监测模块71,还用于检测到所述另一终端回应的基于万维网的实时通信的应答消息;The monitoring module 71 is further configured to detect the response message of the real-time communication based on the World Wide Web responded by the other terminal;
调整模块72,还用于若所述应答消息中包括的带宽需求与所述临时会话状态信息表中包括的带宽需求不一致,则根据所述应答消息中包括的带宽需求更新所述创建模块创建的临时会话状态信息表中的带宽需求;The adjustment module 72 is further configured to update the bandwidth requirement created by the creation module according to the bandwidth requirement included in the response message if the bandwidth requirement included in the response message is inconsistent with the bandwidth requirement included in the temporary session state information table. Bandwidth requirements in the temporary session state information table;
发送模块73,还用于将所述预应答或应答消息发送给所述终端。The sending module 73 is further configured to send the pre-response or response message to the terminal.
在本发明的一个实施方式中,调整模块72,还用于根据所述终端连接的无线接入点设备发送的链路状态变化消息,调整所述创建模块创建的临时会话状态信息表中的带宽需求;In one embodiment of the present invention, the adjustment module 72 is further configured to adjust the bandwidth in the temporary session state information table created by the creation module according to the link state change message sent by the wireless access point device connected to the terminal need;
发送模块73,还用于向所述终端发送会话更新消息,所述会话更新消息中包括所述调整模块调整后的带宽需求。The sending module 73 is further configured to send a session update message to the terminal, where the session update message includes the bandwidth requirement adjusted by the adjustment module.
监测模块71,还用于检测到所述终端发起的基于万维网的实时通信的会话更新请求消息,所述会话更新请求消息中包括所述调整后的带宽需求;The monitoring module 71 is further configured to detect a session update request message of the WWW-based real-time communication initiated by the terminal, and the session update request message includes the adjusted bandwidth requirement;
发送模块73,还用于将所述会话更新请求消息发送给所述另一终端。The sending module 73 is further configured to send the session update request message to the other terminal.
监测模块71,还用于检测到所述另一终端回应的基于万维网的实时通信的会话更新应答消息;The monitoring module 71 is further configured to detect the session update response message of the WWW-based real-time communication responded by the other terminal;
调整模块72,还用于若所述会话更新应答消息中包括的带宽需求与所述代理设备保存的临时会话状态信息表中包括的带宽需求不一致,则根据所述会话更新应答消息中包括的带宽需求更新所述临时会话状态信息表中的带宽需求;The adjustment module 72 is further configured to: if the bandwidth requirement included in the session update response message is inconsistent with the bandwidth requirement included in the temporary session state information table saved by the proxy device, then according to the bandwidth requirement included in the session update response message, Requirements update the bandwidth requirements in the temporary session state information table;
发送模块73,还用于将所述监测模块检测到的会话更新应答消息发送给所述终端。The sending module 73 is further configured to send the session update response message detected by the monitoring module to the terminal.
本发明实施例通过代理设备监测到终端向另一终端发送的会话请求消息,根据会话请求消息中包括的带宽需求,以及该终端的用户签约配置信息中包括的带宽需求,确定会话请求消息中包括的带宽需求是否与大于该终端的用户签约配置信息中包括的带宽需求,若是,则对会话请求消息中包括的带宽需求进行修改,使得会话请求消息中包括的带宽需求小于该终端的用户签约配置信息中包括的带宽需求;之后,将修改后的会话请求消息发送给另一终端;从而可以实现根据终端的用户签约配置信息中包括的带宽需求动态地调整终端发起的业务流信息中的带宽需求。In the embodiment of the present invention, the proxy device monitors the session request message sent by the terminal to another terminal, and determines the session request message included in the session request message according to the bandwidth requirement included in the session request message and the bandwidth requirement included in the user subscription configuration information of the terminal. whether the bandwidth requirement included in the user subscription configuration information of the terminal is greater than the bandwidth requirement included in the terminal’s user subscription configuration information; if so, modify the bandwidth requirement included in the session request message so that the bandwidth requirement included in the session request message is smaller than the terminal’s user subscription configuration The bandwidth requirement included in the information; afterward, the modified session request message is sent to another terminal; thus, the bandwidth requirement in the service flow information initiated by the terminal can be dynamically adjusted according to the bandwidth requirement included in the terminal's user subscription configuration information .
图8为本发明另一实施例提供的基于万维网的实时通信的实现装置的结构示意图;如图8所示,本实施例的基于万维网的实时通信的实现装置具体为代理设备,所述代理设备包括处理器、存储器和通信总线,其中,处理器通过通信总线与存储器连接,其中,存储器中保存有基于万维网的实时通信的实现指令,处理器调取并执行存储器中保存的基于万维网的实时通信的实现指令;所述代理设备还包括通信接口,所述代理设备通过通信接口与其他网元通信。Fig. 8 is a schematic structural diagram of an implementation device for real-time communication based on the World Wide Web provided by another embodiment of the present invention; It includes a processor, a memory and a communication bus, wherein the processor is connected to the memory through the communication bus, wherein the realization instructions of the real-time communication based on the World Wide Web are stored in the memory, and the processor calls and executes the real-time communication based on the World Wide Web stored in the memory The implementation instruction; the proxy device also includes a communication interface, and the proxy device communicates with other network elements through the communication interface.
所述处理器根据存储器中保存的指令,执行以下步骤:The processor performs the following steps according to the instructions stored in the memory:
检测到终端发起的基于万维网的实时通信的会话请求消息,所述会话请求消息中包括带宽需求;Detecting a session request message for real-time communication based on the World Wide Web initiated by the terminal, where the session request message includes a bandwidth requirement;
若所述会话请求消息中包括的带宽需求大于所述终端的用户签约配置信息中包括的带宽需求,则修改所述会话请求消息中包括的带宽需求,使得所述会话请求消息中包括的带宽需求小于等于所述终端的用户签约配置信息中包括的带宽需求;If the bandwidth requirement included in the session request message is greater than the bandwidth requirement included in the user subscription configuration information of the terminal, modify the bandwidth requirement included in the session request message so that the bandwidth requirement included in the session request message less than or equal to the bandwidth requirement included in the user subscription configuration information of the terminal;
将所述修改后的会话请求消息发送给所述另一终端。sending the modified session request message to the other terminal.
在本发明的一个实施方式中,所述处理器还执行如下步骤:In one embodiment of the present invention, the processor also performs the following steps:
根据修改后的会话请求消息中包括的带宽需求,创建临时会话状态信息表,将所述修改后的会话请求消息中包括的带宽需求保存到所述临时会话状态信息表中。Create a temporary session state information table according to the bandwidth requirement included in the modified session request message, and save the bandwidth requirement included in the modified session request message into the temporary session state information table.
在本发明的一个实施方式中,所述处理器还执行如下步骤:In one embodiment of the present invention, the processor also performs the following steps:
检测到所述另一终端回应的基于万维网的实时通信的应答消息;Detecting a response message of the World Wide Web-based real-time communication responded by the other terminal;
若所述应答消息中包括的带宽需求与所述临时会话状态信息表中包括的带宽需求不一致,则根据所述应答消息中包括的带宽需求更新所述创建模块创建的临时会话状态信息表中的带宽需求;If the bandwidth requirement included in the response message is inconsistent with the bandwidth requirement included in the temporary session state information table, update the temporary session state information table created by the creation module according to the bandwidth requirement included in the response message bandwidth requirements;
将所述应答消息发送给所述终端。Send the response message to the terminal.
在本发明的一个实施方式中,所述处理器还执行如下步骤:In one embodiment of the present invention, the processor also performs the following steps:
根据所述终端连接的无线接入点设备发送的链路状态变化消息,调整所述创建模块创建的临时会话状态信息表中的带宽需求;According to the link state change message sent by the wireless access point device connected to the terminal, adjust the bandwidth requirement in the temporary session state information table created by the creation module;
向所述终端发送会话更新消息,所述会话更新消息中包括所述调整模块调整后的带宽需求。Sending a session update message to the terminal, where the session update message includes the bandwidth requirement adjusted by the adjustment module.
检测到所述终端发起的基于万维网的实时通信的会话更新请求消息,所述会话更新请求消息中包括所述调整后的带宽需求;Detecting a session update request message initiated by the terminal for real-time communication based on the World Wide Web, where the session update request message includes the adjusted bandwidth requirement;
将所述会话更新请求消息发送给所述另一终端。sending the session update request message to the other terminal.
在本发明的一个实施方式中,所述处理器还执行如下步骤:In one embodiment of the present invention, the processor also performs the following steps:
检测到所述另一终端回应的基于万维网的实时通信的会话更新应答消息;Detecting the session update response message of the WWW-based real-time communication responded by the other terminal;
若所述会话更新应答消息中包括的带宽需求与所述代理设备保存的临时会话状态信息表中包括的带宽需求不一致,则根据所述会话更新应答消息中包括的带宽需求更新所述临时会话状态信息表中的带宽需求;If the bandwidth requirement included in the session update response message is inconsistent with the bandwidth requirement included in the temporary session state information table saved by the proxy device, update the temporary session state according to the bandwidth requirement included in the session update response message Bandwidth requirements in the information table;
将所述监测模块检测到的会话更新应答消息发送给所述终端。Sending the session update response message detected by the monitoring module to the terminal.
本发明实施例通过代理设备监测到终端向另一终端发送的会话请求消息,根据会话请求消息中包括的带宽需求,以及该终端的用户签约配置信息中包括的带宽需求,确定会话请求消息中包括的带宽需求是否与大于该终端的用户签约配置信息中包括的带宽需求,若是,则对会话请求消息中包括的带宽需求进行修改,使得会话请求消息中包括的带宽需求小于该终端的用户签约配置信息中包括的带宽需求;之后,将修改后的会话请求消息发送给另一终端;从而可以实现根据终端的用户签约配置信息中包括的带宽需求动态地调整终端发起的业务流信息中的带宽需求。In the embodiment of the present invention, the proxy device monitors the session request message sent by the terminal to another terminal, and determines the session request message included in the session request message according to the bandwidth requirement included in the session request message and the bandwidth requirement included in the user subscription configuration information of the terminal. whether the bandwidth requirement included in the user subscription configuration information of the terminal is greater than the bandwidth requirement included in the terminal’s user subscription configuration information; if so, modify the bandwidth requirement included in the session request message so that the bandwidth requirement included in the session request message is smaller than the terminal’s user subscription configuration The bandwidth requirement included in the information; afterward, the modified session request message is sent to another terminal; thus, the bandwidth requirement in the service flow information initiated by the terminal can be dynamically adjusted according to the bandwidth requirement included in the terminal's user subscription configuration information .
图9为本发明另一实施例提供的基于万维网的实时通信的实现系统的结构示意图,如图9所示,包括:代理设备91、无线接入点设备92、终端93和另一终端94;FIG. 9 is a schematic structural diagram of a system for realizing real-time communication based on the World Wide Web provided by another embodiment of the present invention. As shown in FIG. 9 , it includes: a proxy device 91, a wireless access point device 92, a terminal 93 and another terminal 94;
其中,代理设备91为上述图7或图8所示实施例提供的基于万维网的实时通信的实现装置。具体地,代理设备91可以为安装有WebRTC软件的主板,设置在WLAN控制器中。Wherein, the proxy device 91 is an implementation device for real-time communication based on the World Wide Web provided by the embodiment shown in FIG. 7 or FIG. 8 . Specifically, the proxy device 91 may be a main board installed with WebRTC software, and be set in the WLAN controller.
无线接入点设备92,具体用于监测到终端93与另一终端94之间的链路状态发生变化时,向代理设备91发送链路状态变化消息,其中,链路状态变化消息中包括终端标识和链路信息;其中,链路信息包括链路标识,进一步地,链路信息中还包括丢包率、重传率或信噪比中的至少一项。The wireless access point device 92 is specifically configured to send a link state change message to the agent device 91 when detecting that the link state between the terminal 93 and another terminal 94 changes, wherein the link state change message includes the terminal Identification and link information; wherein, the link information includes a link identification, and further, the link information also includes at least one of packet loss rate, retransmission rate, or signal-to-noise ratio.
终端93,用于通过Web服务器向另一终端94发起会话请求消息,会话请求消息中包括业务流信息,业务流信息中包括带宽需求;The terminal 93 is configured to initiate a session request message to another terminal 94 through the Web server, the session request message includes service flow information, and the service flow information includes bandwidth requirements;
另一终端94,用于通过Web服务器向终端93返回预应答或应答消息,预应答或应答消息中包括另一终端应答的业务流信息。The other terminal 94 is configured to return a pre-answer or answer message to the terminal 93 through the web server, where the pre-answer or answer message includes the service flow information answered by the other terminal.
本发明实施例通过代理设备监测到终端向另一终端发送的会话请求消息,根据会话请求消息中包括的业务流信息的带宽需求,以及该终端的用户签约配置信息中包括的带宽需求,确定会话请求消息中包括的业务流信息的带宽需求是否与大于该终端的用户签约配置信息中包括的带宽需求,若是,则对会话请求消息中包括的业务流信息的带宽需求进行修改,使得会话请求消息中包括的业务流信息的带宽需求小于该终端的用户签约配置信息中包括的带宽需求;之后,将修改后的会话请求消息发送给另一终端;从而可以实现根据终端的用户签约配置信息中包括的带宽需求动态地调整终端发起的业务流信息中的带宽需求。In the embodiment of the present invention, the proxy device monitors the session request message sent by the terminal to another terminal, and determines the session request message according to the bandwidth requirement of the service flow information included in the session request message and the bandwidth requirement included in the user subscription configuration information of the terminal. Whether the bandwidth requirement of the service flow information included in the request message is greater than the bandwidth requirement included in the user subscription configuration information of the terminal, if so, modify the bandwidth requirement of the service flow information included in the session request message so that the session request message The bandwidth requirement of the service flow information included in the terminal is smaller than the bandwidth requirement included in the user subscription configuration information of the terminal; after that, the modified session request message is sent to another terminal; thus, it can be realized according to the user subscription configuration information of the terminal. Included dynamically adjust the bandwidth requirements in the service flow information initiated by the terminal.
进一步地,本实施例中,通过无线接入点设备在监测到终端与所述另一终端之间的链路状态发生变化时,无线接入点设备向代理设备发送链路状态变化消息,代理设备根据所述链路状态变化消息重新调整代理设备上的临时会话状态信息表中包括的业务流信息,并向终端发送会话更新消息,以使终端根据会话更新消息,向另一终端发送会话更新请求消息,触发另一终端向终端返回会话更新应答消息;从而当无线网络受到无线信号的干扰,或者无线网络速率存在不同程度的波动,或者无线网络的带宽不能得到保证时,通过代理设备可以动态地调整终端发起的业务流信息中的带宽需求,从而不会对基于万维网的实时通信业务造成影响,保证了业务的连续性。Further, in this embodiment, when the wireless access point device detects that the link state between the terminal and the other terminal changes, the wireless access point device sends a link state change message to the proxy device, and the proxy device The device readjusts the service flow information included in the temporary session state information table on the proxy device according to the link state change message, and sends a session update message to the terminal, so that the terminal sends a session update message to another terminal according to the session update message The request message triggers another terminal to return a session update response message to the terminal; thus, when the wireless network is interfered by wireless signals, or the wireless network rate fluctuates to varying degrees, or the bandwidth of the wireless network cannot be guaranteed, the proxy device can dynamically The bandwidth requirement in the service flow information initiated by the terminal can be adjusted accurately, so that the real-time communication service based on the World Wide Web will not be affected, and the continuity of the service is guaranteed.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以以代码的形式存储在一个计算机可读取存储介质中。上述代码存储在一个计算机可读存储介质中,包括若干指令用以使处理器或硬件电路执行本发明各个实施例所述方法的部分或全部步骤。而前述的存储介质包括:通用串行总线接口的无需物理驱动器的微型高容量移动存储盘、移动硬盘、只读存储器(英文:read-only memory,简称ROM)、随机存取存储器(英文:random-accessmemory,简称RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units implemented in the form of software functional units may be stored in a computer-readable storage medium in the form of codes. The above codes are stored in a computer-readable storage medium, and include several instructions for causing a processor or a hardware circuit to execute some or all steps of the methods described in various embodiments of the present invention. The aforementioned storage media include: a miniature high-capacity mobile storage disk without a physical drive, a mobile hard disk, a read-only memory (English: read-only memory, ROM for short), a random access memory (English: random access memory), and a universal serial bus interface. -accessmemory, referred to as RAM), magnetic disk or optical disk and other media that can store program code.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的保护范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions depart from the protection scope of the technical solutions of the various embodiments of the present invention.
Claims (8)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210480873.8A CN103841085B (en) | 2012-11-23 | 2012-11-23 | The implementation method of the real-time Communication for Power based on WWW and device |
| PCT/CN2013/087681 WO2014079386A1 (en) | 2012-11-23 | 2013-11-22 | Method and device for realizing real-time communication based on world wide web |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210480873.8A CN103841085B (en) | 2012-11-23 | 2012-11-23 | The implementation method of the real-time Communication for Power based on WWW and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103841085A CN103841085A (en) | 2014-06-04 |
| CN103841085B true CN103841085B (en) | 2017-03-08 |
Family
ID=50775558
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201210480873.8A Active CN103841085B (en) | 2012-11-23 | 2012-11-23 | The implementation method of the real-time Communication for Power based on WWW and device |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN103841085B (en) |
| WO (1) | WO2014079386A1 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| DE102014012355A1 (en) * | 2014-08-25 | 2016-02-25 | Unify Gmbh & Co. Kg | Method for controlling a multimedia application, software product and device |
| CN107423128B (en) * | 2017-07-31 | 2021-03-30 | 北京京东尚科信息技术有限公司 | Information processing method and system thereof |
| CN112911193A (en) * | 2021-01-29 | 2021-06-04 | 浪潮软件科技有限公司 | WebRTC video call-based bandwidth control method and device |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101030924A (en) * | 2006-03-03 | 2007-09-05 | 中兴通讯股份有限公司 | Method for adapting dynamic bandwidth |
| CN101242568A (en) * | 2007-02-09 | 2008-08-13 | 华为技术有限公司 | Method and system for quality of service negotiation in wireless communication network |
| CN101330436A (en) * | 2007-06-19 | 2008-12-24 | 上海贝尔阿尔卡特股份有限公司 | Adjustable multicast multimedia service data transmission method and device |
| CN101436990A (en) * | 2008-12-23 | 2009-05-20 | 深圳华为通信技术有限公司 | Method for automatically adjusting encoding rate, receiving device and communication system |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8400921B2 (en) * | 2010-03-17 | 2013-03-19 | Cisco Technology, Inc. | System and method for providing rate control in a network environment |
-
2012
- 2012-11-23 CN CN201210480873.8A patent/CN103841085B/en active Active
-
2013
- 2013-11-22 WO PCT/CN2013/087681 patent/WO2014079386A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101030924A (en) * | 2006-03-03 | 2007-09-05 | 中兴通讯股份有限公司 | Method for adapting dynamic bandwidth |
| CN101242568A (en) * | 2007-02-09 | 2008-08-13 | 华为技术有限公司 | Method and system for quality of service negotiation in wireless communication network |
| CN101330436A (en) * | 2007-06-19 | 2008-12-24 | 上海贝尔阿尔卡特股份有限公司 | Adjustable multicast multimedia service data transmission method and device |
| CN101436990A (en) * | 2008-12-23 | 2009-05-20 | 深圳华为通信技术有限公司 | Method for automatically adjusting encoding rate, receiving device and communication system |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2014079386A1 (en) | 2014-05-30 |
| CN103841085A (en) | 2014-06-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7984492B2 (en) | Methods and apparatus for policy enforcement in a wireless communication system | |
| US11522790B2 (en) | Multipath data transmission processing method and network device | |
| EP3311534B1 (en) | Method and apparatus for multipath media delivery | |
| US20150237525A1 (en) | Traffic Shaping and Steering for a Multipath Transmission Control Protocol Connection | |
| JP4763800B2 (en) | Method and apparatus for establishing a multimedia communication session | |
| JP6663082B2 (en) | Data Streaming Support Control Based on Node Type | |
| US20120166659A1 (en) | Node and Method for Quality of Service (QoS) Control | |
| CN105991712A (en) | Network accelerating device | |
| WO2009086771A1 (en) | Method and network element device for realizing video service in wireless communication system | |
| CN105873241A (en) | Method and device for establishing talking connection | |
| KR20110008311A (en) | Methods and Devices for Managing a Network | |
| CN103841085B (en) | The implementation method of the real-time Communication for Power based on WWW and device | |
| CN118055518A (en) | Network access to residential gateway | |
| CN113630778B (en) | A dynamic control method and terminal for QoS flow | |
| CN107404363A (en) | A kind of method of adjustment, system, terminal and the network side equipment of voice code check | |
| US8451774B2 (en) | Communication system and gateway apparatus | |
| CN111615170B (en) | Data transmission method and system | |
| WO2014166438A1 (en) | Congestion control-based policy control method, device and system | |
| CN103796229B (en) | A kind of session chainlink control method and device | |
| KR101790192B1 (en) | Method and device for application management | |
| CN113810476A (en) | A kind of signaling security transmission method and device for industrial Internet | |
| WO2026031096A1 (en) | Dynamic traffic characteristic changes in user plane | |
| JP4850600B2 (en) | Wireless terminal apparatus and channel control method | |
| CN119496765A (en) | A negotiation control method, device, electronic device and storage medium for call media | |
| WO2026032365A1 (en) | Data retransmission method, related device, and communication system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant |