Keywords

1 Introduction

Mobile market is gradually growing in the size, and the ratio of the mobile data traffic occupied by the video is 55 % in 2012. The part occupied by the video traffic is expected that more than 69 % in 2019 [1]. Using mobile is more comfortable than other equipment (laptop or desktop) to use consumer goods. This causes the result of be offered the real-time service. The video streaming service is a type of real-time service and there are two types of video streaming services which are Video on Demand (VOD) Streaming Service and Real-time Streaming Service. In case of VOD streaming, the server has various media files and sends the requested media file to the client. Another case which is the real-time streaming service, the server does not have whole of video file but has fragments of the filming video. Both the VOD service and the real-time streaming service must have buffer for smooth video playback, because of the network delay which is caused by various factors. To create a robust system in delay, the de-jittering buffer must be existed. Presence of the buffer causes the buffering which induce that the video played after a period time as well as the larger the buffer, the longer the delay to be axiomatic. Therefore, we think that it is important to measure the accurate available bitrate to decrease the buffering delay. We measure Maximum Available Bitrate (MAB) of UDP and TCP which one can be the main transport layer protocol to transfer streaming video data as well as analyze which protocol is more suitable for the estimate available bitrate.

2 Related Work

In this chapter, we present features of UDP and TCP as well as the estimate available bitrate algorithm to improve End-to-End QoS.

2.1 Features of UDP and TCP

UDP is the best-effort protocol which does not guarantee reliable transmitting. It causes the need to add Forward Error Correction (FEC) code. TCP is the connection-oriented protocol which guarantees reliable transmitting with congestion and flow control. For this reason, TCP is a reliable protocol than the UDP. Data rate, on the other hand, is higher UDP than TCP since UDP does not control the rate for reliability. Because of the trade-off in reliability and data rate, the service provider is used to select the protocol suitable for the service that it provides. To transmit video stream to contents consumer, UDP and TCP are both commonly used in recent years.

2.2 Estimate Available Bandwidth

In this section, we briefly describe the existing estimate available bitrate algorithm.

Pathload uses a one-way delay of periodic packet stream and observes that the stream rate is how much increase as compared to the available bitrate [2]. It can apply the amount of bandwidth similar with the estimate available bandwidth to the adaptive application, there is a small disadvantage to large time convergence.

pathChirp is the method using the concept of “self-induced congestion”. Exponentially time spaced packets are used and available bandwidth is estimated by using that the amount of delay is decreased or increased [3].

TOPP use the analysis method by segmented regression. The well-separated probe packet pair is used, the available bitrate is measured using a delay, regardless of the network condition [4].

pathQuick2 utilizes the probe slope model, including the concept of the probe rate model [6]. PSM-based method measures the effective UDP throughput quickly, and estimates the available bandwidth at the same time. Each packet in the packet train is transmitted in the same time interval, pathQuick2 uses a delay of time interval [5].

[7] presumes available bitrate using the one-way delay distribution. The Bayesian mechanism is proposed to model bandwidth variations. The algorithm can estimate the available bandwidth very fast, because it does not use the RTT, but uses the one-way delay which is receiver-based mechanism. However, service provider sets some parameters to estimate the available bandwidth, but those parameters are not shown on.

3 Experiment Method and Mathematical Model

In reality, the change of the MAB is irregular and difficult to predict due to various factors. The irregular characteristics make it difficult to adapt streaming service application to the current channel, which immediately appears to the degradation of QoS and QoE. In this chapter, we propose some parameters which are the criterion that which one is more appropriate between the UDP and the TCP, also those are the value of applicability on adaptive streaming service.

3.1 Measure Method

To analyze network statement, one PC sender and one laptop receiver were used. Laptop computer connect Internet using LTE network by the tethering using mobile phone. Sender transmits more than 1 Mbytes using 10 kbytes packet over best-effort on UDP. If receiver takes 1 Mbytes size data, it sends a signal which uses flag and measuring RTT to server. Sender receives this signal and sends 1 Mbytes segment immediately. Repeating this simple test for a period of time, MAB is measured. The method is as follows Fig. 1.

Fig. 1.
figure 1

