Concepts: vRouter, vSwitch, vLB (Wave B)

Last updated 2 min read
Report issue

Overview#

Wave B introduces critical virtual networking primitives for GritivaCore, enhancing the capabilities established in Wave A. This document outlines the vRouter, vSwitch, and vLB, detailing their definitions, use cases, features, and comparisons. These components are essential for advanced networking scenarios, particularly in multi-VNet topologies and high availability (HA) application patterns.

vRouter#

Definition#

The vRouter provides Layer 3 routing between Virtual Networks (VNets) with policy-based routing (PBR) capabilities.

Use Cases#

  • Connecting multiple VNets for intercommunication.
  • Implementing policy-based routing for traffic management.

Features#

  • Supports BGP-like advertising.
  • Enables advanced routing configurations.

vSwitch#

Definition#

The vSwitch creates a Layer 2 broadcast domain across scopes, primarily for legacy applications requiring ARP discovery.

Use Cases#

  • Legacy applications that depend on VLAN-style networking.

Features#

  • Facilitates ARP discovery across VNets.

vLB#

Definition#

The vLB is a Layer 4/Layer 7 load balancer that includes health checks, sticky sessions, and failover capabilities similar to Cloudflare.

Use Cases#

  • Distributing traffic across multiple application backends.
  • Ensuring high availability and reliability for applications.

Features#

  • Health checks for backend services.
  • Sticky sessions for user sessions.

Comparison#

FeaturevRoutervSwitchvLB
LayerL3L2L4/L7
Use CaseMulti-VNet routingLegacy app supportLoad balancing
Policy-BasedYesNoYes

ASCII Topology#

TEXT
  VNet A        VNet B
    |             |
    |             |
  +---+       +---+
  | vR|-------| vR|
  +---+       +---+
    |             |
    |             |
  +-----------------+
  |       vLB      |
  +-----------------+
    |             |
  +---+       +---+
  | App|       | App|
  +---+       +---+

Lifecycle Commands#

The Wave B primitives are created and wired up in the panel at https://gritiva.com:

  • MESH → vRouters — open MESH → vRouters, create the router, and select the VNets it should connect.
  • vLB — create the load balancer and add its backends as scope:port pairs.
  • vSwitch — create the L2 segment and bind it to the VNet that needs it.

To read the current inventory from a script:

BASH
curl -s https://api.gritiva.com/api/v1/vrouters \
  -H "X-API-Key: $GRITIVA_API_KEY"

curl -s https://api.gritiva.com/api/v1/vnets \
  -H "X-API-Key: $GRITIVA_API_KEY"

API keys are issued in the panel under SET. → API keys.

Render Revision Idempotency#

Wave B introduces a render_revision counter for reconciliation, allowing for retryable partial failures. This ensures that operations can be safely retried without unintended side effects.

Smoke Test Status#

Wave B has been shipped, but the full smoke-test suite is pending. Progress is tracked in the private GritivaCore repository, so there is no public issue to link; the panel's networking pages are the authoritative view of what is currently supported.