MOSN is a modular network proxy for TCP and HTTP traffic, routing, load balancing, and Istio-style service mesh deployments.
Overview
MOSN (Modular Open Smart Network) is a cloud-native network proxy written in Go and open sourced by Ant Group. It offers multi-protocol forwarding, modular extensions, and security features, and can integrate Envoy as a network library.
Core forwarding includes a self-contained server with TCP and UDP proxy support, transparent traffic hijack mode, HTTP/1.1 and HTTP/2, gRPC, and protocol extension through an XProtocol framework with automatic protocol identification. Routing covers virtual hosts, header and URL rules, redirects, mirroring, weighted routes, retries, and timeouts.
Backend management provides connection pools, circuit breaking, health checks, several load balancing policies, and multiple cluster types. Observability integrates tracing (including Jaeger and SkyWalking), Prometheus-style metrics, access logs, and admin API extensions. TLS supports SDS, multiple certificates, and extended cipher options.
MOSN can integrate with Istio for service mesh deployments and also operate as a standalone L4/L7 load balancer, API gateway, or cloud-native Ingress.
Key features
- TCP, UDP, and HTTP proxying
- Istio integration for service mesh
- Virtual host and header routing
- Load balancing and circuit breaking
- gRPC and HTTP/2 support
- Prometheus metrics and tracing hooks
- TLS with SDS certificate updates
- Hot upgrade and graceful shutdown
Use cases
- Service mesh data plane with Istio
- L7 load balancing for microservices
- API gateway or Ingress replacement
- Transparent sidecar traffic proxying