CN109379765A - A kind of cellular network draws stream method, apparatus, equipment and storage medium - Google Patents
A kind of cellular network draws stream method, apparatus, equipment and storage medium Download PDFInfo
- Publication number
- CN109379765A CN109379765A CN201811354287.2A CN201811354287A CN109379765A CN 109379765 A CN109379765 A CN 109379765A CN 201811354287 A CN201811354287 A CN 201811354287A CN 109379765 A CN109379765 A CN 109379765A
- Authority
- CN
- China
- Prior art keywords
- point
- enabled node
- network
- stream
- resource data
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/10—Flow control between communication endpoints
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/436—Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
- H04N21/4363—Adapting the video stream to a specific local network, e.g. a Bluetooth® network
- H04N21/43637—Adapting the video stream to a specific local network, e.g. a Bluetooth® network involving a wireless protocol, e.g. Bluetooth, RF or wireless LAN [IEEE 802.11]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/44227—Monitoring of local network, e.g. connection or bandwidth variations; Detecting new devices in the local network
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Databases & Information Systems (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention discloses a kind of cellular networks to draw stream method, apparatus, equipment and storage medium.This method is by carrying out point-to-point drawing stream to obtain resource data;Obtain local network state;If the local network state meets preset condition, then limit the upload of the resource data obtained, wherein, the preset condition is that network state is cellular data network and limited flow, solve the problems, such as that cellular data user carries out taking flow brought by point-to-point drawing stream, realizing both had allowed cellular network subscriber to participate in point to point network to increase the fluency of live video broadcasting, while saving flow and cost.
Description
Technical field
The present embodiments relate to computer networking technologies more particularly to a kind of cellular network to draw stream method, apparatus, equipment
And storage medium.
Background technique
During user watches and being broadcast live, user is usually set and participates in point to point network, to increase live video broadcasting
Fluency.The network performance of entire point to point network is determined by the upstream bandwidth of user, that is, participates in contribution upstream bandwidth
User it is more, live video load speed it is faster.Point to point network is added in cellular data user, it will be so that cellular data
User generates additional flow, but due to the limited flow of cellular data user, increases the cost that user watches live streaming, also shadow
User is rung to the viscosity of live streaming platform.
Summary of the invention
The embodiment of the present invention provides a kind of cellular network and draws stream method, apparatus, equipment and storage medium, is both allowed with realizing
Cellular network subscriber participates in point to point network to increase the fluency of live video broadcasting, while saving flow and cost.
In a first aspect, the embodiment of the invention provides a kind of cellular networks to draw stream method, this method comprises:
Point-to-point drawing stream is carried out to obtain resource data;
Obtain local network state;
If the local network state meets preset condition, the upload of the resource data obtained is limited, wherein institute
It is cellular data network and limited flow that state preset condition, which be network state,.
Further, the upload for the resource data that limitation has obtained, comprising:
Upstream bandwidth is limited to preset value;And/or
Refuse the subscription request of other nodes.
Further, before carrying out point-to-point drawing stream to obtain resource data, further includes:
Enabled node is obtained, and the enabled node is added into enabled node list;
If the enabled node list there are the enabled node, triggers the operation into point-to-point drawing stream.
Further, enabled node is obtained, and the enabled node is added into enabled node list, comprising:
Content distributing network is connected to obtain both candidate nodes;
After request connects the both candidate nodes success, the both candidate nodes that network performance meets default network condition are made
For enabled node, and it is added in the enabled node list.
Further, point-to-point drawing stream is carried out to obtain resource data, comprising:
The enabled node into the enabled node list, which is sent, respectively subscribes to request, to obtain resource data.
Further, obtain enabled node, and by the enabled node be arranged in enabled node list after, also wrap
It includes:
According to enabled node list described in the updating network state of the enabled node.
Further, the enabled node list according to the updating network state of the enabled node, comprising:
It sends the enabled node in the form of data packet by the local network state;
Packet is returned according to the enabled node, updates the network state of the enabled node;
If the network state of the enabled node meets the preset condition, by the enabled node from the available section
It is deleted in point list.
Further, before carrying out point-to-point drawing stream to obtain resource data, further includes:
Full stream is drawn, from content distributing network to pull the resource data in the stage of quickly accessing and seamlessly transit the stage
Resource data.
Further, after carrying out point-to-point drawing stream to obtain resource data, further includes:
Stop drawing full stream from the content distributing network.
Further, the resource data is live video stream;
Point-to-point drawing stream is being carried out to obtain resource data, and before obtaining local network state, further includes:
After application program is broadcast live in starting, network monitoring event is set to update the local network state.
Second aspect, the embodiment of the invention also provides a kind of cellular networks to draw stream device, which includes:
Point-to-point drawing flow module, for carrying out point-to-point drawing stream to obtain resource data;
Local network state acquisition module, for obtaining local network state;
It uploads limitation module and limits the resource obtained if meeting preset condition for the local network state
The upload of data, wherein the preset condition is that network state is cellular data network and limited flow.
The third aspect draws flow device the embodiment of the invention also provides a kind of cellular network, the equipment include: memory with
And one or more processors;
The memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes that the cellular network as described in any in first aspect draws stream method.
Fourth aspect, it is described the embodiment of the invention also provides a kind of storage medium comprising computer executable instructions
Computer executable instructions by computer processor when being executed for executing the cellular network as described in any in first aspect
Draw stream method.
The embodiment of the present invention obtains local network state by carrying out point-to-point drawing stream to obtain resource data;If
The local network state meets preset condition, then limits the upload of the resource data obtained, wherein the preset condition
It is cellular data network and limited flow for network state, solves cellular data user and carry out taking stream brought by point-to-point drawing stream
The problem of amount, realizing both had allowed cellular network subscriber to participate in point to point network to increase the fluency of live video broadcasting, simultaneously
Save flow and cost.
Detailed description of the invention
Fig. 1 is the flow chart that the cellular network that the embodiment of the present invention one provides draws stream method;
Fig. 2 is the flow chart that cellular network provided by Embodiment 2 of the present invention draws stream method;
Fig. 3 is the flow chart that the cellular network that the embodiment of the present invention three provides draws stream method;
Fig. 4 is the structural schematic diagram that the cellular network that the embodiment of the present invention four provides draws stream device;
Fig. 5 is the structural schematic diagram that a kind of cellular network that the embodiment of the present invention five provides draws flow device.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is the flow chart that the cellular network that the embodiment of the present invention one provides draws stream method, and the present embodiment is applicable to lead to
Cellular network connection point to point network is crossed to carry out drawing stream situation.The present embodiment draws the concrete application scene of stream not make cellular network
It limits, the cellular network proposed using the present embodiment draws stream method can be used with obtaining the application scenarios of resource data.This reality
Example is applied to be illustrated so that live video draws the application scenarios of stream broadcasting as an example.This method can draw flow device to hold by cellular network
Row.The present embodiment draws flow device to be not construed as limiting cellular network, can be the end that mobile phone and plate etc. have function of cellular networks
End equipment.The present embodiment is illustrated so that mobile phone is the terminal device with function of cellular networks as an example.It draws and flows in live video
Under the application scenarios of broadcasting, the mountable spectator client for thering is live streaming platform to provide of the mobile phone or main broadcaster's client.Main broadcaster can be with
Resource data is uploaded to live streaming Platform Server by main broadcaster's client, spectators can take by spectator client from live streaming platform
Business device or other spectator clients obtain resource data.The cellular network draws stream method to specifically comprise the following steps:
S110, point-to-point drawing stream is carried out to obtain resource data.
Wherein, point-to-point (Peer to Peer, P2P) be it is a kind of between different terminals user, without relaying
Equipment directly exchanges the technology of data or service, has broken traditional Client/Server mode, in a peer-to-peer network, each
The status of node be all it is identical, have client and server double grading, service user and service can be used as simultaneously
Supplier.It draws stream to refer to the process of and obtains resource data or operation.The present embodiment to the particular content of resource data with no restriction,
The present embodiment is illustrated so that resource data is live video stream as an example.
Specifically, resource data is uploaded to live streaming Platform Server by main broadcaster's client by main broadcaster.Live streaming platform clothes
Business device can be server cluster.Spectator client is when carrying out point-to-point drawing stream, on the one hand, can be from live streaming Platform Server
Or other spectator clients obtain resource data, and the resource data obtained is on the other hand uploaded as the node in point to point network
It is flowed so that other spectator clients are drawn, so that spectator client, main broadcaster's client and live streaming Platform Server are built into a little
To spot net, resource data is distributed in point to point network.
S120, local network state is obtained.
Wherein, the present embodiment is described in detail so that cellular network drawing flow device is mobile phone as an example, and installs in the mobile phone
The spectator client for thering is live streaming platform to provide.In the present embodiment, local network state refers to the network state of mobile phone, indicates
The network that mobile phone currently connects is cellular network or WLAN (Wireless Local Area Networks, WLAN).
Specifically, the present embodiment is not construed as limiting the concrete mode for how obtaining local network state, hand can be passed through
The Software Development Kit that machine operating system provides obtains.
If S130, the local network state meet preset condition, the upload of the resource data obtained is limited.
In the present embodiment, the preset condition is that network state is cellular data network and limited flow.Cellular data net
Network can be different according to the service of network operator by being provided by the service of network operator, can be divided into current limiting
It measures or without limit flow etc..If the spectator client in mobile phone is connected into point to point network as node, and carries out drawing stream to obtain
Resource data, since in the case where network state is cellular data network and limited flow, flow caused by mobile phone is easy
Service more than network operator provides the upper limit of flow, and then increases the flow rate of user.In general, under flow includes
Row flow and uplink traffic.In the application of point to point network, downlink traffic from point to point network by drawing stream to obtain number of resources
According to when generate, uplink traffic to point to point network upload resource data when generate.For this purpose, the number of resources obtained by limitation
According to upload, uplink traffic can be limited, to reduce the flow that generates when user watches live video by point to point network.
The embodiment of the present invention obtains local network state by carrying out point-to-point drawing stream to obtain resource data;If
The local network state meets preset condition, then limits the upload of the resource data obtained, wherein the preset condition
It is cellular data network and limited flow for network state, solves cellular data user and carry out taking stream brought by point-to-point drawing stream
The problem of amount, realizing both had allowed cellular network subscriber to participate in point to point network to increase the fluency of live video broadcasting, simultaneously
Save flow and cost.
Embodiment two
Fig. 2 is the flow chart that cellular network provided by Embodiment 2 of the present invention draws stream method, and the present embodiment is in above-mentioned implementation
It is further refined on the basis of example.The cellular network draws stream method to specifically comprise the following steps:
S210, enabled node is obtained, and the enabled node is added into enabled node list.
In the present embodiment, enabled node is to carry out resource data in point to point network to upload to realize shared node.It can
Can be with the quantity of node it is multiple, spectators, which can pass through spectator client, to be requested to draw stream to accelerate simultaneously to multiple enabled nodes
The acquisition speed of resource data.
In the present embodiment, enabled node is managed using enabled node list, on the one hand, facilitate spectator client from
Enabled node is chosen in enabled node list;On the other hand, convenient that enabled node is carried out maintenance management, specifically, working as available section
When the not connected network of point or upstream bandwidth are restricted, which becomes down state, then from enabled node list
Delete the enabled node.
The enabled node is added into the specific implementation in enabled node list to acquisition enabled node by the present embodiment
Mode is not construed as limiting.
In one embodiment, enabled node is obtained, and the enabled node is added into enabled node list, comprising:
S211, connection content distributing network are to obtain both candidate nodes.
Wherein, content distributing network (ContentDeliveryNetwork, CDN) is built upon existing IP network basis knot
A kind of value-added network on structure is the layer network framework in application layer deployment.The core of CDN is to utilize intelligent tactful skill
The content at center and service are pushed to network edge by art, allow user in the nearest and optimal place of service quality
Service is obtained, key technology includes cache, load balancing, content routing, content distribution, content storage and Content Management
Deng.The present embodiment is managed the node connected into point to point network using content distributing network.
Specifically, spectator client becomes point to point network when spectator client connection point to point network carries out drawing stream
In node, and the management by content distributing network.If the limitation that node does not upload resource data, which is
Both candidate nodes.
After S212, request connect the both candidate nodes success, network performance is met to the candidate of default network condition
Node is added in the enabled node list as enabled node.
It should be noted that the availability in order to guarantee both candidate nodes, improves the stability for drawing stream, both candidate nodes are being obtained
Afterwards, it is also necessary to judge whether the both candidate nodes can connect, further, also need the network performance for judging the both candidate nodes.
The present embodiment is not construed as limiting the specific implementation of default network condition, and the network delay that can be node is lower than
Default time delay value, the uploading bandwidth of node is greater than preset bandwidth value or the resource data of node is greater than default file size etc..
Specifically, sending connection request to both candidate nodes, and after successful connection, judges the network performance of node, will accord with
The both candidate nodes of default network condition are closed as enabled node, are added in enabled node list.
S220, the enabled node list according to the updating network state of the enabled node.
In the present embodiment, enabled node is carried out maintenance management by enabled node list, including to enabled node list
Update.Specifically, can be according to the updating network state enabled node list of enabled node, when enabled node is not connected
When network or upstream bandwidth are restricted, which becomes down state, then deleting this from enabled node list can
Use node.
In one embodiment, the enabled node list according to the updating network state of the enabled node, including step
S221-S223:
S221, it sends the enabled node in the form of data packet by the local network state.
In the present embodiment, data packet can be Ping packet, and Ping is a life under Windows, Unix and linux system
It enables.Ping also belongs to a communication protocol, is a part of ICP/IP protocol.Utilize whether " ping " order can check network
Connection can help us to analyze and determine network failure well.
In one embodiment, spectator client can pass through User Datagram Protocol according to predetermined period (can be 3 seconds)
(User Datagram Protocol, UDP) sends Ping packet to enabled node, can be by local network state in Ping packet
Inform enabled node.
S222, packet is returned according to the enabled node, updates the network state of the enabled node.
In the present embodiment, after enabled node receives Ping packet, the network-like of enabled node itself can be also taken in returning packet
State, spectator client update the network state of enabled node in enabled node list after time packet for receiving enabled node.
If the network state of S223, the enabled node meet the preset condition, by the enabled node from described
It is deleted in enabled node list.
In the present embodiment, preset condition is that network state is cellular data network and limited flow.Likewise, when determination can
With node and use cellular data network and limited flow, then it represents that the enabled node is arranged to limiting uploading resource at any time
Data, so the enabled node is deleted from enabled node list.
In one embodiment, by enabled node from enabled node list delete after, if the enabled node reconnect
WLAN is then preferentially added into enabled node list.
It should be noted that step S230-260 is performed simultaneously when carrying out the operation of step S210-S220, to carry out
Stream is drawn, to obtain resource data.
S230, judge the enabled node list with the presence or absence of the enabled node.
In this implementation example, if the enabled node list there are the enabled node, is triggered into point-to-point drawing
The operation of stream, i.e. execution step S240-S260, continue to execute S210 otherwise to obtain enabled node.The present embodiment is by step
After S230 is placed on step S210, be intended merely to describe it is clear, the present embodiment to the execution of step S210 and step S230 sequence not
It limits, step S210 and step S230 can be executed parallel.
S240, point-to-point drawing stream is carried out to obtain resource data.
In one embodiment, point-to-point drawing stream is carried out to obtain resource data, comprising: respectively to the enabled node list
In the enabled node send subscribe to request, to obtain resource data.
In the present embodiment, the information that the resource data of request is included at least in request is subscribed to, respectively to available section
Enabled node in point list is sent subscribe to request after, if enabled node receives subscription request, spectator client can be from
Enabled node draws stream, requests corresponding resource data to obtain to subscribe to.
S250, local network state is obtained.
If S260, the local network state meet preset condition, the upload of the resource data obtained is limited,
In, the preset condition is that network state is cellular data network and limited flow.
The concrete mode of the upload for the resource data that the present embodiment has obtained limitation is not construed as limiting.
In one embodiment, the upload for the resource data that limitation has obtained, comprising:
Upstream bandwidth is limited to preset value;And/or
Refuse the subscription request of other nodes.
In the present embodiment, upstream bandwidth is limited to preset value, the upload flow of spectator client can be limited, further
, zero can also be set by the preset value, be equivalent to without uploading.Furthermore it is also possible to be limited to according to by upstream bandwidth
Zero, refuse the subscription request of other nodes.
The enabled node is added into enabled node list, root by the embodiment of the present invention by obtaining enabled node
Enabled node list described in updating network state according to the enabled node, meanwhile, judge whether the enabled node list deposits
In the enabled node, if the enabled node list there are the enabled node, triggers the behaviour into point-to-point drawing stream
Make to obtain local network state to obtain resource data, if the local network state meets preset condition, limit
The upload of the resource data of acquisition, wherein the preset condition is that network state is cellular data network and limited flow, is solved
Cellular data user carries out the problem of taking flow brought by point-to-point drawing stream, and realization had both allowed cellular network subscriber to participate in point pair
Spot net increases the fluency of live video broadcasting, while saving flow and cost.
Further, by connection content distributing network to obtain both candidate nodes, request connects the both candidate nodes success
Afterwards, network performance is met into the both candidate nodes of default network condition as enabled node, and is added to the enabled node
It in list, realizes after obtaining both candidate nodes, increases to the connectivity of the both candidate nodes and the judgement of network performance, guarantee to wait
The availability of node is selected, the stability for drawing stream is improved.
Further, by sending the enabled node, root in the form of data packet for the local network state
Packet is returned according to the enabled node, the network state of the enabled node is updated, if the network state of the enabled node meets
The preset condition then deletes the enabled node from the enabled node list, realizes the network according to enabled node
State updates enabled node list, request is subscribed to avoid continuing to send to unavailable node, to avoid the wave of computing resource
Take.
Further, by the way that upstream bandwidth is limited to preset value;And/or refuse the subscription request of other nodes, limitation
The upload of the resource data obtained, it is only necessary to spectator client is configured, without changing the point-to-point net of script
The implementation strategy of network.
Embodiment three
Fig. 3 is the flow chart that the cellular network that the embodiment of the present invention three provides draws stream method, and the present embodiment is in above-mentioned implementation
It is further refined on the basis of example.The cellular network draws stream method to specifically comprise the following steps:
S310, starting be broadcast live application program after, be arranged network monitoring event to update the local network state.
In the present embodiment, live streaming application program is spectator client described in above-described embodiment.
In one embodiment, it after application program is broadcast live in starting, is opened by the software that initialization mobile phone operating system provides
Kit is sent out, network monitoring event is set with monitoring system Web broadcast notice, to obtain local network state.
S320, full stream is drawn from content distributing network, to pull resource data and the smooth transition in the stage of quickly accessing
The resource data in stage.
In the present embodiment, due to being possible to the case where without enabled node occur when carrying out point-to-point drawing stream, for some time
Gap can not obtain resource data, by before carrying out point-to-point drawing stream to obtain resource data, from content distributing network
Full stream is drawn, can solve Caton problem brought by simple point-to-point drawing stream hysteresis quality, guarantees the smoothness of live video load
Property.Full stream is drawn to refer to directly drawing stream to obtain resource data from live streaming Platform Server.
In this implementation, resource data is live video stream, full stream storage is drawn from content distributing network in the buffer, to draw
It takes the resource data in the stage of quickly accessing and seamlessly transits the resource data in stage.Since live video stream is through overcompression, need
Carrying out decompression could normal play.In video compress, every frame represents a static image.And in actual compression, it can adopt
Various algorithms are taken to reduce the capacity of data, wherein IPB is exactly most common.Briefly, I frame is key frame, belongs to frame internal pressure
Contracting;P frame is the meaning searched for forward;B is bidirectional research.P frame and B frame are all based on I frame and carry out compressed data.
Further, it quickly accesses the stage and the smooth transition stage is the stage of video flowing load, quickly access stage use
In showing that live video stream quickly, the smooth transition stage be used for so that live video stream broadcasting it is more smooth and from
So.
S330, point-to-point drawing stream is carried out to obtain resource data.
S340, local network state is obtained.
It should be noted that being performed simultaneously step S340- step when carrying out point-to-point drawing stream to obtain resource data
S360.Step S350 and step S360 is parallel the step of executing.
If S350, the local network state meet preset condition, the upload of the resource data obtained is limited,
In, the preset condition is that network state is cellular data network and limited flow.
S360, stop drawing full stream from the content distributing network.
The embodiment of the present invention is by the way that after application program is broadcast live in starting, setting network monitoring event is described local to update
Network state draws full stream from content distributing network, to pull resource data and the smooth transition stage in the stage of quickly accessing
Resource data, carry out point-to-point drawing stream to obtain resource data, obtain local network state, meanwhile, if described local
Network state meets preset condition, then limits the upload of the resource data obtained, wherein the preset condition is network state
For cellular data network and limited flow, stops drawing full stream from the content distributing network, solve cellular data user and carry out
The problem of taking flow brought by point-to-point drawing stream, realization had both allowed cellular network subscriber to participate in point to point network to increase live streaming
The fluency of video playing, while flow and cost are saved, further, by carrying out point-to-point drawing stream to obtain number of resources
According to before, full stream is drawn from content distributing network, can solve Caton problem brought by simple point-to-point drawing stream hysteresis quality,
Guarantee the fluency of live video load.
Example IV
Fig. 4 is the structural schematic diagram that the cellular network that the embodiment of the present invention four provides draws stream device, and the present embodiment is applicable
It carries out drawing stream situation in cellular network connection point to point network.The present embodiment draws the concrete application scene of stream not make cellular network
It limits, draw stream using cellular network can be used with obtaining the application scenarios of resource data.The present embodiment is drawn with live video to flow
It is illustrated for the application scenarios of broadcasting.The cellular network draws stream device to specifically include such as flowering structure: point-to-point drawing flow module
410, local network state acquisition module 420 and upload limitation module 430.
Point-to-point drawing flow module 410, for carrying out point-to-point drawing stream to obtain resource data.
Local network state acquisition module 420, for obtaining local network state.
It uploads limitation module 430 and limits the money obtained if meeting preset condition for the local network state
The upload of source data, wherein the preset condition is that network state is cellular data network and limited flow.
The embodiment of the present invention obtains local network state by carrying out point-to-point drawing stream to obtain resource data;If
The local network state meets preset condition, then limits the upload of the resource data obtained, wherein the preset condition
It is cellular data network and limited flow for network state, solves cellular data user and carry out taking stream brought by point-to-point drawing stream
The problem of amount, realizing both had allowed cellular network subscriber to participate in point to point network to increase the fluency of live video broadcasting, simultaneously
Save flow and cost.
On the basis of the above embodiments, limitation module 430 is uploaded, comprising: upload limiting unit, be used for upstream bandwidth
It is limited to preset value;And/or refuse the subscription request of other nodes.
On the basis of the above embodiments, the device further include:
Enabled node obtains module, for obtaining enabled node before carrying out point-to-point drawing stream to obtain resource data,
And the enabled node is added into enabled node list.
Point-to-point drawing stream trigger module, if for the enabled node list there are the enabled node, trigger into
Enter the operation of point-to-point drawing stream.
On the basis of the above embodiments, enabled node obtains module, comprising:
Both candidate nodes acquiring unit, for connecting content distributing network to obtain both candidate nodes.
Network performance is met default net for requesting after connecting the both candidate nodes success by enabled node adding unit
The both candidate nodes of network condition are added in the enabled node list as enabled node.
On the basis of the above embodiments, point-to-point drawing flow module 410 includes:
Request transmitting unit is subscribed to, sends to subscribe to for the enabled node respectively into the enabled node list and ask
It asks, to obtain resource data.
On the basis of the above embodiments, which further includes enabled node update module, for obtaining enabled node,
It, can according to the updating network state of the enabled node and after the enabled node is arranged in enabled node list
Use node listing.
On the basis of the above embodiments, the node updates module, comprising:
Data packet sending unit, for sending the available section in the form of data packet for the local network state
Point.
Updating network state unit updates the network-like of the enabled node for returning packet according to the enabled node
State.
Enabled node deletes unit, if the network state for the enabled node meets the preset condition, by institute
Enabled node is stated to delete from the enabled node list.
On the basis of the above embodiments, which further includes drawing full flow module, for carrying out point-to-point drawing stream to obtain
Before taking resource data, full stream is drawn from content distributing network, to pull the resource data in the stage of quickly accessing and smoothed
Cross the resource data in stage.
On the basis of the above embodiments, which further includes drawing full stream stopping modular, for carrying out point-to-point drawing stream
After obtaining resource data, stop drawing full stream from the content distributing network.
On the basis of the above embodiments, the resource data is live video stream.
The device further includes network monitoring module, for opening before carrying out point-to-point drawing stream to obtain resource data
After dynamic live streaming application program, network monitoring event is set to update the local network state.
Method provided by any embodiment of the invention can be performed in the said goods, has the corresponding functional module of execution method
And beneficial effect.
Embodiment five
Fig. 5 is the structural schematic diagram that a kind of cellular network that the embodiment of the present invention five provides draws flow device.As shown in figure 5,
It includes: processor 50, memory 51, input unit 52, output device 53 and communication device 54 that the cellular network, which draws flow device,.
The cellular network draws the quantity of processor 50 in flow device to can be one or more, in Fig. 5 by taking a processor 50 as an example.
The cellular network draws the quantity of memory 51 in flow device to can be one or more, in Fig. 5 by taking a memory 51 as an example.
The cellular network draws processor 50, memory 51, input unit 52, output device 53 and the communication device 54 of flow device can be with
It is connected by bus or other modes, in Fig. 5 for being connected by bus.In embodiment, cellular network draws flow device can
To be terminal device that mobile phone and plate etc. have function of cellular networks.In embodiment, draw flow device as mobile phone using cellular network
For, it is described.
Memory 51 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer
Sequence and module, cellular network as described in any embodiment of that present invention draw the corresponding program instruction/module of stream method (for example,
Cellular network draws point-to-point drawing flow module 410, local network state acquisition module 420 and upload limitation module in stream device
430).Memory 51 can mainly include storing program area and storage data area, wherein storing program area can storage program area,
Application program needed at least one function;Storage data area, which can be stored, uses created data etc. according to equipment.In addition,
Memory 51 may include high-speed random access memory, can also include nonvolatile memory, for example, at least a disk
Memory device, flush memory device or other non-volatile solid state memory parts.In some instances, memory 51 can be wrapped further
The memory remotely located relative to processor 50 is included, these remote memories can pass through network connection to equipment.Above-mentioned net
The example of network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Communication device 54 communicates to connect for establishing with other equipment, can be wire communication device and/or channel radio
T unit.
Input unit 52 can be used for receiving the number or character information of input, and generates and draw flow device with cellular network
User setting and function control related key signals input, can also be the camera for obtaining image and obtain sound
The pick up facility of frequency evidence.Output device 53 may include the audio frequency apparatuses such as loudspeaker.It should be noted that 52 He of input unit
The concrete composition of output device 53 may be set according to actual conditions.
Software program, instruction and the module that processor 50 is stored in memory 51 by operation, thereby executing equipment
Various function application and data processing, that is, realize that above-mentioned cellular network draws stream method.
Embodiment six
The embodiment of the present invention six also provides a kind of storage medium comprising computer executable instructions, and the computer can be held
Row instruction by computer processor when being executed for executing a kind of cellular network drawing stream method, comprising:
Point-to-point drawing stream is carried out to obtain resource data;
Obtain local network state;
If the local network state meets preset condition, the upload of the resource data obtained is limited, wherein institute
It is cellular data network and limited flow that state preset condition, which be network state,.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention
The cellular network that executable instruction is not limited to the described above draws the operation of stream method, and any embodiment of that present invention can also be performed and mentioned
The cellular network of confession draws the relevant operation in stream method, and has corresponding function and beneficial effect.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more
Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art
Part can be embodied in the form of software products, which can store in computer readable storage medium
In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set
Standby (can be robot, personal computer, server or the network equipment etc.) executes bee described in any embodiment of that present invention
Nest network draws stream method.
It is worth noting that, above-mentioned cellular network is drawn in stream device, included each unit and module are only according to function
Energy logic is divided, but is not limited to the above division, as long as corresponding functions can be realized;In addition, each function
The specific name of energy unit is also only for convenience of distinguishing each other, the protection scope being not intended to restrict the invention.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any
One or more embodiment or examples in can be combined in any suitable manner.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (13)
1. a kind of cellular network draws stream method characterized by comprising
Point-to-point drawing stream is carried out to obtain resource data;
Obtain local network state;
If the local network state meets preset condition, the upload of the resource data obtained is limited, wherein described pre-
If condition is that network state is cellular data network and limited flow.
2. the method according to claim 1, wherein the upload for the resource data that limitation has obtained, comprising:
Upstream bandwidth is limited to preset value;And/or
Refuse the subscription request of other nodes.
3. the method according to claim 1, wherein before carrying out point-to-point drawing stream to obtain resource data,
Further include:
Enabled node is obtained, and the enabled node is added into enabled node list;
If the enabled node list there are the enabled node, triggers the operation into point-to-point drawing stream.
4. according to the method described in claim 3, and the enabled node is added into it is characterized in that, obtain enabled node
In enabled node list, comprising:
Content distributing network is connected to obtain both candidate nodes;
After request connects both candidate nodes success, network performance is met into the both candidate nodes of default network condition as can
With node, and it is added in the enabled node list.
5. according to the method described in claim 3, it is characterized in that, carrying out point-to-point drawing stream to obtain resource data, comprising:
The enabled node into the enabled node list, which is sent, respectively subscribes to request, to obtain resource data.
6. according to the method described in claim 3, it is characterized in that, and the enabled node is arranged obtaining enabled node
After in enabled node list, further includes:
According to enabled node list described in the updating network state of the enabled node.
7. according to the method described in claim 6, it is characterized in that, can according to the updating network state of the enabled node
With node listing, comprising:
It sends the enabled node in the form of data packet by the local network state;
Packet is returned according to the enabled node, updates the network state of the enabled node;
If the network state of the enabled node meets the preset condition, by the enabled node from the available section point range
It is deleted in table.
8. the method according to claim 1, wherein before carrying out point-to-point drawing stream to obtain resource data,
Further include:
Full stream is drawn, from content distributing network to pull the resource data in the stage of quickly accessing and seamlessly transit the resource in stage
Data.
9. according to the method described in claim 8, it is characterized in that, after carrying out point-to-point drawing stream to obtain resource data,
Further include:
Stop drawing full stream from the content distributing network.
10. any method in -9 according to claim 1, which is characterized in that the resource data is live video stream;
Before carrying out point-to-point drawing stream to obtain resource data, further includes:
After application program is broadcast live in starting, network monitoring event is set to update the local network state.
11. a kind of cellular network draws stream device characterized by comprising
Point-to-point drawing flow module, for carrying out point-to-point drawing stream to obtain resource data;
Local network state acquisition module, for obtaining local network state;
It uploads limitation module and limits the resource data obtained if meeting preset condition for the local network state
Upload, wherein the preset condition is that network state is cellular data network and limited flow.
12. a kind of cellular network draws flow device characterized by comprising memory and one or more processors;
The memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
Now the cellular network as described in any in claim 1-10 draws stream method.
13. a kind of storage medium comprising computer executable instructions, which is characterized in that the computer executable instructions by
Stream method is drawn for executing the cellular network as described in any in claim 1-10 when computer processor executes.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811354287.2A CN109379765A (en) | 2018-11-14 | 2018-11-14 | A kind of cellular network draws stream method, apparatus, equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811354287.2A CN109379765A (en) | 2018-11-14 | 2018-11-14 | A kind of cellular network draws stream method, apparatus, equipment and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN109379765A true CN109379765A (en) | 2019-02-22 |
Family
ID=65388834
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811354287.2A Pending CN109379765A (en) | 2018-11-14 | 2018-11-14 | A kind of cellular network draws stream method, apparatus, equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109379765A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111865720A (en) * | 2020-07-20 | 2020-10-30 | 北京百度网讯科技有限公司 | Method, apparatus, device and storage medium for processing requests |
| CN114827650A (en) * | 2022-04-22 | 2022-07-29 | 上海哔哩哔哩科技有限公司 | Streaming media content transmission, live broadcast and pull method |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030187974A1 (en) * | 2002-03-27 | 2003-10-02 | International Business Machines Corporation | Broadcast tiers in decentralized networks |
| CN101127619A (en) * | 2007-09-29 | 2008-02-20 | 华中科技大学 | A P2P live broadcast method based on super nodes |
| CN101562804A (en) * | 2009-05-12 | 2009-10-21 | 中兴通讯股份有限公司 | Region management server system based on mobile P2P and deploying method thereof |
| US20130073808A1 (en) * | 2010-02-05 | 2013-03-21 | Hareesh Puthalath | Method and node entity for enhancing content delivery network |
| CN104935948A (en) * | 2015-05-13 | 2015-09-23 | 深圳市中幼国际教育科技有限公司 | Video direct broadcast image processing method and system |
| CN105554819A (en) * | 2015-11-30 | 2016-05-04 | 东莞酷派软件技术有限公司 | Data transmission method and device and mobile terminal |
| CN107404526A (en) * | 2017-07-25 | 2017-11-28 | 桂林电子科技大学 | P2P remotely-sensed data network self-adapting dissemination systems and method based on SDN |
-
2018
- 2018-11-14 CN CN201811354287.2A patent/CN109379765A/en active Pending
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030187974A1 (en) * | 2002-03-27 | 2003-10-02 | International Business Machines Corporation | Broadcast tiers in decentralized networks |
| CN101127619A (en) * | 2007-09-29 | 2008-02-20 | 华中科技大学 | A P2P live broadcast method based on super nodes |
| CN101562804A (en) * | 2009-05-12 | 2009-10-21 | 中兴通讯股份有限公司 | Region management server system based on mobile P2P and deploying method thereof |
| US20130073808A1 (en) * | 2010-02-05 | 2013-03-21 | Hareesh Puthalath | Method and node entity for enhancing content delivery network |
| CN104935948A (en) * | 2015-05-13 | 2015-09-23 | 深圳市中幼国际教育科技有限公司 | Video direct broadcast image processing method and system |
| CN105554819A (en) * | 2015-11-30 | 2016-05-04 | 东莞酷派软件技术有限公司 | Data transmission method and device and mobile terminal |
| CN107404526A (en) * | 2017-07-25 | 2017-11-28 | 桂林电子科技大学 | P2P remotely-sensed data network self-adapting dissemination systems and method based on SDN |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111865720A (en) * | 2020-07-20 | 2020-10-30 | 北京百度网讯科技有限公司 | Method, apparatus, device and storage medium for processing requests |
| CN111865720B (en) * | 2020-07-20 | 2022-09-09 | 北京百度网讯科技有限公司 | Method, apparatus, device and storage medium for processing requests |
| CN114827650A (en) * | 2022-04-22 | 2022-07-29 | 上海哔哩哔哩科技有限公司 | Streaming media content transmission, live broadcast and pull method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6503575B2 (en) | Method and system for realizing content distribution network based on software defined network | |
| US20170222889A1 (en) | Method and Device for Providing Network Service, Evaluating Policy Rule and Selecting Service Assembly | |
| CN114157667B (en) | Gateway-device-oriented computing power network service system and method | |
| Liu et al. | Socialize spontaneously with mobile applications | |
| WO2023035925A1 (en) | Service processing method, apparatus and system | |
| CN112671571B (en) | Network slice selection method, device, equipment and storage medium | |
| WO2023005701A1 (en) | Data communication method and apparatus, electronic device, and storage medium | |
| WO2025161325A1 (en) | Model training method and system, communication entity and storage medium | |
| WO2021083033A1 (en) | Method and device for determining intermediate session management function i-smf | |
| CN109379765A (en) | A kind of cellular network draws stream method, apparatus, equipment and storage medium | |
| CN113965938B (en) | Slicing service system and slicing service processing method | |
| CN102694799B (en) | P2P (peer-to-peer) stream media system simulation platform and performance evaluation method | |
| CN113014855A (en) | Video conference acceleration method and system and video conference acceleration platform | |
| WO2021218270A1 (en) | Communication method, device and system | |
| Santos et al. | Follow the user: A framework for dynamically placing content using 5g-enablers | |
| El Ioini et al. | A distributed trust layer for edge infrastructure | |
| US11757707B2 (en) | Network assurance for 5G enterprise networks | |
| Erfanian et al. | On maximizing QoE in AVC-based HTTP adaptive streaming: An SDN approach | |
| CN119030972A (en) | Processing method, device and storage medium for computing power and network services | |
| Li et al. | Capability exposure Vitalizes 5G network | |
| KR20110040702A (en) | P2P control device and transmission overlay control method | |
| Habibi et al. | Analyzing SDN-based vehicular network framework in 5G services: Fog and mobile edge computing | |
| CN114143903A (en) | Method, device, equipment and medium for configuring network slice PDU session | |
| Luglio et al. | Analytics support in the 5G Core Network for data-driven management of a supplementary backhaul | |
| Hayes et al. | Lightweight evolving 360 VR adaptive video delivery |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190222 |