WO2015067151A1 - 一种全局广播方法、服务器及系统 - Google Patents

一种全局广播方法、服务器及系统 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
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2014/090173
Other languages
English (en)
French (fr)
Inventor
周俊清
徐晓敏
曾新海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Publication of WO2015067151A1 publication Critical patent/WO2015067151A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

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

Definitions

  • 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.
  • 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.
  • TCP Transmission Control Protocol
  • IP Internet Protocol
  • 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.
  • 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.
  • 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.
  • 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.
  • 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:
  • the first forwarding server 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;
  • a global broadcast method including:
  • the second forwarding server 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;
  • 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:
  • the server After receiving the global broadcast request, the server parses the global broadcast request to obtain a group number;
  • 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;
  • 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;
  • 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.
  • 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.
  • FIG. 1 is a schematic flowchart of a method according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of a method according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a method according to an embodiment of the present invention.
  • FIG. 4A is a schematic diagram of a tree structure of a voice room according to an embodiment of the present invention.
  • 4B is a schematic structural diagram of a network according to an embodiment of the present invention.
  • 4C is a schematic flowchart of a method according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a forwarding server according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a forwarding server according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a forwarding server according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a forwarding server according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a forwarding server according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of a server according to an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of a server according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of a forwarding server according to an embodiment of the present invention.
  • FIG. 13 is a schematic diagram of a forwarding server according to an embodiment of the present invention.
  • FIG. 14 is a schematic diagram of a server according to an embodiment of the present invention.
  • 15A is a schematic structural diagram of a network according to an embodiment of the present invention.
  • FIG. 15B is a schematic structural diagram of a network according to an embodiment of the present invention.
  • An embodiment of the present invention provides a global broadcast method, as shown in FIG. 1 , including:
  • the first forwarding server 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • the forwarding server does not need to communicate with the user.
  • the forwarding server notifies the management server when determining that some information needs to be notified to the management server.
  • 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.
  • 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.
  • 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.
  • 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 a global broadcast implementation solution of the solution, which is specifically as follows: the foregoing method further includes:
  • An embodiment of the present invention further provides another global broadcast method, as shown in FIG. 2, including:
  • 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.
  • 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;
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • An embodiment of the present invention further provides another global broadcast method, as shown in FIG. 3, including:
  • the server 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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 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.
  • the embodiment of the invention provides a simple and efficient global voice broadcast in the form of a voice room tree structure.
  • 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.
  • 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.
  • Voice_room_04 is the broadcast initiator, which belongs to Svr1, and other voice rooms are broadcast receivers.
  • 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:
  • step 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;
  • Svr1 sends voice room structure information to Meta_svr
  • 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;
  • Meta_svr synchronizes the latest voice room structure information to Svr1;
  • Meta_svr synchronizes the latest room structure information with Svr2;
  • Svr1 returns a success message to user A, and informs user A that the entry into the room is successful;
  • User A initiates a global broadcast to the Svr1 where it is located, and the global broadcast carries the information of the room number.
  • Svr1 reads the room tree structure information, and obtains all user information belonging to the tree structure
  • 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;
  • Svr2 forwards voice data to the user* connected to Svr2.
  • the global broadcast is simple and efficient through a tree-shaped voice room organization.
  • 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:
  • 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;
  • 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;
  • 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.
  • 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.
  • 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.
  • 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.
  • the forwarding server further includes:
  • 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;
  • the receiving unit 602 is configured to receive information about a group stored in the updated tree structure
  • the storage unit 603 is configured to store information of the group stored in the updated tree structure received by the receiving unit 602.
  • 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.
  • 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.
  • 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 a global broadcast implementation solution of the solution, which is specifically as follows. Further, as shown in FIG. 7, the forwarding server further includes:
  • 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.
  • the embodiment of the present invention further provides another forwarding server, which is the foregoing second forwarding server.
  • the second forwarding server includes:
  • 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;
  • 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;
  • 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;
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • the forwarding server further includes:
  • 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;
  • the receiving unit 902 is configured to receive information about a group stored in the updated tree structure
  • the storage unit 903 is configured to store information of the group stored in the updated tree structure received by the receiving unit 902.
  • the embodiment of the invention further provides a server, as shown in FIG. 10, comprising:
  • 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;
  • 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;
  • 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.
  • 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.
  • 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.
  • 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.
  • 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:
  • 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.
  • 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;
  • 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 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 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
  • 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.
  • 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.
  • 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 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.
  • 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.
  • 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.
  • 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.
  • 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;
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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;
  • 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.
  • 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.
  • 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.
  • 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.
  • the first forwarding server learns that some information in the tree structure is changed.
  • 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.
  • 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.
  • 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.
  • 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.
  • the storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

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

Abstract

本发明实施例公开了一种全局广播方法、服务器及系统,其中方法的实现包括:第一转发服务器接收到全局广播请求后,解析所述全局广播请求获得群组号;确定以所述群组号为根节点的树形结构存储的所有节点为全局广播对象其中,所述第一转发服务器以树形结构存储有群组的群组号;将所述全局广播请求指定的广播信息发送给所述全局广播对象中所述第一转发服务器所管理的群组。全局广播请求只需要携带一个群组号,就可以实现对以这个群组号为根节点的所有群组号对应的群组进行全局广播,服务器并不需要读入所有的群组信息进行逐一筛选。

Description

