1 Spring Semester 2007, Dept. of Computer Science, Technion Internet Networking recitation #12 LSNAT - Load Sharing NAT (RFC 2391)

Slides:



Advertisements
Similar presentations
1 Network Address Translation (NAT) Relates to Lab 7. Module about private networks and NAT.
Advertisements

CST Computer Networks NAT CST 415 4/10/2017 CST Computer Networks.
IPv6 – IPv4 Network Address, Port & Protocol Translation & Multithreaded DNS Gateway Navpreet Singh, Abhinav Singh, Udit Gupta, Vinay Bajpai, Toshu Malhotra.
Umut Girit  One of the core members of the Internet Protocol Suite, the set of network protocols used for the Internet. With UDP, computer.
CCNA – Network Fundamentals
1 Internet Networking Spring 2004 Tutorial 13 LSNAT - Load Sharing NAT (RFC 2391)
1 Comnet 2010 Communication Networks Recitation 7 Lookups & NAT.
1 Network Address Translation (NAT) Relates to Lab 7. Module about private networks and NAT.
Page: 1 Director 1.0 TECHNION Department of Computer Science The Computer Communication Lab (236340) Summer 2002 Submitted by: David Schwartz Idan Zak.
1 A Comparison of Load Balancing Techniques for Scalable Web Servers Haakon Bryhni, University of Oslo Espen Klovning and Øivind Kure, Telenor Reserch.
COS 420 Day 20. Agenda Group Project Discussion Protocol Definition Due April 12 Paperwork Due April 29 Assignment 3 Due Assignment 4 is posted Last Assignment.
Understanding Networks. Objectives Compare client and network operating systems Learn about local area network technologies, including Ethernet, Token.
Introduction to Management Information Systems Chapter 5 Data Communications and Internet Technology HTM 304 Fall 07.
Lesson 1: Configuring Network Load Balancing
Chapter 2 Networking Overview. Figure 2.1 Generic protocol layers move data between systems.
網際網路協定基礎介紹 Data Communications and Computer Networks: A Business User’s Approach Fifth Edition (Chap 10)
Process-to-Process Delivery:
Support Protocols and Technologies. Topics Filling in the gaps we need to make for IP forwarding work in practice – Getting IP addresses (DHCP) – Mapping.
Network Address Translation
23-Support Protocols and Technologies Dr. John P. Abraham Professor UTPA.
Network Protocols. Why Protocols?  Rules and procedures to govern communication Some for transferring data Some for transferring data Some for route.
Lecture 2 TCP/IP Protocol Suite Reference: TCP/IP Protocol Suite, 4 th Edition (chapter 2) 1.
1 IP: putting it all together Part 2 G53ACC Chris Greenhalgh.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Network Services Networking for Home and Small Businesses – Chapter.
© MMII JW RyderCS 428 Computer Networking1 Private Network Interconnection  VPN - Virtual Private Networks  NAT - Network Address Translation  Describe.
Chapter 1: Introduction to Web Applications. This chapter gives an overview of the Internet, and where the World Wide Web fits in. It then outlines the.
CS 540 Computer Networks II Sandy Wang
Chabot College ELEC Ports (Layer 4).
COMT 429 The Internet Protocols COMT 429. History 1969First version of a 4 node store and forward network, the ARPAnet 1972Formal demonstration of ARPAnet.
Networks – Network Architecture Network architecture is specification of design principles (including data formats and procedures) for creating a network.
TCP1 Transmission Control Protocol (TCP). TCP2 Outline Transmission Control Protocol.
The Inter-network is a big network of networks.. The five-layer networking model for the internet.
Internet Protocol B Bhupendra Ratha, Lecturer School of Library and Information Science Devi Ahilya University, Indore
Network Security. 2 SECURITY REQUIREMENTS Privacy (Confidentiality) Data only be accessible by authorized parties Authenticity A host or service be able.
TCP/IP Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
Private Network Addresses IP addresses in a private network can be assigned arbitrarily. – Not registered and not guaranteed to be globally unique Generally,
Module 10: How Middleboxes Impact Performance
Homework 02 NAT 、 DHCP 、 Firewall 、 Proxy. Computer Center, CS, NCTU 2 Basic Knowledge  DHCP Dynamically assigning IPs to clients  NAT Translating addresses.
Network Address Translation External/ Internal/. OVERLOADING In Overloading, each computer on the private network is translated to the same IP address;
Presented by Rebecca Meinhold But How Does the Internet Work?
1 Internet Protocols To support the Internet and all its services, many protocols are necessary Some of the protocols that we will look at: –Internet Protocol.
Network Layer IP Address.
IST 201 Chapter 11 Lecture 2. Ports Used by TCP & UDP Keep track of different types of transmissions crossing the network simultaneously. Combination.
S ECURITY APPLIANCES Module 2 Unit 2. S ECURE NETWORK TOPOLOGIES A topology is a description of how a computer network is physically or logically organized.
NAT、DHCP、Firewall、FTP、Proxy
The Transport Layer Implementation Services Functions Protocols
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Network Address Translation (NAT)
VIRTUAL SERVERS Presented By: Ravi Joshi IV Year (IT)
Network Address Translation (NAT)
Networking for Home and Small Businesses – Chapter 6
Introducing To Networking
TCP Transport layer Er. Vikram Dhiman LPU.
NET323 D: Network Protocols
Networking for Home and Small Businesses – Chapter 6
I. Basic Network Concepts
Cabrillo College Building Cisco Remote Access Network
NET323 D: Network Protocols
Process-to-Process Delivery:
TCP/IP Protocol Suite: Review
Lecture 2: Overview of TCP/IP protocol
Lecture 3: Secure Network Architecture
1 ADDRESS RESOLUTION PROTOCOL (ARP) & REVERSE ADDRESS RESOLUTION PROTOCOL ( RARP) K. PALANIVEL Systems Analyst, Computer Centre Pondicherry University,
CSCD 330 Network Programming
CS4470 Computer Networking Protocols
Internet Applications & Programming
Networking for Home and Small Businesses – Chapter 6
Network Address Translation (NAT)
Process-to-Process Delivery: UDP, TCP
Presentation transcript:

1 Spring Semester 2007, Dept. of Computer Science, Technion Internet Networking recitation #12 LSNAT - Load Sharing NAT (RFC 2391)

2 Internet Networking Motivation  Make server load balancing on the Internet  Example: Many web clients want to get information from a popular web site. In order to make such a web site scalable, distribution between a group of servers is needed.  Candidate applications could be: Web browsers, remote login, file transfer, mail applications

3 Internet Networking NAT (Reminding)  Regularly, the source and destination IP remain unchanged while an IP packet is routed from the source to the destination  However there are cases when it is required to change the source and/or the destination IP address to a new one  Traditionally, NAT (Network Address Translation) were used to connect private networks domains to globally unique public domain IP networks

4 Internet Networking NAT (Reminding)  Basic NAT  A method by which hosts in a private domain are allowed access to hosts in the external network transparently  A block of external addresses are set aside for translating addresses of private hosts as the private hosts originate sessions to applications in external domain (Private IP -> Global IP)  Once binding done it remains in place for all subsequent sessions originating from the same private host. It will be terminated when there are no more session to use this binding.

5 Internet Networking NAT (Reminding)  NAPT (Network Address Port Translation)  A method by which hosts in a private domain are allowed access to hosts in the external network transparently and simultaneously, using a single registered address  Made possible by multiplexing transport layer identifiers of private hosts into the transport level identifiers of the single assigned external address (Private IP, port -> Global IP, port)  Only TCP/UDP applications and ICMP queries are supported by NAPT

6 Internet Networking Load Sharing  Load sharing is defined here as the spread of session load amongst a cluster of servers which are functionally similar or the same  Once a node is assigned to service a session, that session is bound to that node till termination  Sessions are not allowed to swap between nodes in the midst of session  Load sharing may be applicable for all services or to be limited to one or more specific services

