• About TC
  • Affiliate Disclaimer
  • Privacy Policy
  • TOS
  • Contact
Friday, May 9, 2025
Techcratic
Click For A Secret Deal
  • TC
  • AI
    Artificial Intelligence

    3 Excellent Practical Generative AI Courses

    Artificial Intelligence

    Building End-to-End Data Pipelines with Dask

    Artificial Intelligence

    Automate document translation and standardization with Amazon Bedrock and Amazon Translate

    Artificial Intelligence

    InterVision accelerates AI development using AWS LLM League and Amazon SageMaker AI

    Artificial Intelligence

    FireDucks: An Accelerated Fully Compatible Pandas Library

    Artificial Intelligence

    Breaking Out of Beginner: Python Patterns for Intermediate Data Scientists

    Artificial Intelligence

    Building a Personal Knowledge Management Tool with Reor

    Artificial Intelligence

    Build a location-aware agent using Amazon Bedrock Agents and Foursquare APIs

    Artificial Intelligence

    How to Fully Automate Text Data Cleaning with Python in 5 Steps

  • Crypto
    $275K by 2026: Can Rainbow Bands and S2F Predict Bitcoin’s Future?

    $275K by 2026: Can Rainbow Bands and S2F Predict Bitcoin’s Future?

    Brazil’s B3 Stock Exchange to Launch Ether and Solana Futures

    Brazil’s B3 Stock Exchange to Launch Ether and Solana Futures

    How high can Bitcoin price go?

    How high can Bitcoin price go?

    Bitcoin Bull Cycle is Over: CryptoQuant CEO

    Coinbase Q1 Revenue Rises Despite Profit Decline

    Bitwise Taps 100K Advisors to Push Active Crypto Strategies

    Bitwise Taps 100K Advisors to Push Active Crypto Strategies

    Within 48 Hours, 2 US States Enact Strategic Bitcoin Reserve Legislation

    Within 48 Hours, 2 US States Enact Strategic Bitcoin Reserve Legislation

    Hashdex Seeks SEC Approval to Add Litecoin to Crypto Index ETF

    SOL Strategies, Superstate Plan Solana Equity Tokenization

    Celsius Boss Falls: Alex Mashinsky Sentenced to 12 Years for $7B Fraud

    Celsius Boss Falls: Alex Mashinsky Sentenced to 12 Years for $7B Fraud

    Best Presales to Buy Today – Which Coins Are Poised for a Breakout?

    Still Under $0.01 – 3 Breakout Cryptos Flashing Early Bullish Signals

  • Cybersecurity
    Cybersecurity

    Deploying AI Agents? Learn to Secure Them Before Hackers Strike Your Business

    Cybersecurity

    Google Rolls Out On-Device AI Protections to Detect Scams in Chrome and Android

    Cybersecurity

    Chinese Hackers Exploit SAP RCE Flaw CVE-2025-31324, Deploy Golang-Based SuperShell

    Cybersecurity

    SonicWall Patches 3 Flaws in SMA 100 Devices Allowing Attackers to Run Code as Root

    Cybersecurity

    Qilin Ransomware Ranked Highest in April 2025 with Over 45 Data Leak Disclosures

    Cybersecurity

    MirrorFace Targets Japan and Taiwan with ROAMINGMOUSE and Upgraded ANEL Malware

    Cybersecurity

    Cisco Patches CVE-2025-20188 (10.0 CVSS) in IOS XE That Enables Root Exploits via JWT

    Cybersecurity

    OttoKit WordPress Plugin with 100K+ Installs Hit by Exploits Targeting Multiple Flaws

    Cybersecurity

    A Technical Gap Analysis of Last-Mile Protection

  • Deals
    ThinkFun Rush Hour

    ThinkFun Rush Hour

    Horse Racing Board Game with Luxurious Durable Metal Horses, 11 Pieces, Black, Real Pine…

    Horse Racing Board Game with Luxurious Durable Metal Horses, 11 Pieces, Black, Real Pine…

    Solaris

    Solaris

    Steamforged Adventures & Academia First Class Miniatures Bundle: Cunning & Divine and…

    Steamforged Adventures & Academia First Class Miniatures Bundle: Cunning & Divine and…

    StarTech.com 5-Port USB PCIe Card – USB 3.2 Gen 2 (10Gbps) PCIe Card w/ 1x USB-C & 2x…

    StarTech.com 5-Port USB PCIe Card – USB 3.2 Gen 2 (10Gbps) PCIe Card w/ 1x USB-C & 2x…

    Seagate Expansion 22TB External Hard Drive HDD – USB 3.0, with Rescue Data Recovery…

    Seagate Expansion 22TB External Hard Drive HDD – USB 3.0, with Rescue Data Recovery…

    Samsung 65 Inch DU8000 Crystal UHD LED 4K Smart TV Bundle with 2 YR CPS Enhanced…

    Samsung 65 Inch DU8000 Crystal UHD LED 4K Smart TV Bundle with 2 YR CPS Enhanced…

    PNY GeForce GTX 1660 Super 4GB XLR8 Gaming Overclocked Edition Single Fan (Renewed)

    PNY GeForce GTX 1660 Super 4GB XLR8 Gaming Overclocked Edition Single Fan (Renewed)

    Honda Pioneer 1000 Oil Change Kit

    Honda Pioneer 1000 Oil Change Kit

  • Gaming
    Zelda Ocarina Of Time 3D – GOLDEN SKULLTULAS | Let's Play Walkthrough Part 58

    Zelda Ocarina Of Time 3D – GOLDEN SKULLTULAS | Let's Play Walkthrough Part 58

    Hunter Impressions: The Mario Bros Movie

    Hunter Impressions: The Mario Bros Movie

    Zelda Ocarina of Time 3D 100% Walkthrough – Part 62/78 – Gerudo Fortress (Commentary)

    Zelda Ocarina of Time 3D 100% Walkthrough – Part 62/78 – Gerudo Fortress (Commentary)

    MIT researchers debunk one of the greatest misconceptions in science: Eggs are stronger at the sides after all

    MIT researchers debunk one of the greatest misconceptions in science: Eggs are stronger at the sides after all

    King Rhoam Cutscene – Zelda Breath of the Wild | Great Plateau Ending Reveal

    King Rhoam Cutscene – Zelda Breath of the Wild | Great Plateau Ending Reveal

    Is Transformers Reactivate Real? + Transformers Battlegrounds 2 in the works and More!

    Is Transformers Reactivate Real? + Transformers Battlegrounds 2 in the works and More!

    Razer’s newest gaming headset goes on your chair instead of your head

    Razer’s newest gaming headset goes on your chair instead of your head

    Stray Review Is It Worth A Buy – Not A Game For Me – Captain Steve – Honest Gameplay Opinions PS5

    Stray Review Is It Worth A Buy – Not A Game For Me – Captain Steve – Honest Gameplay Opinions PS5

    A software engineer taught AI to hunt bugs by interfacing an LLM with debugging tools and has released the open source code – “It’s like going from hunting with a stone spear to using a guided missile,”

    A software engineer taught AI to hunt bugs by interfacing an LLM with debugging tools and has released the open source code – “It’s like going from hunting with a stone spear to using a guided missile,”

  • Tesla
    Tesla’s NACS connector will be used by Mazda’s EVs in Japan

    Tesla’s NACS connector will be used by Mazda’s EVs in Japan

    LASFIT Magnetic Phone Mount & Screen Frame Protector for Tesla Model 3 (2017-2023) &…

    LASFIT Magnetic Phone Mount & Screen Frame Protector for Tesla Model 3 (2017-2023) &…

    Anti Slip Phone Holder for Car, Silicone Car Pad Mat for Various Dashboards, Pad Double…

    Anti Slip Phone Holder for Car, Silicone Car Pad Mat for Various Dashboards, Pad Double…

    Front Under Seat Storage Box for Tesla Cybertruck Accessories 2024 2025, Hidden…

    Front Under Seat Storage Box for Tesla Cybertruck Accessories 2024 2025, Hidden…

    Cyber Truck Toy Trucks Toy Cars with Motorcycle Diecast Metal Cybertruck Model Pickup…

    Cyber Truck Toy Trucks Toy Cars with Motorcycle Diecast Metal Cybertruck Model Pickup…

    Anti-Fingerprint Door Handles Set for Tesla Cybertruck 2024, Fingerprint Resistant Door…

    Anti-Fingerprint Door Handles Set for Tesla Cybertruck 2024, Fingerprint Resistant Door…

    9 PCS Automotive Main Cam Locking Tool, Engine Concave and Convex Locking Double…

    9 PCS Automotive Main Cam Locking Tool, Engine Concave and Convex Locking Double…

    7 Pin Trailer Plug,Car Accessories 7 Way Trailer Plug,Trailer Light Adapter with…

    7 Pin Trailer Plug,Car Accessories 7 Way Trailer Plug,Trailer Light Adapter with…

    Tesla loses head of India just as it is rumored to finally enter the market

  • UFO
    Alien Revealed our Creation

    Alien Revealed our Creation

    Men’s Sun Protection Hoodie Shirt UPF 50+ Long Sleeve Fishing Rash Guard UV SPF Summer Lightweight Hiking Shirt for Men

    Men’s Sun Protection Hoodie Shirt UPF 50+ Long Sleeve Fishing Rash Guard UV SPF Summer Lightweight Hiking Shirt for Men

    UFO SPOTTED OVER HOLY CITY – “A Modern Day Miracle?!“ | The Proof Is Out There | #Shorts

    Queen of Outer Space [DVD]

    Queen of Outer Space [DVD]

    Mind-Blowing Psychiatric Insights on Secrets Revealed in Hilarious Shoe Encounter #blowing #mindblow

    Mind-Blowing Psychiatric Insights on Secrets Revealed in Hilarious Shoe Encounter #blowing #mindblow

    Funny Birthday Card Gift for Men Women, Alien Birthday Card

    Funny Birthday Card Gift for Men Women, Alien Birthday Card

    ALIENS ORIGIN_Explained (Conspiracy Theory)Extraterrestrial Beings.

    ALIENS ORIGIN_Explained (Conspiracy Theory)Extraterrestrial Beings.

    7Artisans 18mm F6.3 UFO Lens: Review & Test

    7Artisans 18mm F6.3 UFO Lens: Review & Test

    Chicken Rooster Funny Selfie Chicken with UFOs Weird Aliens T-Shirt

    Chicken Rooster Funny Selfie Chicken with UFOs Weird Aliens T-Shirt

