Nothing Special   »   [go: up one dir, main page]

skip to main content
10.1145/3589334.3645333acmconferencesArticle/Chapter ViewAbstractPublication PagesthewebconfConference Proceedingsconference-collections
research-article

DirectFaaS: A Clean-Slate Network Architecture for Efficient Serverless Chain Communications

Published: 13 May 2024 Publication History

Abstract

Serverless computing, also known as Function-as-a-Service (FaaS), triggers web applications in the form of function chains. It uses a central orchestrator to route all requests from end-users and internal functions. Such architecture simplifies application deployment for developers. However, the convenient centralized network architecture compromises the efficiency of function chain communications. Specifically, (i) a centralized API gateway assists in routing requests between functions. This indirect routing scheme raises invocation latency. (ii) The control flow for invoking functions and the data flow for passing function data packets are both forwarded by the API gateway. This results in the API gateway consuming a significant amount of resources. (iii) All data packets of internal function communications go through the same API gateway. This expands the additional attack surface in multi-tenant scenarios.
In this paper, we propose DirectFaaS, a clean-slate network architecture to improve the function chain communication performance. By separating coupled control flow and data flow, DirectFaaS releases the API gateway from heavy traffic forwarding, reducing its resource consumption. For this goal, DirectFaaS exploits the network control capabilities of Software-Defined Networking (SDN) to establish direct data forwarding channels to accelerate function chain invocations. In addition, the data flow constrained by fine-grained network policies consolidates multi-tenant traffic security. We implement the DirectFaaS prototype on the popular OpenFaaS platform. Evaluations under real-world serverless applications show that DirectFaaS achieves a reduction in application execution time by up to 30.9% and CPU consumption by up to 30.1% compared to the current architecture.

Supplemental Material

MOV File
Supplemental video

References

