Skip to content

smirzaei/l3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

L3

test

An experimental request aware load balancer. This is useful if you are dealing with a custom TCP protocol. There is a catch though, both downstream (the clients) and upstream (servers) need to add the following header to every request/response, so that the load balancer knows the length of each message.

+-----+------+------+------+---------+---------+---------+---------+
| B0  |  B1  |  B2  |  B3  |   B4    |   B5    |   B6    |   B7    |
+-----+------+------+------+---------+---------+---------+---------+
| VER | RES1 | RES2 | RES3 | MSG_LEN | MSG_LEN | MSG_LEN | MSG_LEN |
+-----+------+------+------+---------+---------+---------+---------+

B0:   It's used for versioning, write 0x01.
B1:   A reserved byte, write 0x00.
B2:   A reserved byte, write 0x00.
B3:   A reserved byte, write 0x00.
B4-7: Message length. 32 bit unsigned integer, in little endian byte order.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages