Volume 9 Number 10 (Oct. 2014)
Home > Archive > 2014 > Volume 9 Number 10 (Oct. 2014) >
JSW 2014 Vol.9(10): 2579-2585 ISSN: 1796-217X
doi: 10.4304/jsw.9.10.2579-2585

Event-Driven Extraction of HTTP Payload From Concurrent Streams

Mingzhe Li1, 2, Jinlin Wang1, Xiao Chen1, Jun Chen1
1National Network New Media Engineering Research Center, Institute of Acoustics, Chinese Academy of Sciences, Beijing 100190, China
2University of Chinese Academy of Sciences, Beijing 100190, China

Abstract—Many network devices undertake tasks that involve extracting HTTP payload from a large number of data streams. In order to model such tasks and thus develop feasible approaches, this paper analyzes action characteristics of network byte stream reading and grammar of HTTP response message encoding. Based on this analysis, we propose a parsing algorithm for concurrent HTTP response streams, built upon stack buffer peeking operations and the extended finite state machine model. Implementation issues on parallel platforms are also studied in this paper. Our scheme is event-driven, does not require full buffering of the whole HTTP message, and saves one memory copy compared to naive static parsing method. Test results show that our method achieves better performance in terms of CPU and memory consumption.

Index Terms—HTTP response, chunked encoding, extended finite state machine

[PDF]

Cite: Mingzhe Li, Jinlin Wang, Xiao Chen, Jun Chen, "Event-Driven Extraction of HTTP Payload From Concurrent Streams," Journal of Software vol. 9, no. 10, pp. 2579-2585, 2014.

General Information

ISSN: 1796-217X (Online)
Frequency: Monthly
Editor-in-Chief: Prof. Antanas Verikas
Executive Editor: Ms. Yoyo Y. Zhou
Abstracting/ Indexing: DBLP, EBSCO, ProQuest, INSPEC, ULRICH's Periodicals Directory, WorldCat, etc
E-mail: jsw@iap.org
  • Aug 21, 2019 News!

    Papers published in JSW Vol 14, No 1- Vol 14 No 8 have been indexed by DBLP     [Click]

  • Jun 25, 2019 News!

    Vol.13, No.9 has been indexed by EI (Inspec).   [Click]

  • Aug 01, 2018 News!

    [CFP] 2020 the annual meeting of JSW Editorial Board, ICCSM 2020, will be held in Rome, Italy, July 17-19, 2020   [Click]

  • Jul 10, 2019 News!

    Vol 14, No.8 has been published with online version 4 original aritcles from 2 countries are published in this issue.    [Click]

  • Sep 12, 2019 News!

    Vol 14, No 10 has been published with online version 4 original aritcles from 2 countries are published in this issue      [Click]