数据与计算发展前沿 ›› 2020, Vol. 2 ›› Issue (3): 75-86.

doi: 10.11871/jfdc.issn.2096-742X.2020.03.007

所属专题: 下一代互联网络技术与应用

• 专刊:下一代互联网络技术与应用(上) • 上一篇    下一篇

基于P4的HTTP网内缓存方案及其实现

詹昱辰(),冯巍巍(),谭小彬()   

  1. 中国科学技术大学信息科学技术学院自动化系,安徽 合肥 230022
  • 收稿日期:2020-04-10 出版日期:2020-06-20 发布日期:2020-08-19
  • 通讯作者: 詹昱辰
  • 作者简介:詹昱辰,中国科学技术大学信息科学技术学院,主要研究方向为未来网络架构领域。
    本文主要负责文献调研与文章撰写。
    Zhan Yuchen is now an undergraduate student at the University of Science and Technology of China(USTC) and will continue his graduate studies in the Department of Automation, USTC. His research interests include future Internet architecture related areas.
    In this paper he is mainly responsible for literature research and article writing.
    E-mail: zyc233@mail.ustc.edu.cn|冯巍巍,中国科学技术大学自动化系硕士研究生,主要研究方向为未来网络架构领域。
    本文主要承担实验设计与实施工作。
    Feng Weiwei is currently working toward MS degree in the Department of Automation, USTC, China. He received his B.S. degree at BUPT (Beijing University of Posts and Telecommunications) in 2018. His research interests include future Internet architecture related areas.
    In this paper he is mainly responsible for the design and implementation of the experiments.
    E-mail: fengww@mail.ustc.edu.cn|谭小彬,中国科学技术大学信息科学技术学院自动化系,博士,副教授,研究方向包括未来网络架构、自适应传输流和信息安全。
    本文主要工作为作为指导老师指导文章完成。
    Tan Xiaobin is an associate professor in the Department of Automation, School of Information Science and Technology, USTC, China. He received his B.S. and Ph.D. degree at the University of Science and Technology of China (USTC) in 1996 and 2003 respectively. His research interests include future Internet architecture, adaptive streaming, and information security.
    In this paper he is mainly responsible for guidance of paper competition.
    E-mail: xbtan@ustc.edu.cn
  • 基金资助:
    国家自然科学基金(61673360)

A Solution for HTTP In-Network Caching Based on P4

Zhan Yuchen(),Feng Weiwei(),Tan Xiaobin()   

  1. Department of Automation, School of Information Science and Technology, University of Science and Technology of China,Hefei, Anhui 230022, China
  • Received:2020-04-10 Online:2020-06-20 Published:2020-08-19
  • Contact: Zhan Yuchen

摘要:

【目的】在当今的网络交互中,最常用到的是HTTP协议,并且HTTP的使用量仍在迅速增长。然而,HTTP的通常传输仍然需要基于基础的TCP/ IP协议栈,这限制了其解决当前因特网上的问题的能力。在用户浏览网页时,网页的响应速度对用户的访问体验来说是很关键的。本文旨在给出一种可行的使网页浏览响应速度提升的方案。【方法】在本文中,我们提出并测试了一种解决方案,借鉴ICN(信息中心网络)协议的思路,通过使用P4(协议无关的可编程数据包处理器)语言,在HTTP协议中实现网络内缓存。首先,我们提出一种数据包转换机制,用于普通数据包与特制数据包的来回转换,其次采用P4语言程序在转发路由器中实现ICN传输过程。【结果】为了评估成果,我们用虚拟机设计搭建了一个网络拓扑。经过测试,与使用普通的HTTP协议时相比,本文中的方案使P4交换机能够缓存HTTP内容响应,聚合相同的请求,改善网络的性能。【结论】于是得出在提升用户浏览网页时的体验上,本文提出的方案是有效的。

关键词: HTTP, ICN(信息中心网络), P4语言, 网络内缓存

Abstract:

[Objective] HTTP is the most used protocol in network traffic these days, and the use of HTTP is still growing rapidly. However, the normal transmission of HTTP requires the underlying TCP/IP protocol stack, which limits its ability to solve problems in the current Internet. The response speed of a web page is critical to users’ experience when they browse the web pages. This paper aims to give a solution to improve the response speed of web browsing. [Methods] In this paper, we propose a solution to implement in-network cache in HTTP protocol using the idea of ICN (Information Centric Network) protocol and the P4 (Programming Protocol-Independent Packet Processors) language and conduct evaluation of the proposed solution. Firstly, we propose a packet conversion mechanism for converting a custom packet into a special packet and converting it back. Secondly, we adopt P4 language to implement the ICN transmission in the forwarding router. [Results] In order to verify the functionality of our design, we set up a network topology among multiple virtual machines and verify the network performance improvements when using the ICN protocol in HTTP transports. Evaluation results show our solution that enables P4 switches to cache HTTP content responses can aggregate the same requests and improve network performance. [Conclusions] Therefore, the solution we proposed in this paper is effective for users in web page browsings.

Key words: HTTP, information centric network, P4 language, in-network cache