[1]
Istemi Ekin Akkus, Ruichuan Chen, Ivica Rimac, Manuel Stein, Klaus Satzke, Andre Beck, Paarijaat Aditya, and Volker Hilt. 2018. SAND: Towards High-Performance Serverless Computing. In 2018 Usenix Annual Technical Conference (USENIX ATC 18). 923--935.
[2]
Alibaba Cloud. 2022. Apsara Stack Enterprise. https://apsarastackdocument.oss-cn-hangzhou.aliyuncs.com/01_ApsaraStackEnterprise/v3.16.2_intl_en/%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97%2B%E7%94%A8%E6%88%B7%E6%8C%87%E5%8D%97/Alibaba%20Cloud%20Apsara%20Stack%20Enterprise%20V3.16.2%20Virtual%20Private%20Cloud%20User%20Guide%2020220719.pdf
[3]
Gianni Antichi and Gábor Rétvári. 2020. Full-stack SDN: The next big challenge?. In Proceedings of the Symposium on SDN Research. 48--54.
[4]
AWS. 2019. Announcing improved VPC networking for AWS Lambda functions. https://aws.amazon.com/cn/blogs/compute/announcing-improved-vpc-networking-for-aws-lambda-functions/
[5]
AWS. 2022. AWS Lambda Introduction. https://aws.amazon.com/?nc2=h_lg
[6]
AWS. 2023 a. Amazon API Gateway FAQs. https://www.amazonaws.cn/en/api-gateway/faqs/
[7]
AWS. 2023 b. Build a multi-tenant serverless architecture in Amazon OpenSearch Service. https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/build-a-multi-tenant-serverless-architecture-in-amazon-opensearch-service.html
[8]
AWS. 2023. On-demand scaling example. https://docs.aws.amazon.com/lambda/latest/operatorguide/on-demand-scaling.html
[9]
AWS. 2023. Serverless microservices. https://docs.aws.amazon.com/whitepapers/latest/microservices-on-aws/serverless-microservices.html
[10]
AWS. 2023. Use API Gateway Lambda authorizers. https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-use-lambda-authorizer.html
[11]
AWS. 2023. What are Microservices? https://aws.amazon.com/microservices/?nc1=h_ls
[12]
Azure. 2019. Building serverless microservices in Azure - sample architecture. https://azure.microsoft.com/zh-cn/blog/building-serverless-microservices-in-azure-sample-architecture/
[13]
Joao Carreira, Pedro Fonseca, Alexey Tumanov, Andrew Zhang, and Randy Katz. 2019. Cirrus: A serverless framework for end-to-end ml workflows. In Proceedings of the ACM Symposium on Cloud Computing. 13--24.
[14]
Gustavo André Setti Cassel, Vinicius Facco Rodrigues, Rodrigo da Rosa Righi, Marta Rosecler Bez, Andressa Cruz Nepomuceno, and Cristiano André da Costa. 2022. Serverless computing for Internet of Things: A systematic literature review. Future Generation Computer Systems, Vol. 128 (2022), 299--316.
[15]
cloudping.co. 2023. AWS Latency Monitoring Data. https://www.cloudping.co/grid/p_50/timeframe/1Y
[16]
DATADOG. 2021. The state of serverless. https://www.datadoghq.com/state-of-serverless-2021/
[17]
Pubali Datta, Prabuddha Kumar, Tristan Morris, Michael Grace, Amir Rahmati, and Adam Bates. 2020. Valve: Securing function workflows on serverless computing platforms. In Proceedings of The Web Conference 2020. 939--950.
[18]
Pubali Datta, Isaac Polinsky, Muhammad Adil Inam, Adam Bates, and William Enck. 2022. ALASTOR: Reconstructing the Provenance of Serverless Intrusions. In 31st USENIX Security Symposium (USENIX Security 22). 2443--2460.
[19]
Nilanjan Daw, Umesh Bellur, and Purushottam Kulkarni. 2020. Xanadu: Mitigating cascading cold starts in serverless function chain deployments. In Proceedings of the 21st International Middleware Conference. 356--370.
[20]
Andrew D Ferguson, Steve Gribble, Chi-Yao Hong, Charles Killian, Waqar Mohsin, Henrik Muehe, Joon Ong, et al. 2021. Orion: Google's Software-Defined Networking Control Plane. In 18th USENIX Symposium on Networked Systems Design and Implementation (NSDI 21). 83--98.
[21]
Google. 2023. Google Cloud Functions. https://cloud.google.com/functions
[22]
Kaiyu Hou, Sen Lin, Yan Chen, and Vinod Yegneswaran. 2022. QFaaS: accelerating and securing serverless cloud networks with QUIC. In Proceedings of the 13th Symposium on Cloud Computing. 240--256.
[23]
Erika Hunhoff, Shazal Irshad, Vijay Thurimella, Ali Tariq, and Eric Rozner. 2020. Proactive Serverless Function Resource Management. In Proceedings of the 2020 Sixth International Workshop on Serverless Computing (New York, NY, USA). Association for Computing Machinery, 61--66.
[24]
Istio. 2023. Bookinfo Application. https://istio.io/latest/docs/examples/bookinfo/
[25]
Zhipeng Jia and Emmett Witchel. 2021. Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservices. In Proceedings of the 26th ACM International Conference on Architectural Support for Programming Languages and Operating Systems. 152--166.
[26]
Eric Jonas, Qifan Pu, Shivaram Venkataraman, Ion Stoica, and Benjamin Recht. 2017. Occupy the cloud: Distributed computing for the 99%. In Proceedings of the 2017 symposium on cloud computing. 445--451.
[27]
KEDA. 2023. KEDA introduction. https://keda.sh/
[28]
Vojdan Kjorveziroski, Cristina Bernad Canto, Pedro Juan Roig, Katja Gilly, Anastas Mishev, Vladimir Trajkovikj, and Sonja Filiposka. 2021. IoT serverless computing at the edge: Open issues and research direction. Transactions on Networks and Communications (2021).
[29]
Kube-OVN. 2022. Kube-OVN introduction. https://kubeovn.github.io/docs/v1.10.x/en/
[30]
Kubernetes. 2023 a. kube-apiserver. https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/
[31]
Kubernetes. 2023 b. Kubernetes Inc. https://kubernetes.io/
[32]
Kubernetes. 2023 c. Network Policies. https://kubernetes.io/docs/concepts/services-networking/network-policies/
[33]
Collin Lee and John Ousterhout. 2019. Granular computing. In Proceedings of the Workshop on Hot Topics in Operating Systems. 149--154.
[34]
Zijun Li, Linsong Guo, Quan Chen, Jiagan Cheng, Chuhao Xu, Deze Zeng, Zhuo Song, Tao Ma, Yong Yang, Chao Li, et al. 2022. Help Rather Than Recycle: Alleviating Cold Startup in Serverless Computing Through Inter-Function Container Sharing. In 2022 USENIX Annual Technical Conference (USENIX ATC 22). 69--84.
[35]
Ashraf Mahgoub, Edgardo Barsallo Yi, Karthick Shankar, Sameh Elnikety, Somali Chaterji, and Saurabh Bagchi. 2022. ORION and the three rights: Sizing, bundling, and prewarming for serverless DAGs. In 16th USENIX Symposium on Operating Systems Design and Implementation (OSDI 22). 303--320.
[36]
Nick McKeown, Tom Anderson, Hari Balakrishnan, Guru Parulkar, Larry Peterson, Jennifer Rexford, Scott Shenker, and Jonathan Turner. 2008. OpenFlow: enabling innovation in campus networks. ACM SIGCOMM computer communication review, Vol. 38, 2 (2008), 69--74.
[37]
Microsoft. 2022. Introduction to Azure Functions. https://docs.microsoft.com/en-us/azure/azure-functions/functions-overview
[38]
Ingo Müller, Renato Marroqu'in, and Gustavo Alonso. 2020. Lambada: Interactive data analytics on cold data using serverless cloud infrastructure. In Proceedings of the 2020 ACM SIGMOD International Conference on Management of Data. 115--130.
[39]
NVIDIA. 2022. Open vSwitch. https://www.openvswitch.org/
[40]
Openfaas. 2017. Openfaas Overview. https://ericstoekl.github.io/faas/
[41]
OpenFaaS. 2023. OpenFaaS - Serverless Functions Made Simple. https://github.com/openfaas/faas
[42]
Shixiong Qi, Leslie Monis, Ziteng Zeng, Ian-chin Wang, and KK Ramakrishnan. 2022. SPRIGHT: extracting the server from serverless computing! high-performance eBPF-based event-driven, shared-memory processing. In Proceedings of the ACM SIGCOMM 2022 Conference. 780--794.
[43]
rakyll. 2020. hey introduction. https://github.com/rakyll/hey
[44]
Charalampos Rotsos, Nadi Sarrar, Steve Uhlig, Rob Sherwood, and Andrew W Moore. 2012. OFLOPS: An open framework for OpenFlow switch evaluation. In Passive and Active Measurement: 13th International Conference, PAM 2012, Vienna, Austria, March 12--14th, 2012. Proceedings 13. Springer, 85--95.
[45]
Arnav Sankaran, Pubali Datta, and Adam Bates. 2020. Workflow integration alleviates identity and access management in serverless computing. In Annual Computer Security Applications Conference. 496--509.
[46]
Severless. 2023. Amazon API Gateway. https://www.serverless.com/guides/amazon-api-gateway/
[47]
Hua Shao, Xiaoliang Wang, Yuanwei Lu, Yanbo Yu, Shengli Zheng, and Youjian Zhao. 2021. Accessing Cloud with Disaggregated Software-Defined Router. In 18th USENIX Symposium on Networked Systems Design and Implementation (NSDI 21). 1--14.
[48]
Paulo Silva, Daniel Fireman, and Thiago Emmanuel Pereira. 2020. Prebaking functions to warm the serverless cold start. In Proceedings of the 21st International Middleware Conference. 1--13.
[49]
SimonEismann. 2021. Hello Retail! Application. https://github.com/SimonEismann/hello-retail
[50]
Harmeet Singh and Mayur Tanna. 2018. Serverless Web Applications with React and Firebase: Develop real-time applications for web and mobile platforms. Packt Publishing.
[51]
Ali Tariq, Austin Pahl, Sharat Nimmagadda, Eric Rozner, and Siddharth Lanka. 2020. Sequoia: Enabling quality-of-service in serverless computing. In Proceedings of the 11th ACM Symposium on Cloud Computing. 311--327.
[52]
Hao Wang, Di Niu, and Baochun Li. 2019. Distributed machine learning with a serverless architecture. In IEEE INFOCOM 2019-IEEE Conference on Computer Communications. IEEE, 1288--1296.
[53]
Haopei Wang, Abhinav Srivastava, Lei Xu, Sungmin Hong, and Guofei Gu. 2017. Bring your own controller: Enabling tenant-defined SDN apps in IaaS clouds. In IEEE INFOCOM 2017-IEEE Conference on Computer Communications. IEEE, 1--9.
[54]
Mike Wawrzoniak, Ingo Müller, Rodrigo Fraga Barcelos Paulus Bruno, and Gustavo Alonso. 2021. Boxer: Data analytics on network-enabled serverless platforms. In 11th Annual Conference on Innovative Data Systems Research (CIDR 2021).

