CN104768034B - A kind of method and device for distributing resource - Google Patents

A kind of method and device for distributing resource Download PDF

Info

Publication number
CN104768034B
CN104768034B CN201510174146.2A CN201510174146A CN104768034B CN 104768034 B CN104768034 B CN 104768034B CN 201510174146 A CN201510174146 A CN 201510174146A CN 104768034 B CN104768034 B CN 104768034B
Authority
CN
China
Prior art keywords
client
resource
preset rules
distributing
coming
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.)
Expired - Fee Related
Application number
CN201510174146.2A
Other languages
Chinese (zh)
Other versions
CN104768034A (en
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.)
TVM Beijing Education Technology Co Ltd
Original Assignee
TVM Beijing Education Technology 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 TVM Beijing Education Technology Co Ltd filed Critical TVM Beijing Education Technology Co Ltd
Priority to CN201510174146.2A priority Critical patent/CN104768034B/en
Publication of CN104768034A publication Critical patent/CN104768034A/en
Application granted granted Critical
Publication of CN104768034B publication Critical patent/CN104768034B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2385Channel allocation; Bandwidth allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2402Monitoring of the downstream path of the transmission network, e.g. bandwidth available

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a kind of method and device for distributing resource, to help user's reasonable distribution resource.Method includes:It is determined that the quantity X, X of the second client of most multipotency connection>0;Resource is distributed respectively to second client according to preset rules, wherein, the preset rules include:Second client connects the order of the sequencing or the second client liveness of the first client from high to low.The quantity for the second client that technical solution of the present invention is connected by determination the first client most multipotency, then distributes resource respectively according to preset rules to the second client.So that the second different clients can distribute different bandwidth resources, bandwidth resources is rationally utilized, meet user's request.

Description

A kind of method and device for distributing resource
Technical field
The present invention relates to Internet technical field, more particularly to a kind of method and device for distributing resource.
Background technology
By development in recent years, terminal (such as TV, mobile phone, computer) is had become inseparable one in people's life Part.By installing multimedia teaching client in the terminal, it is possible to achieve collect interactive teaching, classroom record between teacher and student Broadcast, online education in the following wisdom teaching solution in high in the clouds of one, help teachers and students to clear one's mind of the obsession of tradition, depth excite religion with Potentiality.Make Faculty and Students can be with on-line off-line realization " zero distance " synchronization interactive teaching, audio frequency and video are live, synchronous courseware Browse/teacher's writing on the blackboard, quiz, the interaction function such as student question all can be experienced synchronously on line.
But, the simultaneously online requirement to bandwidth of many people is very high, in order to ensure classroom is stable smooth, being capable of support class simultaneously The many people of hall are simultaneously online concurrent, experienced close to " zero-lag ", it is necessary to carry out reasonable distribution to resource.
The content of the invention
The present invention provides a kind of method and device for distributing resource, to help user's reasonable distribution resource.
The present invention provides a kind of method for distributing resource, for the first client, including:
It is determined that the quantity X, X of the second client of most multipotency connection>0;
Resource is distributed respectively to second client according to preset rules, wherein, the preset rules include:Described Two clients connect the order of the sequencing or the second client liveness of the first client from high to low.
It is described to distribute resource to second client according to preset rules in alternative, it may include:
First resource is distributed to the second client for coming top N, the first resource is used for the video for transmitting high code check With high code check picture;
To come N+1 to M the second client distribute Secondary resource, the Secondary resource be used for transmit picture and The video of low bit- rate;
Information resources are distributed to the second client for coming M+1 to X, the information resources are used to transmit low bit- rate Picture;Wherein N<M<X.
It is described to be distributed respectively after resource to second client according to preset rules in alternative, the side Method may also include:
When monitoring that Y the second clients are disconnected, by the ordinal position of Y+1 to X the second clients Sequentially shift to an earlier date.
It is described to distribute resource respectively to second client according to preset rules in alternative, it may include:
Resource is distributed respectively to second client according to the utilization rate of CPU and/or internal memory, preset rules.
The present invention also provides a kind of device for distributing resource, for the first client, including:
Determining module, the quantity X, X of the second client for determining the connection of most multipotency>0;
Distribute module, for distributing resource respectively to second client according to preset rules, wherein, the default rule Then include:Second client connects the sequencing or the second client liveness of the first client from high to low Order.
In alternative, the distribute module may include:
First distribution sub module, for distributing first resource to the second client for coming top N, the first resource is used In the video and high code check picture that transmit high code check;
Second distribution sub module, for distributing Secondary resource, described the to the second client for coming N+1 to M Two resources are used for the video for transmitting picture and low bit- rate;
3rd distribution sub module, for distributing information resources, described the to the second client for coming M+1 to X Three resources are used for the picture for transmitting low bit- rate;Wherein N<M<X.
In alternative, described device may also include:
Monitoring modular, for when monitoring that Y the second clients are disconnected, by Y+1 to X the second clients The ordinal position at end sequentially shifts to an earlier date.
In alternative, the distribute module may include:
4th distribution sub module, second client is given for the utilization rate according to CPU and/or internal memory, preset rules Resource is distributed respectively.
Some beneficial effects of the embodiment of the present invention can include:By determining the first client most multipotency is connected second The quantity of client, then distributes resource respectively according to preset rules to the second client.So that the second different clients Different bandwidth resources can be distributed, bandwidth resources is rationally utilized, user's request is met.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by the explanations write Specifically noted structure is realized and obtained in book, claims and accompanying drawing.
Below by drawings and examples, technical scheme is described in further detail.
Brief description of the drawings
Accompanying drawing is used for providing a further understanding of the present invention, and constitutes a part for specification, the reality with the present invention Applying example is used to explain the present invention together, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is a kind of method flow diagram for distributing resource in the embodiment of the present invention;
Fig. 2 is the method flow diagram of another distribution resource in the embodiment of the present invention;
Fig. 3 is a kind of device block diagram for distributing resource in the embodiment of the present invention;
Fig. 4 is the block diagram of distribute module 32 in a kind of device for distributing resource in the embodiment of the present invention;
Fig. 5 is the device block diagram of another distribution resource in the embodiment of the present invention;
Fig. 6 is the block diagram of distribute module 32 in the device of another distribution resource in the embodiment of the present invention.
Embodiment
The preferred embodiments of the present invention are illustrated below in conjunction with accompanying drawing, it will be appreciated that preferred reality described herein Apply example to be merely to illustrate and explain the present invention, be not intended to limit the present invention.
Fig. 1 show a kind of flow chart for the method for distributing resource, the client for terminal device in the embodiment of the present invention End, terminal device can be computer, mobile phone, TV etc., as shown in figure 1, comprising the following steps S11-S12:
Step S11, it is determined that the quantity X, X of the second client of most multipotency connection>0.
For example, this method can be used for multimedia teaching, the first client can be teacher side, and the second client can be with It is student side, the first client connects multiple second clients, but due to the limitation of bandwidth resources, the first client can be connected The quantity of the second client be limited, in this step, determine the number of the second client of the first client most multipotency connection X is measured, X for example can be 20.
Step S12, resource is distributed according to preset rules respectively to the second client, wherein, preset rules include:Second visitor Family end connects the order of the sequencing or the second client liveness of the first client from high to low.
In this step, the sequencing that can connect the first client according to the second client is distributed respectively to the second client Resource, i.e. the order that the second client connects the first client is different, then the bandwidth resources being assigned to are also different, such as, connection The bandwidth resources of the second client distribution of front are more, the bandwidth resources of the second client distribution of the order of connection rearward It is less.The second client distribution resource, second client point high to liveness can also be given according to the liveness of the second client With more bandwidth resources, to ensure positive interaction of these clients with the first client in teaching process, to liveness The second low client distributes less bandwidth resources, so as to avoid the waste of resource.
In alternative, step S12 can be embodied as following steps A1-A3:
Step A1, first resource is distributed to the second client for coming top N, and first resource is used to transmit regarding for high code check Frequency and high code check picture;N for example can be 10, according to the sequencing of connection or the order of liveness height by the second client Arranged, first resource is distributed to the second client for coming first 10.First resource can support the video and height of high code check The transmission of code check picture.
Step A2, Secondary resource is distributed to the second client for coming N+1 to M, and Secondary resource, which is used to transmit, schemes The video of piece and low bit- rate;M for example can be 15, and Secondary resource is distributed to the second client for coming the 11st to the 15th, the Two resources can support high code check and low bit- rate picture, the transmission of the video of low bit- rate.
Step A3, information resources are distributed to the second client for coming M+1 to X, and information resources are low for transmitting The picture of code check;Wherein N<M<X.X for example can be 10, and the 3rd money is distributed to the second client for coming the 16th to the 20th Source, information resources support the transmission of the picture of low bit- rate, and the transmission of video is not supported.
In alternative, after step s 12, as shown in Fig. 2 the above method may also include step S13:
Step S13, when monitoring that Y the second clients are disconnected, by individual second clients of Y+1 to X Ordinal position sequentially shifts to an earlier date.
For example, it for example can be 20 that Y, which for example can be 5, X, when according to the second client the first client of connection Tactic Y from high to low (the 5th) second clients of sequencing or the second client liveness, which disconnect, to be connected When connecing, the ordinal position of the 6th to the 20th the second client is sequentially shifted to an earlier date, i.e. the second client order of the 6th will be come The 5th is advanced to, the second client order for coming the 7th is advanced to the 6th, the like.
In alternative, step S12 can also be embodied as following steps B:
Step B, resource is distributed according to the utilization rate of CPU and/or internal memory, preset rules respectively to the second client.By When distributing resource respectively to the second client according to preset rules, it can also be combined with CPU and internal memory performance, Comprehensive Control resource Distribution.Such as, when the utilization rate of CPU and internal memory is less than predetermined threshold value, resource is distributed according to above-mentioned steps A1-A3, as CPU and , can be to the second client distribution Secondary resource for coming top N, to coming N+1 when the utilization rate of internal memory is higher than predetermined threshold value Information resources are distributed to second clients of M, resource is not distributed to the second client for coming M+1 to X.
The above method provided in an embodiment of the present invention:By determining the second client that the first client most multipotency is connected Quantity, then distributes resource respectively according to preset rules to the second client.So that the second different clients can be distributed Different bandwidth resources, make bandwidth resources rationally be utilized, and meet user's request.
Fig. 3 show a kind of block diagram for the device for distributing resource in the embodiment of the present invention, for the first client, such as Fig. 3 Shown, the device includes:
Determining module 31, the quantity X, X of the second client for determining the connection of most multipotency>0;
Distribute module 32, for distributing resource respectively to the second client according to preset rules, wherein, preset rules bag Include:Second client connects the order of the sequencing or the second client liveness of the first client from high to low.
In alternative, as shown in figure 4, distribute module 32 may include:
First distribution sub module 41, for distributing first resource to the second client for coming top N, first resource is used for Transmit the video and high code check picture of high code check;
Second distribution sub module 42, for distributing Secondary resource, second to the second client for coming N+1 to M Resource is used for the video for transmitting picture and low bit- rate;
3rd distribution sub module 43, for distributing information resources, the 3rd to the second client for coming M+1 to X Resource is used for the picture for transmitting low bit- rate;Wherein N<M<X.
In alternative, as shown in figure 5, said apparatus may also include:
Monitoring modular 33, for when monitoring that Y the second clients are disconnected, by Y+1 to X second visitor The ordinal position at family end sequentially shifts to an earlier date.
In alternative, as shown in fig. 6, distribute module 32 may include:
4th distribution sub module 61, for the utilization rate according to CPU and/or internal memory, preset rules to the second client point Resource is not distributed.
Said apparatus provided in an embodiment of the present invention:By determining the second client that the first client most multipotency is connected Quantity, then distributes resource respectively according to preset rules to the second client.So that the second different clients can be distributed Different bandwidth resources, make bandwidth resources rationally be utilized, and meet user's request.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can be used in one or more computers for wherein including computer usable program code The shape for the computer program product that usable storage medium is implemented on (including but is not limited to magnetic disk storage and optical memory etc.) Formula.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (6)

1. a kind of method for distributing resource, for the first client, it is characterised in that including:
It is determined that the quantity X, X of the second client of most multipotency connection>0;
Resource is distributed respectively to second client according to preset rules, wherein, the preset rules include:Second visitor Family end connects the order of the sequencing or the second client liveness of the first client from high to low;
It is described to distribute resource to second client according to preset rules, including:
First resource is distributed to the second client for coming top N, the first resource is used for the video and height for transmitting high code check Code check picture;
Secondary resource is distributed to the second client for coming N+1 to M, the Secondary resource is used to transmit picture and low code The video of rate;
Information resources are distributed to the second client for coming M+1 to X, the information resources are used for the figure for transmitting low bit- rate Piece;Wherein N<M<X.
2. the method as described in claim 1, it is characterised in that described to divide respectively to second client according to preset rules After resource, methods described also includes:
When monitoring that Y the second clients are disconnected, by the ordinal position of Y+1 to X the second clients sequentially In advance.
3. the method as described in claim 1, it is characterised in that described to divide respectively to second client according to preset rules With resource, including:
Resource is distributed respectively to second client according to the utilization rate of CPU and/or internal memory, preset rules.
4. a kind of device for distributing resource, for the first client, it is characterised in that including:
Determining module, the quantity X, X of the second client for determining the connection of most multipotency>0;
Distribute module, for distributing resource respectively to second client according to preset rules, wherein, the preset rules bag Include:Second client connects the sequencing or the second client liveness of the first client from high to low suitable Sequence;
The distribute module includes:
First distribution sub module, for distributing first resource to the second client for coming top N, the first resource is used to pass The video of defeated high code check and high code check picture;
Second distribution sub module, for distributing Secondary resource, second money to the second client for coming N+1 to M Source is used for the video for transmitting picture and low bit- rate;
3rd distribution sub module, for distributing information resources, the 3rd money to the second client for coming M+1 to X Source is used for the picture for transmitting low bit- rate;Wherein N<M<X.
5. device as claimed in claim 4, it is characterised in that described device also includes:
Monitoring modular, for when monitoring that Y the second clients are disconnected, by individual second clients of Y+1 to X Ordinal position sequentially shifts to an earlier date.
6. device as claimed in claim 4, it is characterised in that the distribute module includes:
4th distribution sub module, distinguishes for the utilization rate according to CPU and/or internal memory, preset rules to second client Distribute resource.
CN201510174146.2A 2015-04-13 2015-04-13 A kind of method and device for distributing resource Expired - Fee Related CN104768034B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510174146.2A CN104768034B (en) 2015-04-13 2015-04-13 A kind of method and device for distributing resource

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510174146.2A CN104768034B (en) 2015-04-13 2015-04-13 A kind of method and device for distributing resource