No Result
View All Result
  • TC
  • AI
    Artificial Intelligence

    3 Excellent Practical Generative AI Courses

    Artificial Intelligence

    Building End-to-End Data Pipelines with Dask

    Artificial Intelligence

    Automate document translation and standardization with Amazon Bedrock and Amazon Translate

    Artificial Intelligence

    InterVision accelerates AI development using AWS LLM League and Amazon SageMaker AI

    Artificial Intelligence

    FireDucks: An Accelerated Fully Compatible Pandas Library

    Artificial Intelligence

    Breaking Out of Beginner: Python Patterns for Intermediate Data Scientists

    Artificial Intelligence

    Building a Personal Knowledge Management Tool with Reor

    Artificial Intelligence

    Build a location-aware agent using Amazon Bedrock Agents and Foursquare APIs

    Artificial Intelligence

    How to Fully Automate Text Data Cleaning with Python in 5 Steps

  • Crypto
    $275K by 2026: Can Rainbow Bands and S2F Predict Bitcoin’s Future?

    $275K by 2026: Can Rainbow Bands and S2F Predict Bitcoin’s Future?

    Brazil’s B3 Stock Exchange to Launch Ether and Solana Futures

    Brazil’s B3 Stock Exchange to Launch Ether and Solana Futures

    How high can Bitcoin price go?

    How high can Bitcoin price go?

    Bitcoin Bull Cycle is Over: CryptoQuant CEO

    Coinbase Q1 Revenue Rises Despite Profit Decline

    Bitwise Taps 100K Advisors to Push Active Crypto Strategies

    Bitwise Taps 100K Advisors to Push Active Crypto Strategies

    Within 48 Hours, 2 US States Enact Strategic Bitcoin Reserve Legislation

    Within 48 Hours, 2 US States Enact Strategic Bitcoin Reserve Legislation

    Hashdex Seeks SEC Approval to Add Litecoin to Crypto Index ETF

    SOL Strategies, Superstate Plan Solana Equity Tokenization

    Celsius Boss Falls: Alex Mashinsky Sentenced to 12 Years for $7B Fraud

    Celsius Boss Falls: Alex Mashinsky Sentenced to 12 Years for $7B Fraud

    Best Presales to Buy Today – Which Coins Are Poised for a Breakout?

    Still Under $0.01 – 3 Breakout Cryptos Flashing Early Bullish Signals

  • Cybersecurity
    Cybersecurity

    Deploying AI Agents? Learn to Secure Them Before Hackers Strike Your Business

    Cybersecurity

    Google Rolls Out On-Device AI Protections to Detect Scams in Chrome and Android

    Cybersecurity

    Chinese Hackers Exploit SAP RCE Flaw CVE-2025-31324, Deploy Golang-Based SuperShell

    Cybersecurity

    SonicWall Patches 3 Flaws in SMA 100 Devices Allowing Attackers to Run Code as Root

    Cybersecurity

    Qilin Ransomware Ranked Highest in April 2025 with Over 45 Data Leak Disclosures

    Cybersecurity

    MirrorFace Targets Japan and Taiwan with ROAMINGMOUSE and Upgraded ANEL Malware

    Cybersecurity

    Cisco Patches CVE-2025-20188 (10.0 CVSS) in IOS XE That Enables Root Exploits via JWT

    Cybersecurity

    OttoKit WordPress Plugin with 100K+ Installs Hit by Exploits Targeting Multiple Flaws

    Cybersecurity

    A Technical Gap Analysis of Last-Mile Protection

  • Deals
    ThinkFun Rush Hour

    ThinkFun Rush Hour

    Horse Racing Board Game with Luxurious Durable Metal Horses, 11 Pieces, Black, Real Pine…

    Horse Racing Board Game with Luxurious Durable Metal Horses, 11 Pieces, Black, Real Pine…

    Solaris

    Solaris

    Steamforged Adventures & Academia First Class Miniatures Bundle: Cunning & Divine and…

    Steamforged Adventures & Academia First Class Miniatures Bundle: Cunning & Divine and…

    StarTech.com 5-Port USB PCIe Card – USB 3.2 Gen 2 (10Gbps) PCIe Card w/ 1x USB-C & 2x…

    StarTech.com 5-Port USB PCIe Card – USB 3.2 Gen 2 (10Gbps) PCIe Card w/ 1x USB-C & 2x…

    Seagate Expansion 22TB External Hard Drive HDD – USB 3.0, with Rescue Data Recovery…

    Seagate Expansion 22TB External Hard Drive HDD – USB 3.0, with Rescue Data Recovery…

    Samsung 65 Inch DU8000 Crystal UHD LED 4K Smart TV Bundle with 2 YR CPS Enhanced…

    Samsung 65 Inch DU8000 Crystal UHD LED 4K Smart TV Bundle with 2 YR CPS Enhanced…

    PNY GeForce GTX 1660 Super 4GB XLR8 Gaming Overclocked Edition Single Fan (Renewed)

    PNY GeForce GTX 1660 Super 4GB XLR8 Gaming Overclocked Edition Single Fan (Renewed)

    Honda Pioneer 1000 Oil Change Kit

    Honda Pioneer 1000 Oil Change Kit

  • Gaming
    Zelda Ocarina Of Time 3D – GOLDEN SKULLTULAS | Let's Play Walkthrough Part 58

    Zelda Ocarina Of Time 3D – GOLDEN SKULLTULAS | Let's Play Walkthrough Part 58

    Hunter Impressions: The Mario Bros Movie

    Hunter Impressions: The Mario Bros Movie

    Zelda Ocarina of Time 3D 100% Walkthrough – Part 62/78 – Gerudo Fortress (Commentary)

    Zelda Ocarina of Time 3D 100% Walkthrough – Part 62/78 – Gerudo Fortress (Commentary)

    MIT researchers debunk one of the greatest misconceptions in science: Eggs are stronger at the sides after all

    MIT researchers debunk one of the greatest misconceptions in science: Eggs are stronger at the sides after all

    King Rhoam Cutscene – Zelda Breath of the Wild | Great Plateau Ending Reveal

    King Rhoam Cutscene – Zelda Breath of the Wild | Great Plateau Ending Reveal

    Is Transformers Reactivate Real? + Transformers Battlegrounds 2 in the works and More!

    Is Transformers Reactivate Real? + Transformers Battlegrounds 2 in the works and More!

    Razer’s newest gaming headset goes on your chair instead of your head

    Razer’s newest gaming headset goes on your chair instead of your head

    Stray Review Is It Worth A Buy – Not A Game For Me – Captain Steve – Honest Gameplay Opinions PS5

    Stray Review Is It Worth A Buy – Not A Game For Me – Captain Steve – Honest Gameplay Opinions PS5

    A software engineer taught AI to hunt bugs by interfacing an LLM with debugging tools and has released the open source code – “It’s like going from hunting with a stone spear to using a guided missile,”

    A software engineer taught AI to hunt bugs by interfacing an LLM with debugging tools and has released the open source code – “It’s like going from hunting with a stone spear to using a guided missile,”

  • Tesla
    Tesla’s NACS connector will be used by Mazda’s EVs in Japan

    Tesla’s NACS connector will be used by Mazda’s EVs in Japan

    LASFIT Magnetic Phone Mount & Screen Frame Protector for Tesla Model 3 (2017-2023) &…

    LASFIT Magnetic Phone Mount & Screen Frame Protector for Tesla Model 3 (2017-2023) &…

    Anti Slip Phone Holder for Car, Silicone Car Pad Mat for Various Dashboards, Pad Double…

    Anti Slip Phone Holder for Car, Silicone Car Pad Mat for Various Dashboards, Pad Double…

    Front Under Seat Storage Box for Tesla Cybertruck Accessories 2024 2025, Hidden…

    Front Under Seat Storage Box for Tesla Cybertruck Accessories 2024 2025, Hidden…

    Cyber Truck Toy Trucks Toy Cars with Motorcycle Diecast Metal Cybertruck Model Pickup…

    Cyber Truck Toy Trucks Toy Cars with Motorcycle Diecast Metal Cybertruck Model Pickup…

    Anti-Fingerprint Door Handles Set for Tesla Cybertruck 2024, Fingerprint Resistant Door…

    Anti-Fingerprint Door Handles Set for Tesla Cybertruck 2024, Fingerprint Resistant Door…

    9 PCS Automotive Main Cam Locking Tool, Engine Concave and Convex Locking Double…

    9 PCS Automotive Main Cam Locking Tool, Engine Concave and Convex Locking Double…

    7 Pin Trailer Plug,Car Accessories 7 Way Trailer Plug,Trailer Light Adapter with…

    7 Pin Trailer Plug,Car Accessories 7 Way Trailer Plug,Trailer Light Adapter with…

    Tesla loses head of India just as it is rumored to finally enter the market

  • UFO
    Alien Revealed our Creation

    Alien Revealed our Creation

    Men’s Sun Protection Hoodie Shirt UPF 50+ Long Sleeve Fishing Rash Guard UV SPF Summer Lightweight Hiking Shirt for Men

    Men’s Sun Protection Hoodie Shirt UPF 50+ Long Sleeve Fishing Rash Guard UV SPF Summer Lightweight Hiking Shirt for Men

    UFO SPOTTED OVER HOLY CITY – “A Modern Day Miracle?!“ | The Proof Is Out There | #Shorts

    Queen of Outer Space [DVD]

    Queen of Outer Space [DVD]

    Mind-Blowing Psychiatric Insights on Secrets Revealed in Hilarious Shoe Encounter #blowing #mindblow

    Mind-Blowing Psychiatric Insights on Secrets Revealed in Hilarious Shoe Encounter #blowing #mindblow

    Funny Birthday Card Gift for Men Women, Alien Birthday Card

    Funny Birthday Card Gift for Men Women, Alien Birthday Card

    ALIENS ORIGIN_Explained (Conspiracy Theory)Extraterrestrial Beings.

    ALIENS ORIGIN_Explained (Conspiracy Theory)Extraterrestrial Beings.

    7Artisans 18mm F6.3 UFO Lens: Review & Test

    7Artisans 18mm F6.3 UFO Lens: Review & Test

    Chicken Rooster Funny Selfie Chicken with UFOs Weird Aliens T-Shirt

    Chicken Rooster Funny Selfie Chicken with UFOs Weird Aliens T-Shirt

