[go: up one dir, main page]

CN109995609A - Bandwidth determining method, device and storage medium - Google Patents

Bandwidth determining method, device and storage medium Download PDF

Info

Publication number
CN109995609A
CN109995609A CN201810549733.9A CN201810549733A CN109995609A CN 109995609 A CN109995609 A CN 109995609A CN 201810549733 A CN201810549733 A CN 201810549733A CN 109995609 A CN109995609 A CN 109995609A
Authority
CN
China
Prior art keywords
data packet
bandwidth
transmitting terminal
receiving end
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
Application number
CN201810549733.9A
Other languages
Chinese (zh)
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.)
Hangzhou Hikvision Digital Technology Co Ltd
Hangzhou Hikvision System Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Publication of CN109995609A publication Critical patent/CN109995609A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control

Landscapes

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

Abstract

The invention discloses a kind of bandwidth determining method, device and storage mediums, belong to network technique field.Method includes: to receive the first data packet and the second data packet;When determining that the first data packet and the second data packet are continuously transmitted by transmitting terminal, the receiving time for calculating the second data packet and the first data packet is poor, and receiving time difference is used to indicate that receiving end to receive duration spent by the process of the second data packet;The quotient between the data length of the second data packet and receiving time difference is calculated, as prediction bandwidth;According to calculated prediction bandwidth, the bandwidth between transmitting terminal and receiving end is determined.The present invention, which can be determined accurately in receiving end according to the receiving time difference of two data packets continuously transmitted, receives duration spent by the process of second data packet, to calculate accurate bandwidth, improve calculating accuracy, matched code rate is set according to calculated bandwidth, bandwidth availability ratio can be improved as much as possible in the case where guaranteeing data normal transmission.

Description