Publications (2)

Publication Number Publication Date
CN104768034A CN104768034A (en) 2015-07-08
CN104768034B true CN104768034B (en) 2017-09-15

Family

ID=53649586

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510174146.2A Expired - Fee Related CN104768034B (en) 2015-04-13 2015-04-13 A kind of method and device for distributing resource

Country Status (1)

Country Link
CN (1) CN104768034B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105391758B (en) * 2015-10-09 2019-07-02 天脉聚源(北京)教育科技有限公司 The method and apparatus of resource allocation in a kind of local area network
CN105306386A (en) * 2015-10-09 2016-02-03 天脉聚源(北京)教育科技有限公司 Resource allocation method and device in local area network
CN107483981B (en) * 2017-08-29 2019-11-05 武汉斗鱼网络科技有限公司 Resource Calculation monitoring distribution method, storage medium, electronic equipment and system is broadcast live
CN109669913B (en) * 2018-12-25 2021-03-19 杭州达现科技有限公司 Storage space distribution method and device based on display interface
CN112073744B (en) * 2020-09-04 2022-07-05 北京一起教育信息咨询有限责任公司 Live broadcast resource allocation method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801967A (en) * 2005-04-30 2006-07-12 华为技术有限公司 Communication resource distributing method for PTT service in cellular system
CN101582917A (en) * 2009-06-18 2009-11-18 中兴通讯股份有限公司 Method for dispatching MCU resource, business server and system
CN103581701A (en) * 2012-08-07 2014-02-12 株式会社Ntt都科摩 Method, system and network for transmitting multimedia data to a plurality of clients

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801967A (en) * 2005-04-30 2006-07-12 华为技术有限公司 Communication resource distributing method for PTT service in cellular system
CN101582917A (en) * 2009-06-18 2009-11-18 中兴通讯股份有限公司 Method for dispatching MCU resource, business server and system
CN103581701A (en) * 2012-08-07 2014-02-12 株式会社Ntt都科摩 Method, system and network for transmitting multimedia data to a plurality of clients

Also Published As

Publication number Publication date
CN104768034A (en) 2015-07-08

Similar Documents

Publication Publication Date Title
CN104768034B (en) A kind of method and device for distributing resource
CN110471640B (en) Multi-screen interaction method and system
Valenti et al. Virtual reality as a tool for student orientation in distance education programs: A study of new library and information science students
CN110213609A (en) The method, apparatus and storage medium of the company of progress wheat live streaming in Web education live streaming
CN104715640A (en) Language teaching system
CN205016091U (en) Wireless teaching system based on intelligent terminal
KR101460090B1 (en) A cloud computing based n screen smart education system and the method thereof
CN104184739A (en) Class synchronization system based on wireless network
CN107786582A (en) A kind of online teaching methods, apparatus and system
CN110807959A (en) Interactive teaching method convenient for flexible teaching
CN110287947A (en) Interaction classroom in interaction classroom determines method and device
CN107765843A (en) A kind of system that intelligent interactive teaching is carried out using virtual reality technology
CN104244027A (en) Control method and system used for live transmission and play process sharing of audio/video data
Talukder et al. THE IMPACT OF ICT ON STUDENTS’PERFORMANCE: A CASE STUDY ON UNDERGRADUATE UNIVERSITY STUDENTS
CN104766256B (en) A kind of method and device of determining liveness
CN106412614A (en) Electronic gift playing method and device
CN103632323A (en) Sharing method for teaching resources
CN106155677A (en) A kind of method and system of interface display
CN104780393B (en) A kind of method and device for distributing resource
CN112769919B (en) Distribution method and device of push tasks, storage medium and electronic equipment
CN114038254A (en) Virtual reality teaching method and system
KR20190093771A (en) Methods and Systems for Multi-display-based interactional online practical class with video serivce
CN112863277A (en) Interaction method, device, medium and electronic equipment for live broadcast teaching
CN116757890A (en) VR-based on-line virtual education method, system, device, and readable storage medium
CN104867364B (en) A kind of method and system based on LAN interactive teaching

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170915

Termination date: 20210413