No Result
View All Result
Techcratic
No Result
View All Result

How Netflix Accurately Attributes eBPF Flow Logs | by Netflix Technology Blog | Apr, 2025

Hacker News by Hacker News
April 8, 2025
in Hacker News
Reading Time: 19 mins read
125 5
A A
0
Home Hacker News
Share on FacebookShare on XShare on LinkedIn

2025-04-08 14:21:00
netflixtechblog.com

Netflix Technology Blog

Netflix TechBlog

By Cheng Xie, Bryan Shultz, and Christine Xu

In a previous blog post, we described how Netflix uses eBPF to capture TCP flow logs at scale for enhanced network insights. In this post, we delve deeper into how Netflix solved a core problem: accurately attributing flow IP addresses to workload identities.

FlowExporter is a sidecar that runs alongside all Netflix workloads. It uses eBPF and TCP tracepoints to monitor TCP socket state changes. When a TCP socket closes, FlowExporter generates a flow log record that includes the IP addresses, ports, timestamps, and additional socket statistics. On average, 5 million records are produced per second.

In cloud environments, IP addresses are reassigned to different workloads as workload instances are created and terminated, so IP addresses alone cannot provide insights on which workloads are communicating. To make the flow logs useful, each IP address must be attributed to its corresponding workload identity. FlowCollector, a backend service, collects flow logs from FlowExporter instances across the fleet, attributes the IP addresses, and sends these attributed flows to Netflix’s Data Mesh for subsequent stream and batch processing.

