Scalable Transmission of AdaptiveMultimedia based on P2P (STAMP)

Project funded by National ICT R&D Fund, Ministry of Information Technology

With a vision "To transform Pakistan’s economy into knowledge based economy by promoting efficient, sustainable and effective ICT initiatives through synergic development of industrial and academic resources."


With the huge number of internet users these days, live TV and video delivery over the internet is becoming more and more popular. Internet based video delivery systems are traditionally unicast in nature. In these systems each viewer connects directly to the video server (source) and requests transmission of the video. These systems thus put a great burden on video servers. In addition, due to the nature of the internet, packets are regularly lost which results in delays and jitters in the playback of the video at the client side. This directly impacts the quality of experience of the viewer. Therefore, the real time transmission of video to the viewers is a challenging task. To overcome the drawbacks of the unicast systems, P2P systems have gained wide attention recently

In P2P based video streaming, different peers cooperate with each other to receive the video as depicted in Figure 2b-1. The contributing peers form an overlay topology for content distribution. The video source chops the video contents into small size chunks, which are then injected into the network and are distributed using underlying streaming architecture. The objective of P2P based video streaming is the delivery of video contents to all the participating peers in a timely manner. As the video being transmitted is live therefore, it has more stringent delay requirements then normal file sharing or video on demand application

P2P streaming networks do not depend on dedicated network infrastructure, which facilitates its rapid and cost effective deployment. The burden on the video server can be reduced drastically in P2P systems by exploiting the computational resources and upload bandwidth of the participating peers. In this sort of approach each peer exchanges the video contents it has received with its neighbors, thereby ensuring that each peer receives the video. Therefore, the P2P streaming approach is able to cope with the need for high scalability over heterogeneous networks and presents itself as an attractive candidate for mass scale video content distribution over the internet.


The recent convergence of the communication and computing industries has resulted in the development of various consumer electronic devices, such as smart phones, smart TVs, gaming consoles and tablets. With the emergence of these new generations of devices, video playback and its quality has become key driving factor leading to their development. The transformation of these devices with various functions, such as video conferencing, video gaming, social networking and video continent distribution has resulted in the creation of heterogeneous networking environment, where different users use different type of devices to communicate with each other.

Live video distribution in the developed countries over the internet is already a successful business. This business is growing day-by- day with the addition of thousands of new viewers. The networking conditions of developed and developing countries are quite different, as the bandwidth available to end users is much lower and the links are often more unreliable. Furthermore, with the acute power shortage faced in Pakistan, the conventional video streaming architectures employed in the developed countries are not robust enough to cope with the highly unreliable and fragile nature of Pakistani internet connections. The combined impact of unreliable internet connections and frequent power outages result in users being regularly forced to leave and rejoin the network. This effect is called peer churning. This results in disconnecting other neighboring users, which are receiving the video through this peer (user). We thus intend to develop a tailor made live video distribution system for Pakistan. The tailor made live video distribution solution will be designed with these factors in mind. The specific features we intend to incorporate include enhanced robustness to peer churning, efficient peer selection and content distribution strategies.

A prime example which highlights the need for development of new architectures for developing countries is the BitMate algorithm. This algorithm has been developed by Prof. Umar Saif and his team for file sharing. It has received numerous national and international accolades for its utility in developing countries [2]. BitMate has been proven to be very successful in developing countries, where it has helped to significantly improve the quality of experience of low bandwidth users. The development of such algorithms which are optimized w.r.t the networking conditions of developing countries, result in considerably superior performance compared to the solutions optimized w.r.t the networking conditions of developed countries. Therefore, it is necessary that video streaming solutions optimized w.r.t the networking conditions of the developing countries be also developed.

As the existing streaming solutions that have been deployed so far are proprietary in nature, they cannot be modified w.r.t the networking conditions of Pakistan. This also hampers research and development activities geared towards making enhancements to these solutions. We thus propose the development STAMP, an open source modular P2P streaming system optimized for the networking conditions of Pakistan. STAMP will have inbuilt support scalability and heterogeneity. Scalability in the context of STAMP refers to both scalability in terms of support for accommodating any number of users on the fly and also scalability in terms of support for the simultaneous transmission of different video quality levels. The provision for the simultaneous transmission of multiple video quality levels has not been investigated so far. This support is specially needed in Pakistan where different users can have substantially different bandwidths available. Therefore, if a user is not able to stream a high quality version of the video due to bandwidth constraints, he is still able to download a low quality version of the same video.