一种全局广播方法、服务器及系统
相关申请交叉引用
本申请要求2013年11月5日提交中国专利局、申请号为201310541080.7、发明名称为“一种全局广播方法、服务器,及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明的实施例涉及通信技术领域,特别涉及一种全局广播方法、服务器,及系统。
背景技术
以基于TCP(Transmission Control Protocol,传输控制协议)/IP(Internet Protocol,互联网协议)的语音通信为例,全局广播是保证不同语音房间的用户可以接收到同一路全局广播的信息。
在语音传输中,团队语音:是指多个人在同一时间进行实时语音通信的过程。使用者之间的语音交互是双向的。语音房间:是指团队语音的虚拟结构称谓,同一团队语音用户隶属于同一个语音房间。全局广播:是指对不同语音房间的所有用户进行单向全局广播。
目前语音房间采用扁平化结构,实现全局广播的方案如下:在服务侧存储有所有的房间号;若确定需要进行全局广播,例如:接收到来自用户的全局广播指令,上述全局广播指令指示了所有需要进行广播的房间号;服务器确定各房间号对应的地址,然后将全局广播的广播信息发送给确定的各地址。
以上方案,服务器与用户之间需要传递所有需要广播的房间号,服务器需要读入所有管理的房间号进行筛选,由于服务器所管理的语音房间会非常多,因此会占用大量内存。另外,为了维护全局广播的信息,服务器与用户之间需要进行大量的交互。因此采用扁平化的结构来实现全局广播,会导致服务器处理效率低下。
发明内容
本发明实施例提供了一种全局广播方法、服务器及系统,用于提高服务器处理效率。
一种全局广播方法,包括:
第一转发服务器接收到全局广播请求后,解析所述全局广播请求获得群组号;
所述第一转发服务器确定以所述群组号为根节点的树形结构存储的所有节点为全局广播对象,其中,所述第一转发服务器以树形结构存储有群组的群组号;
将所述全局广播请求指定的广播信息发送给所述全局广播对象中所述第一转发服务器所管理的群组。
一种全局广播方法,包括:
第二转发服务器接收到第一转发服务器全局广播请求后,解析所述全局广播请求获得群组号;
所述第二转发服务器确定以所述群组号为根节点的树形结构存储的所有节点为全局广播对象,其中,所述第二转发服务器以树形结构存储有群组的群组号;
将所述全局广播请求指定的广播信息发送给所述全局广播对象中所述第二转发服务器所管理的群组;
若所述全局广播对象中存在不属于所述第二转发服务器所管理的群组,则将所述全局广播请求发送给不属于所述第二转发服务器所管理的群组,且不发送给第一转发服务器。
一种全局广播方法,包括:
服务器接收到全局广播请求后,解析所述全局广播请求获得群组号;
所述服务器确定以所述群组号为根节点的树形结构存储的所有节点为全局广播对象;所述服务器以树形结构存储有其管理的所有群组的群组号;
将所述全局广播请求指定的广播信息发送给所述全局广播对象。
一种转发服务器,包括:
解析单元,用于在所述转发服务器接收到全局广播请求后,解析所述全局 广播请求获得群组号;
对象确定单元,用于确定以所述解析单元获得的群组号为根节点的树形结构存储的所有节点为全局广播对象,其中,所述转发服务器以树形结构存储有群组的群组号;
广播单元,用于将所述全局广播请求指定的广播信息发送给所述对象确定单元确定的所述全局广播对象中所述转发服务器所管理的群组。
一种转发服务器,包括:
解析单元,用于在所述转发服务器接收到第一转发服务器全局广播请求后,解析所述全局广播请求获得群组号;
对象确定单元,用于确定以所述解析单元获得的群组号为根节点的树形结构存储的所有节点为全局广播对象,其中,所述转发服务器以树形结构存储有群组的群组号;
广播单元,用于将所述全局广播请求指定的广播信息发送给所述对象确定单元确定的所述全局广播对象中所述转发服务器所管理的群组;
请求转发单元,用于若所述全局广播对象中存在不属于所述转发服务器所管理的群组,则将所述全局广播请求发送给不属于所述转发服务器所管理的群组,且不发送给所述第一转发服务器。
一种服务器,包括:
解析单元,用于在服务器接收到全局广播请求后,解析所述全局广播请求获得群组号;
对象确定单元,用于确定以所述解析单元获得的群组号为根节点的树形结构存储的所有节点为全局广播对象;所述服务器以树形结构存储有其管理的所有群组的群组号;
广播单元,用于将所述全局广播请求指定的广播信息发送给所述对象确定单元确定的所述全局广播对象。
一种全局广播系统,包括:管理服务器和第一转发服务,或者,管理服务器、第一转发服务器和第二转发服务器;
其中所述第一转发服务器为本发明实施例提供的任意一项所述的转发服务器;
所述第二转发服务器为本发明实施例提供的任意一项所述的转发服务器。
从以上技术方案可以看出,本发明实施例具有以下优点:全局广播请求只需要携带一个群组号,就可以实现对以这个群组号为根节点的所有群组号对应的群组进行全局广播,服务器并不需要读入所有的群组信息进行逐一筛选,节省系统资源。将扁平化的数据结构变为树形结构存储,在数据更新时服务器获得信息所需要的交互更少。因此实现全局广播过程,需要的系统资源少,从而提高了服务器处理效率。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例方法流程示意图;
图2为本发明实施例方法流程示意图;
图3为本发明实施例方法流程示意图;
图4A为本发明实施例语音房间的树形结构示意图;
图4B为本发明实施例网络结构示意图;
图4C为本发明实施例方法流程示意图;
图5为本发明实施例转发服务器示意图;
图6为本发明实施例转发服务器示意图;
图7为本发明实施例转发服务器示意图;
图8为本发明实施例转发服务器示意图;
图9为本发明实施例转发服务器示意图;
图10为本发明实施例服务器示意图;
图11为本发明实施例服务器示意图;
图12为本发明实施例转发服务器示意图;
图13为本发明实施例转发服务器示意图;
图14为本发明实施例服务器示意图;
图15A为本发明实施例网络结构示意图;
图15B为本发明实施例网络结构示意图。
具体实施方式
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部份实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。
本发明实施例提供了一种全局广播方法,如图1所示,包括:
101:第一转发服务器接收到全局广播请求后,解析上述全局广播请求获得群组号;
上述群组号是用于标识群组的信息,该信息的表现形式可以根据实际情况进行任意的命名,基于后续采用的是树形结构,在群组号的命名上也可以体现出其在树形结构中的度,或者其他信息,以利于检索。具体的命名规则,本发明实施例不予限定。
102:上述第一转发服务器确定以上述群组号为根节点的树形结构存储的所有节点为全局广播对象;上述第一转发服务器以树形结构存储有群组的群组号;
树形结构是数据管理的一种结构,在树形的数据结构中,数据元素之间存在着“一对多”的树形关系,是一类重要的非线性数据结构。在树形结构中,树根结点(根节点)没有前驱结点(父节点),其余每个结点有且只有一个前驱结点。叶子结点没有后续结点(子节点),其余每个结点的后续节点数可以是一个也可以是多个。在后续实施例中将会给出一个树形结构的举例说明。
103:将上述全局广播请求指定的广播信息发送给上述全局广播对象中上述第一转发服务器所管理的群组。
本发明实施例,全局广播请求只需要携带一个群组号,就可以实现对以这个群组号为根节点的所有群组号对应的群组进行全局广播,服务器并不需要读入所有的群组信息进行逐一筛选,节省系统资源。将扁平化的数据结构变为树形结构存储,在数据更新时服务器获得信息所需要的交互更少。因此实现全局广播过程,需要的系统资源少,从而提高了服务器处理效率。
进一步地,在本发明实施例中,服务器包含有两类,服务器位于网络侧为用户提供服务,一类服务器有管理其他服务器的功能称为管理服务器,另一类主要起到全局广播转发功能称为转发服务器,转发服务器与用户通信不需要经 过管理服务器,转发服务器在确定一些信息需要告知管理服务器时会将这些信息告知管理服务器,例如第一转发服务器获知树形结构内的某些信息被更改的情况就需要告知到管理服务器,因此本发明的实施例基于此提供了树形结构内信息更新的方案,具体如下:上述第一转发服务器在确定需要对其所管理的群组进行更改后还包括:向管理服务器发送更改群组的指令,使管理服务器更改树形结构存储的群组号对应的群组;接收并存储更新后的树形结构存储的群组的信息。
可选地,本发明实施例给出了更新的树形结构的信息包含的群组的信息内容具体举例,如下:上述群组的信息包括:各群组在树形数据结构中的父子关系以及各群组所属的转发服务器。
需要说明的是,如果本实施例中,所有发起全局广播均在同一转发服务器内完成,那么可以不必包含各群组所属的转发服务器这样的信息。各群组所属的转发服务器为后续支持全局广播的广播对象不都属于同一个转发服务器管辖的场景提供了可能。
进一步地,如果群组信息包含有各群组所属的转发服务器,那么该方案可以支持全局广播的广播对象不都属于同一个转发服务器管辖,也即是说一个子树的所有群组号可以隶属于两个或两个以上的转发服务器,本发明实施例提供了此种方案下的全局广播实现方案,具体如下:上述方法,还包括:
若上述全局广播对象中存在属于第二转发服务器所管理的群组;
将上述全局广播请求发送给第二转发服务器。
本发明实施例还提供了另一种全局广播方法,如图2所示,包括:
201:第二转发服务器接收到第一转发服务器全局广播请求后,解析上述全局广播请求获得群组号;
上述群组号是用于标识群组的信息,该信息的表现形式可以根据实际情况进行任意的命名,基于后续采用的是树形结构,在群组号的命名上也可以体现出其在树形结构中的度,或者其他信息,以利于检索。具体的命名规则,本发明实施例不予限定。
202:上述第二转发服务器确定以上述群组号为根节点的树形结构存储的所有节点为全局广播对象;上述第二转发服务器以树形结构存储有群组的群组号;
203:将上述全局广播请求指定的广播信息发送给上述全局广播对象中上述 第二转发服务器所管理的群组;
204:若上述全局广播对象中存在不属于上述第二转发服务器所管理的群组,则将上述全局广播请求发送给不属于上述第二转发服务器所管理的群组,且不发送给第一转发服务器。
本发明实施例,全局广播请求只需要携带一个群组号,就可以实现对以这个群组号为根节点的所有群组号对应的群组进行全局广播,服务器并不需要读入所有的群组信息进行逐一筛选,节省系统资源。将扁平化的数据结构变为树形结构存储,在数据更新时服务器获得信息所需要的交互更少。因此实现全局广播过程,需要的系统资源少,从而提高了服务器处理效率。
需要说明的是,如果本实施例中,所有发起全局广播均在同一转发服务器内完成,那么可以不必包含各群组所属的转发服务器这样的信息。各群组所属的转发服务器为后续支持全局广播的广播对象不都属于同一个转发服务器管辖的场景提供了可能。如果群组信息包含有各群组所属的转发服务器,那么该方案可以支持全局广播的广播对象不都属于同一个转发服务器管辖,也即是说一个子树的所有群组号可以隶属于两个或两个以上的转发服务器,本发明实施例还可以完成此种方案下的全局广播。
在本发明实施例中,服务器包含有两类,服务器位于网络侧为用户提供服务,一类服务器有管理其他服务器的功能称为管理服务器,另一类主要起到全局广播转发功能称为转发服务器,转发服务器与用户通信不需要经过管理服务器,转发服务器在确定一些信息需要告知管理服务器时会将这些信息告知管理服务器,例如第一转发服务器获知树形结构内的某些信息被更改的情况就需要告知到管理服务器,因此本发明的实施例基于此提供了树形结构内信息更新的方案,具体如下:进一步地,上述方法,还包括:第二转发服务器在确定需要对其所管理的群组进行更改后,向管理服务器发送更改群组的指令,使管理服务器更改树形结构存储的群组号对应的群组;接收并存储更新后的树形结构存储的群组的信息。
本发明实施例还提供了另一种全局广播方法,如图3所示,包括:
301:服务器接收到全局广播请求后,解析上述全局广播请求获得群组号;
上述群组号是用于标识群组的信息,该信息的表现形式可以根据实际情况进行任意的命名,基于后续采用的是树形结构,在群组号的命名上也可以体现 出其在树形结构中的度,或者其他信息,以利于检索。具体的命名规则,本发明实施例不予限定。
302:上述服务器确定以上述群组号为根节点的树形结构存储的所有节点为全局广播对象;上述服务器以树形结构存储有其管理的所有群组的群组号;
树形结构是数据管理的一种结构,在树形的数据结构中,数据元素之间存在着“一对多”的树形关系,是一类重要的非线性数据结构。在树形结构中,树根结点(根节点)没有前驱结点(父节点),其余每个结点有且只有一个前驱结点。叶子结点没有后续结点(子节点),其余每个结点的后续节点数可以是一个也可以是多个。在后续实施例中将会给出一个树形结构的举例说明。
303:将上述全局广播请求指定的广播信息发送给上述全局广播对象。
本发明实施例,全局广播请求只需要携带一个群组号,就可以实现对以这个群组号为根节点的所有群组号对应的群组进行全局广播,服务器并不需要读入所有的群组信息进行逐一筛选,节省系统资源。将扁平化的数据结构变为树形结构存储,在数据更新时服务器获得信息所需要的交互更少。因此实现全局广播过程,需要的系统资源少,从而提高了服务器处理效率。
进一步地,在本发明实施例中,服务器包含有两类,服务器位于网络侧为用户提供服务,一类服务器有管理其他服务器的功能称为管理服务器,另一类主要起到全局广播转发功能称为转发服务器,转发服务器与用户通信不需要经过管理服务器,转发服务器在确定一些信息需要告知管理服务器时会将这些信息告知管理服务器,例如第一转发服务器获知树形结构内的某些信息被更改的情况就需要告知到管理服务器,因此本发明的实施例基于此提供了树形结构内信息更新的方案,具体如下:上述方法,还包括:服务器在确定需要对其所管理的群组进行更改后,更改树形结构存储的群组号对应的群组。
以下实施例以语音广播为例对本发明实施例进行更详细的说明,在本发明实施例中存在作为管理服务使用的meta_svr,和作为转发服务器使用的Svr1和Svr2;以及用户A和广播对象用户*。
本发明实施例提供了一种简单、高效的语音房间树结构形式的全局语音广播。当使用者发起全局广播时,受众的信息依赖于如图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。其它节点的父子关系不再一一赘述。在服务器一侧维护这个树状结构的目的在于维护所有语音团体的结构依赖关系。
本发明实施例的系统存在3个参与角色,如图4B所示,meta_svr、svr和用户。在实时交互过程中语音房间的树形结构随着人员的进入和退出可能会发生变化。例如一个语音房间人员全部退出,那么这个语音房间将会被清空,那么在树形结构中该语音房间对应的节点将会被删除;如果有用户创建一个新的语音房间,那么将会有一个新的节点在树形结构中创建出来。树形数据结构可以由Meta_svr来维护并同步语音房间树形结构的变化信息给Svr。Svr用于向用户和其他svr转发语音信息。如图4B中所示,Voice_room_04为广播发起者,其属于Svr1,其他语音房间为广播的接收者。
图4C为本发明实施例提供的方法流程图。在本发明实施例中,每个Svr可以连接N个用户,每个用户可以选择任意Svr进行连接,具体的全局广播主要流程如下:
401:用户A向Svr1发起请求,进入语音房间;
402:Svr1处理用户进房请求,接受用户A进入房间,在本步骤中,如果,是创建一个语音房间等操作,可能会导致语音房间树形结构的改变,如果有改变则需要执行步骤403;
403:Svr1向Meta_svr发送语音房间结构信息;
404:Meta_svr依据语音房间结构信息对语音房间的数据结构进行修改,然后刷新语音房间树形结构信息;
405:Meta_svr向Svr1同步最新的语音房间结构信息;
406:Meta_svr向Svr2同步最新房间结构信息;
407:Svr1向用户A返回成功信息,告知用户A进入房间成功;
408:用户A向其所在的Svr1发起全局广播,该全局广播携带有房间号的信息;
409:Svr1读取房间树形结构信息,获取属于该树形结构的所有用户信息;
410:Svr1转发语音数据给连接Svr1的用户*;如果在步骤408中携带的房间号在房间树形结构中存在属于Svr2管辖的用户*,则可以将全局广播的请求转发给Svr2,携带房间号的信息;
411:Svr2转发语音数据给连接Svr2的用户*。
通过一种树形的语音房间组织形式,使得全局广播实现简单高效。
本发明实施例还提供了一种转发服务器,该转发服务器为上述第一转发服务器,如图5所示,该第一转发服务器包括:
解析单元501,用于在上述第一转发服务器接收到全局广播请求后,解析上述全局广播请求获得群组号;
对象确定单元502,用于确定以上述解析单元501获得的群组号为根节点的树形结构存储的所有节点为全局广播对象;上述第一转发服务器以树形结构存储有群组的群组号;
广播单元503,用于将上述全局广播请求指定的广播信息发送给上述对象确定单元502确定的上述全局广播对象中上述第一转发服务器所管理的群组。
上述群组号是用于标识群组的信息,该信息的表现形式可以根据实际情况进行任意的命名,基于后续采用的是树形结构,在群组号的命名上也可以体现出其在树形结构中的度,或者其他信息,以利于检索。具体的命名规则,本发明实施例不予限定。
本发明实施例,全局广播请求只需要携带一个群组号,就可以实现对以这个群组号为根节点的所有群组号对应的群组进行全局广播,服务器并不需要读入所有的群组信息进行逐一筛选,节省系统资源。将扁平化的数据结构变为树形结构存储,在数据更新时服务器获得信息所需要的交互更少。因此实现全局广播过程,需要的系统资源少,从而提高了服务器处理效率。
在本发明实施例中,服务器包含有两类,服务器位于网络侧为用户提供服务,一类服务器有管理其他服务器的功能称为管理服务器,另一类主要起到全局广播转发功能称为转发服务器,转发服务器与用户通信不需要经过管理服务器,转发服务器在确定一些信息需要告知管理服务器时会将这些信息告知管理服务器,例如第一转发服务器获知树形结构内的某些信息被更改的情况就需要告知到管理服务器,因此本发明的实施例基于此提供了树形结构内信息更新的方案,具体如下:进一步地,如图6所示,上述转发服务器,还包括:
指令发送单元601,用于在确定需要对转发服务器所管理的群组进行更改后,向管理服务器发送更改群组的指令,使管理服务器更改树形结构存储的群组号对应的群组;
接收单元602,用于接收更新后的树形结构存储的群组的信息;
存储单元603,用于存储上述接收单元接602收到的上述更新后的树形结构存储的群组的信息。
可选地,本发明实施例给出了更新的树形结构的信息包含的群组的信息内容具体举例,如下:上述接收单元602接收的上述群组的信息包括:各群组在树形数据结构中的父子关系以及各群组所属的转发服务器。
需要说明的是,如果本实施例中,所有发起全局广播均在同一转发服务器内完成,那么可以不必包含各群组所属的转发服务器这样的信息。各群组所属的转发服务器为后续支持全局广播的广播对象不都属于同一个转发服务器管辖的场景提供了可能。
进一步地,如果群组信息包含有各群组所属的转发服务器,那么该方案可以支持全局广播的广播对象不都属于同一个转发服务器管辖,也即是说一个子树的所有群组号可以隶属于两个或两个以上的转发服务器,本发明实施例提供了此种方案下的全局广播实现方案,具体如下:进一步地,如图7所示,上述转发服务器,还包括:
请求转发单元701,用于若上述全局广播对象中存在属于第二转发服务器所管理的群组;则将上述全局广播请求发送给第二转发服务器。
本发明实施例还提供了另一种转发服务器,该转发服务器为上述第二转发服务器,如图8所示,该第二转发服务器包括:
解析单元801,用于在第二转发服务器接收到第一转发服务器全局广播请求后,解析上述全局广播请求获得群组号;
对象确定单元802,用于确定以上述解析单元801获得的群组号为根节点的树形结构存储的所有节点为全局广播对象;上述第二转发服务器以树形结构存储有群组的群组号;
广播单元803,用于将上述全局广播请求指定的广播信息发送给上述对象确定单元802确定的上述全局广播对象中上述第二转发服务器所管理的群组;
请求转发单元804,用于若上述全局广播对象中存在不属于上述第二转发服务器所管理的群组,则将上述全局广播请求发送给不属于上述第二转发服务器所管理的群组,且不发送给第一转发服务器。
上述群组号是用于标识群组的信息,该信息的表现形式可以根据实际情况 进行任意的命名,基于后续采用的是树形结构,在群组号的命名上也可以体现出其在树形结构中的度,或者其他信息,以利于检索。具体的命名规则,本发明实施例不予限定。
本发明实施例,全局广播请求只需要携带一个群组号,就可以实现对以这个群组号为根节点的所有群组号对应的群组进行全局广播,服务器并不需要读入所有的群组信息进行逐一筛选,节省系统资源。将扁平化的数据结构变为树形结构存储,在数据更新时服务器获得信息所需要的交互更少。因此实现全局广播过程,需要的系统资源少,从而提高了服务器处理效率。
需要说明的是,如果本实施例中,所有发起全局广播均在同一转发服务器内完成,那么可以不必包含各群组所属的转发服务器这样的信息。各群组所属的转发服务器为后续支持全局广播的广播对象不都属于同一个转发服务器管辖的场景提供了可能。如果群组信息包含有各群组所属的转发服务器,那么该方案可以支持全局广播的广播对象不都属于同一个转发服务器管辖,也即是说一个子树的所有群组号可以隶属于两个或两个以上的转发服务器,本发明实施例还可以完成此种方案下的全局广播。
在本发明实施例中,服务器包含有两类,服务器位于网络侧为用户提供服务,一类服务器有管理其他服务器的功能称为管理服务器,另一类主要起到全局广播转发功能称为转发服务器,转发服务器与用户通信不需要经过管理服务器,转发服务器在确定一些信息需要告知管理服务器时会将这些信息告知转发服务器,例如第一转发服务器获知树形结构内的某些信息被更改的情况就需要告知到管理服务器,因此本发明的实施例基于此提供了树形结构内信息更新的方案,具体如下:进一步地,如图9所示,上述转发服务器,还包括:
指令发送单元901,用于在确定需要对转发服务器所管理的群组进行更改后,向管理服务器发送更改群组的指令,使管理服务器更改树形结构存储的群组号对应的群组;
接收单元902,用于接收更新后的树形结构存储的群组的信息;
存储单元903,用于存储上述接收单元902接收到的上述更新后的树形结构存储的群组的信息。
本发明实施例还提供了一种服务器,如图10所示,包括:
解析单元1001,用于在服务器接收到全局广播请求后,解析上述全局广播 请求获得群组号;
对象确定单元1002,用于确定以上述解析单元1001获得的群组号为根节点的树形结构存储的所有节点为全局广播对象;上述服务器以树形结构存储有其管理的所有群组的群组号;
广播单元1003,用于将上述全局广播请求指定的广播信息发送给上述对象确定单元1002确定的上述全局广播对象。
上述群组号是用于标识群组的信息,该信息的表现形式可以根据实际情况进行任意的命名,基于后续采用的是树形结构,在群组号的命名上也可以体现出其在树形结构中的度,或者其他信息,以利于检索。具体的命名规则,本发明实施例不予限定。
本发明实施例,全局广播请求只需要携带一个群组号,就可以实现对以这个群组号为根节点的所有群组号对应的群组进行全局广播,服务器并不需要读入所有的群组信息进行逐一筛选,节省系统资源。将扁平化的数据结构变为树形结构存储,在数据更新时服务器获得信息所需要的交互更少。因此实现全局广播过程,需要的系统资源少,从而提高了服务器处理效率。
进一步地,在本发明实施例中,服务器包含有两类,服务器位于网络侧为用户提供服务,一类服务器有管理其他服务器的功能称为管理服务器,另一类主要起到全局广播转发功能称为转发服务器,转发服务器与用户通信不需要经过管理服务器,转发服务器在确定一些信息需要告知管理服务器时会将这些信息告知管理服务器,例如第一转发服务器获知树形结构内的某些信息被更改的情况就需要告知到管理服务器,因此本发明的实施例基于此提供了树形结构内信息更新的方案,具体如下:如图11所示,上述转发服务器,还包括:
更新单元1101,用于在确定需要对其所管理的群组进行更改后,更改树形结构存储的群组号对应的群组。
本发明实施例提供了另一种转发服务器,该转发服务器为第一转发服务器,如图12所示,包括:接收器1201、发射器1202、处理器1203以及存储器1204;
其中,上述处理器1203,用于控制接收到全局广播请求后,解析上述全局广播请求获得群组号;确定以上述群组号为根节点的树形结构存储的所有节点为全局广播对象;上述第一转发服务器以树形结构存储有群组的群组号;将上述全局广播请求指定的广播信息发送给上述全局广播对象中上述第一转发服务 器所管理的群组。
上述群组号是用于标识群组的信息,该信息的表现形式可以根据实际情况进行任意的命名,基于后续采用的是树形结构,在群组号的命名上也可以体现出其在树形结构中的度,或者其他信息,以利于检索。具体的命名规则,本发明实施例不予限定。
本发明实施例,全局广播请求只需要携带一个群组号,就可以实现对以这个群组号为根节点的所有群组号对应的群组进行全局广播,服务器并不需要读入所有的群组信息进行逐一筛选,节省系统资源。将扁平化的数据结构变为树形结构存储,在数据更新时服务器获得信息所需要的交互更少。因此实现全局广播过程,需要的系统资源少,从而提高了服务器处理效率。
在本发明实施例中,服务器包含有两类,服务器位于网络侧为用户提供服务,一类服务器有管理其他服务器的功能称为管理服务器,另一类主要起到全局广播转发功能称为转发服务器,转发服务器与用户通信不需要经过管理服务器,转发服务器在确定一些信息需要告知管理服务器时会将这些信息告知管理服务器,例如第一转发服务器获知树形结构内的某些信息被更改的情况就需要告知到管理服务器,因此本发明的实施例基于此提供了树形结构内信息更新的方案,具体如下:上述处理器1203,还用于在确定需要对其所管理的群组进行更改后,向管理服务器发送更改群组的指令,使管理服务器更改树形结构存储的群组号对应的群组;
接收并存储更新后的树形结构存储的群组的信息。
本发明实施例给出了更新的树形结构的信息包含的群组的信息内容具体举例,如下:上述处理器1203,用于接收的上述群组的信息包括:各群组在树形数据结构中的父子关系以及各群组所属的转发服务器。
需要说明的是,如果本实施例中,所有发起全局广播均在同一转发服务器内完成,那么可以不必包含各群组所属的转发服务器这样的信息。各群组所属的转发服务器为后续支持全局广播的广播对象不都属于同一个转发服务器管辖的场景提供了可能。
进一步地,如果群组信息包含有各群组所属的转发服务器,那么该方案可以支持全局广播的广播对象不都属于同一个转发服务器管辖,也即是说一个子树的所有群组号可以隶属于两个或两个以上的转发服务器,本发明实施例提供 了此种方案下的全局广播实现方案,具体如下:上述处理器1203,还用于若上述全局广播对象中存在属于第二转发服务器所管理的群组;将上述全局广播请求发送给第二转发服务器。
本发明实施例提供了另一种转发服务器,该转发服务器为第二转发服务器,如图13所示,包括:接收器1301、发射器1302、处理器1303以及存储器1304;
其中,上述处理器1303,用于控制接收到第一转发服务器全局广播请求后,解析上述全局广播请求获得群组号;上述第二转发服务器确定以上述群组号为根节点的树形结构存储的所有节点为全局广播对象;上述第二转发服务器以树形结构存储有群组的群组号;将上述全局广播请求指定的广播信息发送给上述全局广播对象中上述第二转发服务器所管理的群组;若上述全局广播对象中存在不属于上述第二转发服务器所管理的群组,则将上述全局广播请求发送给不属于上述第二转发服务器所管理的群组,且不发送给第一转发服务器。
上述群组号是用于标识群组的信息,该信息的表现形式可以根据实际情况进行任意的命名,基于后续采用的是树形结构,在群组号的命名上也可以体现出其在树形结构中的度,或者其他信息,以利于检索。具体的命名规则,本发明实施例不予限定。
本发明实施例,全局广播请求只需要携带一个群组号,就可以实现对以这个群组号为根节点的所有群组号对应的群组进行全局广播,服务器并不需要读入所有的群组信息进行逐一筛选,节省系统资源。将扁平化的数据结构变为树形结构存储,在数据更新时服务器获得信息所需要的交互更少。因此实现全局广播过程,需要的系统资源少,从而提高了服务器处理效率。
需要说明的是,如果本实施例中,所有发起全局广播均在同一转发服务器内完成,那么可以不必包含各群组所属的转发服务器这样的信息。各群组所属的转发服务器为后续支持全局广播的广播对象不都属于同一个转发服务器管辖的场景提供了可能。如果群组信息包含有各群组所属的转发服务器,那么该方案可以支持全局广播的广播对象不都属于同一个转发服务器管辖,也即是说一个子树的所有群组号可以隶属于两个或两个以上的转发服务器,本发明实施例还可以完成此种方案下的全局广播。
在本发明实施例中,服务器包含有两类,服务器位于网络侧为用户提供服务,一类服务器有管理其他服务器的功能称为管理服务器,另一类主要起到全 局广播转发功能称为转发服务器,转发服务器与用户通信不需要经过管理服务器,转发服务器在确定一些信息需要告知管理服务器时会将这些信息告知管理服务器,例如第一转发服务器获知树形结构内的某些信息被更改的情况就需要告知到管理服务器,因此本发明的实施例基于此提供了树形结构内信息更新的方案,具体如下:上述处理器1303,还用于在确定需要对转发服务器所管理的群组进行更改后,向管理服务器发送更改群组的指令,使管理服务器更改树形结构存储的群组号对应的群组;接收并存储更新后的树形结构存储的群组的信息。
本发明实施例提供了另一种服务器,如图14所示,包括:接收器1401、发射器1402、处理器1403以及存储器1404;
其中,上述处理器1403,用于控制接收到全局广播请求后,解析上述全局广播请求获得群组号;上述服务器确定以上述群组号为根节点的树形结构存储的所有节点为全局广播对象;上述服务器以树形结构存储有其管理的所有群组的群组号;将上述全局广播请求指定的广播信息发送给上述全局广播对象。
上述群组号是用于标识群组的信息,该信息的表现形式可以根据实际情况进行任意的命名,基于后续采用的是树形结构,在群组号的命名上也可以体现出其在树形结构中的度,或者其他信息,以利于检索。具体的命名规则,本发明实施例不予限定。
本发明实施例,全局广播请求只需要携带一个群组号,就可以实现对以这个群组号为根节点的所有群组号对应的群组进行全局广播,服务器并不需要读入所有的群组信息进行逐一筛选,节省系统资源。将扁平化的数据结构变为树形结构存储,在数据更新时服务器获得信息所需要的交互更少。因此实现全局广播过程,需要的系统资源少,从而提高了服务器处理效率。
进一步地,在本发明实施例中,服务器包含有两类,服务器位于网络侧为用户提供服务,一类服务器有管理其他服务器的功能称为管理服务器,另一类主要起到全局广播转发功能称为转发服务器,转发服务器与用户通信不需要经过管理服务器,转发服务器在确定一些信息需要告知管理服务器时会将这些信息告知管理服务器,例如第一转发服务器获知树形结构内的某些信息被更改的情况就需要告知到管理服务器,因此本发明的实施例基于此提供了树形结构内信息更新的方案,具体如下:上述处理器1403,还用于在确定需要对转发服务 器所管理的群组进行更改后,更改树形结构存储的群组号对应的群组。
本发明实施例提供了一种全局广播系统,如图15A所示,包括:管理服务器1501和第一转发服务1502,或者,如图15B所示,包括:管理服务器1501、第一转发服务器1502和第二转发服务器1503;
其中上述第一转发服务器为本发明实施例提供的任意一项上述的转发服务器;上述第二转发服务器为本发明实施例提供的任意一项上述的转发服务器。
本发明实施例,全局广播请求只需要携带一个群组号,就可以实现对以这个群组号为根节点的所有群组号对应的群组进行全局广播,服务器并不需要读入所有的群组信息进行逐一筛选,节省系统资源。将扁平化的数据结构变为树形结构存储,在数据更新时服务器获得信息所需要的交互更少。因此实现全局广播过程,需要的系统资源少,从而提高了服务器处理效率。
值得注意的是,上述管理服务器、转发服务器以及服务器的实施例中,所包括的各个单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。
另外,本领域普通技术人员可以理解实现上述各方法实施例中的全部或部分步骤是可以通过程序来指令相关的硬件完成,相应的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上仅为本发明的示例性具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明实施例揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。

