WO2015067151A1 - Global broadcast method, server and system - Google Patents

Global broadcast method, server and system Download PDF

Info

Publication number
WO2015067151A1
WO2015067151A1 PCT/CN2014/090173 CN2014090173W WO2015067151A1 WO 2015067151 A1 WO2015067151 A1 WO 2015067151A1 CN 2014090173 W CN2014090173 W CN 2014090173W WO 2015067151 A1 WO2015067151 A1 WO 2015067151A1
Authority
WO
WIPO (PCT)
Prior art keywords
group
server
global broadcast
forwarding server
tree structure
Prior art date
Application number
PCT/CN2014/090173
Other languages
French (fr)
Chinese (zh)
Inventor
周俊清
徐晓敏
曾新海
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2015067151A1 publication Critical patent/WO2015067151A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/44Star or tree networks

Abstract

Disclosed are a global broadcast method, a server and a system, wherein an implementation of the method comprises: after receiving a global broadcast request, a first forwarding server parsing the global broadcast request to obtain a group number; determining to use all nodes stored in a tree structure with the group number being a root node as global broadcast objects, wherein the first forwarding server stores group numbers of groups in a tree structure; and sending broadcast information specified by the global broadcast request to groups managed by the first forwarding server in the global broadcast objects. The global broadcast request only needs to carry a group number to implement global broadcast to groups corresponding to all group numbers with the group number being a root node, and the server does not need to read all group information for filtering one by one.

Description