Bandwidth determining method, device and storage medium
This application claims in submission on December 29th, 2017 China State Intellectual Property Office, application No. is 201711484244.1, the priority of the Chinese patent application of entitled " bandwidth determining method, device and storage medium ", Entire contents are hereby incorporated by reference in the application.
Technical field
The present invention relates to network technique field, in particular to a kind of bandwidth determining method, device and storage medium.
Background technique
The process that data are transmitted between transmitting terminal and receiving end will receive the influence of code rate and bandwidth, when code rate refers to unit The data bits of interior transmitting terminal transmission, bandwidth refer to the number that can actually transmit in the unit time between transmitting terminal and receiving end According to digit, when the too small of code rate setting causes code rate to be less than bandwidth, it is smaller to will lead to bandwidth availability ratio, causes Internet resources Waste, and code rate setting it is excessive and cause code rate be greater than bandwidth when, will affect the normal transmission of data, as long as determining hair Bandwidth between sending end and receiving end, is rationally arranged code rate, could mention as much as possible in the case where guaranteeing data normal transmission High bandwidth utilization rate.
In the related technology, transmitting terminal is by calculating between the transmission data volume of business datum and the dispatching cycle of scheduling frame Quotient obtains real-time message transmission rate, using the message transmission rate as real-time bandwidth.
During realizing the embodiment of the present invention, inventor has found that the relevant technologies at least have the following deficiencies: and is sending In the case that the code rate of end setting is fixed, the message transmission rate monitored is fixed, therefore above-mentioned is passed according to data The method of defeated rate calculations bandwidth, is really influenced by code rate, and accurate bandwidth can not be calculated.
Summary of the invention
The embodiment of the invention provides a kind of bandwidth determining method, device and storage medium, can solve cannot be calculated The problem of accurate bandwidth.The technical solution is as follows:
In a first aspect, providing a kind of bandwidth determining method, which comprises
Receive the first data packet and the second data packet;
When determining that first data packet and second data packet are continuously transmitted by transmitting terminal, second number is calculated Poor with the receiving time of first data packet according to wrapping, the receiving time difference is for indicating that the receiving end receives described second Duration spent by the process of data packet;
The quotient between the data length of second data packet and receiving time difference is calculated, as prediction bandwidth;
According to calculated prediction bandwidth, the bandwidth between the transmitting terminal and the receiving end is determined.
It include sequence identification in each data packet that the transmitting terminal is sent in a kind of possible implementation, it is described suitable Sequence mark is used to indicate the transmission of data packet sequentially, and after the first data packet of the reception and the second data packet, the method is also Include:
When the sequence identification for determining second data packet is next sequence of the sequence identification of first data packet When mark, determine that first data packet and second data packet are continuously transmitted by the transmitting terminal.
In alternatively possible implementation, when the reception for calculating second data packet and first data packet Between it is poor, comprising:
Using the time point received when first data packet is completed as first time point;
Using the time point received when second data packet is completed as the second time point;
Calculate the time difference between the first time point and second time point.
It is described according to calculated prediction bandwidth in alternatively possible implementation, determine the transmitting terminal with it is described Bandwidth between receiving end, comprising:
Obtain calculated multiple prediction bandwidth, the multiple prediction bandwidth respectively according in preset duration by the hair The data packet that sending end continuously transmits is calculated;
The statistical value for calculating the multiple prediction bandwidth, as the bandwidth between the transmitting terminal and the receiving end.
In alternatively possible implementation, after the bandwidth between the determination transmitting terminal and the receiving end, The method also includes:
The bandwidth is sent to the transmitting terminal, by the code rate of transmitting terminal setting and the bandwidth match, according to setting The code rate set sends data to the receiving end.
Second aspect, provides a kind of bandwidth determining device, and described device includes:
Receiving module, for receiving the first data packet and the second data packet;
Time difference computing module determines that first data packet and second data packet are continuously sent out by transmitting terminal for working as When sending, the receiving time for calculating second data packet and first data packet is poor, and the receiving time difference is for indicating institute It states receiving end and receives duration spent by the process of second data packet;
Bandwidth calculation module, for calculating between the data length of second data packet and receiving time difference Quotient, as prediction bandwidth;
The bandwidth calculation module, for determining the transmitting terminal and the receiving end according to calculated prediction bandwidth Between bandwidth.
It include sequence identification in each data packet that the transmitting terminal is sent in a kind of possible implementation, it is described suitable Sequence mark is used to indicate the transmission sequence of data packet, described device further include:
Determining module, for being the sequence identification of first data packet when the sequence identification for determining second data packet Next sequence identification when, determine that first data packet and second data packet are continuously transmitted by the transmitting terminal.
In alternatively possible implementation, the time difference computing module, comprising:
First acquisition unit, for time point when first data packet is completed will to be received as first time point;
Second acquisition unit, for time point when second data packet is completed will to be received as the second time point;
Time difference acquiring unit, for calculating the time difference between the first time point and second time point.
In alternatively possible implementation, the bandwidth calculation module, comprising:
Predict bandwidth unit, for obtaining calculated multiple prediction bandwidth, basis exists the multiple prediction bandwidth respectively It is calculated in preset duration by the data packet that the transmitting terminal continuously transmits;
Statistic unit, for calculating the statistical value of the multiple prediction bandwidth, as the transmitting terminal and the receiving end Between bandwidth.
In alternatively possible implementation, described device further include:
Sending module, for sending the bandwidth to the transmitting terminal, by transmitting terminal setting and the bandwidth match Code rate, according to the code rate of setting to the receiving end send data.
The third aspect, provides a kind of bandwidth determining device, and the bandwidth determining device includes processor and memory, institute It states and is stored at least one instruction in memory, described instruction is loaded by the processor and executed to realize such as first aspect institute Performed operation in the bandwidth determining method stated.
Fourth aspect provides a kind of computer readable storage medium, is stored in the computer readable storage medium At least one instruction, described instruction are loaded by processor and are executed to realize institute in bandwidth determining method as described in relation to the first aspect The operation of execution.
Technical solution provided in an embodiment of the present invention has the benefit that
Method, apparatus provided in an embodiment of the present invention and storage medium pass through two numbers continuously transmitted for transmitting terminal According to packet, the receiving time for calculating two data packets is poor, indicates that receiving end receives the process of second data packet with receiving time difference Spent duration then calculates the quotient between the data length of second data packet and receiving time difference, as prediction bandwidth, from And according to calculated prediction bandwidth, determine the bandwidth between transmitting terminal and receiving end.The embodiment of the present invention receiving end according to When the receiving time difference of two data packets continuously transmitted can be determined accurately spent by the process for receiving second data packet It is long, to calculate accurate bandwidth, calculating accuracy is improved, matched code rate is arranged according to calculated bandwidth, it can be with Bandwidth availability ratio is improved as much as possible in the case where guaranteeing data normal transmission.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of schematic diagram of implementation environment provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of bandwidth determining method provided in an embodiment of the present invention;
Fig. 3 is a kind of bandwidth determining method flow chart provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram for sending data packet provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of bandwidth determining device provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of server provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Fig. 1 is a kind of schematic diagram of implementation environment provided in an embodiment of the present invention, which includes: transmitting terminal 101 With receiving end 102, pass through cable network or wireless network connection, 101 meeting of transmitting terminal between transmitting terminal 101 and receiving end 102 Data are sent to receiving end 102.
During sending data, transmitting terminal 101 can determine the data bit sent in the unit time according to the code rate of setting Number, to provide data to receiving end 102 according to code rate.And if the band between transmitting terminal 101 and receiving end 102 is wider than code Rate, i.e., the data bits actually sent in the unit time are greater than code rate, will lead to the data of the offer of transmitting terminal 101 at this time less than real The data that border is sent, bandwidth availability ratio are smaller.If the bandwidth between transmitting terminal 101 and receiving end 102 is less than code rate, i.e. unit The data bits actually sent in time is less than code rate, and the data that will lead to the offer of transmitting terminal 101 at this time, which are more than, actually to be sent Data cause data can not normal transmission.
The embodiment of the present invention can be applied to it is a variety of transmission data scenes under, for example, the transmitting terminal 101 be server, The receiving end 102 is terminal, sends video data from server to terminal, at the terminal real-time playing video data.Alternatively, In network system, which is storage server, which is service server, which connects to this Receiving end 102 sends business datum.Alternatively, in mobile communication system, which is base station, which is user Equipment sends data from base station to user equipment.
Fig. 2 is a kind of flow chart of bandwidth determining method provided in an embodiment of the present invention.The execution master of the embodiment of the present invention Body is receiving end, referring to fig. 2, this method comprises:
201, the first data packet and the second data packet are received.
202, when determining that the first data packet and the second data packet are continuously transmitted by transmitting terminal, the second data packet and the is calculated The receiving time of one data packet is poor, when receiving time difference is used to indicate that receiving end receives spent by the process of the second data packet It is long.
203, the quotient between the data length of the second data packet and receiving time difference is calculated, as prediction bandwidth.
204, according to calculated prediction bandwidth, the bandwidth between transmitting terminal and receiving end is determined.
Method provided in an embodiment of the present invention calculates two numbers by two data packets continuously transmitted for transmitting terminal It is poor according to the receiving time of packet, indicate that receiving end receives duration spent by the process of second data packet with receiving time difference, then The quotient between the data length of second data packet and receiving time difference is calculated, as prediction bandwidth, thus according to calculated It predicts bandwidth, determines the bandwidth between transmitting terminal and receiving end.The embodiment of the present invention is in receiving end according to two continuously transmitted The receiving time difference of data packet can accurately determine duration spent by the process for receiving second data packet, to calculate standard True bandwidth improves calculating accuracy, and matched code rate is arranged according to calculated bandwidth, can normally pass guaranteeing data Bandwidth availability ratio is improved in the case where defeated as much as possible.
Fig. 3 is a kind of flow chart of bandwidth determining method provided in an embodiment of the present invention.The interaction master of the embodiment of the present invention Body is receiving end and transmitting terminal, referring to Fig. 3, this method comprises:
301, transmitting terminal sends multiple data packets to receiving end.
During sending data, code rate is can be set in transmitting terminal, which has determined the number of transmitted per unit time According to digit, then transmitting terminal can provide data according to the code rate of setting, be sent to receiving end.And bandwidth has determined in the unit time in fact The data bits of border transmission, the embodiment of the present invention, can be in receiving ends according to actual data by receiving end received data packet Reception condition computation bandwidth.
In the embodiment of the present invention, for the ease of according to the two data packet computation bandwidths continuously transmitted, transmitting terminal is continuous It may include sequence identification in each data packet when sending data packet, which is used to indicate the transmission sequence of data packet, There is sequencing between different sequence identifications, the transmission sequence of data packet can be determined according to the sequence identification of data packet. For example, the sequence identification of first data packet can be 1, the sequence identification of second data packet can be 2.The sequence identification can To be located in a certain fixed field of data packet, which can be located in data head or data volume.
302, receiving end receives the first data packet and the second data packet.
The embodiment of the present invention is by taking the first data packet and the second data packet that receiving end successively receives as an example, second data Packet is the data packet received after the first data packet, which first receives the first data packet, when the first data packet connects It harvests Cheng Shihui and continuously receives the second data packet.
303, when receiving end determines the first data packet and the second data packet is continuously transmitted by transmitting terminal, the second data are calculated It is poor with the receiving time of the first data packet to wrap.
It include sequence identification in each data packet, then receiving end obtains the first data packet in a kind of possible implementation Sequence identification and the second data packet sequence identification, the two is compared, when the sequence identification for determining the second data packet is When next sequence identification of the sequence identification of the first data packet, determine that the first data packet and the second data packet are continuous by transmitting terminal It sends.
When receiving end determines that the first data packet and the second data packet are continuously transmitted by transmitting terminal, the second data packet and the is calculated The receiving time of one data packet is poor, and receiving time difference is that receiving end receives the completion of the first data packet, starts to receive the second data packet Time point and receive the second data packet complete time point between time difference, can indicate receiving end receive the second data packet Process spent by duration.
When it is implemented, will record the time point received when each data packet is completed when the received data packet of receiving end, then will Time point when the first data packet is completed is received as first time point, time point when will receive the completion of the second data packet as Second time point calculated first time point and the time difference between the second time point.Since the second data packet is in the first data packet It receiving, is that is to say in first time point later, receiving end receives the first data packet and completes, starts to receive the second data packet, Second time point receiving end receives the second data packet and completes.Therefore, the time difference between first time point and the second time point is Duration spent by the process of the second data packet is received for receiving end.
Referring to fig. 4, transmitting terminal has continuously transmitted data packet A and data packet B, and receiving end first receives data packet A, then receives To data packet B, the receiving time difference T of two data packets is calculated, then predicts data length L (B) and receive that bandwidth is data packet B Quotient L (B)/T between time difference T.
304, receiving end calculates the quotient between the data length of the second data packet and receiving time difference, as prediction bandwidth.
No matter the code rate of transmitting terminal setting, which is greater than bandwidth, is also less than bandwidth, in data transmission procedure, in the unit time The data bits of actual transmissions is bandwidth, and for the second data packet, the data length and receiving time of second data packet are poor Between quotient can represent the data bits of actual transmissions in the unit time, therefore can be by the data length of second data packet Quotient between receiving time difference is as prediction bandwidth.
305, receiving end obtains calculated multiple prediction bandwidth, the statistical value of multiple prediction bandwidth is calculated, as transmission Bandwidth between end and receiving end.
Wherein, basis is calculated in preset duration by the data packet that transmitting terminal continuously transmits multiple prediction bandwidth respectively It arrives.Receiving end is using preset duration as the period, and within each period, the multiple data packets continuously transmitted according to transmitting terminal repeat to hold Row above-mentioned steps 301-304, to be calculated according to multi-group data packet more using any two data packets continuously transmitted as one group A prediction bandwidth counts multiple prediction bandwidth, and the statistical value of multiple prediction bandwidth is determined as transmitting terminal and receiving end Between bandwidth.Wherein, which can be the average value of multiple prediction bandwidth, or may be multiple prediction bandwidth The weight of weighted average, each prediction bandwidth can be determined according to the calculating time of prediction bandwidth, be got in current period The data packet that evening receives predicts that the calculating time of bandwidth is more late, also can more embody current network condition, therefore will calculate The weight of time later prediction bandwidth is set as higher weight, will calculate the time and predict that the weight of bandwidth is set as earlier Lower weight.Alternatively, the weight of each prediction bandwidth can also be determined according to the variance of prediction bandwidth, according to multiple prediction The variance of each prediction bandwidth of bandwidth calculation sets lower weight for the weight of the biggish prediction bandwidth of variance, to drop Low influence of the network fluctuation to calculated result accidentally.
Certainly, the mode of computation bandwidth is optional way in above-mentioned steps 305, in fact, receiving end can not also execute Step 305, directly prediction bandwidth can be determined as between transmitting terminal and receiving end after executing step 304 and obtaining prediction bandwidth Bandwidth.
With directly will prediction bandwidth be determined as transmitting terminal compared with the bandwidth between receiving end, it is multiple according to what is be calculated Prediction bandwidth is counted, and available more accurate bandwidth avoids influence of the accidental network fluctuation to bandwidth, into one Step improves accuracy rate.
306, receiving end sends calculated bandwidth to transmitting terminal.
307, transmitting terminal receives the bandwidth that receiving end is sent, the code rate of setting and bandwidth match.
When maximal rate of the calculated bandwidth no more than setting, transmitting terminal sets equal with bandwidth for code rate, from And it can fully utilize bandwidth resources.And when calculated band is wider than the maximal rate of setting, transmitting terminal sets code rate It is set to maximal rate, so as to improve bandwidth availability ratio as much as possible in the case where guaranteeing data normal transmission.
After receiving end calculates bandwidth, the bandwidth is sent to transmitting terminal, then transmitting terminal can accurately determine current Bandwidth is how many, also more than needed how many compared to code rate, therefore can disposably improve code rate, without detecting the adjustment width of code rate Degree sets code rate to and bandwidth match, and is continued to send data to receiving end according to code rate adjusted, thus after ensure that It can guarantee the normal transmission of data during continuous, and bandwidth availability ratio can also be improved.
In practical application, during transmitting terminal and receiving end transmission data, the period can be divided according to preset duration, According to the multiple data packet computation bandwidths continuously transmitted in each period, matched code rate is arranged according to bandwidth, by constantly Computation bandwidth simultaneously adjusts code rate, can be adjusted in time according to actual network condition, improve data laser propagation effect.
Method provided in an embodiment of the present invention calculates two numbers by two data packets continuously transmitted for transmitting terminal It is poor according to the receiving time of packet, indicate that receiving end receives duration spent by the process of second data packet with receiving time difference, then The quotient between the data length of second data packet and receiving time difference is calculated, as prediction bandwidth, thus according to calculated It predicts bandwidth, determines the bandwidth between transmitting terminal and receiving end.The embodiment of the present invention is in receiving end according to two continuously transmitted The receiving time difference of data packet can accurately determine duration spent by the process for receiving second data packet, to calculate standard True bandwidth improves calculating accuracy, and matched code rate is arranged according to calculated bandwidth, can normally pass guaranteeing data Bandwidth availability ratio is improved in the case where defeated as much as possible.
Also, the embodiment of the present invention is applied in real-time stream transmission process, without detecting the adjustment amplitude of code rate i.e. Can direct computation bandwidth to adjust code rate in real time can reach better real-time stream result of broadcast.
Also, sequence identification is carried in the packet, and the transmission sequence of data packet is indicated with sequence identification, it can be intuitive The data packet continuously transmitted is quickly determined, calculating speed is accelerated.
Also, according to the multiple pre- measuring tapes being calculated in preset duration by the data packet that the transmitting terminal continuously transmits Wide counting statistics value, available more accurate bandwidth avoid influence of the accidental network fluctuation to bandwidth, further mention High accuracy rate.
Fig. 5 is a kind of structural schematic diagram of bandwidth determining device provided in an embodiment of the present invention.Referring to Fig. 5, the device packet It includes:
Receiving module 501, for receiving the first data packet and the second data packet;
Time difference computing module 502, for when determining that the first data packet and the second data packet are continuously transmitted by transmitting terminal, The receiving time for calculating the second data packet and the first data packet is poor, and receiving time difference is for indicating that receiving end receives the second data packet Process spent by duration;
Bandwidth calculation module 503, for calculating the quotient between the data length of the second data packet and receiving time difference, as Predict bandwidth;
Bandwidth calculation module 503 is also used to determine the band between transmitting terminal and receiving end according to calculated prediction bandwidth It is wide.
It include sequence identification in each data packet that transmitting terminal is sent in a kind of possible implementation, sequence identification is used In the transmission sequence of designation date packet, device further include:
Determining module determines that the sequence identification of the second data packet is the next of the sequence identification of the first data packet for working as When sequence identification, determine that the first data packet and the second data packet are continuously transmitted by transmitting terminal.
In alternatively possible implementation, time difference computing module 502, comprising:
First acquisition unit, for time point when the first data packet is completed will to be received as first time point;
Second acquisition unit, for time point when the second data packet is completed will to be received as the second time point;
Time difference acquiring unit, for calculating the time difference between first time point and the second time point.
In alternatively possible implementation, bandwidth calculation module 503, comprising:
Predict bandwidth unit, for obtaining calculated multiple prediction bandwidth, multiple prediction bandwidth are respectively according to default It is calculated in duration by the data packet that transmitting terminal continuously transmits;
Statistic unit, for calculating the statistical value of multiple prediction bandwidth, as the bandwidth between transmitting terminal and receiving end.
In alternatively possible implementation, device further include:
Sending module, for the code rate with bandwidth match being arranged by transmitting terminal, according to setting to transmitting terminal transmission bandwidth Code rate sends data to receiving end.
Above-mentioned optional technical solution can form the alternative embodiment of the disclosure, herein no longer one by one using any combination It repeats.
It should be understood that bandwidth determining device provided by the above embodiment is calculating the band between transmitting terminal and receiving end When wide, only the example of the division of the above functional modules, in practical application, it can according to need and by above-mentioned function Distribution is completed by different functional modules, i.e., the internal structure of receiving end is divided into different functional modules, more than completing The all or part of function of description.In addition, bandwidth determining device provided by the above embodiment and bandwidth determining method embodiment Belong to same design, specific implementation process is detailed in embodiment of the method, and which is not described herein again.
Fig. 6 shows the structural block diagram of the terminal 600 of an illustrative embodiment of the invention offer.The terminal 600 can be with It is portable mobile termianl, such as: smart phone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) player, laptop Or desktop computer.Terminal 600 is also possible to referred to as other names such as user equipment, portable terminal, laptop terminal, terminal console Claim.
In general, terminal 600 includes: processor 601 and memory 602.
Processor 601 may include one or more processing cores, such as 4 core processors, 8 core processors etc..Place Reason device 601 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed Logic array) at least one of example, in hardware realize.Processor 601 also may include primary processor and coprocessor, master Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.? In some embodiments, processor 601 can be integrated with GPU (Graphics Processing Unit, image processor), GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 601 can also be wrapped AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learning Calculating operation.
Memory 602 may include one or more computer readable storage mediums, which can To be non-transient.Memory 602 may also include high-speed random access memory and nonvolatile memory, such as one Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 602 can Storage medium is read for storing at least one instruction, at least one instruction performed by processor 601 for realizing this Shen Please in embodiment of the method provide bandwidth determining method.
In some embodiments, terminal 600 is also optional includes: peripheral device interface 603 and at least one peripheral equipment. It can be connected by bus or signal wire between processor 601, memory 602 and peripheral device interface 603.Each peripheral equipment It can be connected by bus, signal wire or circuit board with peripheral device interface 603.Specifically, peripheral equipment includes: radio circuit 604, at least one of touch display screen 605, camera 606, voicefrequency circuit 607, positioning component 608 and power supply 609.
Peripheral device interface 603 can be used for I/O (Input/Output, input/output) is relevant outside at least one Peripheral equipment is connected to processor 601 and memory 602.In some embodiments, processor 601, memory 602 and peripheral equipment Interface 603 is integrated on same chip or circuit board;In some other embodiments, processor 601, memory 602 and outer Any one or two in peripheral equipment interface 603 can realize on individual chip or circuit board, the present embodiment to this not It is limited.
Radio circuit 604 is for receiving and emitting RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal.It penetrates Frequency circuit 604 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 604 turns electric signal It is changed to electromagnetic signal to be sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit 604 wraps It includes: antenna system, RF transceiver, one or more amplifiers, tuner, oscillator, digital signal processor, codec chip Group, user identity module card etc..Radio circuit 604 can be carried out by least one wireless communication protocol with other terminals Communication.The wireless communication protocol includes but is not limited to: WWW, Metropolitan Area Network (MAN), Intranet, each third generation mobile communication network (2G, 3G, 4G and 5G), WLAN and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.In some embodiments, it penetrates Frequency circuit 604 can also include NFC (Near Field Communication, wireless near field communication) related circuit, this Application is not limited this.
Display screen 605 is for showing UI (User Interface, user interface).The UI may include figure, text, figure Mark, video and its their any combination.When display screen 605 is touch display screen, display screen 605 also there is acquisition to show The ability of the touch signal on the surface or surface of screen 605.The touch signal can be used as control signal and be input to processor 601 are handled.At this point, display screen 605 can be also used for providing virtual push button and/or dummy keyboard, also referred to as soft button and/or Soft keyboard.In some embodiments, display screen 605 can be one, and the front panel of terminal 600 is arranged;In other embodiments In, display screen 605 can be at least two, be separately positioned on the different surfaces of terminal 600 or in foldover design;In still other reality It applies in example, display screen 605 can be flexible display screen, be arranged on the curved surface of terminal 600 or on fold plane.Even, it shows Display screen 605 can also be arranged to non-rectangle irregular figure, namely abnormity screen.Display screen 605 can use LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) Etc. materials preparation.
CCD camera assembly 606 is for acquiring image or video.Optionally, CCD camera assembly 606 include front camera and Rear camera.In general, the front panel of terminal is arranged in front camera, the back side of terminal is arranged in rear camera.One In a little embodiments, rear camera at least two is main camera, depth of field camera, wide-angle camera, focal length camera shooting respectively Any one in head, to realize that main camera and the fusion of depth of field camera realize background blurring function, main camera and wide-angle Camera fusion realizes that pan-shot and VR (Virtual Reality, virtual reality) shooting function or other fusions are clapped Camera shooting function.In some embodiments, CCD camera assembly 606 can also include flash lamp.Flash lamp can be monochromatic warm flash lamp, It is also possible to double-colored temperature flash lamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, can be used for not With the light compensation under colour temperature.
Voicefrequency circuit 607 may include microphone and loudspeaker.Microphone is used to acquire the sound wave of user and environment, and will Sound wave, which is converted to electric signal and is input to processor 601, to be handled, or is input to radio circuit 604 to realize voice communication. For stereo acquisition or the purpose of noise reduction, microphone can be separately positioned on the different parts of terminal 600 to be multiple.Mike Wind can also be array microphone or omnidirectional's acquisition type microphone.Loudspeaker is then used to that processor 601 or radio circuit will to be come from 604 electric signal is converted to sound wave.Loudspeaker can be traditional wafer speaker, be also possible to piezoelectric ceramic loudspeaker.When When loudspeaker is piezoelectric ceramic loudspeaker, the audible sound wave of the mankind can be not only converted electrical signals to, it can also be by telecommunications Number the sound wave that the mankind do not hear is converted to carry out the purposes such as ranging.In some embodiments, voicefrequency circuit 607 can also include Earphone jack.
Positioning component 608 is used for the current geographic position of positioning terminal 600, to realize navigation or LBS (Location Based Service, location based service).Positioning component 608 can be the GPS (Global based on the U.S. Positioning System, global positioning system), China dipper system or Russia Galileo system positioning group Part.
Power supply 609 is used to be powered for the various components in terminal 600.Power supply 609 can be alternating current, direct current, Disposable battery or rechargeable battery.When power supply 609 includes rechargeable battery, which can be wired charging electricity Pond or wireless charging battery.Wired charging battery is the battery to be charged by Wireline, and wireless charging battery is by wireless The battery of coil charges.The rechargeable battery can be also used for supporting fast charge technology.
In some embodiments, terminal 600 further includes having one or more sensors 610.The one or more sensors 610 include but is not limited to: acceleration transducer 611, gyro sensor 612, pressure sensor 613, fingerprint sensor 614, Optical sensor 615 and proximity sensor 616.
The acceleration that acceleration transducer 611 can detecte in three reference axis of the coordinate system established with terminal 600 is big It is small.For example, acceleration transducer 611 can be used for detecting component of the acceleration of gravity in three reference axis.Processor 601 can With the acceleration of gravity signal acquired according to acceleration transducer 611, touch display screen 605 is controlled with transverse views or longitudinal view Figure carries out the display of user interface.Acceleration transducer 611 can be also used for the acquisition of game or the exercise data of user.
Gyro sensor 612 can detecte body direction and the rotational angle of terminal 600, and gyro sensor 612 can To cooperate with acquisition user to act the 3D of terminal 600 with acceleration transducer 611.Processor 601 is according to gyro sensor 612 Following function may be implemented in the data of acquisition: when action induction (for example changing UI according to the tilt operation of user), shooting Image stabilization, game control and inertial navigation.
The lower layer of side frame and/or touch display screen 605 in terminal 600 can be set in pressure sensor 613.Work as pressure When the side frame of terminal 600 is arranged in sensor 613, user can detecte to the gripping signal of terminal 600, by processor 601 Right-hand man's identification or prompt operation are carried out according to the gripping signal that pressure sensor 613 acquires.When the setting of pressure sensor 613 exists When the lower layer of touch display screen 605, the pressure operation of touch display screen 605 is realized to UI circle according to user by processor 601 Operability control on face is controlled.Operability control includes button control, scroll bar control, icon control, menu At least one of control.
Fingerprint sensor 614 is used to acquire the fingerprint of user, collected according to fingerprint sensor 614 by processor 601 The identity of fingerprint recognition user, alternatively, by fingerprint sensor 614 according to the identity of collected fingerprint recognition user.It is identifying When the identity of user is trusted identity out, the user is authorized to execute relevant sensitive operation, the sensitive operation packet by processor 601 Include solution lock screen, check encryption information, downloading software, payment and change setting etc..Terminal can be set in fingerprint sensor 614 600 front, the back side or side.When being provided with physical button or manufacturer Logo in terminal 600, fingerprint sensor 614 can be with It is integrated with physical button or manufacturer's mark.
Optical sensor 615 is for acquiring ambient light intensity.In one embodiment, processor 601 can be according to optics The ambient light intensity that sensor 615 acquires controls the display brightness of touch display screen 605.Specifically, when ambient light intensity is higher When, the display brightness of touch display screen 605 is turned up;When ambient light intensity is lower, the display for turning down touch display screen 605 is bright Degree.In another embodiment, the ambient light intensity that processor 601 can also be acquired according to optical sensor 615, dynamic adjust The acquisition parameters of CCD camera assembly 606.
Proximity sensor 616, also referred to as range sensor are generally arranged at the front panel of terminal 600.Proximity sensor 616 For acquiring the distance between the front of user Yu terminal 600.In one embodiment, when proximity sensor 616 detects use When family and the distance between the front of terminal 600 gradually become smaller, touch display screen 605 is controlled from bright screen state by processor 601 It is switched to breath screen state;When proximity sensor 616 detects user and the distance between the front of terminal 600 becomes larger, Touch display screen 605 is controlled by processor 601 and is switched to bright screen state from breath screen state.
It will be understood by those skilled in the art that the restriction of structure shown in Fig. 6 not structure paired terminal 600, can wrap It includes than illustrating more or fewer components, perhaps combine certain components or is arranged using different components.
Fig. 7 is a kind of structural schematic diagram of server provided in an embodiment of the present invention, which can be because of configuration or property Energy is different and generates bigger difference, may include one or more central processing units (central processing Units, CPU) 722 (for example, one or more processors) and memory 732, one or more storages apply journey The storage medium 730 (such as one or more mass memory units) of sequence 742 or data 744.Wherein, 732 He of memory Storage medium 730 can be of short duration storage or persistent storage.The program for being stored in storage medium 730 may include one or one With upper module (diagram does not mark), each module may include to the series of instructions operation in server.Further, in Central processor 722 can be set to communicate with storage medium 730, execute on server 700 a series of in storage medium 730 Instruction operation.
Server 700 can also include one or more power supplys 727, one or more wired or wireless networks Interface 750, one or more input/output interfaces 758, one or more keyboards 757, and/or, one or one The above operating system 741, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTMEtc..
Server 700 can be used for executing step performed by receiving end in above-mentioned bandwidth determining method.
The embodiment of the invention also provides a kind of bandwidth determining devices, which includes processor and storage Device, at least one instruction is stored in memory, and instruction is loaded by processor and executed to realize that the bandwidth of above-described embodiment is true Determine operation performed in method.
The embodiment of the invention also provides a kind of computer readable storage medium, stored in the computer readable storage medium Have at least one instruction, at least a Duan Chengxu, code set or instruction set, the instruction, the program, the code set or the instruction set by Processor loads and executes operation performed in the operation target setting method to realize above-described embodiment.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of bandwidth determining method, which is characterized in that be applied in receiving end, which comprises
Receive the first data packet and the second data packet;
When determining that first data packet and second data packet are continuously transmitted by transmitting terminal, second data packet is calculated Poor with the receiving time of first data packet, the receiving time difference is for indicating that the receiving end receives second data Duration spent by the process of packet;
The quotient between the data length of second data packet and receiving time difference is calculated, as prediction bandwidth;
According to calculated prediction bandwidth, the bandwidth between the transmitting terminal and the receiving end is determined.
2. the method according to claim 1, wherein including sequence in each data packet that the transmitting terminal is sent Mark, the sequence identification is used to indicate the transmission of data packet sequentially, after the first data packet of the reception and the second data packet, The method also includes:
When the sequence identification for determining second data packet is next sequence identification of the sequence identification of first data packet When, determine that first data packet and second data packet are continuously transmitted by the transmitting terminal.
3. determining the hair the method according to claim 1, wherein described according to calculated prediction bandwidth Bandwidth between sending end and the receiving end, comprising:
Obtain calculated multiple prediction bandwidth, the multiple prediction bandwidth respectively according in preset duration by the transmitting terminal The data packet continuously transmitted is calculated;
The statistical value for calculating the multiple prediction bandwidth, as the bandwidth between the transmitting terminal and the receiving end.
4. method according to claim 1-3, which is characterized in that the determination transmitting terminal and the reception After bandwidth between end, the method also includes:
The bandwidth is sent to the transmitting terminal, by the code rate of transmitting terminal setting and the bandwidth match, according to setting Code rate sends data to the receiving end.
5. a kind of bandwidth determining device, which is characterized in that described device includes:
Receiving module, for receiving the first data packet and the second data packet;
Time difference computing module determines that first data packet and second data packet are continuously transmitted by transmitting terminal for working as When, the receiving time for calculating second data packet and first data packet is poor, and the receiving time difference is for indicating described Receiving end receives duration spent by the process of second data packet;
Bandwidth calculation module is made for calculating the quotient between the data length of second data packet and receiving time difference To predict bandwidth;
The bandwidth calculation module, for determining between the transmitting terminal and the receiving end according to calculated prediction bandwidth Bandwidth.
6. device according to claim 5, which is characterized in that include sequence in each data packet that the transmitting terminal is sent Mark, the sequence identification are used to indicate the transmission sequence of data packet, described device further include:
Determining module, for being under the sequence identification of first data packet when the sequence identification for determining second data packet When one sequence identification, determine that first data packet and second data packet are continuously transmitted by the transmitting terminal.
7. device according to claim 5, which is characterized in that the bandwidth calculation module, comprising:
Predict bandwidth unit, for obtaining calculated multiple prediction bandwidth, the multiple prediction bandwidth is respectively according to default It is calculated in duration by the data packet that the transmitting terminal continuously transmits;
Statistic unit, for calculating the statistical value of the multiple prediction bandwidth, as between the transmitting terminal and the receiving end Bandwidth.
8. according to the described in any item devices of claim 5-7, which is characterized in that described device further include:
Sending module, for sending the bandwidth to the transmitting terminal, by the code of transmitting terminal setting and the bandwidth match Rate sends data to the receiving end according to the code rate of setting.
9. a kind of bandwidth determining device, which is characterized in that described device includes processor and memory, is stored in the memory There is at least one instruction, described instruction is loaded by the processor and executed to realize such as Claims 1-4 any claim Performed operation in the bandwidth determining method.
10. a kind of computer readable storage medium, which is characterized in that be stored at least one in the computer readable storage medium Item instruction, described instruction is as processor loads and executes to realize that the bandwidth as described in Claims 1-4 any claim is true Determine operation performed in method.
CN201810549733.9A 2017-12-29 2018-05-31 Bandwidth determining method, device and storage medium Pending CN109995609A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2017114842441 2017-12-29
CN201711484244 2017-12-29

