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

Event-Driven Extraction of HTTP Payload From Concurrent Streams

Mingzhe Li 1,2 , Jinlin Wang 1 , Xiao Chen 1 , Jun Chen 1

  • 1 National Network New Media Engineering Research Center, Institute of Acoustics, Chinese Academy of Sciences, Beijing 100190, China
  • 2 University of Chinese Academy of Sciences, Beijing 100190, China

Abstract

Many network devices undertake tasks that involveextracting HTTP payload from a large number of datastreams. In order to model such tasks and thus developfeasible approaches, this paper analyzes action characteristicsof network byte stream reading and grammar ofHTTP response message encoding. Based on this analysis, wepropose a parsing algorithm for concurrent HTTP responsestreams, built upon stack buffer peeking operations and theextended finite state machine model. Implementation issueson parallel platforms are also studied in this paper. Ourscheme is event-driven, does not require full buffering of thewhole HTTP message, and saves one memory copy comparedto naive static parsing method. Test results show that ourmethod achieves better performance in terms of CPU andmemory consumption.

Keywords

  • HTTP response
  • chunked encoding
  • extende
jsw0910-11

How to Cite

Copied

Mingzhe Li, Jinlin Wang, Xiao Chen, and Jun Chen, "Event-Driven Extraction of HTTP Payload From Concurrent Streams," Journal of Software, vol. 9, no. 10, pp. 2579-2585, 2014. https://doi.org/ 10.4304/jsw.9.10.2579-2585

Copyright & License

Copyright © 2014 by the authors. This is an open access article distributed under the Creative Commons Attribution License which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited (CC BY 4.0).

Article Metrics in Dimensions

General Information

  • ISSN: 1796-217X (Online)

  • Abbreviated Title: J. Softw.

  • Frequency:  Biannually

  • APC: 500USD

  • DOI: 10.17706/JSW

  • Editor-in-Chief: Prof. Antanas Verikas

  • Executive Editor: Ms. Cecilia Xie

  • Abstracting/ Indexing: DBLP, CNKI, 

  • Google Scholar, ProQuest,
           INSPEC(IET), ULRICH's Periodicals
           Directory, WorldCat, etc

  • E-mail: editor@jsoftware.us

  • Aug 27, 2026 News!

    Vol 21, No 1 has been published with online version

  • Mar 30, 2026 News!

    Vol 20, No 2 has been published with online version   [Click]

  • Apr 01, 2024 News!

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

  • Apr 01, 2024 News!

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

  • Mar 07, 2025 News!

    JSW had implemented online submission system   [Click]