NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Parallel Algorithm to Calculate the Costrank of a Network

Thaier Hamid, Carsten Maple, Yong YueInternational Journal of Computer Applications 2012

Abstract: We developed analogous parallel algorithms to implement CostRank for distributed memory parallel computers using multi processors. Our intent is to make CostRank calculations for the growing number of hosts in a fast and a scalable way.

Introduction

In the realm of network security, model checking is a vital technique for identifying critical hosts and potential intrusion targets. One effective numerical method for this task is CostRank. Similar in concept to Google’s PageRank, CostRank assesses the importance and vulnerability of nodes within a graph. However, unlike PageRank, it incorporates specific "cost values" associated with network links, allowing for a more nuanced analysis of security risks and resource requirements.

As modern networks expand to include thousands of vertices and millions of arcs, traditional serial algorithms become significant bottlenecks. The computational time required to converge on a solution for such massive datasets necessitates a distributed computing architecture. This paper presents a scalable, parallel version of the CostRank algorithm designed to handle large-scale network graphs without being limited by I/O delays or uneven processor workloads.

Methodology

The parallel implementation was built using Piccolo, a framework designed for writing parallel in-memory programs across clusters. To achieve high performance and scalability, several key technical strategies were employed.

Optimized Data Representation

To overcome the inefficiencies of reading raw text files, the authors developed a custom binary graph structure. This format allows for optimized disk I/O, reducing access costs to $O(n)$ relative to the number of states. By converting network data into this binary format, the system can load massive graphs into memory much faster than standard methods.

Mapping a sample network graph to the optimized binary file structure.

Parallel Architecture and Load Balancing

The core of the parallelization strategy involves row-wise matrix partitioning. The state matrix representing the network is divided into $\beta$ portions, with each processor in the cluster responsible for calculating the rank scores for its assigned nodes.

Distributed architecture showing synchronization and partitioned data processing.

To ensure efficiency, the authors implemented a Greedy Round-Robin Load Balancing strategy. This prevents "straggler" nodes from idling while others are overworked by distributing tasks based on unique state-IDs. Furthermore, because CostRank is an iterative algorithm, the system performs periodic synchronization. The researchers found that synchronizing every five iterations provided an optimal balance between computational accuracy (maintaining a residual error below 0.020) and overall performance.

Experimental Evaluation

The algorithm was tested on a cluster of 12 computers (Pentium Core2Duo, 2GB RAM) connected via a Gigabit Ethernet LAN. The test dataset consisted of a synthesized network graph with:

  • 28,903 states (nodes)
  • ~1.2 million links (edges)
  • Total size: 74.6 MB in Compressed Row Storage (CRS) format.

Key Results and Discussion

Speedup and Scalability

The parallel implementation demonstrated significant performance gains. As the number of processors increased from 1 to 10, the execution time dropped sharply. While the speedup curve flattened slightly at higher processor counts due to the overhead of synchronization and inter-processor communication, the overall scalability remained strong.

Memory and I/O Efficiency

A notable finding was the algorithm's memory efficiency. Although memory usage initially spiked when transitioning from a single processor to two (due to synchronization overhead), the per-machine memory footprint actually decreased as more processors were added. This indicates that the data was effectively distributed across the cluster. Additionally, the binary graph format ensured that I/O performance scaled linearly and predictably with the size of the cluster.

Conclusion

This research successfully demonstrates that CostRank can be effectively parallelized for large-scale network security analysis. By combining optimized binary data structures with greedy load balancing, the authors achieved a scalable solution capable of processing millions of links.

Future work will focus on adapting this algorithm for heterogeneous hardware environments and dynamic networks, where nodes and links are constantly changing. As infrastructure grows toward cloud-scale, these parallel techniques will be essential for maintaining real-time security insights.

Summary updated

BibTeX
@article{hamid2012parallel,
  author = {Thaier Hamid and Carsten Maple and Yong Yue},
  title = {{A Parallel Algorithm to Calculate the Costrank of a Network}},
  journal = {International Journal of Computer Applications},
  year = {2012},
  doi = {10.5120/6243-8161},
}
Figure