Claims (16)

  1. 一种全局广播方法,其特征在于,包括:
    第一转发服务器接收到全局广播请求后,解析所述全局广播请求获得群组号;
    所述第一转发服务器确定以所述群组号为根节点的树形结构存储的所有节点为全局广播对象,其中,所述第一转发服务器以树形结构存储有群组的群组号;
    将所述全局广播请求指定的广播信息发送给所述全局广播对象中所述第一转发服务器所管理的群组。
  2. 根据权利要求1所述方法,其特征在于还包括:在确定需要对所述第一转发服务器所管理的群组进行更改后,
    向管理服务器发送更改群组的指令,使管理服务器更改树形结构存储的群组号对应的群组;
    接收并存储更新后的树形结构存储的群组的信息。
  3. 根据权利要求2所述方法,其特征在于,所述群组的信息包括:
    各群组在树形数据结构中的父子关系以及各群组所属的转发服务器。
  4. 根据权利要求3所述方法,其特征在于,还包括:
    若所述全局广播对象中存在属于第二转发服务器所管理的群组;
    将所述全局广播请求发送给第二转发服务器。
  5. 一种全局广播方法,其特征在于,包括:
    第二转发服务器接收到第一转发服务器全局广播请求后,解析所述全局广播请求获得群组号;
    所述第二转发服务器确定以所述群组号为根节点的树形结构存储的所有节点为全局广播对象,其中,所述第二转发服务器以树形结构存储有群组的群组号;
    将所述全局广播请求指定的广播信息发送给所述全局广播对象中所述第二转发服务器所管理的群组;
    若所述全局广播对象中存在不属于所述第二转发服务器所管理的群组,则将所述全局广播请求发送给不属于所述第二转发服务器所管理的群组,且不发 送给第一转发服务器。
  6. 根据权利要求5所述方法,其特征在于,还包括:
    第二转发服务器在确定需要对其所管理的群组进行更改后,向管理服务器发送更改群组的指令,使管理服务器更改树形结构存储的群组号对应的群组;
    接收并存储更新后的树形结构存储的群组的信息。
  7. 一种全局广播方法,其特征在于,包括:
    服务器接收到全局广播请求后,解析所述全局广播请求获得群组号;
    所述服务器确定以所述群组号为根节点的树形结构存储的所有节点为全局广播对象,其中,所述服务器以树形结构存储有其管理的所有群组的群组号;
    将所述全局广播请求指定的广播信息发送给所述全局广播对象。
  8. 根据权利要求7所述方法,其特征在于,还包括:
    服务器在确定需要对其所管理的群组进行更改后,更改树形结构存储的群组号对应的群组。
  9. 一种转发服务器,其特征在于包括:
    解析单元,用于在所述转发服务器接收到全局广播请求后,解析所述全局广播请求获得群组号;
    对象确定单元,用于确定以所述解析单元获得的群组号为根节点的树形结构存储的所有节点为全局广播对象,其中,所述转发服务器以树形结构存储有群组的群组号;
    广播单元,用于将所述全局广播请求指定的广播信息发送给所述对象确定单元确定的所述全局广播对象中所述转发服务器所管理的群组。
  10. 根据权利要求9所述转发服务器,其特征在于,还包括:
    指令发送单元,用于在确定需要对所述转发服务器所管理的群组进行更改后,向管理服务器发送更改群组的指令,使管理服务器更改树形结构存储的群组号对应的群组;
    接收单元,用于接收更新后的树形结构存储的群组的信息;
    存储单元,用于存储所述接收单元接收到的所述更新后的树形结构存储的群组的信息。
  11. 根据权利要求10所述转发服务器,其特征在于,
    所述接收单元接收的所述群组的信息包括:各群组在树形数据结构中的父 子关系以及各群组所属的转发服务器。
  12. 根据权利要求11所述转发服务器,其特征在于,还包括:
    请求转发单元,用于:若所述全局广播对象中存在属于第二转发服务器所管理的群组,则将所述全局广播请求发送给第二转发服务器。
  13. 一种转发服务器,其特征在于,包括:
    解析单元,用于在所述转发服务器接收到第一转发服务器全局广播请求后,解析所述全局广播请求获得群组号;
    对象确定单元,用于确定以所述解析单元获得的群组号为根节点的树形结构存储的所有节点为全局广播对象,其中,所述转发服务器以树形结构存储有群组的群组号;
    广播单元,用于将所述全局广播请求指定的广播信息发送给所述对象确定单元确定的所述全局广播对象中所述转发服务器所管理的群组;
    请求转发单元,用于若所述全局广播对象中存在不属于所述转发服务器所管理的群组,则将所述全局广播请求发送给不属于所述转发服务器所管理的群组,且不发送给所述第一转发服务器。
  14. 根据权利要求13所述转发服务器,其特征在于,还包括:
    指令发送单元,用于在确定需要对所述转发服务器所管理的群组进行更改后,向管理服务器发送更改群组的指令,使管理服务器更改树形结构存储的群组号对应的群组;
    接收单元,用于接收更新后的树形结构存储的群组的信息;
    存储单元,用于存储所述接收单元接收到的所述更新后的树形结构存储的群组的信息。
  15. 一种服务器,其特征在于,包括:
    解析单元,用于在服务器接收到全局广播请求后,解析所述全局广播请求获得群组号;
    对象确定单元,用于确定以所述解析单元获得的群组号为根节点的树形结构存储的所有节点为全局广播对象,其中,所述服务器以树形结构存储有其管理的所有群组的群组号;
    广播单元,用于将所述全局广播请求指定的广播信息发送给所述对象确定单元确定的所述全局广播对象。
  16. 根据权利要求15所述的服务器,其特征在于,还包括:
    更新单元,用于在确定需要对所述服务器所管理的群组进行更改后,更改树形结构存储的群组号对应的群组。