7 Internet Networking Load Share NAT - Overview  A client attempts to access a server by using the server virtual address  LSNAT router transparently redirects the request to one of the hosts in server pool, selected using a real-time load sharing algorithm  Multiple sessions may be initiated from the same client, and each session could be directed to a different host based on load balancing algorithm  Configuration on LSNAT could be defined to restrict load share for just few specific desired services  LSNAT is also applicable during individual server upgrades

8 Internet Networking LSNAT (Servers confined to a Stub Domain)  Servers S1 ( ), S2 ( ), S3 ( ) form a server pool, confined to a stub domain  Router runs LSNAT, with virtual server address ( )  When a client initiates HTTP session to the virtual server, the LSNAT router examines the load on hosts in server pool and select a server to service the request  Transparent address and port translation performed by LSNAT router according to the diagram in the next slide  IP packets on the return path go through similar address translation  Servers in server pool can have a private addresses

9 Internet Networking S1S2S3 LSNAT Router s= , 2745 d= , 80 s= , 2745 d= , 80 s= , 3200 d= , 23 LAN s= , 3200 d= , 23 LSNAT (Servers confined to a Stub Domain)

10 Internet Networking LSNAT (with no Topological Restraints on Servers)  In this configuration, servers in the server pool can be located at different places  Now, the LSNAT router translates the client address and port in the packets with the address and port of the virtual server  As a result, there is no need to require servers to be under topological constraints o There is a limitations in this case to a number of session that such router is able to support concurrently - that is about 63K*2 sessions (per UDP/TCP). o Why not sending a “redirect” message to the client ?

11 Internet Networking S1S2S3 LSNAT Router s= , 2745 d= , 80 s= , 7001 d= , 80 s= , 3200 d= , 23 LAN s= , 7002 d= , 23 LSNAT (with no Topological Restraints on Servers)

12 Internet Networking Translation Phase in LSNAT Router  Session Binding – is the phase in which an incoming session is associated with the address of a host in server pool  This association sets the translation parameters for all subsequent datagrams of this session  Each incoming session is dynamically bound to a different host based on a load sharing algorithm  Address lookup and translation  Source/Destination IP addresses and ports undergo translation according to the lookup table  TCP/UDP and IP header checksums should be also recalculated

13 Internet Networking Translation Phase in LSNAT Router  Session Unbinding – is the phase in which a server node is no longer responsible for the session.  Session unbinding happen when the end of session is detected  For appropriate closed TCP session the end could be detected when FIN is acknowledged by both halves or when either half receives RST bit in TCP flags field  Otherwise (for UDP for example) timeouts are used to terminate idle session

14 Internet Networking LSNAT Cons/Pros  Advantages:  It can be installed without changes to clients or servers  Changes in the server pool are transparent for clients (Servers in the pool may be replaced, added, removed or upgraded)  Limitations:  Inability to switch loads between hosts in the midst of sessions  Bounded to to NAT limitations Some of the applications must be dealt explicitly, since they have the source and destination addresses in their payloads (like ftp).

15 Internet Networking Load Share Algorithms  Local load share algorithms:  Assumption: all server pool members are at equal proximity to LSNAT router  Load distribution will be based solely on system load or resource availability on remote servers  Round-Robin algorithm  Least Load first algorithm (number of session)  Least Traffic first algorithm (traffic load)  Least Weighted Load first approach (weights to session – resource consumption and to hosts – resource availability)  Load detection:  Ping to find the most responsive server  Active Monitoring agent running on the servers  The LSNAT router must check periodically for each server that its alive.

16 Internet Networking Load Share Algorithms  Distributed load share algorithms:  Server nodes are distributed geographically across different areas and cost to access them vary widely  We assume that all server pool members have equal resource availability  Weighted Least Load first algorithm:  combining cost of access to server and number of session assigned  Weighted Least traffic first algorithm  combining cost of access to server and the traffic load