一种全局广播方法、服务器及系统Global broadcast method, server and system
相关申请交叉引用Related application cross-reference
本申请要求2013年11月5日提交中国专利局、申请号为201310541080.7、发明名称为“一种全局广播方法、服务器,及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application filed on November 5, 2013, the Chinese Patent Application No. 201310541080.7, entitled "A Global Broadcasting Method, Server, and System", the entire contents of which are incorporated herein by reference. In the application.
技术领域Technical field
本发明的实施例涉及通信技术领域,特别涉及一种全局广播方法、服务器,及系统。Embodiments of the present invention relate to the field of communications technologies, and in particular, to a global broadcast method, a server, and a system.
背景技术Background technique
以基于TCP(Transmission Control Protocol,传输控制协议)/IP(Internet Protocol,互联网协议)的语音通信为例,全局广播是保证不同语音房间的用户可以接收到同一路全局广播的信息。For example, a voice communication based on TCP (Transmission Control Protocol)/IP (Internet Protocol) is used to ensure that users of different voice rooms can receive the same global broadcast information.
在语音传输中,团队语音:是指多个人在同一时间进行实时语音通信的过程。使用者之间的语音交互是双向的。语音房间:是指团队语音的虚拟结构称谓,同一团队语音用户隶属于同一个语音房间。全局广播:是指对不同语音房间的所有用户进行单向全局广播。In voice transmission, team voice: refers to the process of real-time voice communication of multiple people at the same time. The voice interaction between users is two-way. Voice room: refers to the virtual structure title of team voice, the same team voice user belongs to the same voice room. Global broadcast: refers to one-way global broadcast for all users in different voice rooms.
目前语音房间采用扁平化结构,实现全局广播的方案如下:在服务侧存储有所有的房间号;若确定需要进行全局广播,例如:接收到来自用户的全局广播指令,上述全局广播指令指示了所有需要进行广播的房间号;服务器确定各房间号对应的地址,然后将全局广播的广播信息发送给确定的各地址。At present, the voice room adopts a flat structure, and the scheme for realizing global broadcasting is as follows: all room numbers are stored on the service side; if it is determined that global broadcasting is required, for example, receiving a global broadcast instruction from the user, the above global broadcast instruction indicates all The room number to be broadcasted; the server determines the address corresponding to each room number, and then transmits the broadcast information of the global broadcast to the determined addresses.
以上方案,服务器与用户之间需要传递所有需要广播的房间号,服务器需要读入所有管理的房间号进行筛选,由于服务器所管理的语音房间会非常多,因此会占用大量内存。另外,为了维护全局广播的信息,服务器与用户之间需要进行大量的交互。因此采用扁平化的结构来实现全局广播,会导致服务器处理效率低下。 In the above solution, the server and the user need to pass all the room numbers that need to be broadcasted. The server needs to read all the managed room numbers for screening. Since the server manages a lot of voice rooms, it will consume a lot of memory. In addition, in order to maintain the information of the global broadcast, a large amount of interaction is required between the server and the user. Therefore, using a flat structure to achieve global broadcasts can result in inefficient server processing.
发明内容Summary of the invention
本发明实施例提供了一种全局广播方法、服务器及系统,用于提高服务器处理效率。The embodiment of the invention provides a global broadcast method, a server and a system for improving server processing efficiency.
一种全局广播方法,包括:A global broadcast method, including:
第一转发服务器接收到全局广播请求后,解析所述全局广播请求获得群组号;After receiving the global broadcast request, the first forwarding server parses the global broadcast request to obtain a group number;
所述第一转发服务器确定以所述群组号为根节点的树形结构存储的所有节点为全局广播对象,其中,所述第一转发服务器以树形结构存储有群组的群组号;The first forwarding server determines that all the nodes stored in the tree structure with the group number as the root node are global broadcast objects, wherein the first forwarding server stores the group number of the group in a tree structure;
将所述全局广播请求指定的广播信息发送给所述全局广播对象中所述第一转发服务器所管理的群组。And transmitting the broadcast information specified by the global broadcast request to a group managed by the first forwarding server in the global broadcast object.
一种全局广播方法,包括:A global broadcast method, including:
第二转发服务器接收到第一转发服务器全局广播请求后,解析所述全局广播请求获得群组号;After receiving the first forwarding server global broadcast request, the second forwarding server parses the global broadcast request to obtain a group number;
所述第二转发服务器确定以所述群组号为根节点的树形结构存储的所有节点为全局广播对象,其中,所述第二转发服务器以树形结构存储有群组的群组号;The second forwarding server determines that all the nodes stored in the tree structure with the group number as the root node are global broadcast objects, wherein the second forwarding server stores the group number of the group in a tree structure;
将所述全局广播请求指定的广播信息发送给所述全局广播对象中所述第二转发服务器所管理的群组;Transmitting the broadcast information specified by the global broadcast request to a group managed by the second forwarding server in the global broadcast object;
若所述全局广播对象中存在不属于所述第二转发服务器所管理的群组,则将所述全局广播请求发送给不属于所述第二转发服务器所管理的群组,且不发送给第一转发服务器。If the global broadcast object does not belong to the group managed by the second forwarding server, the global broadcast request is sent to a group that is not managed by the second forwarding server, and is not sent to the first A forwarding server.
一种全局广播方法,包括:A global broadcast method, including:
服务器接收到全局广播请求后,解析所述全局广播请求获得群组号;After receiving the global broadcast request, the server parses the global broadcast request to obtain a group number;
所述服务器确定以所述群组号为根节点的树形结构存储的所有节点为全局广播对象;所述服务器以树形结构存储有其管理的所有群组的群组号;Determining, by the server, all nodes stored in a tree structure having the group number as a root node as a global broadcast object; the server storing a group number of all groups managed by the server in a tree structure;
将所述全局广播请求指定的广播信息发送给所述全局广播对象。The broadcast information specified by the global broadcast request is transmitted to the global broadcast object.
一种转发服务器,包括:A forwarding server, including:
解析单元,用于在所述转发服务器接收到全局广播请求后,解析所述全局 广播请求获得群组号;a parsing unit, configured to parse the global after the forwarding server receives the global broadcast request Broadcast request to obtain the group number;
对象确定单元,用于确定以所述解析单元获得的群组号为根节点的树形结构存储的所有节点为全局广播对象,其中,所述转发服务器以树形结构存储有群组的群组号;An object determining unit, configured to determine, to the global broadcast object, all nodes stored in a tree structure whose root number is obtained by the parsing unit, wherein the forwarding server stores the group of the group in a tree structure number;
广播单元,用于将所述全局广播请求指定的广播信息发送给所述对象确定单元确定的所述全局广播对象中所述转发服务器所管理的群组。And a broadcast unit, configured to send the broadcast information specified by the global broadcast request to a group managed by the forwarding server among the global broadcast objects determined by the object determining unit.
一种转发服务器,包括:A forwarding server, including:
解析单元,用于在所述转发服务器接收到第一转发服务器全局广播请求后,解析所述全局广播请求获得群组号;a parsing unit, configured to parse the global broadcast request to obtain a group number after the forwarding server receives the first forwarding server global broadcast request;
对象确定单元,用于确定以所述解析单元获得的群组号为根节点的树形结构存储的所有节点为全局广播对象,其中,所述转发服务器以树形结构存储有群组的群组号;An object determining unit, configured to determine, to the global broadcast object, all nodes stored in a tree structure whose root number is obtained by the parsing unit, wherein the forwarding server stores the group of the group in a tree structure number;
广播单元,用于将所述全局广播请求指定的广播信息发送给所述对象确定单元确定的所述全局广播对象中所述转发服务器所管理的群组;a broadcast unit, configured to send the broadcast information specified by the global broadcast request to a group managed by the forwarding server in the global broadcast object determined by the object determining unit;
请求转发单元,用于若所述全局广播对象中存在不属于所述转发服务器所管理的群组,则将所述全局广播请求发送给不属于所述转发服务器所管理的群组,且不发送给所述第一转发服务器。a request forwarding unit, configured to send the global broadcast request to a group that is not managed by the forwarding server if the group that is not managed by the forwarding server exists in the global broadcast object, and does not send To the first forwarding server.
一种服务器,包括:A server that includes:
解析单元,用于在服务器接收到全局广播请求后,解析所述全局广播请求获得群组号;a parsing unit, configured to parse the global broadcast request to obtain a group number after the server receives the global broadcast request;
对象确定单元,用于确定以所述解析单元获得的群组号为根节点的树形结构存储的所有节点为全局广播对象;所述服务器以树形结构存储有其管理的所有群组的群组号;An object determining unit, configured to determine all nodes stored in a tree structure having a group number obtained by the parsing unit as a root node as a global broadcast object; the server stores a group of all groups managed by the server in a tree structure Group No;
广播单元,用于将所述全局广播请求指定的广播信息发送给所述对象确定单元确定的所述全局广播对象。And a broadcast unit, configured to send the broadcast information specified by the global broadcast request to the global broadcast object determined by the object determining unit.
一种全局广播系统,包括:管理服务器和第一转发服务,或者,管理服务器、第一转发服务器和第二转发服务器;A global broadcast system includes: a management server and a first forwarding service, or a management server, a first forwarding server, and a second forwarding server;
其中所述第一转发服务器为本发明实施例提供的任意一项所述的转发服务器;The first forwarding server is the forwarding server according to any one of the embodiments of the present invention;
所述第二转发服务器为本发明实施例提供的任意一项所述的转发服务器。 The second forwarding server is the forwarding server according to any one of the embodiments of the present invention.
从以上技术方案可以看出,本发明实施例具有以下优点:全局广播请求只需要携带一个群组号,就可以实现对以这个群组号为根节点的所有群组号对应的群组进行全局广播,服务器并不需要读入所有的群组信息进行逐一筛选,节省系统资源。将扁平化的数据结构变为树形结构存储,在数据更新时服务器获得信息所需要的交互更少。因此实现全局广播过程,需要的系统资源少,从而提高了服务器处理效率。As can be seen from the foregoing technical solutions, the embodiment of the present invention has the following advantages: the global broadcast request only needs to carry a group number, and the global group corresponding to all the group numbers with the group number as the root node can be globally implemented. Broadcast, the server does not need to read all the group information to filter one by one, saving system resources. The flattened data structure is transformed into a tree structure store, and the server needs less interaction to obtain information when the data is updated. Therefore, the global broadcast process is implemented, and less system resources are required, thereby improving the processing efficiency of the server.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention, Those skilled in the art can also obtain other drawings based on these drawings without paying for inventive labor.
图1为本发明实施例方法流程示意图;1 is a schematic flowchart of a method according to an embodiment of the present invention;
图2为本发明实施例方法流程示意图;2 is a schematic flowchart of a method according to an embodiment of the present invention;
图3为本发明实施例方法流程示意图;3 is a schematic flowchart of a method according to an embodiment of the present invention;
图4A为本发明实施例语音房间的树形结构示意图;4A is a schematic diagram of a tree structure of a voice room according to an embodiment of the present invention;
图4B为本发明实施例网络结构示意图;4B is a schematic structural diagram of a network according to an embodiment of the present invention;
图4C为本发明实施例方法流程示意图;4C is a schematic flowchart of a method according to an embodiment of the present invention;
图5为本发明实施例转发服务器示意图;FIG. 5 is a schematic diagram of a forwarding server according to an embodiment of the present invention;
图6为本发明实施例转发服务器示意图;6 is a schematic diagram of a forwarding server according to an embodiment of the present invention;
图7为本发明实施例转发服务器示意图;FIG. 7 is a schematic diagram of a forwarding server according to an embodiment of the present invention;
图8为本发明实施例转发服务器示意图;8 is a schematic diagram of a forwarding server according to an embodiment of the present invention;
图9为本发明实施例转发服务器示意图;9 is a schematic diagram of a forwarding server according to an embodiment of the present invention;
图10为本发明实施例服务器示意图;10 is a schematic diagram of a server according to an embodiment of the present invention;
图11为本发明实施例服务器示意图;11 is a schematic diagram of a server according to an embodiment of the present invention;
图12为本发明实施例转发服务器示意图;12 is a schematic diagram of a forwarding server according to an embodiment of the present invention;
图13为本发明实施例转发服务器示意图;FIG. 13 is a schematic diagram of a forwarding server according to an embodiment of the present invention;
图14为本发明实施例服务器示意图;14 is a schematic diagram of a server according to an embodiment of the present invention;
图15A为本发明实施例网络结构示意图;15A is a schematic structural diagram of a network according to an embodiment of the present invention;
图15B为本发明实施例网络结构示意图。 FIG. 15B is a schematic structural diagram of a network according to an embodiment of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部份实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。The present invention will be further described in detail with reference to the accompanying drawings, in which . All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例提供了一种全局广播方法,如图1所示,包括:An embodiment of the present invention provides a global broadcast method, as shown in FIG. 1 , including:
101:第一转发服务器接收到全局广播请求后,解析上述全局广播请求获得群组号;101: After receiving the global broadcast request, the first forwarding server parses the global broadcast request to obtain a group number.
上述群组号是用于标识群组的信息,该信息的表现形式可以根据实际情况进行任意的命名,基于后续采用的是树形结构,在群组号的命名上也可以体现出其在树形结构中的度,或者其他信息,以利于检索。具体的命名规则,本发明实施例不予限定。The above group number is information for identifying a group, and the expression form of the information can be arbitrarily named according to the actual situation, and the tree structure is adopted based on the subsequent use, and the tree number can also be reflected in the name of the group number. Degrees in the shape structure, or other information to facilitate retrieval. The specific naming rules are not limited in the embodiment of the present invention.
102:上述第一转发服务器确定以上述群组号为根节点的树形结构存储的所有节点为全局广播对象;上述第一转发服务器以树形结构存储有群组的群组号;102: The first forwarding server determines that all nodes stored in the tree structure with the group number as the root node are global broadcast objects; and the first forwarding server stores the group number of the group in a tree structure;
树形结构是数据管理的一种结构,在树形的数据结构中,数据元素之间存在着“一对多”的树形关系,是一类重要的非线性数据结构。在树形结构中,树根结点(根节点)没有前驱结点(父节点),其余每个结点有且只有一个前驱结点。叶子结点没有后续结点(子节点),其余每个结点的后续节点数可以是一个也可以是多个。在后续实施例中将会给出一个树形结构的举例说明。The tree structure is a structure of data management. In the tree data structure, there is a "one-to-many" tree relationship between data elements, which is an important nonlinear data structure. In the tree structure, the root node (the root node) has no predecessor nodes (parent nodes), and each of the remaining nodes has one and only one predecessor node. The leaf node has no subsequent nodes (child nodes), and the number of subsequent nodes of each of the other nodes may be one or more. An illustration of a tree structure will be given in subsequent embodiments.
103:将上述全局广播请求指定的广播信息发送给上述全局广播对象中上述第一转发服务器所管理的群组。103: Send the broadcast information specified by the global broadcast request to the group managed by the first forwarding server in the global broadcast object.
本发明实施例,全局广播请求只需要携带一个群组号,就可以实现对以这个群组号为根节点的所有群组号对应的群组进行全局广播,服务器并不需要读入所有的群组信息进行逐一筛选,节省系统资源。将扁平化的数据结构变为树形结构存储,在数据更新时服务器获得信息所需要的交互更少。因此实现全局广播过程,需要的系统资源少,从而提高了服务器处理效率。In the embodiment of the present invention, the global broadcast request only needs to carry a group number, so that the group corresponding to all the group numbers with the group number as the root node can be globally broadcasted, and the server does not need to read all the groups. Group information is filtered one by one to save system resources. The flattened data structure is transformed into a tree structure store, and the server needs less interaction to obtain information when the data is updated. Therefore, the global broadcast process is implemented, and less system resources are required, thereby improving the processing efficiency of the server.
进一步地,在本发明实施例中,服务器包含有两类,服务器位于网络侧为用户提供服务,一类服务器有管理其他服务器的功能称为管理服务器,另一类主要起到全局广播转发功能称为转发服务器,转发服务器与用户通信不需要经 过管理服务器,转发服务器在确定一些信息需要告知管理服务器时会将这些信息告知管理服务器,例如第一转发服务器获知树形结构内的某些信息被更改的情况就需要告知到管理服务器,因此本发明的实施例基于此提供了树形结构内信息更新的方案,具体如下:上述第一转发服务器在确定需要对其所管理的群组进行更改后还包括:向管理服务器发送更改群组的指令,使管理服务器更改树形结构存储的群组号对应的群组;接收并存储更新后的树形结构存储的群组的信息。Further, in the embodiment of the present invention, the server includes two types, the server is located on the network side to provide services for the user, the first type of server has the function of managing other servers, which is called the management server, and the other type is mainly used for the global broadcast forwarding function. For the forwarding server, the forwarding server does not need to communicate with the user. Through the management server, the forwarding server notifies the management server when determining that some information needs to be notified to the management server. For example, if the first forwarding server learns that some information in the tree structure is changed, it needs to notify the management server, so The embodiment of the invention provides a solution for updating the information in the tree structure based on the following: the first forwarding server further includes: sending a change group command to the management server after determining that the group needs to be changed. , causing the management server to change the group corresponding to the group number stored in the tree structure; receiving and storing the information of the group stored in the updated tree structure.
可选地,本发明实施例给出了更新的树形结构的信息包含的群组的信息内容具体举例,如下:上述群组的信息包括:各群组在树形数据结构中的父子关系以及各群组所属的转发服务器。Optionally, the embodiment of the present invention provides a specific example of the information content of the group included in the information of the updated tree structure, as follows: the information of the group includes: a parent-child relationship of each group in a tree data structure, and The forwarding server to which each group belongs.
需要说明的是,如果本实施例中,所有发起全局广播均在同一转发服务器内完成,那么可以不必包含各群组所属的转发服务器这样的信息。各群组所属的转发服务器为后续支持全局广播的广播对象不都属于同一个转发服务器管辖的场景提供了可能。It should be noted that, if all the initiating global broadcasts are completed in the same forwarding server in this embodiment, it is not necessary to include such information as the forwarding server to which each group belongs. The forwarding server to which each group belongs may provide a scenario in which subsequent broadcast objects that support global broadcast do not belong to the same forwarding server.
进一步地,如果群组信息包含有各群组所属的转发服务器,那么该方案可以支持全局广播的广播对象不都属于同一个转发服务器管辖,也即是说一个子树的所有群组号可以隶属于两个或两个以上的转发服务器,本发明实施例提供了此种方案下的全局广播实现方案,具体如下:上述方法,还包括:Further, if the group information includes a forwarding server to which each group belongs, the program can support that the broadcast objects of the global broadcast do not belong to the same forwarding server, that is, all group numbers of a subtree can be attached. For the two or more forwarding servers, the embodiment of the present invention provides a global broadcast implementation solution of the solution, which is specifically as follows: the foregoing method further includes:
若上述全局广播对象中存在属于第二转发服务器所管理的群组;If there is a group managed by the second forwarding server in the global broadcast object;
将上述全局广播请求发送给第二转发服务器。Sending the above global broadcast request to the second forwarding server.
本发明实施例还提供了另一种全局广播方法,如图2所示,包括:An embodiment of the present invention further provides another global broadcast method, as shown in FIG. 2, including:
201:第二转发服务器接收到第一转发服务器全局广播请求后,解析上述全局广播请求获得群组号;Step 201: After receiving the first forwarding server global broadcast request, the second forwarding server parses the global broadcast request to obtain a group number.
上述群组号是用于标识群组的信息,该信息的表现形式可以根据实际情况进行任意的命名,基于后续采用的是树形结构,在群组号的命名上也可以体现出其在树形结构中的度,或者其他信息,以利于检索。具体的命名规则,本发明实施例不予限定。The above group number is information for identifying a group, and the expression form of the information can be arbitrarily named according to the actual situation, and the tree structure is adopted based on the subsequent use, and the tree number can also be reflected in the name of the group number. Degrees in the shape structure, or other information to facilitate retrieval. The specific naming rules are not limited in the embodiment of the present invention.
202:上述第二转发服务器确定以上述群组号为根节点的树形结构存储的所有节点为全局广播对象;上述第二转发服务器以树形结构存储有群组的群组号;202: The second forwarding server determines that all nodes stored in the tree structure with the group number as the root node are global broadcast objects; and the second forwarding server stores the group number of the group in a tree structure;
203:将上述全局广播请求指定的广播信息发送给上述全局广播对象中上述 第二转发服务器所管理的群组;203: Send the broadcast information specified by the global broadcast request to the global broadcast object. a group managed by the second forwarding server;
204:若上述全局广播对象中存在不属于上述第二转发服务器所管理的群组,则将上述全局广播请求发送给不属于上述第二转发服务器所管理的群组,且不发送给第一转发服务器。204: If there is a group that is not managed by the second forwarding server, the global broadcast request is sent to a group that is not managed by the second forwarding server, and is not sent to the first forwarding. server.
本发明实施例,全局广播请求只需要携带一个群组号,就可以实现对以这个群组号为根节点的所有群组号对应的群组进行全局广播,服务器并不需要读入所有的群组信息进行逐一筛选,节省系统资源。将扁平化的数据结构变为树形结构存储,在数据更新时服务器获得信息所需要的交互更少。因此实现全局广播过程,需要的系统资源少,从而提高了服务器处理效率。In the embodiment of the present invention, the global broadcast request only needs to carry a group number, so that the group corresponding to all the group numbers with the group number as the root node can be globally broadcasted, and the server does not need to read all the groups. Group information is filtered one by one to save system resources. The flattened data structure is transformed into a tree structure store, and the server needs less interaction to obtain information when the data is updated. Therefore, the global broadcast process is implemented, and less system resources are required, thereby improving the processing efficiency of the server.
需要说明的是,如果本实施例中,所有发起全局广播均在同一转发服务器内完成,那么可以不必包含各群组所属的转发服务器这样的信息。各群组所属的转发服务器为后续支持全局广播的广播对象不都属于同一个转发服务器管辖的场景提供了可能。如果群组信息包含有各群组所属的转发服务器,那么该方案可以支持全局广播的广播对象不都属于同一个转发服务器管辖,也即是说一个子树的所有群组号可以隶属于两个或两个以上的转发服务器,本发明实施例还可以完成此种方案下的全局广播。It should be noted that, if all the initiating global broadcasts are completed in the same forwarding server in this embodiment, it is not necessary to include such information as the forwarding server to which each group belongs. The forwarding server to which each group belongs may provide a scenario in which subsequent broadcast objects that support global broadcast do not belong to the same forwarding server. If the group information includes the forwarding server to which each group belongs, the broadcast objects that can support the global broadcast do not all belong to the same forwarding server, that is, all the group numbers of one sub-tree can belong to two Or more than two forwarding servers, the embodiment of the present invention can also complete the global broadcast under such a scheme.
在本发明实施例中,服务器包含有两类,服务器位于网络侧为用户提供服务,一类服务器有管理其他服务器的功能称为管理服务器,另一类主要起到全局广播转发功能称为转发服务器,转发服务器与用户通信不需要经过管理服务器,转发服务器在确定一些信息需要告知管理服务器时会将这些信息告知管理服务器,例如第一转发服务器获知树形结构内的某些信息被更改的情况就需要告知到管理服务器,因此本发明的实施例基于此提供了树形结构内信息更新的方案,具体如下:进一步地,上述方法,还包括:第二转发服务器在确定需要对其所管理的群组进行更改后,向管理服务器发送更改群组的指令,使管理服务器更改树形结构存储的群组号对应的群组;接收并存储更新后的树形结构存储的群组的信息。In the embodiment of the present invention, the server includes two types, the server is located on the network side to provide services for the user, the first type of server has the function of managing other servers, which is called the management server, and the other type is mainly used as the forwarding server. The forwarding server does not need to go through the management server to communicate with the user. The forwarding server notifies the management server when certain information needs to be notified to the management server. For example, the first forwarding server learns that some information in the tree structure is changed. It is necessary to inform the management server, so the embodiment of the present invention provides a solution for updating the information in the tree structure based on the following. Specifically, the method further includes: the second forwarding server determines the group that needs to be managed by the second forwarding server. After the group makes the change, an instruction to change the group is sent to the management server, so that the management server changes the group corresponding to the group number stored in the tree structure; and receives and stores the information of the group stored in the updated tree structure.
本发明实施例还提供了另一种全局广播方法,如图3所示,包括:An embodiment of the present invention further provides another global broadcast method, as shown in FIG. 3, including:
301:服务器接收到全局广播请求后,解析上述全局广播请求获得群组号;301: After receiving the global broadcast request, the server parses the global broadcast request to obtain a group number.
上述群组号是用于标识群组的信息,该信息的表现形式可以根据实际情况进行任意的命名,基于后续采用的是树形结构,在群组号的命名上也可以体现 出其在树形结构中的度,或者其他信息,以利于检索。具体的命名规则,本发明实施例不予限定。The above group number is information for identifying a group, and the expression form of the information can be arbitrarily named according to the actual situation, and the tree structure is adopted based on the subsequent use, and the name of the group number can also be embodied. Out of its degree in the tree structure, or other information to facilitate retrieval. The specific naming rules are not limited in the embodiment of the present invention.
302:上述服务器确定以上述群组号为根节点的树形结构存储的所有节点为全局广播对象;上述服务器以树形结构存储有其管理的所有群组的群组号;302: The server determines that all nodes stored in the tree structure with the group number as the root node are global broadcast objects; and the server stores the group numbers of all groups managed by the server in a tree structure;
树形结构是数据管理的一种结构,在树形的数据结构中,数据元素之间存在着“一对多”的树形关系,是一类重要的非线性数据结构。在树形结构中,树根结点(根节点)没有前驱结点(父节点),其余每个结点有且只有一个前驱结点。叶子结点没有后续结点(子节点),其余每个结点的后续节点数可以是一个也可以是多个。在后续实施例中将会给出一个树形结构的举例说明。The tree structure is a structure of data management. In the tree data structure, there is a "one-to-many" tree relationship between data elements, which is an important nonlinear data structure. In the tree structure, the root node (the root node) has no predecessor nodes (parent nodes), and each of the remaining nodes has one and only one predecessor node. The leaf node has no subsequent nodes (child nodes), and the number of subsequent nodes of each of the other nodes may be one or more. An illustration of a tree structure will be given in subsequent embodiments.
303:将上述全局广播请求指定的广播信息发送给上述全局广播对象。303: Send the broadcast information specified by the global broadcast request to the global broadcast object.
本发明实施例,全局广播请求只需要携带一个群组号,就可以实现对以这个群组号为根节点的所有群组号对应的群组进行全局广播,服务器并不需要读入所有的群组信息进行逐一筛选,节省系统资源。将扁平化的数据结构变为树形结构存储,在数据更新时服务器获得信息所需要的交互更少。因此实现全局广播过程,需要的系统资源少,从而提高了服务器处理效率。In the embodiment of the present invention, the global broadcast request only needs to carry a group number, so that the group corresponding to all the group numbers with the group number as the root node can be globally broadcasted, and the server does not need to read all the groups. Group information is filtered one by one to save system resources. The flattened data structure is transformed into a tree structure store, and the server needs less interaction to obtain information when the data is updated. Therefore, the global broadcast process is implemented, and less system resources are required, thereby improving the processing efficiency of the server.
进一步地,在本发明实施例中,服务器包含有两类,服务器位于网络侧为用户提供服务,一类服务器有管理其他服务器的功能称为管理服务器,另一类主要起到全局广播转发功能称为转发服务器,转发服务器与用户通信不需要经过管理服务器,转发服务器在确定一些信息需要告知管理服务器时会将这些信息告知管理服务器,例如第一转发服务器获知树形结构内的某些信息被更改的情况就需要告知到管理服务器,因此本发明的实施例基于此提供了树形结构内信息更新的方案,具体如下:上述方法,还包括:服务器在确定需要对其所管理的群组进行更改后,更改树形结构存储的群组号对应的群组。Further, in the embodiment of the present invention, the server includes two types, the server is located on the network side to provide services for the user, the first type of server has the function of managing other servers, which is called the management server, and the other type is mainly used for the global broadcast forwarding function. For the forwarding server, the forwarding server does not need to go through the management server to communicate with the user. The forwarding server notifies the management server when certain information needs to be notified to the management server. For example, the first forwarding server learns that some information in the tree structure is changed. In this case, the management server needs to be informed, so the embodiment of the present invention provides a solution for updating the information in the tree structure based on the following, and the method is as follows: the method further includes: the server determines that the group to be managed needs to be changed. After that, change the group corresponding to the group number stored in the tree structure.
以下实施例以语音广播为例对本发明实施例进行更详细的说明,在本发明实施例中存在作为管理服务使用的meta_svr,和作为转发服务器使用的Svr1和Svr2;以及用户A和广播对象用户*。The following embodiments describe the embodiment of the present invention in more detail by using a voice broadcast as an example. In the embodiment of the present invention, there are meta_svr used as a management service, and Svr1 and Svr2 used as a forwarding server; and user A and a broadcast target user* .
本发明实施例提供了一种简单、高效的语音房间树结构形式的全局语音广播。当使用者发起全局广播时,受众的信息依赖于如图4A所示的语音房间的树形结构。图4A显示Voice_room_00是根语音房间,它的直接子级房间是:Voice_room_01,Voice_room_02,Voice_room_03,Voice_room_04,Voice_room_05。同 时,Voice_room_002也拥有自己的子级房间:Voice_room_12和Voice_room_13。其它节点的父子关系不再一一赘述。在服务器一侧维护这个树状结构的目的在于维护所有语音团体的结构依赖关系。The embodiment of the invention provides a simple and efficient global voice broadcast in the form of a voice room tree structure. When the user initiates a global broadcast, the audience's information depends on the tree structure of the voice room as shown in FIG. 4A. Figure 4A shows that Voice_room_00 is the root voice room, and its immediate child rooms are: Voice_room_01, Voice_room_02, Voice_room_03, Voice_room_04, Voice_room_05. Same Voice_room_002 also has its own child room: Voice_room_12 and Voice_room_13. The parent-child relationship of other nodes is not repeated here. The purpose of maintaining this tree structure on the server side is to maintain the structural dependencies of all voice communities.
本发明实施例的系统存在3个参与角色,如图4B所示,meta_svr、svr和用户。在实时交互过程中语音房间的树形结构随着人员的进入和退出可能会发生变化。例如一个语音房间人员全部退出,那么这个语音房间将会被清空,那么在树形结构中该语音房间对应的节点将会被删除;如果有用户创建一个新的语音房间,那么将会有一个新的节点在树形结构中创建出来。树形数据结构可以由Meta_svr来维护并同步语音房间树形结构的变化信息给Svr。Svr用于向用户和其他svr转发语音信息。如图4B中所示,Voice_room_04为广播发起者,其属于Svr1,其他语音房间为广播的接收者。The system of the embodiment of the present invention has three participating roles, as shown in FIG. 4B, meta_svr, svr, and user. The tree structure of the voice room during real-time interaction may change as the person enters and exits. For example, if a voice room person quits, then the voice room will be emptied, then the node corresponding to the voice room will be deleted in the tree structure; if a user creates a new voice room, there will be a new one. The nodes are created in the tree structure. The tree data structure can be maintained by Meta_svr and synchronizes the change information of the voice room tree structure to Svr. Svr is used to forward voice messages to users and other svrs. As shown in FIG. 4B, Voice_room_04 is the broadcast initiator, which belongs to Svr1, and other voice rooms are broadcast receivers.
图4C为本发明实施例提供的方法流程图。在本发明实施例中,每个Svr可以连接N个用户,每个用户可以选择任意Svr进行连接,具体的全局广播主要流程如下:4C is a flowchart of a method according to an embodiment of the present invention. In the embodiment of the present invention, each Svr can be connected to N users, and each user can select any Svr to connect. The main process of the specific global broadcast is as follows:
401:用户A向Svr1发起请求,进入语音房间;401: User A initiates a request to Svr1 to enter the voice room;
402:Svr1处理用户进房请求,接受用户A进入房间,在本步骤中,如果,是创建一个语音房间等操作,可能会导致语音房间树形结构的改变,如果有改变则需要执行步骤403;402: Svr1 processing user incoming room request, accepting user A to enter the room, in this step, if, is to create a voice room and other operations, may result in a change in the tree structure of the voice room, if there is a change, step 403 needs to be performed;
403:Svr1向Meta_svr发送语音房间结构信息;403: Svr1 sends voice room structure information to Meta_svr;
404:Meta_svr依据语音房间结构信息对语音房间的数据结构进行修改,然后刷新语音房间树形结构信息;404: Meta_svr modifies the data structure of the voice room according to the voice room structure information, and then refreshes the voice room tree structure information;
405:Meta_svr向Svr1同步最新的语音房间结构信息;405: Meta_svr synchronizes the latest voice room structure information to Svr1;
406:Meta_svr向Svr2同步最新房间结构信息;406: Meta_svr synchronizes the latest room structure information with Svr2;
407:Svr1向用户A返回成功信息,告知用户A进入房间成功;407: Svr1 returns a success message to user A, and informs user A that the entry into the room is successful;
408:用户A向其所在的Svr1发起全局广播,该全局广播携带有房间号的信息;408: User A initiates a global broadcast to the Svr1 where it is located, and the global broadcast carries the information of the room number.
409:Svr1读取房间树形结构信息,获取属于该树形结构的所有用户信息;409: Svr1 reads the room tree structure information, and obtains all user information belonging to the tree structure;
410:Svr1转发语音数据给连接Svr1的用户*;如果在步骤408中携带的房间号在房间树形结构中存在属于Svr2管辖的用户*,则可以将全局广播的请求转发给Svr2,携带房间号的信息; 410: The Svr1 forwards the voice data to the user connected to the Svr1*; if the room number carried in the step 408 exists in the room tree structure, the user who belongs to the Svr2 jurisdiction* can forward the global broadcast request to the Svr2, carrying the room number. Information;
411:Svr2转发语音数据给连接Svr2的用户*。411: Svr2 forwards voice data to the user* connected to Svr2.
通过一种树形的语音房间组织形式,使得全局广播实现简单高效。The global broadcast is simple and efficient through a tree-shaped voice room organization.
本发明实施例还提供了一种转发服务器,该转发服务器为上述第一转发服务器,如图5所示,该第一转发服务器包括:The embodiment of the present invention further provides a forwarding server, where the forwarding server is the first forwarding server, as shown in FIG. 5, the first forwarding server includes:
解析单元501,用于在上述第一转发服务器接收到全局广播请求后,解析上述全局广播请求获得群组号;The parsing unit 501 is configured to parse the global broadcast request to obtain a group number after the first forwarding server receives the global broadcast request;
对象确定单元502,用于确定以上述解析单元501获得的群组号为根节点的树形结构存储的所有节点为全局广播对象;上述第一转发服务器以树形结构存储有群组的群组号;The object determining unit 502 is configured to determine, as a global broadcast object, all the nodes stored in the tree structure with the group number obtained by the parsing unit 501 as the root node; the first forwarding server stores the group of the group in a tree structure number;
广播单元503,用于将上述全局广播请求指定的广播信息发送给上述对象确定单元502确定的上述全局广播对象中上述第一转发服务器所管理的群组。The broadcast unit 503 is configured to send the broadcast information specified by the global broadcast request to the group managed by the first forwarding server among the global broadcast objects determined by the object determining unit 502.
上述群组号是用于标识群组的信息,该信息的表现形式可以根据实际情况进行任意的命名,基于后续采用的是树形结构,在群组号的命名上也可以体现出其在树形结构中的度,或者其他信息,以利于检索。具体的命名规则,本发明实施例不予限定。The above group number is information for identifying a group, and the expression form of the information can be arbitrarily named according to the actual situation, and the tree structure is adopted based on the subsequent use, and the tree number can also be reflected in the name of the group number. Degrees in the shape structure, or other information to facilitate retrieval. The specific naming rules are not limited in the embodiment of the present invention.
本发明实施例,全局广播请求只需要携带一个群组号,就可以实现对以这个群组号为根节点的所有群组号对应的群组进行全局广播,服务器并不需要读入所有的群组信息进行逐一筛选,节省系统资源。将扁平化的数据结构变为树形结构存储,在数据更新时服务器获得信息所需要的交互更少。因此实现全局广播过程,需要的系统资源少,从而提高了服务器处理效率。In the embodiment of the present invention, the global broadcast request only needs to carry a group number, so that the group corresponding to all the group numbers with the group number as the root node can be globally broadcasted, and the server does not need to read all the groups. Group information is filtered one by one to save system resources. The flattened data structure is transformed into a tree structure store, and the server needs less interaction to obtain information when the data is updated. Therefore, the global broadcast process is implemented, and less system resources are required, thereby improving the processing efficiency of the server.
在本发明实施例中,服务器包含有两类,服务器位于网络侧为用户提供服务,一类服务器有管理其他服务器的功能称为管理服务器,另一类主要起到全局广播转发功能称为转发服务器,转发服务器与用户通信不需要经过管理服务器,转发服务器在确定一些信息需要告知管理服务器时会将这些信息告知管理服务器,例如第一转发服务器获知树形结构内的某些信息被更改的情况就需要告知到管理服务器,因此本发明的实施例基于此提供了树形结构内信息更新的方案,具体如下:进一步地,如图6所示,上述转发服务器,还包括:In the embodiment of the present invention, the server includes two types, the server is located on the network side to provide services for the user, the first type of server has the function of managing other servers, which is called the management server, and the other type is mainly used as the forwarding server. The forwarding server does not need to go through the management server to communicate with the user. The forwarding server notifies the management server when certain information needs to be notified to the management server. For example, the first forwarding server learns that some information in the tree structure is changed. It is necessary to inform the management server. Therefore, the embodiment of the present invention provides a solution for updating the information in the tree structure based on the following. Specifically, as shown in FIG. 6, the forwarding server further includes:
指令发送单元601,用于在确定需要对转发服务器所管理的群组进行更改后,向管理服务器发送更改群组的指令,使管理服务器更改树形结构存储的群组号对应的群组; The instruction sending unit 601 is configured to: after determining that the group managed by the forwarding server needs to be changed, send an instruction to change the group to the management server, so that the management server changes the group corresponding to the group number stored in the tree structure;
接收单元602,用于接收更新后的树形结构存储的群组的信息;The receiving unit 602 is configured to receive information about a group stored in the updated tree structure;
存储单元603,用于存储上述接收单元接602收到的上述更新后的树形结构存储的群组的信息。The storage unit 603 is configured to store information of the group stored in the updated tree structure received by the receiving unit 602.
可选地,本发明实施例给出了更新的树形结构的信息包含的群组的信息内容具体举例,如下:上述接收单元602接收的上述群组的信息包括:各群组在树形数据结构中的父子关系以及各群组所属的转发服务器。Optionally, the embodiment of the present invention provides a specific example of the information content of the group included in the information of the updated tree structure, as follows: the information of the group received by the receiving unit 602 includes: each group in the tree data The parent-child relationship in the structure and the forwarding server to which each group belongs.
需要说明的是,如果本实施例中,所有发起全局广播均在同一转发服务器内完成,那么可以不必包含各群组所属的转发服务器这样的信息。各群组所属的转发服务器为后续支持全局广播的广播对象不都属于同一个转发服务器管辖的场景提供了可能。It should be noted that, if all the initiating global broadcasts are completed in the same forwarding server in this embodiment, it is not necessary to include such information as the forwarding server to which each group belongs. The forwarding server to which each group belongs may provide a scenario in which subsequent broadcast objects that support global broadcast do not belong to the same forwarding server.
进一步地,如果群组信息包含有各群组所属的转发服务器,那么该方案可以支持全局广播的广播对象不都属于同一个转发服务器管辖,也即是说一个子树的所有群组号可以隶属于两个或两个以上的转发服务器,本发明实施例提供了此种方案下的全局广播实现方案,具体如下:进一步地,如图7所示,上述转发服务器,还包括:Further, if the group information includes a forwarding server to which each group belongs, the program can support that the broadcast objects of the global broadcast do not belong to the same forwarding server, that is, all group numbers of a subtree can be attached. For the two or more forwarding servers, the embodiment of the present invention provides a global broadcast implementation solution of the solution, which is specifically as follows. Further, as shown in FIG. 7, the forwarding server further includes:
请求转发单元701,用于若上述全局广播对象中存在属于第二转发服务器所管理的群组;则将上述全局广播请求发送给第二转发服务器。The request forwarding unit 701 is configured to: if the group that belongs to the second forwarding server exists in the global broadcast object, send the global broadcast request to the second forwarding server.
本发明实施例还提供了另一种转发服务器,该转发服务器为上述第二转发服务器,如图8所示,该第二转发服务器包括:The embodiment of the present invention further provides another forwarding server, which is the foregoing second forwarding server. As shown in FIG. 8, the second forwarding server includes:
解析单元801,用于在第二转发服务器接收到第一转发服务器全局广播请求后,解析上述全局广播请求获得群组号;The parsing unit 801 is configured to parse the global broadcast request to obtain a group number after the second forwarding server receives the first forwarding server global broadcast request;
对象确定单元802,用于确定以上述解析单元801获得的群组号为根节点的树形结构存储的所有节点为全局广播对象;上述第二转发服务器以树形结构存储有群组的群组号;The object determining unit 802 is configured to determine that all nodes stored in the tree structure whose root number is obtained by the parsing unit 801 is a global broadcast object; and the second forwarding server stores the group of the group in a tree structure number;
广播单元803,用于将上述全局广播请求指定的广播信息发送给上述对象确定单元802确定的上述全局广播对象中上述第二转发服务器所管理的群组;The broadcast unit 803 is configured to send the broadcast information specified by the global broadcast request to the group managed by the second forwarding server among the global broadcast objects determined by the object determining unit 802;
请求转发单元804,用于若上述全局广播对象中存在不属于上述第二转发服务器所管理的群组,则将上述全局广播请求发送给不属于上述第二转发服务器所管理的群组,且不发送给第一转发服务器。The request forwarding unit 804 is configured to: if the global broadcast object does not belong to the group managed by the second forwarding server, send the global broadcast request to a group that is not managed by the second forwarding server, and Send to the first forwarding server.
上述群组号是用于标识群组的信息,该信息的表现形式可以根据实际情况 进行任意的命名,基于后续采用的是树形结构,在群组号的命名上也可以体现出其在树形结构中的度,或者其他信息,以利于检索。具体的命名规则,本发明实施例不予限定。The above group number is information for identifying a group, and the form of the information can be expressed according to actual conditions. Arbitrary naming, based on the subsequent use of a tree structure, the name of the group number can also reflect its degree in the tree structure, or other information to facilitate retrieval. The specific naming rules are not limited in the embodiment of the present invention.
本发明实施例,全局广播请求只需要携带一个群组号,就可以实现对以这个群组号为根节点的所有群组号对应的群组进行全局广播,服务器并不需要读入所有的群组信息进行逐一筛选,节省系统资源。将扁平化的数据结构变为树形结构存储,在数据更新时服务器获得信息所需要的交互更少。因此实现全局广播过程,需要的系统资源少,从而提高了服务器处理效率。In the embodiment of the present invention, the global broadcast request only needs to carry a group number, so that the group corresponding to all the group numbers with the group number as the root node can be globally broadcasted, and the server does not need to read all the groups. Group information is filtered one by one to save system resources. The flattened data structure is transformed into a tree structure store, and the server needs less interaction to obtain information when the data is updated. Therefore, the global broadcast process is implemented, and less system resources are required, thereby improving the processing efficiency of the server.
需要说明的是,如果本实施例中,所有发起全局广播均在同一转发服务器内完成,那么可以不必包含各群组所属的转发服务器这样的信息。各群组所属的转发服务器为后续支持全局广播的广播对象不都属于同一个转发服务器管辖的场景提供了可能。如果群组信息包含有各群组所属的转发服务器,那么该方案可以支持全局广播的广播对象不都属于同一个转发服务器管辖,也即是说一个子树的所有群组号可以隶属于两个或两个以上的转发服务器,本发明实施例还可以完成此种方案下的全局广播。It should be noted that, if all the initiating global broadcasts are completed in the same forwarding server in this embodiment, it is not necessary to include such information as the forwarding server to which each group belongs. The forwarding server to which each group belongs may provide a scenario in which subsequent broadcast objects that support global broadcast do not belong to the same forwarding server. If the group information includes the forwarding server to which each group belongs, the broadcast objects that can support the global broadcast do not all belong to the same forwarding server, that is, all the group numbers of one sub-tree can belong to two Or more than two forwarding servers, the embodiment of the present invention can also complete the global broadcast under such a scheme.
在本发明实施例中,服务器包含有两类,服务器位于网络侧为用户提供服务,一类服务器有管理其他服务器的功能称为管理服务器,另一类主要起到全局广播转发功能称为转发服务器,转发服务器与用户通信不需要经过管理服务器,转发服务器在确定一些信息需要告知管理服务器时会将这些信息告知转发服务器,例如第一转发服务器获知树形结构内的某些信息被更改的情况就需要告知到管理服务器,因此本发明的实施例基于此提供了树形结构内信息更新的方案,具体如下:进一步地,如图9所示,上述转发服务器,还包括:In the embodiment of the present invention, the server includes two types, the server is located on the network side to provide services for the user, the first type of server has the function of managing other servers, which is called the management server, and the other type is mainly used as the forwarding server. The forwarding server does not need to go through the management server to communicate with the user. The forwarding server notifies the forwarding server when determining that some information needs to be notified to the management server. For example, the first forwarding server learns that some information in the tree structure is changed. It is necessary to inform the management server. Therefore, the embodiment of the present invention provides a solution for updating the information in the tree structure based on the following. Specifically, as shown in FIG. 9, the forwarding server further includes:
指令发送单元901,用于在确定需要对转发服务器所管理的群组进行更改后,向管理服务器发送更改群组的指令,使管理服务器更改树形结构存储的群组号对应的群组;The instruction sending unit 901 is configured to: after determining that the group managed by the forwarding server needs to be changed, send an instruction to change the group to the management server, so that the management server changes the group corresponding to the group number stored in the tree structure;
接收单元902,用于接收更新后的树形结构存储的群组的信息;The receiving unit 902 is configured to receive information about a group stored in the updated tree structure;
存储单元903,用于存储上述接收单元902接收到的上述更新后的树形结构存储的群组的信息。The storage unit 903 is configured to store information of the group stored in the updated tree structure received by the receiving unit 902.
本发明实施例还提供了一种服务器,如图10所示,包括:The embodiment of the invention further provides a server, as shown in FIG. 10, comprising:
解析单元1001,用于在服务器接收到全局广播请求后,解析上述全局广播 请求获得群组号;The parsing unit 1001 is configured to parse the global broadcast after the server receives the global broadcast request Request to get the group number;
对象确定单元1002,用于确定以上述解析单元1001获得的群组号为根节点的树形结构存储的所有节点为全局广播对象;上述服务器以树形结构存储有其管理的所有群组的群组号;The object determining unit 1002 is configured to determine, as a global broadcast object, all the nodes stored in the tree structure having the group number obtained by the parsing unit 1001 as the root node; the server stores the group of all the groups managed by the server in a tree structure Group No;
广播单元1003,用于将上述全局广播请求指定的广播信息发送给上述对象确定单元1002确定的上述全局广播对象。The broadcasting unit 1003 is configured to transmit the broadcast information specified by the global broadcast request to the global broadcast object determined by the object determining unit 1002.
上述群组号是用于标识群组的信息,该信息的表现形式可以根据实际情况进行任意的命名,基于后续采用的是树形结构,在群组号的命名上也可以体现出其在树形结构中的度,或者其他信息,以利于检索。具体的命名规则,本发明实施例不予限定。The above group number is information for identifying a group, and the expression form of the information can be arbitrarily named according to the actual situation, and the tree structure is adopted based on the subsequent use, and the tree number can also be reflected in the name of the group number. Degrees in the shape structure, or other information to facilitate retrieval. The specific naming rules are not limited in the embodiment of the present invention.
本发明实施例,全局广播请求只需要携带一个群组号,就可以实现对以这个群组号为根节点的所有群组号对应的群组进行全局广播,服务器并不需要读入所有的群组信息进行逐一筛选,节省系统资源。将扁平化的数据结构变为树形结构存储,在数据更新时服务器获得信息所需要的交互更少。因此实现全局广播过程,需要的系统资源少,从而提高了服务器处理效率。In the embodiment of the present invention, the global broadcast request only needs to carry a group number, so that the group corresponding to all the group numbers with the group number as the root node can be globally broadcasted, and the server does not need to read all the groups. Group information is filtered one by one to save system resources. The flattened data structure is transformed into a tree structure store, and the server needs less interaction to obtain information when the data is updated. Therefore, the global broadcast process is implemented, and less system resources are required, thereby improving the processing efficiency of the server.
进一步地,在本发明实施例中,服务器包含有两类,服务器位于网络侧为用户提供服务,一类服务器有管理其他服务器的功能称为管理服务器,另一类主要起到全局广播转发功能称为转发服务器,转发服务器与用户通信不需要经过管理服务器,转发服务器在确定一些信息需要告知管理服务器时会将这些信息告知管理服务器,例如第一转发服务器获知树形结构内的某些信息被更改的情况就需要告知到管理服务器,因此本发明的实施例基于此提供了树形结构内信息更新的方案,具体如下:如图11所示,上述转发服务器,还包括:Further, in the embodiment of the present invention, the server includes two types, the server is located on the network side to provide services for the user, the first type of server has the function of managing other servers, which is called the management server, and the other type is mainly used for the global broadcast forwarding function. For the forwarding server, the forwarding server does not need to go through the management server to communicate with the user. The forwarding server notifies the management server when certain information needs to be notified to the management server. For example, the first forwarding server learns that some information in the tree structure is changed. In this case, the management server is required to be notified. Therefore, the embodiment of the present invention provides a solution for updating the information in the tree structure based on the following, as follows: As shown in FIG. 11, the forwarding server further includes:
更新单元1101,用于在确定需要对其所管理的群组进行更改后,更改树形结构存储的群组号对应的群组。The updating unit 1101 is configured to change a group corresponding to the group number stored in the tree structure after determining that the group to be managed is changed.
本发明实施例提供了另一种转发服务器,该转发服务器为第一转发服务器,如图12所示,包括:接收器1201、发射器1202、处理器1203以及存储器1204;The embodiment of the present invention provides another forwarding server, which is a first forwarding server, as shown in FIG. 12, comprising: a receiver 1201, a transmitter 1202, a processor 1203, and a memory 1204;
其中,上述处理器1203,用于控制接收到全局广播请求后,解析上述全局广播请求获得群组号;确定以上述群组号为根节点的树形结构存储的所有节点为全局广播对象;上述第一转发服务器以树形结构存储有群组的群组号;将上述全局广播请求指定的广播信息发送给上述全局广播对象中上述第一转发服务 器所管理的群组。The processor 1203 is configured to control, after receiving the global broadcast request, parse the global broadcast request to obtain a group number, and determine that all nodes stored in the tree structure with the group number as a root node are global broadcast objects; The first forwarding server stores the group number of the group in a tree structure; and the broadcast information specified by the global broadcast request is sent to the first forwarding service in the global broadcast object. The group managed by the device.
上述群组号是用于标识群组的信息,该信息的表现形式可以根据实际情况进行任意的命名,基于后续采用的是树形结构,在群组号的命名上也可以体现出其在树形结构中的度,或者其他信息,以利于检索。具体的命名规则,本发明实施例不予限定。The above group number is information for identifying a group, and the expression form of the information can be arbitrarily named according to the actual situation, and the tree structure is adopted based on the subsequent use, and the tree number can also be reflected in the name of the group number. Degrees in the shape structure, or other information to facilitate retrieval. The specific naming rules are not limited in the embodiment of the present invention.
本发明实施例,全局广播请求只需要携带一个群组号,就可以实现对以这个群组号为根节点的所有群组号对应的群组进行全局广播,服务器并不需要读入所有的群组信息进行逐一筛选,节省系统资源。将扁平化的数据结构变为树形结构存储,在数据更新时服务器获得信息所需要的交互更少。因此实现全局广播过程,需要的系统资源少,从而提高了服务器处理效率。In the embodiment of the present invention, the global broadcast request only needs to carry a group number, so that the group corresponding to all the group numbers with the group number as the root node can be globally broadcasted, and the server does not need to read all the groups. Group information is filtered one by one to save system resources. The flattened data structure is transformed into a tree structure store, and the server needs less interaction to obtain information when the data is updated. Therefore, the global broadcast process is implemented, and less system resources are required, thereby improving the processing efficiency of the server.
在本发明实施例中,服务器包含有两类,服务器位于网络侧为用户提供服务,一类服务器有管理其他服务器的功能称为管理服务器,另一类主要起到全局广播转发功能称为转发服务器,转发服务器与用户通信不需要经过管理服务器,转发服务器在确定一些信息需要告知管理服务器时会将这些信息告知管理服务器,例如第一转发服务器获知树形结构内的某些信息被更改的情况就需要告知到管理服务器,因此本发明的实施例基于此提供了树形结构内信息更新的方案,具体如下:上述处理器1203,还用于在确定需要对其所管理的群组进行更改后,向管理服务器发送更改群组的指令,使管理服务器更改树形结构存储的群组号对应的群组;In the embodiment of the present invention, the server includes two types, the server is located on the network side to provide services for the user, the first type of server has the function of managing other servers, which is called the management server, and the other type is mainly used as the forwarding server. The forwarding server does not need to go through the management server to communicate with the user. The forwarding server notifies the management server when certain information needs to be notified to the management server. For example, the first forwarding server learns that some information in the tree structure is changed. The management server needs to be informed, so the embodiment of the present invention provides a solution for updating the information in the tree structure based on the following, and the following is as follows: the processor 1203 is further configured to: after determining that the group to be managed needs to be changed, Sending an instruction to change the group to the management server, causing the management server to change the group corresponding to the group number stored in the tree structure;
接收并存储更新后的树形结构存储的群组的信息。The information of the group stored in the updated tree structure is received and stored.
本发明实施例给出了更新的树形结构的信息包含的群组的信息内容具体举例,如下:上述处理器1203,用于接收的上述群组的信息包括:各群组在树形数据结构中的父子关系以及各群组所属的转发服务器。The embodiment of the present invention provides a specific example of the information content of the group included in the information of the updated tree structure, as follows: The processor 1203, the information about the group used for receiving includes: each group in a tree data structure The parent-child relationship in the middle and the forwarding server to which each group belongs.
需要说明的是,如果本实施例中,所有发起全局广播均在同一转发服务器内完成,那么可以不必包含各群组所属的转发服务器这样的信息。各群组所属的转发服务器为后续支持全局广播的广播对象不都属于同一个转发服务器管辖的场景提供了可能。It should be noted that, if all the initiating global broadcasts are completed in the same forwarding server in this embodiment, it is not necessary to include such information as the forwarding server to which each group belongs. The forwarding server to which each group belongs may provide a scenario in which subsequent broadcast objects that support global broadcast do not belong to the same forwarding server.
进一步地,如果群组信息包含有各群组所属的转发服务器,那么该方案可以支持全局广播的广播对象不都属于同一个转发服务器管辖,也即是说一个子树的所有群组号可以隶属于两个或两个以上的转发服务器,本发明实施例提供 了此种方案下的全局广播实现方案,具体如下:上述处理器1203,还用于若上述全局广播对象中存在属于第二转发服务器所管理的群组;将上述全局广播请求发送给第二转发服务器。Further, if the group information includes a forwarding server to which each group belongs, the program can support that the broadcast objects of the global broadcast do not belong to the same forwarding server, that is, all group numbers of a subtree can be attached. The embodiment of the present invention provides two or more forwarding servers. The global broadcast implementation scheme of the solution is specifically as follows: the processor 1203 is further configured to: if the global broadcast object has a group that belongs to the second forwarding server; and send the global broadcast request to the second forwarding server.
本发明实施例提供了另一种转发服务器,该转发服务器为第二转发服务器,如图13所示,包括:接收器1301、发射器1302、处理器1303以及存储器1304;The embodiment of the present invention provides another forwarding server, which is a second forwarding server, as shown in FIG. 13, comprising: a receiver 1301, a transmitter 1302, a processor 1303, and a memory 1304;
其中,上述处理器1303,用于控制接收到第一转发服务器全局广播请求后,解析上述全局广播请求获得群组号;上述第二转发服务器确定以上述群组号为根节点的树形结构存储的所有节点为全局广播对象;上述第二转发服务器以树形结构存储有群组的群组号;将上述全局广播请求指定的广播信息发送给上述全局广播对象中上述第二转发服务器所管理的群组;若上述全局广播对象中存在不属于上述第二转发服务器所管理的群组,则将上述全局广播请求发送给不属于上述第二转发服务器所管理的群组,且不发送给第一转发服务器。The processor 1303 is configured to: after receiving the global forwarding request of the first forwarding server, parse the global broadcast request to obtain a group number; and the second forwarding server determines to store the tree structure with the group number as a root node. All the nodes are global broadcast objects; the second forwarding server stores the group number of the group in a tree structure; and the broadcast information specified by the global broadcast request is sent to the second broadcast server managed by the second forwarding server. a group; if the global broadcast object does not belong to the group managed by the second forwarding server, the global broadcast request is sent to a group that is not managed by the second forwarding server, and is not sent to the first group. Forward the server.
上述群组号是用于标识群组的信息,该信息的表现形式可以根据实际情况进行任意的命名,基于后续采用的是树形结构,在群组号的命名上也可以体现出其在树形结构中的度,或者其他信息,以利于检索。具体的命名规则,本发明实施例不予限定。The above group number is information for identifying a group, and the expression form of the information can be arbitrarily named according to the actual situation, and the tree structure is adopted based on the subsequent use, and the tree number can also be reflected in the name of the group number. Degrees in the shape structure, or other information to facilitate retrieval. The specific naming rules are not limited in the embodiment of the present invention.
本发明实施例,全局广播请求只需要携带一个群组号,就可以实现对以这个群组号为根节点的所有群组号对应的群组进行全局广播,服务器并不需要读入所有的群组信息进行逐一筛选,节省系统资源。将扁平化的数据结构变为树形结构存储,在数据更新时服务器获得信息所需要的交互更少。因此实现全局广播过程,需要的系统资源少,从而提高了服务器处理效率。In the embodiment of the present invention, the global broadcast request only needs to carry a group number, so that the group corresponding to all the group numbers with the group number as the root node can be globally broadcasted, and the server does not need to read all the groups. Group information is filtered one by one to save system resources. The flattened data structure is transformed into a tree structure store, and the server needs less interaction to obtain information when the data is updated. Therefore, the global broadcast process is implemented, and less system resources are required, thereby improving the processing efficiency of the server.
需要说明的是,如果本实施例中,所有发起全局广播均在同一转发服务器内完成,那么可以不必包含各群组所属的转发服务器这样的信息。各群组所属的转发服务器为后续支持全局广播的广播对象不都属于同一个转发服务器管辖的场景提供了可能。如果群组信息包含有各群组所属的转发服务器,那么该方案可以支持全局广播的广播对象不都属于同一个转发服务器管辖,也即是说一个子树的所有群组号可以隶属于两个或两个以上的转发服务器,本发明实施例还可以完成此种方案下的全局广播。It should be noted that, if all the initiating global broadcasts are completed in the same forwarding server in this embodiment, it is not necessary to include such information as the forwarding server to which each group belongs. The forwarding server to which each group belongs may provide a scenario in which subsequent broadcast objects that support global broadcast do not belong to the same forwarding server. If the group information includes the forwarding server to which each group belongs, the broadcast objects that can support the global broadcast do not all belong to the same forwarding server, that is, all the group numbers of one sub-tree can belong to two Or more than two forwarding servers, the embodiment of the present invention can also complete the global broadcast under such a scheme.
在本发明实施例中,服务器包含有两类,服务器位于网络侧为用户提供服务,一类服务器有管理其他服务器的功能称为管理服务器,另一类主要起到全 局广播转发功能称为转发服务器,转发服务器与用户通信不需要经过管理服务器,转发服务器在确定一些信息需要告知管理服务器时会将这些信息告知管理服务器,例如第一转发服务器获知树形结构内的某些信息被更改的情况就需要告知到管理服务器,因此本发明的实施例基于此提供了树形结构内信息更新的方案,具体如下:上述处理器1303,还用于在确定需要对转发服务器所管理的群组进行更改后,向管理服务器发送更改群组的指令,使管理服务器更改树形结构存储的群组号对应的群组;接收并存储更新后的树形结构存储的群组的信息。In the embodiment of the present invention, the server includes two types, the server is located on the network side to provide services for the user, the first type of server has the function of managing other servers, and the other type is mainly used. The broadcast forwarding function is called a forwarding server. The forwarding server does not need to go through the management server to communicate with the user. The forwarding server notifies the management server when certain information needs to be notified to the management server. For example, the first forwarding server knows the tree structure. If the information is changed, the management server needs to be notified. Therefore, the embodiment of the present invention provides a solution for updating the information in the tree structure based on the following, and the following is as follows: the processor 1303 is further configured to determine the need for the forwarding server. After the managed group makes a change, an instruction to change the group is sent to the management server, so that the management server changes the group corresponding to the group number stored in the tree structure; and receives and stores the group of the updated tree structure storage. information.
本发明实施例提供了另一种服务器,如图14所示,包括:接收器1401、发射器1402、处理器1403以及存储器1404;An embodiment of the present invention provides another server, as shown in FIG. 14, comprising: a receiver 1401, a transmitter 1402, a processor 1403, and a memory 1404;
其中,上述处理器1403,用于控制接收到全局广播请求后,解析上述全局广播请求获得群组号;上述服务器确定以上述群组号为根节点的树形结构存储的所有节点为全局广播对象;上述服务器以树形结构存储有其管理的所有群组的群组号;将上述全局广播请求指定的广播信息发送给上述全局广播对象。The processor 1403 is configured to control, after receiving the global broadcast request, parse the global broadcast request to obtain a group number, and the server determines that all nodes stored in the tree structure with the group number as a root node are global broadcast objects. The server stores the group number of all the groups it manages in a tree structure; and transmits the broadcast information specified by the global broadcast request to the global broadcast object.
上述群组号是用于标识群组的信息,该信息的表现形式可以根据实际情况进行任意的命名,基于后续采用的是树形结构,在群组号的命名上也可以体现出其在树形结构中的度,或者其他信息,以利于检索。具体的命名规则,本发明实施例不予限定。The above group number is information for identifying a group, and the expression form of the information can be arbitrarily named according to the actual situation, and the tree structure is adopted based on the subsequent use, and the tree number can also be reflected in the name of the group number. Degrees in the shape structure, or other information to facilitate retrieval. The specific naming rules are not limited in the embodiment of the present invention.
本发明实施例,全局广播请求只需要携带一个群组号,就可以实现对以这个群组号为根节点的所有群组号对应的群组进行全局广播,服务器并不需要读入所有的群组信息进行逐一筛选,节省系统资源。将扁平化的数据结构变为树形结构存储,在数据更新时服务器获得信息所需要的交互更少。因此实现全局广播过程,需要的系统资源少,从而提高了服务器处理效率。In the embodiment of the present invention, the global broadcast request only needs to carry a group number, so that the group corresponding to all the group numbers with the group number as the root node can be globally broadcasted, and the server does not need to read all the groups. Group information is filtered one by one to save system resources. The flattened data structure is transformed into a tree structure store, and the server needs less interaction to obtain information when the data is updated. Therefore, the global broadcast process is implemented, and less system resources are required, thereby improving the processing efficiency of the server.
进一步地,在本发明实施例中,服务器包含有两类,服务器位于网络侧为用户提供服务,一类服务器有管理其他服务器的功能称为管理服务器,另一类主要起到全局广播转发功能称为转发服务器,转发服务器与用户通信不需要经过管理服务器,转发服务器在确定一些信息需要告知管理服务器时会将这些信息告知管理服务器,例如第一转发服务器获知树形结构内的某些信息被更改的情况就需要告知到管理服务器,因此本发明的实施例基于此提供了树形结构内信息更新的方案,具体如下:上述处理器1403,还用于在确定需要对转发服务 器所管理的群组进行更改后,更改树形结构存储的群组号对应的群组。Further, in the embodiment of the present invention, the server includes two types, the server is located on the network side to provide services for the user, the first type of server has the function of managing other servers, which is called the management server, and the other type is mainly used for the global broadcast forwarding function. For the forwarding server, the forwarding server does not need to go through the management server to communicate with the user. The forwarding server notifies the management server when certain information needs to be notified to the management server. For example, the first forwarding server learns that some information in the tree structure is changed. In this case, the management server needs to be notified, so the embodiment of the present invention provides a solution for updating the information in the tree structure based on the following, and the following is as follows: the processor 1403 is further configured to determine that the forwarding service needs to be performed. After the group managed by the device is changed, the group corresponding to the group number stored in the tree structure is changed.
本发明实施例提供了一种全局广播系统,如图15A所示,包括:管理服务器1501和第一转发服务1502,或者,如图15B所示,包括:管理服务器1501、第一转发服务器1502和第二转发服务器1503;The embodiment of the present invention provides a global broadcast system, as shown in FIG. 15A, including: a management server 1501 and a first forwarding service 1502, or, as shown in FIG. 15B, a management server 1501, a first forwarding server 1502, and a second forwarding server 1503;
其中上述第一转发服务器为本发明实施例提供的任意一项上述的转发服务器;上述第二转发服务器为本发明实施例提供的任意一项上述的转发服务器。The first forwarding server is any one of the foregoing forwarding servers provided by the embodiment of the present invention; the second forwarding server is any one of the foregoing forwarding servers provided by the embodiment of the present invention.
本发明实施例,全局广播请求只需要携带一个群组号,就可以实现对以这个群组号为根节点的所有群组号对应的群组进行全局广播,服务器并不需要读入所有的群组信息进行逐一筛选,节省系统资源。将扁平化的数据结构变为树形结构存储,在数据更新时服务器获得信息所需要的交互更少。因此实现全局广播过程,需要的系统资源少,从而提高了服务器处理效率。In the embodiment of the present invention, the global broadcast request only needs to carry a group number, so that the group corresponding to all the group numbers with the group number as the root node can be globally broadcasted, and the server does not need to read all the groups. Group information is filtered one by one to save system resources. The flattened data structure is transformed into a tree structure store, and the server needs less interaction to obtain information when the data is updated. Therefore, the global broadcast process is implemented, and less system resources are required, thereby improving the processing efficiency of the server.
值得注意的是,上述管理服务器、转发服务器以及服务器的实施例中,所包括的各个单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。It should be noted that, in the foregoing embodiments of the management server, the forwarding server, and the server, each unit included is only divided according to functional logic, but is not limited to the above division, as long as the corresponding function can be implemented; The specific names of the functional units are also only for convenience of distinguishing from each other, and are not intended to limit the scope of protection of the present invention.
另外,本领域普通技术人员可以理解实现上述各方法实施例中的全部或部分步骤是可以通过程序来指令相关的硬件完成,相应的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。In addition, those skilled in the art can understand that all or part of the steps in implementing the foregoing method embodiments may be performed by a program to instruct related hardware, and the corresponding program may be stored in a computer readable storage medium. The storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
以上仅为本发明的示例性具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明实施例揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。 The above is only an exemplary embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical scope disclosed by the embodiments of the present invention. All should be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims (16)

  1. 一种全局广播方法,其特征在于,包括:A global broadcast method, comprising:
    第一转发服务器接收到全局广播请求后,解析所述全局广播请求获得群组号;After receiving the global broadcast request, the first forwarding server parses the global broadcast request to obtain a group number;
    所述第一转发服务器确定以所述群组号为根节点的树形结构存储的所有节点为全局广播对象,其中,所述第一转发服务器以树形结构存储有群组的群组号;The first forwarding server determines that all the nodes stored in the tree structure with the group number as the root node are global broadcast objects, wherein the first forwarding server stores the group number of the group in a tree structure;
    将所述全局广播请求指定的广播信息发送给所述全局广播对象中所述第一转发服务器所管理的群组。And transmitting the broadcast information specified by the global broadcast request to a group managed by the first forwarding server in the global broadcast object.
  2. 根据权利要求1所述方法,其特征在于还包括:在确定需要对所述第一转发服务器所管理的群组进行更改后,The method of claim 1 further comprising: after determining that a change to the group managed by said first forwarding server is required,
    向管理服务器发送更改群组的指令,使管理服务器更改树形结构存储的群组号对应的群组;Sending an instruction to change the group to the management server, causing the management server to change the group corresponding to the group number stored in the tree structure;
    接收并存储更新后的树形结构存储的群组的信息。The information of the group stored in the updated tree structure is received and stored.
  3. 根据权利要求2所述方法,其特征在于,所述群组的信息包括:The method of claim 2, wherein the information of the group comprises:
    各群组在树形数据结构中的父子关系以及各群组所属的转发服务器。The parent-child relationship of each group in the tree data structure and the forwarding server to which each group belongs.
  4. 根据权利要求3所述方法,其特征在于,还包括:The method of claim 3, further comprising:
    若所述全局广播对象中存在属于第二转发服务器所管理的群组;If there is a group that belongs to the second forwarding server in the global broadcast object;
    将所述全局广播请求发送给第二转发服务器。Sending the global broadcast request to the second forwarding server.
  5. 一种全局广播方法,其特征在于,包括:A global broadcast method, comprising:
    第二转发服务器接收到第一转发服务器全局广播请求后,解析所述全局广播请求获得群组号;After receiving the first forwarding server global broadcast request, the second forwarding server parses the global broadcast request to obtain a group number;
    所述第二转发服务器确定以所述群组号为根节点的树形结构存储的所有节点为全局广播对象,其中,所述第二转发服务器以树形结构存储有群组的群组号;The second forwarding server determines that all the nodes stored in the tree structure with the group number as the root node are global broadcast objects, wherein the second forwarding server stores the group number of the group in a tree structure;
    将所述全局广播请求指定的广播信息发送给所述全局广播对象中所述第二转发服务器所管理的群组;Transmitting the broadcast information specified by the global broadcast request to a group managed by the second forwarding server in the global broadcast object;
    若所述全局广播对象中存在不属于所述第二转发服务器所管理的群组,则将所述全局广播请求发送给不属于所述第二转发服务器所管理的群组,且不发 送给第一转发服务器。If the global broadcast object does not belong to the group managed by the second forwarding server, send the global broadcast request to a group that is not managed by the second forwarding server, and does not send Send to the first forwarding server.
  6. 根据权利要求5所述方法,其特征在于,还包括:The method of claim 5, further comprising:
    第二转发服务器在确定需要对其所管理的群组进行更改后,向管理服务器发送更改群组的指令,使管理服务器更改树形结构存储的群组号对应的群组;After determining that the group to be managed is changed, the second forwarding server sends an instruction to change the group to the management server, so that the management server changes the group corresponding to the group number stored in the tree structure;
    接收并存储更新后的树形结构存储的群组的信息。The information of the group stored in the updated tree structure is received and stored.
  7. 一种全局广播方法,其特征在于,包括:A global broadcast method, comprising:
    服务器接收到全局广播请求后,解析所述全局广播请求获得群组号;After receiving the global broadcast request, the server parses the global broadcast request to obtain a group number;
    所述服务器确定以所述群组号为根节点的树形结构存储的所有节点为全局广播对象,其中,所述服务器以树形结构存储有其管理的所有群组的群组号;Determining, by the server, all nodes stored in a tree structure with the group number as a root node as a global broadcast object, wherein the server stores a group number of all groups managed by the server in a tree structure;
    将所述全局广播请求指定的广播信息发送给所述全局广播对象。The broadcast information specified by the global broadcast request is transmitted to the global broadcast object.
  8. 根据权利要求7所述方法,其特征在于,还包括:The method of claim 7 further comprising:
    服务器在确定需要对其所管理的群组进行更改后,更改树形结构存储的群组号对应的群组。After the server determines that it needs to make changes to the group it manages, it changes the group corresponding to the group number stored in the tree structure.
  9. 一种转发服务器,其特征在于包括:A forwarding server, comprising:
    解析单元,用于在所述转发服务器接收到全局广播请求后,解析所述全局广播请求获得群组号;a parsing unit, configured to parse the global broadcast request to obtain a group number after the forwarding server receives the global broadcast request;
    对象确定单元,用于确定以所述解析单元获得的群组号为根节点的树形结构存储的所有节点为全局广播对象,其中,所述转发服务器以树形结构存储有群组的群组号;An object determining unit, configured to determine, to the global broadcast object, all nodes stored in a tree structure whose root number is obtained by the parsing unit, wherein the forwarding server stores the group of the group in a tree structure number;
    广播单元,用于将所述全局广播请求指定的广播信息发送给所述对象确定单元确定的所述全局广播对象中所述转发服务器所管理的群组。And a broadcast unit, configured to send the broadcast information specified by the global broadcast request to a group managed by the forwarding server among the global broadcast objects determined by the object determining unit.
  10. 根据权利要求9所述转发服务器,其特征在于,还包括:The forwarding server according to claim 9, further comprising:
    指令发送单元,用于在确定需要对所述转发服务器所管理的群组进行更改后,向管理服务器发送更改群组的指令,使管理服务器更改树形结构存储的群组号对应的群组;The instruction sending unit is configured to: after determining that the group managed by the forwarding server needs to be changed, send an instruction to change the group to the management server, so that the management server changes the group corresponding to the group number stored in the tree structure;
    接收单元,用于接收更新后的树形结构存储的群组的信息;a receiving unit, configured to receive information of a group stored in the updated tree structure;
    存储单元,用于存储所述接收单元接收到的所述更新后的树形结构存储的群组的信息。And a storage unit, configured to store information of the group stored by the updated tree structure received by the receiving unit.
  11. 根据权利要求10所述转发服务器,其特征在于,A forwarding server according to claim 10, wherein
    所述接收单元接收的所述群组的信息包括:各群组在树形数据结构中的父 子关系以及各群组所属的转发服务器。The information of the group received by the receiving unit includes: a parent of each group in a tree data structure Sub-relationships and forwarding servers to which each group belongs.
  12. 根据权利要求11所述转发服务器,其特征在于,还包括:The forwarding server according to claim 11, further comprising:
    请求转发单元,用于:若所述全局广播对象中存在属于第二转发服务器所管理的群组,则将所述全局广播请求发送给第二转发服务器。And a request forwarding unit, configured to send the global broadcast request to the second forwarding server if the group that belongs to the second forwarding server exists in the global broadcast object.
  13. 一种转发服务器,其特征在于,包括:A forwarding server, comprising:
    解析单元,用于在所述转发服务器接收到第一转发服务器全局广播请求后,解析所述全局广播请求获得群组号;a parsing unit, configured to parse the global broadcast request to obtain a group number after the forwarding server receives the first forwarding server global broadcast request;
    对象确定单元,用于确定以所述解析单元获得的群组号为根节点的树形结构存储的所有节点为全局广播对象,其中,所述转发服务器以树形结构存储有群组的群组号;An object determining unit, configured to determine, to the global broadcast object, all nodes stored in a tree structure whose root number is obtained by the parsing unit, wherein the forwarding server stores the group of the group in a tree structure number;
    广播单元,用于将所述全局广播请求指定的广播信息发送给所述对象确定单元确定的所述全局广播对象中所述转发服务器所管理的群组;a broadcast unit, configured to send the broadcast information specified by the global broadcast request to a group managed by the forwarding server in the global broadcast object determined by the object determining unit;
    请求转发单元,用于若所述全局广播对象中存在不属于所述转发服务器所管理的群组,则将所述全局广播请求发送给不属于所述转发服务器所管理的群组,且不发送给所述第一转发服务器。a request forwarding unit, configured to send the global broadcast request to a group that is not managed by the forwarding server if the group that is not managed by the forwarding server exists in the global broadcast object, and does not send To the first forwarding server.
  14. 根据权利要求13所述转发服务器,其特征在于,还包括:The forwarding server according to claim 13, further comprising:
    指令发送单元,用于在确定需要对所述转发服务器所管理的群组进行更改后,向管理服务器发送更改群组的指令,使管理服务器更改树形结构存储的群组号对应的群组;The instruction sending unit is configured to: after determining that the group managed by the forwarding server needs to be changed, send an instruction to change the group to the management server, so that the management server changes the group corresponding to the group number stored in the tree structure;
    接收单元,用于接收更新后的树形结构存储的群组的信息;a receiving unit, configured to receive information of a group stored in the updated tree structure;
    存储单元,用于存储所述接收单元接收到的所述更新后的树形结构存储的群组的信息。And a storage unit, configured to store information of the group stored by the updated tree structure received by the receiving unit.
  15. 一种服务器,其特征在于,包括:A server, comprising:
    解析单元,用于在服务器接收到全局广播请求后,解析所述全局广播请求获得群组号;a parsing unit, configured to parse the global broadcast request to obtain a group number after the server receives the global broadcast request;
    对象确定单元,用于确定以所述解析单元获得的群组号为根节点的树形结构存储的所有节点为全局广播对象,其中,所述服务器以树形结构存储有其管理的所有群组的群组号;An object determining unit, configured to determine all nodes stored in a tree structure having a group number obtained by the parsing unit as a root node as a global broadcast object, wherein the server stores all groups managed by the server in a tree structure Group number;
    广播单元,用于将所述全局广播请求指定的广播信息发送给所述对象确定单元确定的所述全局广播对象。 And a broadcast unit, configured to send the broadcast information specified by the global broadcast request to the global broadcast object determined by the object determining unit.
  16. 根据权利要求15所述的服务器,其特征在于,还包括:The server according to claim 15, further comprising:
    更新单元,用于在确定需要对所述服务器所管理的群组进行更改后,更改树形结构存储的群组号对应的群组。 And an update unit, configured to change a group corresponding to the group number stored in the tree structure after determining that the group managed by the server needs to be changed.
