Integer handling is broken

Floating point can be tricky. You can’t really check for equality, and with IEEE 754 you have a bunch of fun things like values of not a number, infinities, and positive and negative zero.

But integers are simple, right? Nope.

I’ll use “integers” to refer to all integer types. E.g. C’s int, unsigned int, gid_t, size_t, ssize_t, unsigned long long, and Java’s int, Integer, etc…

Let’s list some problems:

What’s wrong with casting?

Casting an integer from one type to another changes three things:

  1. The type in the language’s type system.
  2. Crops values that don’t fit.
  3. May change the semantic value, by changing sign.

The first is obvious, and is even safe for the language to do implicitly. Why even bother telling the human that a conversion was done?

But think about the other two for a minute. Is there any reason that you want your Continue reading

Transit Gateway — a one-stop shop!

< MEDIUM: https://towardsaws.com/transit-gateway-a-one-stop-shop-e520d2f0afe3 >

I like Transit Gateway on so many levels, truly an NG service integrating many different points of ingress in a way with VPCs

Few important points to start with

  1. AWS Transit Gateway is a service that enables customers to connect their Amazon Virtual Private Clouds (VPCs) and on-premises networks to a single gateway.
  2. Transit Gateway is a hub that controls traffic routed among all the connected networks.
  3. Transit Gateway supports both IPv4 and IPv6 traffic.
  4. Transit Gateway is highly scalable and can support thousands of VPCs and on-premises networks.
  5. Transit Gateway uses route tables to determine how traffic is routed.
  6. Transit Gateway supports VPC peering and VPN connections.
  7. Transit Gateway can be used with AWS Direct Connect to create a private connection between an on-premises network and a VPN

Scenario 1 — Connect your VPCs

Interconnecting VPCs’s typically done through VPC-Peering, now while that is still valid you can easily interconnect VPCs through the transit gateway attachments feature, while VPC peering does only well VPC, transit gateway can connect VPCs, DX-Gateways and you can terminate IPSEC-VPN’s directly onto the transit gateway.

  • Routing tables are not auto-propagated, meaning you have to add static routes individually in Continue reading

An Introduction To Data Center Network Automation: An Onion-Based Architecture

Gone are the days when the data centers had a relatively simple network with VLANs, core switches, and a few firewalls. The network rarely changed. When a change was needed, someone who knew the network like the back of their hand had to configure those changes device per device, config line per config line. Nowadays […]

The post An Introduction To Data Center Network Automation: An Onion-Based Architecture appeared first on Packet Pushers.

Heavy Networking 654: What’s Up With DPUs?

Today on Heavy Networking we have a round-table discussion about Data Processing Units (DPUs). These devices let you bring networking, security, and storage capabilities closer to server workloads without burdening server CPUs. Guests Pete Lumbis and Aaron Glenn help us dissect DPUs, identify use cases, discuss adoption and operational challenges, and more.

Heavy Networking 654: What’s Up With DPUs?

Today on Heavy Networking we have a round-table discussion about Data Processing Units (DPUs). These devices let you bring networking, security, and storage capabilities closer to server workloads without burdening server CPUs. Guests Pete Lumbis and Aaron Glenn help us dissect DPUs, identify use cases, discuss adoption and operational challenges, and more.

The post Heavy Networking 654: What’s Up With DPUs? appeared first on Packet Pushers.

Nvidia tests: DPUs can cut the power servers use

The chip maker says tests of its BlueField-2 data-processing units (DPU) in servers results in significant power savings over servers that don’t use the specialized chips to offload tasks from the CPUs.The DPUs, or SmartNICs, take on certain workloads—packet routing, encryption, real-time data analysis—leaving the CPU free to process data. But Nvidia says they can also reduce power consumption.The four tests involved running similar workloads on servers with and without DPUs, and Nvidia concluded that even with the additional power draw by the DPUs, overall power consumption by the servers dropped.To read this article in full, please click here

Nvidia tests: DPUs can cut the power servers use

The chip maker says tests of its BlueField-2 data-processing units (DPU) in servers results in significant power savings over servers that don’t use the specialized chips to offload tasks from the CPUs.The DPUs, or SmartNICs, take on certain workloads—packet routing, encryption, real-time data analysis—leaving the CPU free to process data. But Nvidia says they can also reduce power consumption.The four tests involved running similar workloads on servers with and without DPUs, and Nvidia concluded that even with the additional power draw by the DPUs, overall power consumption by the servers dropped.To read this article in full, please click here

Nvidia tests: DPUs can cut power needed by servers

The chip maker says tests of its BlueField-2 data-processing units (DPU) in servers results in significant power savings over servers that don’t use the specialized chips to offload tasks from the CPUs.The DPUs, or SmartNICs, take on certain workloads—packet routing, encryption, real-time data analysis—leaving the CPU free to process data. But Nvidia says they can also reduce power consumption.The four tests involved running similar workloads on servers with and without DPUs, and Nvidia concluded that even with the additional power draw by the DPUs, overall power consumption by the servers dropped.To read this article in full, please click here

Nvidia tests: DPUs can cut power needed by servers

The chip maker says tests of its BlueField-2 data-processing units (DPU) in servers results in significant power savings over servers that don’t use the specialized chips to offload tasks from the CPUs.The DPUs, or SmartNICs, take on certain workloads—packet routing, encryption, real-time data analysis—leaving the CPU free to process data. But Nvidia says they can also reduce power consumption.The four tests involved running similar workloads on servers with and without DPUs, and Nvidia concluded that even with the additional power draw by the DPUs, overall power consumption by the servers dropped.To read this article in full, please click here

Hedgehog, Kubernetes, And The Network Automation Conundrum

This post originally appeared in Human Infrastructure, the Packet Pushers’ weekly newsletter. See back issues and sign up here to get it. The networking startup Hedgehog recently emerged from stealth with a network fabric that brings together the open-source SONiC network OS (NOS) and the Kubernetes orchestration platform. The goal is to provide a distributed […]

The post Hedgehog, Kubernetes, And The Network Automation Conundrum appeared first on Packet Pushers.

Video: EVPN Multihoming Deep Dive

After starting the EVPN multihoming versus MLAG presentation (part of EVPN Deep Dive webinar) with the taxonomy of EVPN-based multihoming, Lukas Krattiger did a deep dive into its intricacies including:

  • EVPN route types needed to support multihoming
  • A typical sequence of EVPN updates during multihoming setup
  • MAC multipathing, MAC aliasing, split horizon and mass withdrawals
  • Designated forwarder election
You need Free ipSpace.net Subscription to watch the video. To watch the whole webinar, buy Standard or Expert ipSpace.net Subscription.

Video: EVPN Multihoming Deep Dive

After starting the EVPN multihoming versus MLAG presentation (part of EVPN Deep Dive webinar) with the taxonomy of EVPN-based multihoming, Lukas Krattiger did a deep dive into its intricacies including:

  • EVPN route types needed to support multihoming
  • A typical sequence of EVPN updates during multihoming setup
  • MAC multipathing, MAC aliasing, split horizon and mass withdrawals
  • Designated forwarder election
You need Free ipSpace.net Subscription to watch the video. To watch the whole webinar, buy Standard or Expert ipSpace.net Subscription.