ARRAY NTB XML
  • ARRAY NTB XML
    • Element <run>
    • Element <filter>
      • Element <find>
    • Element <output>
    • Element <chain>
    • Element <script>
    • Element <action>
    • Element <input>
    • Schema
  • Case Study
    • Mirror
    • Inline & Bypass
    • Load Balance
    • Packet Stripping
    • Packet Editing
    • Packet Tagging
    • Packet Reply
    • Packet > File
    • Tunnel
    • Bandwidth Control
    • Snort Rule > ARRAY NTB XML
    • Offload
    • Service Chain
    • Block Gmail
    • Block Specific Country
    • Block/Detect black list
    • Mobile Edge Computing Breakout
    • L2 GRE Breakout
    • VXLAN Breakout
    • VXLAN Encapsulation
    • L2 Switch Like
    • L3 Switch NAT Breakout
  • Reference
    • TW IP
Powered by GitBook
On this page
  • basic
  • inline loadbalance to IPS1 and IPS2
  1. Case Study

Load Balance

basic

P0,P1 load balance to P3,P4,P5,P6 by 5-tuple (sip,dip,sport,dport,ip_proto)

<run>
    <chain>
        <in>P0,P1</in>
        <out type="loadBalance" lbtype="5thash">P3,P4,P5,P6</out>
    </chain>
</run>

or

<run>
    <script src="common.js"></script>
    <script>
    <![CDATA[
        port_loadbalance ('P0,P1', 'P3,P4,P5,P6');
    ]]>
    </script>
</run>

inline loadbalance to IPS1 and IPS2

                         WAN
                          |
                          |P7 
                    --------------- 
  ---------        |               |
 |         |----P5 |               |
 |   IPS1  |       |               |
 |         |----P4 |               |
  ---------        |   Array NTB   |
  ---------        |               |
 |         |----P3 |               |
 |   IPS2  |       |               |
 |         |----P2 |               |
  ---------        |               |
                    --------------- 
                           |P6
                           |
                          LAN
<run>
    <chain>
        <in>P6</in>
        <out type="loadBalance" lbtype="5thash">P2,P4</out>
    </chain>
    <chain>
        <in>P7</in>
        <out type="loadBalance" lbtype="5thash">P3,P5</out>
    </chain>
    <chain>
         <in>P2,P4</in>
         <out>P6</out>
    </chain>
    <chain>
         <in>P3,P5</in>
         <out>P7</out>
    </chain>
</run>
PreviousInline & BypassNextPacket Stripping

Last updated 1 year ago