Embodiment
The invention provides the server of a kind of data sharing method and this method of realization.Technical scheme for a better understanding of the present invention describes in detail embodiment provided by the invention below in conjunction with accompanying drawing.
Referring to Fig. 2, Fig. 2 is the basic flow sheet of data sharing method embodiment of the present invention.
Steps A 1, receive the logging request that the user logins virtual group, the virtual group sign of the virtual group under the user is sent to the user according to logging request.
In embodiments of the present invention, the virtual group sign is used for the virtual group under the identifying user, and a virtual group can also corresponding two or more virtual group signs.Wherein, the virtual group sign can be multicast address, and the embodiment of the invention can be used in Internet protocol (IP, Internet Protocol) network.The virtual group sign can also be for intercepting frequency, and this moment, the embodiment of the invention can be used in the TV network based on coaxial cable (Cable).
The shared data that steps A 2, reception user upload.
The user after receiving the virtual group sign of virtual group and server connect, begin to go up transmitting shared data, server receives the shared data that this user uploads.
The embodiment of the invention is used when IP network, and the user can utilize transmitting shared data on the bidirectional characteristic of IP network.The embodiment of the invention is used when the Cable network, transmitting shared data on the network access mode that the user can take to support based on the IP agreement, certainly can also adopt other passage that possesses the up-downgoing transmittability to transmit, adopt independently transmitting shared data on the protocol mode.
Steps A 3, according to virtual group sign to these virtual group broadcasting share data.
To these virtual group broadcasting share data, the user in the virtual group begins to connect with server server according to the virtual group sign, receives shared data.Wherein, server can or be intercepted frequency to virtual group broadcasting share data according to multicast address.
In existing unicast data shared system, in user's download or when watching shared data, set up the annexation of multiple spot and multiple spot between server and a plurality of user, identical shared data need repeatedly duplicate, more for a long time, cause the server redundancy burden heavier at number of users.And in data sharing method embodiment provided by the invention, by the users broadcasting shared data in virtual group, adopt any connected mode between server and the user to multiple spot, identical shared data only need duplicate once, therefore the redundant burden of server can be alleviated, the network bandwidth can be saved.
In addition, in the unicast system of prior art, the shared data inquiry that server sends at the user, each response message that returns can only be issued a user, and the information source and the stay of two nights are corresponding one by one, and other user can not receive response message.The inventive method embodiment is by the users broadcasting shared data in virtual group, and the user in the virtual group does not need to initiate independently inquiry to server, just can obtain real-time shared data information, can alleviate the redundant burden of server yet.
In embodiments of the present invention, server can also be carried out the step of process user sharing request between execution in step A1 and steps A 2.Referring to Fig. 3, Fig. 3 is the method flow diagram of server process user sharing request among the data sharing method embodiment of the present invention.
The sharing request that step B1, reception user send.
The user can login this virtual group after receiving the virtual group sign.When the user need go up transmitting shared data, send sharing request to server and apply for the shared data sending permission, server receives this sharing request.
Step B2, send to the user according to this sharing request and share to authorize, make the user share to authorize and go up transmitting shared data according to this.
The sharing request that server sends according to the user is judged network conflict, after arbitration user's the sending permission, sends shared the mandate to the user.The user is according to the shared mandate that receives, and beginning and server connect, and upload content, and server receives shared data, sets up media buffer.
In embodiments of the present invention, server is shared the step of authorizing by increasing, and can strengthen the management of the user being gone up transmitting shared data.
Referring to Fig. 4, Fig. 4 is the method flow diagram of server process user logging request among the data sharing method embodiment of the present invention.Server execution in step A1 specifically comprises in the embodiment of the invention:
The logging request that step C1, reception user send.
The user logins virtual group, sends logging request to server, and server receives the logging request that the user sends.
Step C2, judge whether this user is first user who logins this virtual group.
Server judges according to logging request whether this user is the user of first login virtual group.In the invention process, whether server can be that sky judges whether this user is the user of first login virtual group by judging virtual group.
If it be first interior login user of virtual group that server is judged the user, execution in step C3 then, otherwise execution in step C5.
Step C3, distribution virtual group sign.
Server is judged when virtual group is sky, judges that the user is first login user, then this virtual group is distributed virtual group sign, and execution in step C4.
Step C4, set up the mapping between virtual group sign and the virtual group.
Server is set up the mapping between virtual group sign and the virtual group after this virtual group is distributed the virtual group sign.
Mapping between step C5, inquiry virtual group sign and the virtual group.
Server judges that the user is not the user of first login in the virtual group when judging that virtual group is not empty, then inquire about the mapping between virtual group sign and the virtual group, obtains the virtual group sign of virtual group.
Step C6, transmission virtual group sign.
Server sends the virtual group sign to the user after obtaining the virtual group sign of virtual group under the user.The user can login this virtual group according to the virtual group sign of obtaining.
The embodiment of the invention is by judging whether login user is the user of first login virtual group, and after judging that this user is not first login user, by the mapping between inquiry virtual group and the virtual group sign, the virtual group that do not need to reallocate sign, therefore can accelerate the process that the user logins virtual group, improve user's business experience.
In addition, may there be the user who only has unidirectional receiving ability in the Cable network, can not initiatively send logging request, can when business is applied for, it be registered in the virtual group of acquiescence for this type of user, user in this virtual group corresponds to the specific frequency of intercepting, the shared data notification message that the user issues according to server end, the channel of tuning appointment receives shared data.
Referring to Fig. 5, Fig. 5 is the method flow diagram of server provided by the invention to virtual group broadcasting share data.In one embodiment of the invention, virtual group is designated intercepts frequency, and promptly the embodiment of the invention is used in the Cable network, and server execution in step A3 specifically comprises:
Step D1, send the shared data notification message to virtual group, carry shared frequency in this shared data notification message by intercepting frequency.
In embodiments of the present invention, the users broadcasting shared data notification message of server in virtual group carries shared frequency in the shared data notification message.User in the virtual group can be known shared data information and shared frequency on the current server by this shared data notification message.
In embodiments of the present invention, server can intercepted the users broadcasting shared data notification message in virtual group on the frequency, the user can also issue the shared data notification message the user in this virtual group on all frequencies, so that all can receive this notification message when frequency is watched program arbitrarily.
Step D2, by sharing frequency to virtual group broadcast transmission shared data.
In embodiments of the present invention, server is by sharing frequency to virtual group broadcast transmission shared data, the shared data that the user uploads is that the form of channel is issued to user in the group in server-side processes, the user in the virtual group can be tuned to should receive shared data on shared frequency.
In embodiments of the present invention, server can come virtual group under the identifying user according to intercepting frequency, and server can also be intercepted the users broadcasting shared data in virtual group on the frequency at this, and it is identical with shared frequency to intercept frequency this moment.In addition, shared frequency can also be intercepted frequency in process of user login neutralization and be sent to the user together, only comprises the shared data information on the server this moment in the shared data notification message, the user can be tuned to share on the frequency and receive shared data.
Data sharing method embodiment of the present invention compared with prior art can alleviate the redundant burden that server carries out data sharing, saves the network bandwidth.Data sharing method embodiment of the present invention can also solve in the present video sharing method problem that media content can only the dependence system be provided, can initiatively initiate application by the terminal use, and shared content is provided by the terminal use, the shared effective ways that provide of the data in real time of point-to-multipoint are provided, be specially adapted to exist user's group of quantitative user, can think to provide a kind of virtual privately owned packet video net.
Embodiment for a better understanding of the present invention provides concrete a kind of application scenarios of the inventive method embodiment below.
In the video conference process, if a certain user need give part participant or all participants with data sharing, can send sharing request to middle control equipment, after middle control equipment receives this request, receive the shared data that the user sends, then according to the virtual group of allocating in advance, member in virtual group broadcasts this shared data, the participant just can receive this shared data, and the user does not need to have sent shared data one by one to the participant yet, has improved operating efficiency.If this shared data need send to all participants, middle control equipment just can be broadcasted this shared data to all participants.
Wherein, shared data is except the video of meeting-place, and the user can select to send other media data, and conference terminal is initiatively initiated multicast request, and media data is shared with other meeting-place.This mode is applicable to the synchronous explanation of file, picture, video, audio frequency very much, makes meeting more lively, and is abundant in content.
Referring to Fig. 6, Fig. 6 is the schematic diagram of server implementation example provided by the invention.
The server implementation example is mainly by first receiving element 11, and virtual group administrative unit 12, second receiving element 13, data transmission unit 14 are formed.
Wherein, first receiving element 11 is used to receive login request of users;
Virtual group administrative unit 12 is used for according to login request of users, and the virtual group of the virtual group under user sign is sent to the user;
Second receiving element 13 is used to receive the shared data that the user uploads; And
Data transmission unit 14 is used for according to the virtual group sign to virtual group broadcasting share data.
First receiving element 11 of server implementation example of the present invention is after receiving login request of users, virtual group administrative unit 12 is according to login request of users, the virtual group sign of the virtual group under the user is sent to the user, the user can go up transmitting shared data after receiving this virtual group sign.Second receiving element 13 receives the shared data that the user uploads, and is identified to virtual group broadcasting share data according to virtual group by data transmission unit 14 then, thereby realizes the data sharing that virtual group is interior.
Server implementation example of the present invention can also comprise shares granted unit 15, is used to receive user's sharing request, sends to share to the user according to this sharing request and authorizes, and makes the user share to authorize according to this and goes up transmitting shared data.
In embodiments of the present invention, the virtual group sign can be multicast address, and server implementation example of the present invention can be used in IP network, and data transmission unit 14 is broadcasted this shared data according to this multicast address to virtual group.The virtual group sign can also be for intercepting frequency, and this moment, server implementation example of the present invention can be used in the Cable network, and data transmission unit 14 is intercepted frequency according to this and broadcasted this shared data to virtual group.
In server implementation example provided by the invention, the users broadcasting of data transmission unit 14 in virtual group sends shared data, adopt any connected mode between server and the user to multiple spot, identical shared data only need duplicate once, compare with existing unicast system, the redundant burden of server can be alleviated, the network bandwidth can also be saved.In addition, user in the virtual group can in time be known the shared data information on the server, compares with unicast data shared system of the prior art, and the user does not need to initiate independently inquiry to server, just can obtain real-time shared data information, also can alleviate the redundant burden of server.
Referring to Fig. 7, Fig. 7 is the schematic diagram of virtual group administrative unit among the embodiment of server provided by the invention.
Virtual group administrative unit 12 in the embodiment of the invention mainly is made up of judge module 121, first processing module 122, second processing module 123 and first sending module 124.
Wherein judge module 121, are used to judge whether the user is the user of first login virtual group;
First processing module 122 is used for judging the user of user for first login virtual group at judge module 121, then this virtual group is distributed the virtual group sign, and sets up the mapping between virtual group sign and the virtual group;
Second processing module 123 is used for judging that at judge module 121 user is not the user of first login virtual group, then inquires about the mapping between virtual group sign and the virtual group, obtains the virtual group sign of this virtual group;
First sending module 124 is used for sending the virtual group sign to the user.
Judge module 121 in the server implementation example of the present invention is by judging whether login user is the user of first login virtual group, and after judging that this user is not first login user, by the mapping between inquiry virtual group and the virtual group sign, the virtual group that do not need to reallocate sign, can accelerate user's login process, improve user's business experience.
Referring to Fig. 8, Fig. 8 is the schematic diagram of data transmission unit among the embodiment of server provided by the invention.
Data transmission unit 14 in the embodiment of the invention mainly is made up of second sending module 141 and the 3rd sending module 142.
Wherein, second sending module 141 is used for sending the shared data notification message by intercepting frequency to virtual group, carries shared frequency in this shared data notification message; The 3rd sending module 142 is used for by sharing frequency to virtual group broadcast transmission shared data.
In embodiments of the present invention, second sending module 141 sends the shared data notification message by intercepting frequency to virtual group, the 3rd sending module 142 is by sharing frequency to virtual group broadcast transmission shared data, the user in the virtual group according to be tuned to should share on the frequency and can receive shared data.
In addition, data transmission unit 14 can also directly send shared data notification message and shared data by intercepting the users broadcasting of frequency in virtual group.
Server implementation example of the present invention can be used in the method embodiment of the shared data of aforementioned correspondence.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by hardware, also can realize by the mode of software with the general hardware platform of necessity, based on such understanding, technical scheme of the present invention can embody with the form of software product, it (can be read-only optical disc that this software product can be stored in a computer-readable recording medium, USB flash disk, portable hard drive etc.) in, comprise that some instructions are with so that a computer equipment (can be a personal computer, the server or the network equipment etc.) carry out the method that each embodiment of the present invention describes.
More than the server of the method for data sharing provided by the invention and this method of realization is described in detail, server implementation example of the present invention can be used in IP network, also can use in the Cable network.For one of ordinary skill in the art, according to the thought of the embodiment of the invention, the part that all can change in specific embodiments and applications, this description should not be construed as limitation of the present invention.