The eBPF flow logs provide a comprehensive view of service topology and network health across Netflix’s extensive microservices fleet, regardless of the programming language, RPC mechanism, or application-layer protocol used by individual workloads.

Accurately attributing flow IP addresses to workload identities has been a significant challenge since our eBPF flow logs were introduced.

As noted in our previous blog post, our initial attribution approach relied on Sonar, an internal IP address tracking service that emits an event whenever an IP address in Netflix’s AWS VPCs is assigned or unassigned to a workload. FlowCollector consumes a stream of IP address change events from Sonar and uses this information to attribute flow IP addresses in real-time.

The fundamental drawback of this method is that it can lead to misattribution. Delays and failures are inevitable in distributed systems, which may delay IP address change events from reaching FlowCollector. For instance, an IP address may initially be assigned to workload X but later reassigned to workload Y. However, if the change event for this reassignment is delayed, FlowCollector will continue to assume that the IP address belongs to workload X, resulting in misattributed flows. Additionally, event timestamps may be inaccurate depending on how they are captured.

Misattribution rendered the flow data unreliable for decision-making. Users often depend on flow logs to validate workload dependencies, but misattribution creates confusion. Without expert knowledge of expected dependencies, users would struggle to identify or confirm misattribution. Moreover, misattribution occurred frequently for critical services with a large footprint due to frequent IP address changes. Overall, misattribution makes fleet-wide dependency analysis impractical.