PCT/CN2014/090173 2013-11-05 2014-11-03 一种全局广播方法、服务器及系统 Ceased WO2015067151A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310541080.7 2013-11-05
CN201310541080.7A CN103560897B (zh) 2013-11-05 2013-11-05 一种全局广播方法、服务器,及系统

Publications (1)

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

Family

ID=50015053

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/090173 Ceased WO2015067151A1 (zh) 2013-11-05 2014-11-03 一种全局广播方法、服务器及系统

Country Status (2)

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

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103560897B (zh) * 2013-11-05 2016-07-27 腾讯科技(武汉)有限公司 一种全局广播方法、服务器,及系统

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1917667A (zh) * 2006-09-08 2007-02-21 华为技术有限公司 群发短消息业务中的号码处理系统及处理方法
EP1978670A2 (en) * 2007-04-03 2008-10-08 Itt Manufacturing Enterprises, Inc. Method and device for reliable broadcast
CN101938506A (zh) * 2009-06-30 2011-01-05 李云洲 一种基于p2psip的虚拟覆盖树、订阅树和媒体播送树的方法
US20110249817A1 (en) * 2008-12-10 2011-10-13 Electronics And Telcommunications Research Institute Method of managing group key for secure multicast communication
CN103200273A (zh) * 2013-04-19 2013-07-10 北京科技大学 基于物理位置的内容副本一致性维护方法
CN103560897A (zh) * 2013-11-05 2014-02-05 腾讯科技(武汉)有限公司 一种全局广播方法、服务器,及系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1917667A (zh) * 2006-09-08 2007-02-21 华为技术有限公司 群发短消息业务中的号码处理系统及处理方法
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 (zh) * 2009-06-30 2011-01-05 李云洲 一种基于p2psip的虚拟覆盖树、订阅树和媒体播送树的方法
CN103200273A (zh) * 2013-04-19 2013-07-10 北京科技大学 基于物理位置的内容副本一致性维护方法
CN103560897A (zh) * 2013-11-05 2014-02-05 腾讯科技(武汉)有限公司 一种全局广播方法、服务器,及系统

