1
On Routing Optimization in Networks with
Embedded Computational Services
Lifan Mei∗, Jinrui Gou†, Jingrui Yang‡, Yujin Cai§, and Yong Liu Fellow, IEEE¶
Department of Electrical and Computer Engineering, New York University
Email: ∗lifan@nyu.edu, †jr6226@nyu.edu, ‡jy2823@nyu.edu, §yc4090@nyu.edu, ¶yongliu@nyu.edu
Abstract—Modern communication networks are increasingly
equipped with in-network computational capabilities and ser-
vices. Routing in such networks is significantly more complicated
than the traditional routing. A legitimate route for a flow not
only needs to have enough communication and computation
resources, but also has to conform to various application-specific
routing constraints. This paper presents a comprehensive study
on routing optimization problems in networks with embedded
computational services. We develop a set of routing optimization
models and derive low-complexity heuristic routing algorithms
for diverse computation scenarios. For dynamic demands, we
also develop an online routing algorithm with performance
guarantees. Through evaluations over emerging applications on
real topologies, we demonstrate that our models can be flexibly
customized to meet the diverse routing requirements of different
computation applications. Our proposed heuristic algorithms
significantly outperform baseline algorithms and can achieve
close-to-optimal performance in various scenarios.
Index Terms—Routing, Edge Computing, In-Network Compu-
tation, Network Function Virtualization
I. INTRODUCTION
Modern communication networks are increasingly equipped
with in-network computational capabilities and services.
Software-Defined Networking (SDN) [1] [2] technology can
decouple data plane and control plane, and the routing decision
can be made in a centralized fashion rather than hop-by-hop,
utilizing more information for better routing decision. Traffic
flows traversing such networks are processed by different
types of middle-boxes in-flight. For example, in a 5G [3]
core network, traffic from/to mobile user devices must pass
through special network elements, including eNodeB, serving
gateways, and packet data network gateways. To improve
security and/or boost application performance, an applica-
tion flow may also traverse other types of middle-boxes for
application-specific processing, e.g., intrusion detection and
prevention, content caching to reduce latency and network
traffic, rendering of VR/AR objects to offload user devices,
object detection from video/lidar camera data acquired by
autonomous vehicles, etc. In a cloud-native network, to im-
prove performance and resilience, middle-boxes are replicated
throughout the network, and can be elastically provisioned on
commodity servers through Network Function Virtualization
(NFV) [4] [5].
Routing is a critical component of networking. The main
goal of the traditional network routing is to forward user traffic
to their destinations with the lowest possible delay, while
maintaining the network-wide load balance and resilience.
Routing in networks with embedded computational services
is significantly more complicated. It has to find a path for
each flow that simultaneously has sufficient bandwidth and
computation resources to meet the flow’s traffic and computa-
tion demands. Load balance and resilience have to be main-
tained on both communication links and computing nodes. To
further complicate matters, application-specific computational
services will introduce diverse additional routing requirements.
Some application flows have to traverse multiple types of
middle-boxes in certain preset orders, and the routing path
may have to contain cycles. The traffic volume of a flow might
increase or decrease after processing, consequently, the flow
conservation law no longer holds. Some applications require
the computation to be done on a single computation node,
while some applications can split their computation load to
multiple paths and multiple nodes to achieve the parallelization
gain. How traffic and computation are split directly impacts the
load balance and resilience of the whole network. The existing
routing models cannot directly address these new challenges
and requirements. The goal of our study is to comprehensively
explore the design space of routing in networks with embedded
computational services. We develop a set of routing opti-
mization models and derive low-complexity heuristic routing
algorithms for diverse computation scenarios. Towards this
goal, we made the following contributions.
1) For routing with non-splittable flows, we show that
the problem is NP-Hard, and develop a loop-friendly
mixed integer program (MIP) model to characterize
the interplay between traffic routing, computation load
distribution, and network delay performance. We further
design a Metric-TSP type of heuristic algorithm to
achieve close-to-optimal performance.
2) When flows can be arbitrarily split, we prove the equiv-
alence between the routing with computational services
problem and the regular routing problem using the
segment routing idea. We develop a Linear Program
(LP) routing optimization model by extending the classic
Multi-Commodity-Flow (MCF) model to work with
heterogeneous middle-boxes and traffic scaling resulting
from the processing. The LP model can be further
extended to study the joint optimization of traffic routing
and computation resource provisioning.
3) For come-and-go dynamic traffic demands, we convert
the online routing problem into a flow packing prob-
lem, and develop a primal-dual type of online routing
algorithm with performance guarantees.
4) We evaluate the developed models and algorithms us-
ing emerging computation applications over real net-
work topologies. Through extensive experiments, we
demonstrate that our models can be flexibly customized
to meet the diverse routing requirements of different
arXiv:2210.03338v2 [cs.NI] 6 Jun 2023