As a workaround, we made FlowCollector hold received flows for 15 minutes before attribution, allowing time for delayed IP address change events. While this approach reduced misattribution, it did not eliminate it. Moreover, the waiting period made the data less fresh, reducing its utility for real-time analysis.

Fully eliminating misattribution is crucial because it only takes a single misattributed flow to produce an incorrect workload dependency. Solving this problem required a complete rethinking of our approach. Over the past year, Netflix developed a new attribution method that has finally eliminated misattribution, as detailed in the rest of this post.

Each socket has two IP addresses: a local IP address and a remote IP address. Previously, we used the same method to attribute both. However, attributing the local IP address should be a simpler task since the local IP address belongs to the instance where FlowExporter captures the socket. Therefore, FlowExporter should determine the local workload identity from its environment and attribute the local IP address before sending the flow to FlowCollector.

This is straightforward for workloads running directly on EC2 instances, as Netflix’s Metatron provisions workload identity certificates to each EC2 instance at boot time. FlowExporter can simply read these certificates from the local disk to determine the local workload identity.

Attributing local IP addresses for container workloads running on Netflix’s container platform, Titus, is more challenging. FlowExporter runs at the container host level, where each host manages multiple container workloads with different identities. When FlowExporter’s eBPF programs receive a socket event from TCP tracepoints in the kernel, the socket may have been created by one of the container workloads or by the host itself. Therefore, FlowExporter must determine which workload to attribute the socket’s local IP address to. To solve this problem, we leveraged IPMan, Netflix’s container IP address assignment service. IPManAgent, a daemon running on every container host, is responsible for assigning and unassigning IP addresses. As container workloads are launched, IPManAgent writes an IP-address-to-workload-ID mapping to an eBPF map, which FlowExporter’s eBPF programs can then use to look up the workload ID associated with a socket local IP address.

Another challenge was to accommodate Netflix’s IPv6 to IPv4 translation mechanism on Titus. To facilitate IPv6 migration, Netflix developed a mechanism that enables IPv6-only containers to communicate with IPv4 destinations without incurring NAT64 overhead. This mechanism intercepts connect syscalls and replaces the underlying socket with one that uses a shared IPv4 address assigned to the container host. This confuses FlowExporter because the kernel reports the same local IPv4 address for sockets created by different container workloads. To disambiguate, local port information is additionally required. We modified Titus to write a mapping of (local IPv4 address, local port) to the workload ID into an eBPF map whenever a connect syscall is intercepted. FlowExporter’s eBPF programs then use this map to correctly attribute sockets created by the translation mechanism.

With these problems solved, we can now accurately attribute the local IP address of every flow.

Once the local IP address attribution problem is solved, accurately attributing remote IP addresses becomes feasible. Now, each flow reported by FlowExporter includes the local IP address, the local workload identity, and connection start/end timestamps. As FlowCollector receives these flows, it can learn the time ranges during which each workload owns a given IP address. For instance, if FlowCollector sees a flow with local IP address 10.0.0.1 associated with workload X that starts at t1 and ends at t2, it can deduce that 10.0.0.1 belonged to workload X from t1 to t2. Since Netflix uses Amazon Time Sync across its fleet, the timestamps (captured by FlowExporter) are reliable.

The FlowCollector service cluster consists of many nodes. Every node must be capable of attributing arbitrary remote IP addresses and, therefore, requires knowledge of all workload IP addresses and their recent ownership records. To represent this knowledge, each node maintains an in-memory hashmap that maps an IP address to a list of time ranges, as illustrated by the following Go structs:

type IPAddressTracker struct {
ipToTimeRanges map[netip.Addr]timeRanges
}

type timeRanges []timeRange

type timeRange struct {
workloadID string
start time.Time
end time.Time
}

To populate the hashmap, FlowCollector extracts the local IP address, local workload identity, start time, and end time from each received flow and creates/extends the corresponding time ranges in the map. The time ranges for each IP address are sorted in ascending order, and they are non-overlapping since an IP address cannot belong to two different workloads simultaneously.

Since each flow is only sent to one FlowCollector node, each node must share the time ranges it learned from received flows with other nodes. We implemented a broadcasting mechanism using Kafka, where each node publishes learned time ranges to all other nodes. Although more efficient broadcasting implementations exist, the Kafka-based approach is simple and has worked well for us.

Now, FlowCollector can attribute remote IP addresses by looking them up in the populated map, which returns a list of time ranges. It then uses the flow’s start timestamp to determine the corresponding time range and associated workload identity. If the start time does not fall within any time range, FlowCollector will retry after a delay, eventually giving up if the retry fails. Such failures may occur when flows are lost or broadcast messages are delayed. For our use cases, it is acceptable to leave a small percentage of flows unattributed, but any misattribution is unacceptable.

This new method achieves accurate attribution thanks to the continuous heartbeats, each associated with a reliable time range of IP address ownership. It handles transient issues gracefully — a few delayed or lost heartbeats do not lead to misattribution. In contrast, the previous method relied solely on discrete IP address assignment and unassignment events. Lacking heartbeats, it had to presume an IP address remained assigned until notified otherwise (which can be hours or days later), making it vulnerable to misattribution when the notifications were delayed.

One detail is that when FlowCollector receives a flow, it cannot attribute its remote IP address right away because it requires the latest observed time ranges for the remote IP address. Since FlowExporter reports flows in batches every minute, FlowCollector must wait until it receives the flow batch from the remote workload FlowExporter for the last minute, which may not have arrived yet. To address this, FlowCollector temporarily stores received flows on disk for one minute before attributing their remote IP addresses. This introduces a 1-minute delay, but it is much shorter than the 15-minute delay with the previous approach.

In addition to producing accurate attribution, the new method is also cost-effective thanks to its simplicity and in-memory lookups. Because the in-memory state can be quickly rebuilt when a FlowCollector node starts up, no persistent storage is required. With 30 c7i.2xlarge instances, we can process 5 million flows per second across the entire Netflix fleet.

For simplicity, we have so far glossed over one topic: regionalization. Netflix’s cloud microservices operate across multiple AWS regions. To optimize flow reporting and minimize cross-regional traffic, a FlowCollector cluster runs in each major region, and FlowExporter agents send flows to their corresponding regional FlowCollector. When FlowCollector receives a flow, its local IP address is guaranteed to be within the region.

To minimize cross-region traffic, the broadcasting mechanism is limited to FlowCollector nodes within the same region. Consequently, the IP address time ranges map contains only IP addresses from that region. However, cross-regional flows have a remote IP address in a different region. To attribute these flows, the receiving FlowCollector node forwards them to nodes in the corresponding region. FlowCollector determines the region for a remote IP address by looking up a trie built from all Netflix VPC CIDRs. This approach is more efficient than broadcasting IP address time range updates across all regions, as only 1% of Netflix flows are cross-regional.

So far, FlowCollector can accurately attribute IP addresses belonging to Netflix’s cloud workloads. However, not all flow IP addresses fall into this category. For instance, a significant portion of flows goes through AWS ELBs. For these flows, their remote IP addresses are associated with the ELBs, where we cannot run FlowExporter. Consequently, FlowCollector cannot determine their identities by simply observing the received flows. To attribute these remote IP addresses, we continue to use IP address change events from Sonar, which crawls AWS resources to detect changes in IP address assignments. Although this data stream may contain inaccurate timestamps and be delayed, misattribution is not a main concern since ELB IP address reassignment occurs very infrequently.

Verifying that the new method has eliminated misattribution is challenging due to the lack of a definitive source of truth for workload dependencies to validate flow logs against; the flow logs themselves are intended to serve as this source of truth, after all. To build confidence, we analyzed the flow logs of a large service with well-understood dependencies. A large footprint is necessary, as misattribution is more prevalent in services with numerous instances, and there must be a reliable method to determine the dependencies for this service without relying on flow logs.

Netflix’s cloud gateway, Zuul, served this purpose perfectly due to its extensive footprint (handling all cloud ingress traffic), its large number of downstream dependencies, and our ability to derive its dependencies from its routing configurations as the source of truth for comparison with flow logs. We found no misattribution for flows through Zuul over a two-week window. This provided strong confidence that the new attribution method has eliminated misattribution. In the previous approach, approximately 40% of Zuul’s dependencies reported by the flow logs were misattributed.

With misattribution solved, eBPF flow logs now deliver dependable, fleet-wide insights into Netflix’s service topology and network health. This advancement unlocks numerous exciting opportunities in areas such as service dependency auditing, security analysis, and incident triage, while helping Netflix engineers develop a better understanding of our ever-evolving distributed systems.

We would like to thank Martin Dubcovsky, Joanne Koong, Taras Roshko, Nabil Schear, Jacob Meyers, Parsha Pourkhomami, Hechao Li, Donavan Fritz, Rob Gulewich, Amanda Li, John Salem, Hariharan Ananthakrishnan, Keerti Lakshminarayan, and other stunning colleagues for their feedback, inspiration, and contributions to the success of this effort.

Source Link


Keep your files stored safely and securely with the SanDisk 2TB Extreme Portable SSD. With over 69,505 ratings and an impressive 4.6 out of 5 stars, this product has been purchased over 8K+ times in the past month. At only $129.99, this Amazon’s Choice product is a must-have for secure file storage.

Help keep private content private with the included password protection featuring 256-bit AES hardware encryption. Order now for just $129.99 on Amazon!


Start your free Amazon Prime trial
today and unlock unlimited streaming and more!

Help Power Techcratic’s Future – Scan To Support

If Techcratic’s content and insights have helped you, consider giving back by supporting the platform with crypto. Every contribution makes a difference, whether it’s for high-quality content, server maintenance, or future updates. Techcratic is constantly evolving, and your support helps drive that progress.

As a solo operator who wears all the hats, creating content, managing the tech, and running the site, your support allows me to stay focused on delivering valuable resources. Your support keeps everything running smoothly and enables me to continue creating the content you love. I’m deeply grateful for your support, it truly means the world to me! Thank you!

BITCOIN

Bitcoin Logo

Bitcoin QR Code

bc1qlszw7elx2qahjwvaryh0tkgg8y68enw30gpvge

Scan the QR code with your crypto wallet app

DOGECOIN

Dogecoin Logo

Dogecoin QR Code

D64GwvvYQxFXYyan3oQCrmWfidf6T3JpBA

Scan the QR code with your crypto wallet app

ETHEREUM

Ethereum Logo