Experimental method

  1. 1.

    UDP MAB

    Receiver measures UDP MAB using the getting started time (\( T_{1st} ) \) and the finishing received time (\( T_{last} \)). The equation is as follows (1).

    $$ MAB_{UDP} \left( t \right) = \frac{{1Mbyte \times 8\left( {bit/byte} \right)}}{{(T_{last\_i} - T_{1st\_i} ) \times 10^{ - 3} s}}\left( {Mbps} \right) $$
    (1)

    Also, \( T_{last\_i} - T_{1st\_i} \) is defined as the inter arrival time \( J_{i\_UDP} \).

  2. 2.

    TCP MAB

    Receiver measures TCP MAB using the getting started time (\( T_{T1st} \)) and the finishing received time (\( T_{Tlast} \)). The equation is as follows (2).

    $$ MAB_{TCP} \left( t \right) = \varvec{ }\frac{{SegmentSize\left( {byte} \right) \times 8\left( {bit/byte} \right)}}{{\left( {T_{Tlast\_i} - T_{T1st\_i} } \right) \times 10^{ - 3} s}}\left( {Mbps} \right) $$
    (2)

    Also, \( T_{Tlast\_i} - T_{{{\text{T}}1st\_i}} \) is defined as the inter arrival time \( J_{i\_TCP} \).

  3. 3.

    Markov model

    The Markov model is a valuable model that can be used to “predict the future through the past”. In this paper, bitrate is how sustainable and changeable between a good environment and a bad environment. The threshold of two probability variable is 14 \( Mbps \) for UDP and 9 \( Mbps \) for TCP. Value to be obtained through the model are shown in the following (3) ~ (4).

    $$ P_{g \to b} = \frac{{P_{gb} }}{{P_{gg} + P_{gb} }} $$
    (3)
    $$ P_{b \to g} = \frac{{P_{bg} }}{{P_{bg} + P_{bb} }} $$
    (4)

    \( S.Time \) is a formula on how much each state is maintained. The equations are shown in the following (5) ~ (6).

    $$ S.Time_{gb} = \frac{1}{{P_{g \to b} }} \times PacketTimeInterval \left( {sec} \right) $$
    (5)
    $$ S.Time_{bg} = \frac{1}{{P_{b \to g} }} \times PacketTimeInterval \left( {sec} \right) $$
    (6)

    UDP and TCP is interpolated every 500 ms to ease the calculations, because each experiments run at random time space. So, \( PacketTimeInterval \) is 0.5 s in this paper.

  4. 4.

    Second Order Differential

    Second-order differential of bitrate means instantaneous rate of change of bitrate, using equations shown in (7) ~ (8).

    $$ f_{MAB}^{{\prime }} \left( {t_{k} } \right) = \frac{{f_{MAB} \left( {t_{i + 1} } \right) - f_{MAB} \left( {t_{i} } \right)}}{{t_{i + 1} - t_{i} }}\quad {\text{when}},\,t_{k} = \frac{{t_{i + 1} + t_{i} }}{2} $$
    (7)
    $$ f_{MAB}^{{\prime \prime }} \left( {t_{l} } \right) = \frac{{f_{MAB}^{{\prime }} \left( {t_{k + 1} } \right) - f_{MAB}^{{\prime }} \left( {t_{k} } \right)}}{{t_{k + 1} - t_{k} }}\quad {\text{when}},\,t_{l} = \frac{{t_{k + 1} + t_{k} }}{2} $$
    (8)
  5. 5.

    Correlation

    If the random variable has more than two, the joint PDF can be used to perform various calculations. Among them, covariance and correlation coefficient is used to learn correlation between random variable X and Y. The formula for covariance is the same as (9).

    $$ \sigma_{XY} = Cov\left( {X, Y} \right) = E\left[ {\left( {X - \mu_{X} } \right)\left( {Y - \mu_{Y} } \right)} \right] = E\left( {XY} \right) - \mu_{X} \mu_{Y} $$
    (9)

    \( \mu_{X} \) and \( \mu_{Y} \) is \( E\left( X \right) \) and \( E\left( Y \right) \), the correlation coefficient through covariance is defined by the following (10).

    $$ \rho = \frac{{Cov\left( {X, Y} \right)}}{{\sqrt {Var\left( X \right)Var\left( Y \right)} }} $$
    (10)

    \( \uprho \) has a value between -1 and 1, if \( \uprho = 0 \), X and Y is independent. In this paper, we analyze correlation using MAB and RTT.

4 Comparison Between UDP and TCP

4.1 Maximum Available Bitrate

This experiment carried out aboard the bus around Gangnam of Seoul, Korea as shown in Fig. 2. It measured during about 1000 s. The result of experiment is represented in Fig. 3. The blue line is the MAB of UDP and the red spotted line is the MAB of TCP. Generally, the MAB of TCP is higher than the MAB of UDP. In addition to, we can confirm that the variation of TCP is larger than the UDP. If the MAB is low, the client cannot receive high quality video. Large variance means that quality of service is often changed. It force to use larger buffer, it leads to longer delay that the time was taken to play video. It is not desirable for real-time streaming service, because real-time streaming service is sensitive for delay. Especially, when offered service is sports, client was spoiled crucial moments, because of delay.

Fig. 2.
figure 2

Gangnam, Seoul, Korea, the map which is place of experiment

Fig. 3.
figure 3

Maximum available bitrate of UDP and TCP

Additionally, the loss packet and the bitrate are closely related. About 20,000 of the UDP packets were sent and only 5 packets were lost. The loss caused by the congestion and the fading is substantially not occur, this part is ignored in this paper.

