Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 2.1 KB

README.md

File metadata and controls

48 lines (35 loc) · 2.1 KB

GameTrafficOptimization

The project is not finished yet.

Testing TCP, SCTP protocols, ROHC header compression, LZ4, Huffman payload compression with cocos2d-x.

Made for masters thesis.

An application that supposed to work on different platforms.

Used for testing different algorithms:

Transport protofol header compression: ROHC Payload that is mostly used in online games compression: LZ4, Huffman, Simd And also to test couple of transport protocols: TCP SCTP

Library list:

  1. TCP - ported from 39dll (gamemaker lib) : http://www.lukeescude.com/online-tutorial/
  2. ROHC - https://rohc-lib.org/ //Note: ios doesn't allow to create socket without root access. So sending raw packet would be possible only on jailbroken devices.
  3. Huffman - https://github.com/crookedbard/Working-Huffman
  4. Lz4 - ... in code
  5. Simd - ?
  6. SCTP - Github: https://github.com/sctplab/usrsctp

Sending over SCTP To send data over SCTP directly you need root privileges because raw sockets are used. Thus instead of specifying the encapsulation ports you have to start the programs prepending sudo or in case of Windows start the program from an administrator console.

Usage of SCTP and ROHC in ios devices are impossible due to raw socket permission. It is not allowed to use raw sockets without root. And root access in ios appse are not possible to get.

Progress:

  1. Control panel sciene (in which tests will be performed) - Done.
  2. TCP - Done, with some minor issues. some functions doesn't work properly on unix systems: setasync(), setformat().
  3. Huffman - Done, but there should be a posibility for some improvements.
  4. Lz4 - Done, but there should be a posibility for some improvements.
  5. ROHC - ios doesn't allow to create socket without root access. So sending raw packet would be possible only on jailbroken devices.
  6. Added possibility to print debug info not in console but on cocos2dx scene.

To do:

  1. All the different libraries needs to be ported to different platforms.
  2. Prepare payload compression tests: cycles per time, compress ratio based on different game payload type.
  3. SCTP tests ??
  4. ROHC tests ??
  5. Sctp
  6. Simd