Solution report blog — FunnyCast

In the high-stakes world of Content Delivery Networks (CDNs), the shortest path to a user isn’t a straight line—it’s a calculation. During the AIORI-2 Hackathon, our team—FunnyCast from the Heritage Institute of Technology, Kolkata—investigated a phenomenon called Anycast Flipping. By combining BGP routing logic with real-world latency modeling, we built a simulation to measure how unstable routing “flips” degrade the very performance CDNs are meant to provide.

1. The Problem: When Anycast “Flips”

Anycast allows multiple servers to share the same IP address, routing users to the “closest” node. However, routing instability (BGP churn) can cause a user to suddenly “flip” from one CDN node to another mid-session. This isn’t just a technical hiccup; it adds significant Round-Trip Time (RTT) and delays the First Contentful Paint (FCP)—the moment a user actually sees a website loading.

2. Implementation: From Emulation to Reality

Our project evolved from simple latency shells to a robust, BGP-enabled container environment. We used Docker and FRR (Free Range Routing) to simulate a multi-Point of Presence (POP) architecture.

  • Approach 1 (Mahimahi): We used Mahimahi to emulate 30ms vs. 80ms delay shells, proving that a flip can cost a user 50ms or more in pure latency.
  • Approach 2 (BGP + Connmark): We implemented actual BGP peering between nodes. To replicate real-world data, we used CONNMARK-based policy routing to probabilistically flip ~3.2% of flows—matching the prevalence observed in global Internet studies.

3. Technical Benchmarks

Using Puppeteer for automated browser testing, we captured the performance cost of these routing shifts across HTTP/1.1 and HTTP/2.

Metric Baseline (Stable) Flipped (Unstable) Impact
RTT (Latency) 30 ms 80 ms +166% increase
BGP Convergence < 3 seconds N/A High session stability
Flip Probability 0% 3.2% (Modeled) Matches IETF MAPRG data
FCP (User Exp) Fast Delayed Visible rendering lag

 

4. Challenges: The SSL & Namespace Trap

During our sprints, we hit a major wall: Nested Mahimahi namespaces.

The isolated shells blocked external connectivity, causing SSL certificate errors when testing against live sites like Google or YouTube.

  • The Pivot: We moved to a hybrid approach using connmark-based policy routing within the Docker stack. This allowed us to simulate flips at the packet level while maintaining valid BGP semantics and internet connectivity.

5. Lessons from the Sprints

We learned that Anycast is a balancing act. While it improves resilience, the lack of “state” in BGP means that the network doesn’t know it’s hurting the user’s web experience.

“Building this project made me appreciate the subtle interplay between routing protocols and user-perceived performance. Working with FRR and Docker taught me the value of controlled experimentation in network research.” — Aayushmaan, Team Lead

6. Future Work: Protocol Resilience

Our next goal is to share our dataset with the IETF MAPRG mailing list. We want to test how modern protocols like QUIC (RFC 9000) handle these flips compared to standard TCP, specifically looking for ways to “pin” routes and prevent mid-session degradation.

Read the full report

Author

Facebook
Twitter
LinkedIn
WhatsApp

Search

Authors List

Authors

  • Advanced Internet Operations Research in India

    View all posts
  • I’m a tech entrepreneur and researcher who thrives on pushing boundaries and finding innovative solutions in the ever-evolving digital landscape. Currently, I’m deeply immersed in the fascinating realm of Internet resiliency, harnessing my expertise to ensure a robust and secure online space for all. 🚀

    View all posts
  • admin
  • I am a researcher working on security, networks, protocols and DNS. I am a quantum computing enthusiast, a fan of Linux and an advocate for Free & Open Source Softwares. #FOSS

    View all posts
  • A Information Technology Practitioner with leadership experience in IT Public Policy, Corporate Industry Forums, Information Technology Standards, & Program Implementation. An experienced Information Technology trainer, keynote speaker, panelist, leader and key influencer for advocacy and outreach, with wide international exposure across stakeholder groups. Finance Degree from ICAI & ICWAI, India; IT Security Degree from ISACA, USA & Internet Governance Certification from University of Aarhus, Germany & Next Generation Leaders Program of Internet Society in association with DIPLO Foundation.

    View all posts
  • Aindri Mukherjee
  • Debayan Mukherjee

Tag Cloud

Newsletter

Leave a Reply

Your email address will not be published. Required fields are marked *