Ethereum QR Code

0xe9BC980DF3d985730dA827996B43E4A62CCBAA7a

Scan the QR code with your crypto wallet app

Please read the Privacy and Security Disclaimer on how Techcratic handles your support.

Disclaimer: As an Amazon Associate, Techcratic may earn from qualifying purchases.

Tags: Hacker News
Share162Tweet101Share28
Previous Post

Legality & Commercial Rights Of Ai Art

Next Post

Copilot on Windows: Vision and file search begin rolling out to Windows Insiders

Hacker News

Hacker News

Stay updated with Hacker News, where technology meets entrepreneurial spirit. Get the latest on tech trends, startup news, and discussions from the tech community. Read the latest updates here at Techcratic.

Related Posts

Vulcan Robots: Amazon’s Stowing Game-Changer
Hacker News

Vulcan Robots: Amazon’s Stowing Game-Changer

May 9, 2025
1.3k
Robotics meets the culinary arts
Hacker News

Robotics meets the culinary arts

May 9, 2025
1.3k
Phoenician culture spread mainly through cultural exchange
Hacker News

Phoenician culture spread mainly through cultural exchange

May 9, 2025
1.3k
Generating Physically Stable and Buildable LEGO Designs from Text
Hacker News

Generating Physically Stable and Buildable LEGO Designs from Text

May 9, 2025
1.3k
A First Glimpse of the Starlink User Terminal
Hacker News

A First Glimpse of the Starlink User Terminal

May 9, 2025
1.3k
GitHub – martinfama/fui: framebuffer user interface
Hacker News

GitHub – martinfama/fui: framebuffer user interface

May 8, 2025
1.3k
Load More
Next Post
Copilot on Windows: Vision and file search begin rolling out to Windows Insiders

Copilot on Windows: Vision and file search begin rolling out to Windows Insiders

Artificial Intelligence

How iFood built a platform to run hundreds of machine learning models with Amazon SageMaker Inference

The First Ever Asteroid Mining Mission Vanished In Space: Here’s What Happened

The First Ever Asteroid Mining Mission Vanished In Space: Here's What Happened

Leave a Reply Cancel reply

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

Your Tech Resources

  • 30 Second Tech ™
  • AI
  • App Zone ™
  • Apple
  • Ars Technica
  • CNET
  • ComputerWorld
  • Crypto News
  • Cybersecurity
  • Endgadget
  • Fossbytes
  • Gaming
  • GeekWire
  • Gizmodo
  • Google News
  • Hacker News
  • Harvard Tech
  • I Like Cats ™
  • I Like Dogs ™
  • LifeHacker
  • MacRumors
  • Macworld
  • Mashable
  • Microsoft
  • MIT Tech
  • PC World
  • Photofocus
  • Physics
  • Random Tech
  • Retro Rewind ™
  • Robot Report
  • SiliconANGLE
  • SlashGear
  • Smartphone
  • StackSocial
  • Tech Art
  • Tech Careers
  • Tech Deals
  • Techcratic ™
  • TechCrunch
  • Techdirt
  • TechRepublic
  • Techs Got To Eat ™
  • TechSpot
  • Tesla
  • The Verge
  • TNW
  • Trusted Reviews
  • UFO
  • VentureBeat
  • Visual Capitalist
  • Weird Stuff
  • Wired
  • ZDNet

Tech News

  • 30 Second Tech ™
  • AI
  • AnandTech
  • Apple Insider
  • Ars Technica
  • CNET
  • ComputerWorld
  • Crypto News
  • Cybersecurity
  • Endgadget
  • ExtremeTech
  • Fossbytes
  • Gaming
  • GeekWire
  • Gizmodo

Tech News

  • Harvard Tech
  • MacRumors
  • Macworld
  • Mashable
  • Microsoft
  • MIT Tech
  • Physics
  • PC World
  • Random Tech
  • Retro Rewind ™
  • SiliconANGLE
  • SlashGear
  • Smartphone
  • StackSocial
  • Tech Careers

Tech News​

  • Tech Art
  • TechCrunch
  • Techdirt
  • TechRepublic
  • Techs Got To Eat ™
  • TechSpot
  • Tesla
  • The Verge
  • TNW
  • Trusted Reviews
  • UFO
  • VentureBeat
  • Visual Capitalist
  • Weird Stuff
  • Wired
  • ZDNet

Site Links

  • About Techcratic
  • Affiliate Disclaimer
  • Affiliate Link Policy
  • Contact Techcratic
  • Dealors Discount Store
  • Privacy and Security Disclaimer
  • Privacy Policy
  • RSS Feed
  • Site Map
  • Support Techcratic
  • Techcratic
  • Tech Deals
  • TOS
  • 𝕏
Click For A Secret Deal

Techcratic – Your All In One Tech Hub © 2020 – 2025
All Rights Reserved
∞

No Result
View All Result
  • Home
  • Apple
  • Gaming
  • Microsoft
  • AnandTech