Giter Club home page Giter Club logo

colo-proxy's Introduction

PROXY is a kernel netfilter module, colo use it to compare the packets from master and slaver guest.

there are three modules in colo-proxy

nf_conntrack_colo: this module creates colo netlink socket through which qemu communicates with proxy, and register the nf_ct_colo_extend, this extension is used to store packets and connection related informations.

xt_PMYCOLO: this module does the queue of packets from master and slaver guest. for master, the queue is implemented through nfqueue & xt_PMYCOLO target. for slaver, the queue is implemented through pkttype & netfilter hook. and this module also does the compare of packets. it use a kernel thread to do this job, it is called kcolo[node_index]. this module requires one parameter "sec_dev", the sec_dev is the packet forwarding device, the slaver packet will arrive master host through this device. and the packet reply to master guest will be copied and forward to slaver guest through this device too.

xt_SECCOLO: this module just does one job: adjust the tcp seq/ack of packet which sent out by slaver guest, since the Initailize Sequence Number is random, the isn of master and slaver is different, we should adjust slaver's isn to make sure it is consistent with master.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.