ZHZhiru Hou

Zhiru Hou

*This is an algorithmically generated author record based on publicly available information.

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article


Zhiru Hou has a total of 15 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Formalization and Verification of the Message Delivery Mechanism in Apache Pulsar

    by Wenbin Wu, Zhiru Hou, Huibiao Zhu, Ningning Chen

    Apache Pulsar is a cloud-native, high-performance, and scalable distributed message-oriented middleware (MOM) widely used for processing large-scale real-time data streams. Due to its distributed architecture and multi-tenancy features, Pulsar excels in high-throughput and low-latency scenarios and has been widely applied in fields such as finance, the Internet of things (IoT), and big data processing. However, as the complexity of application scenarios increases, the requirements for system reliability and data security are also rising. Formal methods, based on rigorous mathematical theories, have been widely used for the verification and analysis of distributed systems. Therefore, exploring how to apply formal methods to the modeling and verification of the message delivery mechanism of Apache Pulsar holds important research significance. This paper adopts communicating sequential processes (CSP) to model the message delivery mechanism of Apache Pulsar and utilizes the process analysis toolkit (PAT) to carry out two layers of formal analysis covering functional correctness and security, aiming to provide theoretical support and technical references for building secure and reliable MOM. The main contributions of this work include: (1) This work develops the first CSP-based formal model that systematically abstracts the core components and communication workflows of Pulsar’s message delivery mechanism. The analysis focuses on six key properties that the Pulsar system should satisfy: deadlock freedom, divergence freedom, data consistency, sequentiality, reliability, and persistent storage. The experimental results indicate that the Pulsar system successfully meets these critical properties, demonstrating the reliability of its message delivery mechanism. (2) A Dolev–Yao intruder model integrated with the Athenz X.509 authentication framework is constructed to evaluate the system’s resistance against impersonation, interception, tampering, and replay attacks. The verification results reveal that Athenz can effectively block impersonation, tampering and replay threats, while passive interception risks still exist without transport encryption.

  • Specifying and Verifying Programs Over the MCA ARMv8 Architecture with TLA+

    by Lili Xiao, Zhiru Hou, Huibiao Zhu, Mengda He, Shengchao Qin

    Modern hardware architectures and mainstream programming languages employ relaxed memory models for efficiency purposes. However, these memory models may bring in many behaviors which do not adhere to people’s intuition. In addition, different relaxed memory models produce different relaxed behaviors. The existing facts make the verification of the multi-threaded programs running against these models more difficult. In this paper, we are committed to proposing a general framework for modeling and verifying programs over various relaxed memory models, and we take the MCA ARMv8 architecture as an example. This architecture allows out-of-order execution through thread-local out-of-order, speculative execution and thread-local buffering. Above all, through analyzing the dependencies among statements, any program under MCA ARMv8 is translated into a unified form, which has the ability to describe each program under various memory models. Then, we model the translated programs with the formal specification language TLA[ ], and verify three properties, namely Reordering, Read-after-write elimination and Barriers, by the model checker TLC. Our verification results indicate that these properties align with the specification of MCA ARMv8. This not only validates the effectiveness of our method but also provides a more consistent approach for ensuring program correctness across a wide range of memory models.


  • Validating Secure Cloud Communication Mechanisms of Graphene with CSP-Based Modeling

    by Jianhao Liu, Zhiru Hou, Huibiao Zhu

    Cloud communication, as a core component of the cloud computing architecture, relies on the communication mechanism of TCP/UDP protocols. However, with the popularity of cloud communication, the security threats that it faces are also becoming increasingly severe. Graphene is a new cloud communication security architecture that targets both TCP and UDP communication. It provides security assurance during data transmission and authentication for cloud users and cloud service providers, effectively addressing some of the shortcomings of traditional security protocols. In light of Graphene’s advantages, it is gaining increasing attention from industries. Hence, ensuring the reliability of Graphene becomes paramount. In this paper, we first utilize process algebra CSP to model the TCP-based communication processes within the Graphene architecture. Subsequently, we model the UDP-based communication processes as well. Then, we employ the model checker PAT to run the CSP models for both protocols and subsequently verify six properties: Deadlock Freedom, Divergence Freedom, Data Reachability, Cloud User Faking, Cloud Instance Faking, and Central Key Server Faking. According to the verification results, our models for both TCP and UDP satisfy all of the aforementioned properties. Therefore, we can conclude that the communication execution processes for both TCP and UDP in the Graphene architecture fulfill the anticipated security standards, thus indicating the reliability of the system.


  • Formal Verification and Security Analysis of Go-based New Simple Queue System

    by Zhiru Hou, Danyang Wang, Jiaqi Yin, Sini Chen, Huibiao Zhu

    New Simple Queue (NSQ) is a distributed messaging platform developed in Golang that can handle billions of daily messages. Its distributed architecture ensures high fault tolerance and availability. Given NSQ’s widespread application across various fields, it is crucial to focus on the system’s robustness and data transmission security. Therefore, a rigorous mathematical logic analysis of NSQ’s messaging mechanism is essential for verifying its reliability. This paper formalizes NSQ’s core components using Communicating Sequential Processes (CSP), resulting in a comprehensive formal model of the system. Furthermore, this paper utilizes the Process Analysis Toolkit (PAT) for practical implementation of the model, verifying five critical properties of the NSQ system. And the verification results demonstrate that the NSQ system successfully satisfies these essential properties, highlighting its flexibility, robustness and efficient messaging service capabilities. Moreover, this paper focuses on formalizing and verifying the security mechanisms in NSQ’s data transmission. By integrating the Transport Layer Security (TLS) protocol into the NSQ system and employing a man-in-the-middle model to simulate deception and interception attacks, it is demonstrated that the TLS protocol enhances the security of NSQ data transmission. This paper also proposes upgrading from one-way to two-way certificate authentication to further enhance TLS data security. Experimental results reveal that despite significant security improvements with the TLS protocol, producer and consumer processes remain vulnerable to spoofing attacks under specific insecure network conditions, leading to potential data leaks. Therefore, the TLS protocol can significantly improve the data security of the NSQ system.

  • Formal Modeling and Verifying Dubbo Using Process Algebra

    by Zhiru Hou, Jiaqi Yin, Huibiao Zhu, Phan Cong Vinh