As the software developed will be a well-documented open source modular system, therefore it will facilitate both academia and industry professionals for making enhancements, research contributions and rapid prototyping for commercial release. After the commercial release of this software, the media industry and TV channels of Pakistan will be able to utilize it for their large scale content distribution. Therefore, the intended beneficiaries of STAMP are researchers, academia, software industry, media industry and Pakistani citizens.


  1. To develop an open source P2P based scalable multimedia streaming system that is optimized for the diverse network conditions of heterogeneous networking environment of the developing countries such as Pakistan. This will also ensure best possible QoS to the end user depending on the amount of bandwidth available.
  2. To analyze the received video quality at the different peers by using a variety of objective and subjective quality estimation metrics such as PSNR, SSIM and MOS.
  3. To develop novel video quality estimation metric by employing the analysis obtained from objective A1.2. Although there are different subjective quality estimation metrics, as outlined in A1.2, but they are not specifically designed for video quality estimation using P2P. Using these metrics the quality of the video is evaluated by comparing it with the reference video stream using some specific evaluation procedure such as PSNR, MOS etc. In such procedure the reference video should correspond frame by frame to the received video for comparison. However, in case of P2P streaming chunk/packet losses are possible. Therefore, the received video will not exactly correspond to the reference transmitted video. For this reason we need to track for the lost video chunks/ frames and we also need some mechanism that what criterion of quality evaluation should be used for the lost frames. A simple solution can be to replicate the previous frame in place of the lost frame and then use it for comparison in the reference video sequence. Another sophisticated approach can be by utilizing “Bidirectional Motion Compensated Temporal Interpolation with Overlapping” to conceal the lost frames. We will like to mention that we already have performed some preliminary study in this regard and have also designed a procedure referred to as “Frame tagging concept” for the quality evaluation of P2P streaming video and is already submitted for publication.
  4. To research the impact of different chunkization strategies on the perceived visual quality (QoE).
  5. To research the impact of various scheduling strategies keeping in view their impact on perceived visual quality of the end users.
  6. To research the impact of various scheduling strategies keeping in view their effect on underlying network conditions.
  7. To analyze the impact of P2P streaming architecture on peer churning, keeping in view the fragile nature of internet connections in Pakistan, where peers are continually being forced to leave and rejoin the network. This problem is more adverse due to the increased load shedding in Pakistan.
  8. To investigate the impact of transmission protocol such as TCP and UDP on the reliable transmission of data chunks. Both TCP and UDP have advantages and disadvantages with reference to the reliable transmission of P2P streaming chunks, which needs to be studied in- depth to outline their pros and cons.
  9. To analyze the impact of as application layer forward error correction (AP-FEC) in-terms of performance.
  10. To deal with the security challenge, we intend to utilize CRC checks in order to confirm the validity of video chunks before decoding and forwarding it to the other peers.
  11. In order to enhance the user visual QoE we intend to research on minimizing video chunk transmission delays.
  12. To develop enhanced error concealment techniques to improve the QoE. This is necessitated due to chunk losses.
  13. To benchmark our developed system against exiting P2P live video streaming system such as BitTorrent Live.


The major academic objectives of this project are as follows:

  1. To develop a working testbed suitable for the performance evaluation of P2P based multimedia streaming applications.
  2. To develop a Multimedia Research Lab within the University of Engineering and Technology, Peshawar.
  3. To enhance the teaching quality of ICT related subjects by utilizing the research and development experience gained after the successful completion of this project.
  4. To develop a comprehensive user guide and documentation of the developed streaming system, this will assist other users and researchers in understanding the system and how to make further enhancements.


To develop a modular open source prototype for P2P based video streaming system, which will help software industry in the quick development and deployment of their product.


  1. To produce highly trained engineers who are skilled in the areas of multimedia, communications and software development.
  2. To promote research in the areas of multimedia and communications within Pakistan.
  3. To provide undergraduate and postgraduate students the opportunity to gain training and research experience by undertaking R&D projects within the proposed project framework.

Dropbox Link to STAMP SOURCE


Dr.Nasru Minallah
Assistant Professor
Department of Computer Systems Engineering
University of Engineering and Technology Peshawar
Contact: +92-3452757576