Publications (1)

Publication Number Publication Date
CN109995609A true CN109995609A (en) 2019-07-09

Family

ID=67063012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810549733.9A Pending CN109995609A (en) 2017-12-29 2018-05-31 Bandwidth determining method, device and storage medium

Country Status (2)

Country Link
CN (1) CN109995609A (en)
WO (1) WO2019128430A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113141277A (en) * 2021-05-19 2021-07-20 北京安信智通科技有限公司 Method and device for determining transmission bandwidth and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040184449A1 (en) * 2003-03-19 2004-09-23 Samsung Electronics Co., Ltd. Apparatus and method for queuing delay-sensitive packets for transmission on heterogenous links
CN101018161A (en) * 2006-09-08 2007-08-15 中山大学 A link, path, and network availability bandwidth measurement method
US7804777B2 (en) * 2006-10-31 2010-09-28 Cisco Technology, Inc. Upstream data rate estimation
CN101964727A (en) * 2009-07-22 2011-02-02 中兴通讯股份有限公司 Method and device for measuring available bandwidth by using mixed messages
US7948906B1 (en) * 1999-02-08 2011-05-24 Realnetworks, Inc. System and method for determining network conditions
CN102711172A (en) * 2012-05-25 2012-10-03 浙江工业大学 Modified TCPW congestion control method in wireless network
CN106330600A (en) * 2016-08-18 2017-01-11 成都网优力软件有限公司 Method for obtaining available bandwidth of network with low traffic
CN106656679A (en) * 2017-02-08 2017-05-10 北京邮电大学 Available bandwidth measurement method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7948906B1 (en) * 1999-02-08 2011-05-24 Realnetworks, Inc. System and method for determining network conditions
US20040184449A1 (en) * 2003-03-19 2004-09-23 Samsung Electronics Co., Ltd. Apparatus and method for queuing delay-sensitive packets for transmission on heterogenous links
CN101018161A (en) * 2006-09-08 2007-08-15 中山大学 A link, path, and network availability bandwidth measurement method
US7804777B2 (en) * 2006-10-31 2010-09-28 Cisco Technology, Inc. Upstream data rate estimation
CN101964727A (en) * 2009-07-22 2011-02-02 中兴通讯股份有限公司 Method and device for measuring available bandwidth by using mixed messages
CN102711172A (en) * 2012-05-25 2012-10-03 浙江工业大学 Modified TCPW congestion control method in wireless network
CN106330600A (en) * 2016-08-18 2017-01-11 成都网优力软件有限公司 Method for obtaining available bandwidth of network with low traffic
CN106656679A (en) * 2017-02-08 2017-05-10 北京邮电大学 Available bandwidth measurement method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杜继亮,吉长东,孙江: "《测量学》", 31 July 2015, 吉林大学出版社 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113141277A (en) * 2021-05-19 2021-07-20 北京安信智通科技有限公司 Method and device for determining transmission bandwidth and storage medium