Index Terms

  1. DirectFaaS: A Clean-Slate Network Architecture for Efficient Serverless Chain Communications

      Recommendations

      Comments

      Please enable JavaScript to view thecomments powered by Disqus.

      Information & Contributors

      Information

      Published In

      cover image ACM Conferences
      WWW '24: Proceedings of the ACM Web Conference 2024
      May 2024
      4826 pages
      ISBN:9798400701719
      DOI:10.1145/3589334
      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

      Sponsors

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      Published: 13 May 2024

      Permissions

      Request permissions for this article.

      Check for updates

      Author Tags

      1. sdn
      2. serverless computing
      3. serverless function chain
      4. serverless networking

      Qualifiers

      • Research-article

      Conference

      WWW '24
      Sponsor:
      WWW '24: The ACM Web Conference 2024
      May 13 - 17, 2024
      Singapore, Singapore

      Acceptance Rates

      Overall Acceptance Rate 1,899 of 8,196 submissions, 23%

      Contributors

      Other Metrics

      Bibliometrics & Citations

      Bibliometrics

      Article Metrics

      • 0
        Total Citations
      • 163
        Total Downloads
      • Downloads (Last 12 months)163
      • Downloads (Last 6 weeks)50
      Reflects downloads up to 30 Sep 2024

      Other Metrics

      Citations

      View Options

      Get Access

      Login options

      View options

      PDF

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader

      Media

      Figures

      Other

      Tables

      Share

      Share

      Share this Publication link

      Share on social media