PCT/CN2014/090173 2013-11-05 2014-11-03 Global broadcast method, server and system WO2015067151A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310541080.7 2013-11-05
CN201310541080.7A CN103560897B (en) 2013-11-05 2013-11-05 A kind of overall situation broadcasting method, server, and system

Publications (1)

Publication Number Publication Date
WO2015067151A1 true WO2015067151A1 (en) 2015-05-14

Family

ID=50015053

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/090173 WO2015067151A1 (en) 2013-11-05 2014-11-03 Global broadcast method, server and system

Country Status (2)

Country Link
CN (1) CN103560897B (en)
WO (1) WO2015067151A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103560897B (en) * 2013-11-05 2016-07-27 腾讯科技(武汉)有限公司 A kind of overall situation broadcasting method, server, and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1917667A (en) * 2006-09-08 2007-02-21 华为技术有限公司 System for processing numbers and processing method in service of sending grouped short message
EP1978670A2 (en) * 2007-04-03 2008-10-08 Itt Manufacturing Enterprises, Inc. Method and device for reliable broadcast
CN101938506A (en) * 2009-06-30 2011-01-05 李云洲 P2PSIP (Peer-to-Peer Session Initiation Protocol) based method for virtualizing overlay tree, subscription tree and media broadcast tree
US20110249817A1 (en) * 2008-12-10 2011-10-13 Electronics And Telcommunications Research Institute Method of managing group key for secure multicast communication
CN103200273A (en) * 2013-04-19 2013-07-10 北京科技大学 Content replica consistency maintaining method based on physical location
CN103560897A (en) * 2013-11-05 2014-02-05 腾讯科技(武汉)有限公司 Overall broadcasting method, server and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1917667A (en) * 2006-09-08 2007-02-21 华为技术有限公司 System for processing numbers and processing method in service of sending grouped short message
EP1978670A2 (en) * 2007-04-03 2008-10-08 Itt Manufacturing Enterprises, Inc. Method and device for reliable broadcast
US20110249817A1 (en) * 2008-12-10 2011-10-13 Electronics And Telcommunications Research Institute Method of managing group key for secure multicast communication
CN101938506A (en) * 2009-06-30 2011-01-05 李云洲 P2PSIP (Peer-to-Peer Session Initiation Protocol) based method for virtualizing overlay tree, subscription tree and media broadcast tree
CN103200273A (en) * 2013-04-19 2013-07-10 北京科技大学 Content replica consistency maintaining method based on physical location
CN103560897A (en) * 2013-11-05 2014-02-05 腾讯科技(武汉)有限公司 Overall broadcasting method, server and system

