{"id":8395,"date":"2020-09-09T11:56:43","date_gmt":"2020-09-09T11:56:43","guid":{"rendered":"http:\/\/www.max-sperling.bplaced.net\/?p=8395"},"modified":"2024-02-16T10:33:32","modified_gmt":"2024-02-16T10:33:32","slug":"load-balancing-based-on-napt","status":"publish","type":"post","link":"http:\/\/www.max-sperling.bplaced.net\/?p=8395","title":{"rendered":"Load balancing (based on NAPT)"},"content":{"rendered":"<p>A common way to realise a Load balancing is happening based on NAPT (Network Address Port Translation).<\/p>\n<pre>\r\n      Client 1                    Client 2                    Client 3\r\n SRC: 10.11.12.13:111        SRC: 10.11.12.13:222        SRC: 15.16.17.18:111\r\n DST: 20.21.22.23:443        DST: 20.21.22.23:80         DST: 20.21.22.23:443\r\n                |                      |                     |\r\n                |----------|           |          |----------|            WAN\r\n-----------------------------------------------------------------------------\r\n                           \u2193           \u2193          \u2193                       LAN\r\n                      |--------------------------------|\r\n                      |        LB Session Table        | WAN to LAN:\r\n                      |--------------------------------| Modifies Dest.-IP\r\n                      |   Public Addr   | Private Addr | (Public --> Private)\r\nPublic IPv4 from ISP: |--------------------------------|\r\n    20.21.22.23       | 10.11.12.13:111 | 10.0.0.1:443 | LAN to WAN:\r\n                      | 10.11.12.13:222 | 10.0.0.2:80  | Modifies Source-IP\r\n                      | 15.16.17.18:111 | 10.0.0.3:443 | (Private --> Public)\r\n                      |--------------------------------|\r\n                           |           |          |\r\n                |----------|           |          |----------|\r\n                \u2193                      \u2193                     \u2193\r\n      Server 1                    Server 2                    Server 3\r\n SRC: 10.11.12.13:111        SRC: 10.11.12.13:222        SRC: 15.16.17.18:111\r\n DST: 10.0.0.1:443           DST: 10.0.0.2:80            DST: 10.0.0.3:443\r\n<\/pre>\n<p>PS: Another possibility is using DNS, which circles on a list of server IP&#8217;s on each request.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A common way to realise a Load balancing is happening based on NAPT (Network Address Port Translation). Client 1 Client<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false},"categories":[23],"tags":[],"_links":{"self":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/8395"}],"collection":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8395"}],"version-history":[{"count":1,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/8395\/revisions"}],"predecessor-version":[{"id":16785,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/8395\/revisions\/16785"}],"wp:attachment":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8395"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8395"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}