Also Published As

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

Similar Documents

Publication Publication Date Title
US11929873B1 (en) OPC UA-based centralized user configuration method and system for time-sensitive network
CN105656653B (zh) 分布式协调系统中新增节点的入网方法、装置和系统
US7912959B2 (en) Architecture for building a peer to peer messaging platform
CN103780679B (zh) 基于http协议的长延时远程调用方法
JP5891551B2 (ja) メンバーリソースにアクセスするための方法、グループサーバ、およびメンバーデバイス
US8131833B2 (en) Managing communication between nodes in a virtual network
US8966107B2 (en) System and method of streaming data over a distributed infrastructure
CN113301558B (zh) 一种消息传输方法、设备、系统及存储介质
KR101604970B1 (ko) 서비스 지향 아키텍쳐 네트워크 내 서비스들의 검색 방법
JP2006294009A (ja) ピアツーピアメッセージングアプリケーションを構築するためのapi
CN101710902A (zh) 一种无结构p2p网络及其数据查询方法和索引更新方法
WO2014194452A9 (zh) 消息发布与订阅的方法及装置
CN101052006B (zh) 报文上送的方法及实现该方法的接口板及路由器
CN101932065A (zh) 分布式卫星网络资源发现方法
CN106412023B (zh) 一种基于发布订阅机制的多源数据分发方法
TW202103475A (zh) 終端設備管理方法、伺服器及終端設備
US9385877B2 (en) Multicast systems, methods, and computer program products
CN110381058B (zh) 基于全双工通信协议WebSocket的请求传输方法及装置
JP2017201776A (ja) 不均一ネットワークにまたがるコンテンツ配送
CN110660205B (zh) 报警信息处理方法、装置、电子设备及可读存储介质
CN102209084A (zh) 一种推送消息的处理方法、装置和通信系统
WO2015067151A1 (zh) 一种全局广播方法、服务器及系统
CN102904739A (zh) 一种实现事件转发的方法及通用信息模型cim服务器
CN104348713A (zh) B/S架构下网络平台基于comet的即时通讯方法
CN105493465A (zh) 网络环境中的用于云计算的基于XMPP的UPnP设备架构

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