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:  Quarterly
Editor-in-Chief: Prof. Antanas Verikas
Executive Editor: Ms. Yoyo Y. Zhou
Abstracting/ Indexing: DBLP, EBSCO, CNKIGoogle Scholar, ProQuest, INSPEC(IET), ULRICH's Periodicals Directory, WorldCat, etc
E-mail: jsweditorialoffice@gmail.com
  • Mar 01, 2024 News!

    Vol 19, No 1 has been published with online version    [Click]

  • Apr 26, 2021 News!

    Vol 14, No 4- Vol 14, No 12 has been indexed by IET-(Inspec)     [Click]

  • Nov 18, 2021 News!

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

  • Jan 04, 2024 News!

    JSW will adopt Article-by-Article Work Flow

  • Nov 02, 2023 News!

    Vol 18, No 4 has been published with online version   [Click]