Skip to main content
QUICK REVIEW

[Paper Review] A new NS3 Implementation of CCNx 1.0 Protocol

Marc Mosko, Ramesh Ayyagari|arXiv (Cornell University)|Jul 15, 2017
Caching and Content DeliveryComputer Science4 references5 citations
TL;DR

This paper presents ccns3Sim, a native NS3 implementation of the CCNx 1.0 protocol stack that enables modular, extensible simulation of Information-Centric Networking (ICN) protocols. It supports runtime configuration of core components like the forwarder, PIT, FIB, and Content Store, and introduces a delay model for processing and input delays. The key contribution is a fully integrated, NS3-native CCNx simulator with support for custom protocol implementations and the Name Flooding Protocol (NFP), enabling realistic simulation of ICN routing and caching behavior.

ABSTRACT

The ccns3Sim project is an open source implementation of the CCNx 1.0 protocols for the NS3 simulator. We describe the implementation and several important features including modularity and process delay simulation. The ccns3Sim implementation is a fresh NS3-specific implementation. Like NS3 itself, it uses C++98 standard, NS3 code style, NS3 smart pointers, NS3 xUnit, and integrates with the NS3 documentation and manual. A user or developer does not need to learn two systems. If one knows NS3, one should be able to get started with the CCNx code right away. A developer can easily use their own implementation of the layer 3 protocol, layer 4 protocol, forwarder, routing protocol, Pending Interest Table (PIT) or Forwarding Information Base (FIB) or Content Store (CS). A user may configure or specify a new implementation for any of these features at runtime in the simulation script. In this paper, we describe the software architecture and give examples of using the simulator. We evaluate the implementation with several example experiments on ICN caching.

Motivation & Objective

  • To provide a fully integrated, NS3-native implementation of the CCNx 1.0 protocol stack that avoids code duplication and dual abstraction models found in existing simulators.
  • To enable researchers to easily substitute or configure core ICN components such as the forwarder, PIT, FIB, Content Store, and routing protocols at runtime via simulation scripts.
  • To support accurate simulation of processing and input delays in data structures and protocol operations, crucial for evaluating protocol performance.
  • To introduce and evaluate the Name Flooding Protocol (NFP), a distance-vector routing protocol for CCNx that supports loop-free equal-cost multipath routing and dynamic link failure handling.
  • To lay the foundation for future extensions, including cryptographic operations, virtual payloads, and integration with mobile network models like LTE.

Proposed method

  • The ccns3Sim framework uses abstract base classes inheriting from ns3::Object to define interfaces for all major CCNx components, enabling runtime late binding and plug-in-style configuration of implementations.
  • Each component—such as the forwarder, PIT, FIB, and Content Store—is implemented as a concrete class derived from its abstract interface, allowing users to substitute custom implementations in simulation scripts.
  • A modular delay model is implemented to simulate both input delays (e.g., packet arrival jitter) and processing delays (e.g., table lookup and update times) in data structures and protocol operations.
  • The Name Flooding Protocol (NFP) is introduced as a dynamic routing protocol that uses sequence-numbered advertisements per prefix-anchor pair, enabling independent successor graphs and supporting unequal-cost multipath routing.
  • The simulator leverages NS3’s native capabilities, including C++98, NS3 smart pointers, xUnit testing, and documentation integration, ensuring consistency with the NS3 ecosystem.
  • Experiments are conducted using the 154-node AT&T topology, measuring computational cost and routing message volume after link failures, with performance evaluated in terms of real-time execution speed and memory usage.

Experimental results

Research questions

  • RQ1How can a native, modular, and extensible NS3 implementation of CCNx 1.0 be designed to support runtime configuration of core protocol components?
  • RQ2What is the performance overhead of simulating processing and input delays in CCNx data structures using the NS3 framework?
  • RQ3How does the Name Flooding Protocol (NFP) scale in terms of computational cost and routing message volume under link failure conditions?
  • RQ4Can the ccns3Sim framework efficiently simulate complex ICN behaviors such as content caching and dynamic routing with realistic delay modeling?
  • RQ5What are the performance characteristics of ccns3Sim in terms of real-time execution speed and memory consumption for large-scale ICN simulations?

Key findings

  • The ccns3Sim simulator executes 50-second virtual time simulations with over 18.8 million computational events and 221,880 packets in under 40.1 seconds of real time on a MacBook Pro with a 2.6 GHz core i7 CPU.
  • The average execution time per routing protocol event is 2.1 microseconds, demonstrating efficient simulation performance for ICN protocol evaluation.
  • Memory usage remains low at under 285 MB, with most memory allocated to content repositories, and under 1.8 MB per node on average.
  • After a link failure, computational cost and the number of routing update messages scale linearly with the number of content replicas, due to the independent propagation of each (anchorName, prefix) pair in NFP.
  • The NFP protocol successfully supports loop-free equal-cost multipath routing and handles link failures by triggering withdraw messages proportional to the number of replicas, though it scales less efficiently than LSCR or DCR.
  • The simulator supports full runtime configurability of all major components, including custom implementations of the forwarder, PIT, FIB, Content Store, and routing protocols, without requiring code changes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.