Rocky K. C. Chang
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Research Subjects
Rocky K. C. Chang has a total of 54 co-authors. Here are the top co-authors by number of shared publications:
- Xiapu Luo
The Hong Kong Polytechnic University, Hong Kong, China
20 shared publications Weichao Li
The Hong Kong Polytechnic University, Hong Kong, Hong Kong
11 shared publicationsEdmond W. W. Chan
Huawei Research, China, and The Hong Kong Polytechnic University
8 shared publicationsRicky K. P. Mok
Department of Computing, Hong Kong Polytechnic University, Hong Kong, China
6 shared publicationsPeng Zhou
School of Mechatronic Engineering and Automation, Shanghai University, Shanghai, China
5 shared publicationsDaoyuan Wu
Department of Computing The Hong Kong Polytechnic University
4 shared publications
Latest Publications
- Open Access
- 12 June 2018
- Published by Association for Computing Machinery (ACM)
- p. 284-293
Enhancing the experience of multiplayer shooter games via advanced lag compensation
- 12 June 2018
- Published by Association for Computing Machinery (ACM)
- p. 284-293
Open AccessEnhancing the experience of multiplayer shooter games via advanced lag compensation
- Open Access
- 10 August 2017
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Mobile Computing
- Vol. 17 (3) , 717-732
Toward Accurate Network Delay Measurement on Android Phones
Measuring and understanding the performance of mobile networks is becoming very important for end users and operators. Despite the availability of many measurement apps, their measurement accuracy has not received sufficient scrutiny. In this paper, we appraise the accuracy of smartphone-based network performance measurement using the Android platform and the network round-trip time (RTT) as the metric. We show that two of the most popular measurement apps-Ookla Speedtest and MobiPerf-have their RTT measurements inflated. We build three test apps for three common measurement methods and evaluate them in a testbed. We overcome the main challenge of obtaining a complete trace of packets and their timestamps using multiple sniffers and frame-based synchronization. Our multi-layer analysis reveals that the delay inflation can be introduced both in the user space and kernel space. The long path of subfunction invocations accounts for the majority of the delay overhead in the Android runtime (both Dalvik VM and ART), and the sleeping functions in the drivers are the major source of the delay overhead between the kernel and physical layer. We propose and implement a native measurement app to mitigate the delay overhead in the Android runtime, and the resulted delay inflation in the user space can be kept under 1.5 ms for almost all cases.
- 10 August 2017
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Mobile Computing
- Vol. 17 (3) , 717-732
Open AccessToward Accurate Network Delay Measurement on Android Phones
Measuring and understanding the performance of mobile networks is becoming very important for end users and operators. Despite the availability of many measurement apps, their measurement accuracy has not received sufficient scrutiny. In this paper, we appraise the accuracy of smartphone-based network performance measurement using the Android platform and the network round-trip time (RTT) as the metric. We show that two of the most popular measurement apps-Ookla Speedtest and MobiPerf-have their RTT measurements inflated. We build three test apps for three common measurement methods and evaluate them in a testbed. We overcome the main challenge of obtaining a complete trace of packets and their timestamps using multiple sniffers and frame-based synchronization. Our multi-layer analysis reveals that the delay inflation can be introduced both in the user space and kernel space. The long path of subfunction invocations accounts for the majority of the delay overhead in the Android runtime (both Dalvik VM and ART), and the sleeping functions in the drivers are the major source of the delay overhead between the kernel and physical layer. We propose and implement a native measurement app to mitigate the delay overhead in the Android runtime, and the resulted delay inflation in the user space can be kept under 1.5 ms for almost all cases.
- 1 June 2017
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1-6
On "shot around a corner" in first-person shooter games
Lag compensation is widely implemented in shooter games to mitigate the impact of network latency. “Shot around a corner” is an inconsistency introduced by lag compensation that still exists in many recent titles. In this paper, we investigate the influence of network latency and movement speeds on the rollback distances, and how they in turn affect the perceived “shot around a corner” frequencies and fairness. We find that a 250ms limit on lag compensation is reasonable for a movement speed of 4m/s and that experienced FPS players are aware of how frequently they are shot around a corner. We also suggest future experiments on “shot around a corner” to use different game modes and inject latency only to a subset of players.
- 1 June 2017
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1-6
On "shot around a corner" in first-person shooter games
Lag compensation is widely implemented in shooter games to mitigate the impact of network latency. “Shot around a corner” is an inconsistency introduced by lag compensation that still exists in many recent titles. In this paper, we investigate the influence of network latency and movement speeds on the rollback distances, and how they in turn affect the perceived “shot around a corner” frequencies and fairness. We find that a 250ms limit on lag compensation is reasonable for a movement speed of 4m/s and that experienced FPS players are aware of how frequently they are shot around a corner. We also suggest future experiments on “shot around a corner” to use different game modes and inject latency only to a subset of players.
- Open Access
Cross-Platform Analysis of Indirect File Leaks in Android and iOS Applications
Today, much of our sensitive information is stored inside mobile applications (apps), such as the browsing histories and chatting logs. To safeguard these privacy files, modern mobile systems, notably Android and iOS, use sandboxes to isolate apps' file zones from one another. However, we show in this paper that these private files can still be leaked by indirectly exploiting components that are trusted by the victim apps. In particular, we devise new indirect file leak (IFL) attacks that exploit browser interfaces, command interpreters, and embedded app servers to leak data from very popular apps, such as Evernote and QQ. Unlike the previous attacks, we demonstrate that these IFLs can affect both Android and iOS. Moreover, our IFL methods allow an adversary to launch the attacks remotely, without implanting malicious apps in victim's smartphones. We finally compare the impacts of four different types of IFL attacks on Android and iOS, and propose several mitigation methods.
Open AccessCross-Platform Analysis of Indirect File Leaks in Android and iOS Applications
Today, much of our sensitive information is stored inside mobile applications (apps), such as the browsing histories and chatting logs. To safeguard these privacy files, modern mobile systems, notably Android and iOS, use sandboxes to isolate apps' file zones from one another. However, we show in this paper that these private files can still be leaked by indirectly exploiting components that are trusted by the victim apps. In particular, we devise new indirect file leak (IFL) attacks that exploit browser interfaces, command interpreters, and embedded app servers to leak data from very popular apps, such as Evernote and QQ. Unlike the previous attacks, we demonstrate that these IFLs can affect both Android and iOS. Moreover, our IFL methods allow an adversary to launch the attacks remotely, without implanting malicious apps in victim's smartphones. We finally compare the impacts of four different types of IFL attacks on Android and iOS, and propose several mitigation methods.
- Open Access
- 6 December 2016
- Published by Association for Computing Machinery (ACM)
- p. 497-504
Demystifying and Puncturing the Inflated Delay in Smartphone-based WiFi Network Measurement
Using network measurement apps has become a very effective approach to crowdsourcing WiFi network performance data. However, these apps usually measure the user-level performance metrics instead of the network-level performance which is important for diagnosing performance problems. In this paper we report for the first time that a major source of measurement noises comes from the periodical SDIO (Secure Digital Input Output) bus sleep inside the phone. The additional latency introduced by SDIO and Power Saving Mode can inflate and unstablize network delay measurement significantly. We carefully design and implement a scheme to wake up the phone for delay measurement by sending just enough warm-up and background traffic. Our evaluation results show that the overall median delay overheads can be kept within 3ms, regardless of the actual network delay.
- 6 December 2016
- Published by Association for Computing Machinery (ACM)
- p. 497-504
Open AccessDemystifying and Puncturing the Inflated Delay in Smartphone-based WiFi Network Measurement
Using network measurement apps has become a very effective approach to crowdsourcing WiFi network performance data. However, these apps usually measure the user-level performance metrics instead of the network-level performance which is important for diagnosing performance problems. In this paper we report for the first time that a major source of measurement noises comes from the periodical SDIO (Secure Digital Input Output) bus sleep inside the phone. The additional latency introduced by SDIO and Power Saving Mode can inflate and unstablize network delay measurement significantly. We carefully design and implement a scheme to wake up the phone for delay measurement by sending just enough warm-up and background traffic. Our evaluation results show that the overall median delay overheads can be kept within 3ms, regardless of the actual network delay.
- 20 October 2016
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Multimedia
- Vol. 19 (3) , 530-543
Detecting Low-Quality Workers in QoE Crowdtesting: A Worker Behavior-Based Approach
QoE crowdtesting is increasingly popular among researchers to conduct subjective assessments of network services. Experimenters can easily access a huge pool of human subjects through crowdsourcing platforms. Without any supervision, low-quality workers, however, can threaten the reliability of the assessments. One of the approaches in classifying the quality of workers is to analyze their behavior during the experiments, such as mouse cursor trajectory. However, existing works analyze the trajectory coarsely, which cannot fully extract the imbedded information. In this paper, we propose a novel method to detect low-quality workers in QoE crowdtesting by analyzing the worker behavior. Our approach is to construct a predictive model by using supervised learning algorithms. A quality score is computed by applying existing anti-cheating techniques and human inspections to label the workers. We define a set of ten worker behavior metrics, which quantifies different types of worker behavior, including finer-grained cursor trajectory analysis. A multiclass Naïve Bayes classifier is applied to train a model to predict the quality of workers from the metrics. We have conducted video QoE assessments on Amazon Mechanical Turk and CrowdFlower to collect the worker behavior. Our results show that the error rates of the model trained from four metrics are equal or less than 30%. We further find that combining the predictions from the four different 5-point Likert scale rating methods can improve the success rate in detecting low-quality workers to around 80%. Finally, our method is 16.5% and 42.9% better in precision and recall than CrowdMOS.
- 20 October 2016
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Multimedia
- Vol. 19 (3) , 530-543
Detecting Low-Quality Workers in QoE Crowdtesting: A Worker Behavior-Based Approach
QoE crowdtesting is increasingly popular among researchers to conduct subjective assessments of network services. Experimenters can easily access a huge pool of human subjects through crowdsourcing platforms. Without any supervision, low-quality workers, however, can threaten the reliability of the assessments. One of the approaches in classifying the quality of workers is to analyze their behavior during the experiments, such as mouse cursor trajectory. However, existing works analyze the trajectory coarsely, which cannot fully extract the imbedded information. In this paper, we propose a novel method to detect low-quality workers in QoE crowdtesting by analyzing the worker behavior. Our approach is to construct a predictive model by using supervised learning algorithms. A quality score is computed by applying existing anti-cheating techniques and human inspections to label the workers. We define a set of ten worker behavior metrics, which quantifies different types of worker behavior, including finer-grained cursor trajectory analysis. A multiclass Naïve Bayes classifier is applied to train a model to predict the quality of workers from the metrics. We have conducted video QoE assessments on Amazon Mechanical Turk and CrowdFlower to collect the worker behavior. Our results show that the error rates of the model trained from four metrics are equal or less than 30%. We further find that combining the predictions from the four different 5-point Likert scale rating methods can improve the success rate in detecting low-quality workers to around 80%. Finally, our method is 16.5% and 42.9% better in precision and recall than CrowdMOS.
- 17 December 2015
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Dependable and Secure Computing
- Vol. 15 (1) , 98-111
Magic Train: Design of Measurement Methods against Bandwidth Inflation Attacks
Bandwidth measurement is important for many network applications and services, such as peer-to-peer networks, video caching and anonymity services. To win a bandwidth-based competition for some malicious purpose, adversarial Internet hosts may falsely announce a larger network bandwidth. Some preliminary solutions have been proposed to this problem. They can either evade the bandwidth inflation by a consensus view (i.e., opportunistic bandwidth measurements) or detect bandwidth frauds via forgeable tricks (i.e., detection through bandwidth's CDF symmetry). However, smart adversaries can easily remove the forgeable tricks and report an equally larger bandwidth to avoid the consensus analyses. To defend against the smart bandwidth inflation frauds, we design magic train, a new measurement method which combines an unpredictable packet train with estimated round-trip time (RTT) for detection. The inflation behaviors can be detected through highly contradictory bandwidth results calculated using different magic trains or a train's different segments, or large deviation between the estimated RTT and the RTT reported by the train's first packet. Being an uncooperative measurement method, magic train can be easily deployed on the Internet. We have implemented the magic train using RAW socket and LibPcap, and evaluated the implementation in a controlled testbed and the Internet. The results have successfully confirmed the effectiveness of magic train in detecting and preventing smart bandwidth inflation attacks.
- 17 December 2015
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Dependable and Secure Computing
- Vol. 15 (1) , 98-111
Magic Train: Design of Measurement Methods against Bandwidth Inflation Attacks
Bandwidth measurement is important for many network applications and services, such as peer-to-peer networks, video caching and anonymity services. To win a bandwidth-based competition for some malicious purpose, adversarial Internet hosts may falsely announce a larger network bandwidth. Some preliminary solutions have been proposed to this problem. They can either evade the bandwidth inflation by a consensus view (i.e., opportunistic bandwidth measurements) or detect bandwidth frauds via forgeable tricks (i.e., detection through bandwidth's CDF symmetry). However, smart adversaries can easily remove the forgeable tricks and report an equally larger bandwidth to avoid the consensus analyses. To defend against the smart bandwidth inflation frauds, we design magic train, a new measurement method which combines an unpredictable packet train with estimated round-trip time (RTT) for detection. The inflation behaviors can be detected through highly contradictory bandwidth results calculated using different magic trains or a train's different segments, or large deviation between the estimated RTT and the RTT reported by the train's first packet. Being an uncooperative measurement method, magic train can be easily deployed on the Internet. We have implemented the magic train using RAW socket and LibPcap, and evaluated the implementation in a controlled testbed and the Internet. The results have successfully confirmed the effectiveness of magic train in detecting and preventing smart bandwidth inflation attacks.
- 1 December 2015
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1-3
Evaluation of lag-related configurations in first-person shooter games
In multiplayer video games, lag refers to the delay between a player's inputs and the corresponding outputs. A number of lag compensation techniques are often employed together to mitigate the impacts of lag in various ways. These methods, however, sometimes introduce new issues. This paper investigates the impacts of two sources of lag: tick rate and vertical synchronization (V-Sync) and the effectiveness of two common lag compensation methods: lag compensation and interpolation by measuring the player's shooting accuracy in a recent first-person shooter (FPS) game, Counter-Strike: Global Offensive (CS:GO). Our study shows that the lag compensation method and a higher tick rate can increase player performance significantly. However, the study is inconclusive for the interpolation method. The study also shows that V-Sync does not impact player's performance.
- 1 December 2015
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1-3
Evaluation of lag-related configurations in first-person shooter games
In multiplayer video games, lag refers to the delay between a player's inputs and the corresponding outputs. A number of lag compensation techniques are often employed together to mitigate the impacts of lag in various ways. These methods, however, sometimes introduce new issues. This paper investigates the impacts of two sources of lag: tick rate and vertical synchronization (V-Sync) and the effectiveness of two common lag compensation methods: lag compensation and interpolation by measuring the player's shooting accuracy in a recent first-person shooter (FPS) game, Counter-Strike: Global Offensive (CS:GO). Our study shows that the lag compensation method and a higher tick rate can increase player performance significantly. However, the study is inconclusive for the interpolation method. The study also shows that V-Sync does not impact player's performance.
- 6 September 2015
- Published by Oxford University Press (OUP) in The Computer Journal
- Vol. 59 (4) , 522-540
Harvesting File Download Exploits in the Web: A Hacker's View
File download vulnerability, which exposes web servers' local filesystem to the public, is among the most serious security threats in the web. Exploiting this vulnerability will cause disastrous consequences such as, but not limited to, system intrusion, database intrusion and even the leakage of massive confidential documents. Although the file download vulnerability has been known in the literature for a long time, a comprehensive study of its exploitability in the wild is still lacked. In this paper, we survey the landscape of file download vulnerabilities across different countries and domains, and more importantly, examines their exploitability from a hacker's perspective. We have successfully revealed the weak protection of this vulnerability in today's web, as well as confirmed its wide exploitability. To demonstrate the serious consequences, we present two real-world intrusion case studies. One is a system intrusion against a Chinese government website, and the other is a database intrusion targeted to a Chinese industrial service. Our intrusion cases have been confirmed as severe security events by CNCERT (an official security agency in China). At the end, we explore the root cause of this weak protection by analyzing the perils and pitfalls of existing defending solutions, and thereby propose a new enhancement. The basic idea is to deploy a mandatory access control mechanism in the server-side script engine kernel, so as to isolate the files managed by the web server from the local filesystem. We have implemented security-enhanced PHP (i.e. SEPHP), a prototype of our new solution by modifying the source code of PHP5 script engine, and also evaluated the performance overhead induced by SEPHP in a real-world web setting.
- 6 September 2015
- Published by Oxford University Press (OUP) in The Computer Journal
- Vol. 59 (4) , 522-540
Harvesting File Download Exploits in the Web: A Hacker's View
File download vulnerability, which exposes web servers' local filesystem to the public, is among the most serious security threats in the web. Exploiting this vulnerability will cause disastrous consequences such as, but not limited to, system intrusion, database intrusion and even the leakage of massive confidential documents. Although the file download vulnerability has been known in the literature for a long time, a comprehensive study of its exploitability in the wild is still lacked. In this paper, we survey the landscape of file download vulnerabilities across different countries and domains, and more importantly, examines their exploitability from a hacker's perspective. We have successfully revealed the weak protection of this vulnerability in today's web, as well as confirmed its wide exploitability. To demonstrate the serious consequences, we present two real-world intrusion case studies. One is a system intrusion against a Chinese government website, and the other is a database intrusion targeted to a Chinese industrial service. Our intrusion cases have been confirmed as severe security events by CNCERT (an official security agency in China). At the end, we explore the root cause of this weak protection by analyzing the perils and pitfalls of existing defending solutions, and thereby propose a new enhancement. The basic idea is to deploy a mandatory access control mechanism in the server-side script engine kernel, so as to isolate the files managed by the web server from the local filesystem. We have implemented security-enhanced PHP (i.e. SEPHP), a prototype of our new solution by modifying the source code of PHP5 script engine, and also evaluated the performance overhead induced by SEPHP in a real-world web setting.
- Open Access
- 3 August 2015
- Published by European Alliance for Innovation n.o. in EAI Endorsed Transactions on Internet of Things
- Vol. 1 (2) , e1
An automated testbed for profiling the packet send-time accuracy of embedded devices
Embedded devices, such as home routers or single-board computers, are becoming more powerful and affordable. Many of the existing Linux-based network measurement tools can also be run on these devices through cross-compilation. These features provide more incentive for network administrators or researchers to employ them as network measurement probes. Large-scale measurement projects, such as BISMark and RIPE, have already deployed more than hundreds of home routers as vantage points to measure the Internet from the edge.Our previous work showed that these embedded devices have much lower packet send-time accuracy compared to commodity PC. The lower accuracy limits their ability to acquire sound measurement results in high-speed networks. In this poster, we present an automated testbed to systematically benchmark the performance of four popular embedded devices (Raspberry Pi I & II, ECS LIVA, and a TP-Link Travel Router) and suggest the network types that they can accurately measure. The testbed can also evaluate the performance of the kernel-space tools using OMware. The results can be visualized through a web interface, thus enabling users to compare various devices easily.
- 3 August 2015
- Published by European Alliance for Innovation n.o. in EAI Endorsed Transactions on Internet of Things
- Vol. 1 (2) , e1
Open AccessAn automated testbed for profiling the packet send-time accuracy of embedded devices
Embedded devices, such as home routers or single-board computers, are becoming more powerful and affordable. Many of the existing Linux-based network measurement tools can also be run on these devices through cross-compilation. These features provide more incentive for network administrators or researchers to employ them as network measurement probes. Large-scale measurement projects, such as BISMark and RIPE, have already deployed more than hundreds of home routers as vantage points to measure the Internet from the edge.Our previous work showed that these embedded devices have much lower packet send-time accuracy compared to commodity PC. The lower accuracy limits their ability to acquire sound measurement results in high-speed networks. In this poster, we present an automated testbed to systematically benchmark the performance of four popular embedded devices (Raspberry Pi I & II, ECS LIVA, and a TP-Link Travel Router) and suggest the network types that they can accurately measure. The testbed can also evaluate the performance of the kernel-space tools using OMware. The results can be visualized through a web interface, thus enabling users to compare various devices easily.