Also Published As

Publication number Publication date
CN103560897A (en) 2014-02-05
CN103560897B (en) 2016-07-27

Similar Documents

Publication Publication Date Title
US7912959B2 (en) Architecture for building a peer to peer messaging platform
JP5891551B2 (en) Method, group server, and member device for accessing member resources
US7493413B2 (en) APIS to build peer to peer messaging applications
US11929873B1 (en) OPC UA-based centralized user configuration method and system for time-sensitive network
US8812718B2 (en) System and method of streaming data over a distributed infrastructure
CN105357286B (en) A kind of real-time messages orientation method for pushing based on Web
CN101222414A (en) Device, system and method for implementing multicast communication
US20110125887A1 (en) Managing communication between nodes in a virtual network
WO2014194452A9 (en) Message publishing and subscribing method and apparatus
KR20150108749A (en) Finding services in a service-oriented architecture(soa) network
CN108139920A (en) Method, equipment and the system of the proxy server management based on information centre's networking (ICN) are used in dynamic condition and under becoming constraint
US9385877B2 (en) Multicast systems, methods, and computer program products
WO2021008567A1 (en) Request transmission method and apparatus based on full duplex communication protocol
JP2017201776A (en) Content delivery through uneven network
CN110213156A (en) A kind of span centre heart group's instant communicating method and system
WO2015067151A1 (en) Global broadcast method, server and system
US8606890B2 (en) Managing communication between nodes in a virtual network
CN105493465A (en) XMPP based UPnP device architecture for cloud computing in a network environment
CN111555969A (en) Gateway based on Sub-G star network and mesh network
TW202103475A (en) Method for terminal device management, server and terminal device
CN114025005B (en) Data communication method, system, electronic equipment and storage medium
JP2004153312A (en) Data distribution method, data distribution system, data receiver, data relaying apparatus, and program for the data receiver and data distribution
CN106210779B (en) Optimize the method and system of internet video live broadcasting data hierarchy transmission
WO2018090315A1 (en) Data request processing method and cache system
CN103488768A (en) File management method and file management system based on cloud computing

Legal Events

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

Ref document number: 14860254

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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

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

122 Ep: pct application non-entry in european phase

Ref document number: 14860254

Country of ref document: EP

Kind code of ref document: A1