How long network conditions maintain is shown in Table 1. At good statement, UDP are kept during 33.93 s, TCP are maintained just 1.3 s. However, at bad statement, UDP are kept during 9.3 s, TCP are maintained 6.23 s. It is the best that good statements are maintained longer and bad statements are maintained shorter. But, the threshold of UDP is 14 Mbps is higher than the one of TCP 9 Mbps.

Table 1. Sustainment Time of each condition

4.2 Distribution of \( \varvec{J}_{\varvec{i}} \)

Measured \( J_{i} \) fits to the Erlang distribution. In general, \( J_{i} \) of UDP is smaller than TCP, because UDP has higher MAB. \( J_{i\_UDP} \) and \( J_{i\_TCP} \) are both right-skewed, but \( J_{i\_TCP} \) has heavy-tail. The heavy-tail means that probabilities were not concentrated on average, and were spread both sides. This characteristic makes hard to estimate MAB, and is represented in Fig. 4. In this graph, inter arrival times of UDP are concentrated from 380 ms to 526 ms, but inter arrival times of TCP don’t have appropriately concentrated point. We show that \( J_{i\_UDP} \) and \( J_{i\_TCP} \) are fit \( {\text{k}}_{UDP} = 3,\upmu_{UDP} = 25 \) Erlang distribution and \( {\text{k}}_{TCP} = 3,\upmu_{TCP} = 80 \) Erlang distribution. Consequently, the UDP protocol is suitable for the adaptive streaming, because of easier estimation.

Fig. 4.
figure 4

A PDF of the inter arrival time

4.3 Instantaneous Change of Rate

If the MAB maintains steady slope, it means that channel condition is gradually bad or good. Especially the slope is kept zero, it means that channel condition does not change. So when the slope is retained some values, estimating MAB using previous values is not difficult. However, when the slope is changeable, estimating MAB is more difficult. Then estimation error probability is increase.

In this section, we propose second order differential of MAB for analysis which is easier to estimate MAB TCP or UDP. By using measured MAB, we draw second order differential of MAB graph at Fig. 5. for analysis

Fig. 5.
figure 5

Second order differential of MAB

For easy to view, the sum of absolute second order differentials at interval 100 s are represented in Table 2.

Table 2. Second order differential of each time section

We can acquire that the sum of absolute second order differentials of UDP is smaller than one of TCP, except for TIME Section from 300 ms to 400 ms, also total the sum of UDP is smaller too.

4.4 Correlation

Before analyzing correlation, Fig. 6. is distribution of RTT with fitting graph following the Erlang distribution (\( k = 3, \mu = 9 \)). Most of value is not more than 200 ms.

Fig. 6.
figure 6

A PDF of Round Trip Time following the Erlang distribution

We analyze correlation between the MAB and the RTT. First of all, covariance \( {\text{Cov}}\left( {{\text{MAB}}_{UDP} ,{\text{MAB}}_{TCP} } \right) \) and correlation \( \uprho_{{MAB_{UDP} ,MAB_{TCP} }} \) are calculated by the equation in correlation part of Sect. 3.1 (9) and (10).

$$ {\text{Cov}}\left( {{\text{MAB}}_{UDP} ,{\text{MAB}}_{TCP} } \right) = 6.062,\uprho_{{MAB_{UDP} ,MAB_{TCP} }} = 0.29 $$

And correlation values between RTT and TCP as well as UDP are calculated below.

$$ {\text{Cov}}\left( {MAB_{TCP} ,{\text{RTT}}} \right) = 5.254,\rho_{{MAB_{TCP} , {\text{RTT}}}} = 0.009 $$
$$ {\text{Cov}}\left( {MAB_{UDP} , {\text{RTT}}} \right) = - 30.026,\rho_{{MAB_{UDP} , {\text{RTT}}}} = - 0.055 $$

We expected that the MAB has correlation with the RTTs, but correlations almost zero. So we can conclude the MAB is scarcely correlated with the RTT.

5 Conclusion

In this paper, we compare end-to-end performance of the UDP and the TCP, by using LTE, which is the most commonly used. The UDP has four advantages in comparison with TCP. First, the MAB of UDP is higher than the one of TCP, so the UDP can transmit higher quality video. Second, the MAB estimation is easy at the UDP, because the 2nd order of differential of the UDP is smaller than the TCP. Third, maintenance of state at the UDP is longer than the TCP. It means that the video quality of UDP is maintained. It is comfortable to watch for user. Last, Distribution of the MAB UDP is right-skewed.

In conclusion, above advantages represent that UDP is suitable protocol for real-time streaming service. In future works, we will design the MAB estimation algorithm, and using the algorithm with Forward Error Correction (FEC), confirm the UDP-based streaming service is better than TCP.