Also Published As

Publication number Publication date
WO2019128430A1 (en) 2019-07-04

Similar Documents

Publication Publication Date Title
CN110213636B (en) Method and device for generating video frame of online video, storage medium and equipment
CN107959860A (en) The method and apparatus for showing live list
CN110278464A (en) The method and apparatus for showing list
EP4009187A1 (en) Block processing method and apparatus, and data query method and apparatus based on blockchain
CN109166150A (en) Obtain the method, apparatus storage medium of pose
CN109348247A (en) Determine the method, apparatus and storage medium of audio and video playing timestamp
CN109951398A (en) Data transmission method for uplink, device and computer equipment
CN109327608A (en) Method, terminal, server and the system that song is shared
CN110288689A (en) The method and apparatus that electronic map is rendered
CN108093307A (en) Obtain the method and system of played file
CN109194972A (en) Live stream acquisition methods, device, computer equipment and storage medium
CN110378525A (en) Plan of travel determines method, apparatus, equipment and storage medium
CN109697113A (en) Request method, apparatus, equipment and the readable storage medium storing program for executing retried
CN110121084A (en) The methods, devices and systems of port switching
CN109522146A (en) The method, apparatus and storage medium of abnormality test are carried out to client
CN109102811B (en) Audio fingerprint generation method and device and storage medium
CN109089137A (en) Caton detection method and device
CN109726064A (en) Method, apparatus, system and the storage medium of simulant-client misoperation
CN109889858A (en) Information processing method, device and the computer readable storage medium of virtual objects
CN109600301A (en) Message treatment method and device
CN109995609A (en) Bandwidth determining method, device and storage medium
CN108401194A (en) Timestamp determines method, apparatus and computer readable storage medium
CN107888975A (en) Video broadcasting method, device and storage medium
CN107943484A (en) The method and apparatus for performing business function
CN110152309B (en) Voice communication method, device, electronic equipment and storage medium

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

Application publication date: 20190709

RJ01 Rejection of invention patent application after publication