_Load Balancing_ _Port number_ _ _ 1.Windows 2000 Advanced Server by yaohongm

VIEWS: 22 PAGES: 15

									                                                                                      1




                                 1                2            3




                                                                        (Load Balancing)




              (Port number)




( )                                                     1.Windows 2000 Advanced Server
                                2.     Layer 3 switch                           3.
      Linux
( )Linux                                        Linux


( )Windows 2000
              Layer 3 Routing Switch
( )                 Windows 2000 Layer 3 Routing switch




                                          211
2




                     (Load Balancing)                (Routing switch) Winsock




(Cluster)                               IP Address




                     (             )




            3-Tier             Web Server




                                Visual Basic




                                               212
                                                                                                    3



                                                         E_mail
                                                                  Proxy Server
                                         proxy
                     (Response time)
                       Layer 3 Routing switch             Windows 2000    Linux Server


      Visual Basic




( ) Windows 2000 Advanced Server
( ) Cabletron SSR 2000 Layer3 Routing Switch
( )         client     Windows 98
( ) Visual Basic 6.0




                                           (   )    Windows 2000 Advanced Server         NLB(Network
Load Balancing)                 (   )   Layer 3 Routing Switch                              (   )


( ) Windows 2000 Advanced Server           NLB
1 Windows 2000 Advanced Server           NLB
      Windows 2000              Network Load Balancing                        wlbs.sys
      Network Load Balancing
      wlbs.sys


      (1)
      (2)                                                10
      (3)                                                                Network Load Balancing



                                                   213
4


    (4)                 Windows                                                    TCP/IP
                                                                   Network Load Balancing


         Network Load Balancing
    IP                                                                     IP
                                              (Heartbeat)




                                                            1-1




                              NLB

                             TCP/IP                   TCP/IP

                                  TCP/IP                  TCP/IP


                         1-1 Windows 2000 Server    NLB


2 Windows 2000 NLB
                    Windows 2000 server                                         (NLB)
                                     (NIC)                         Windows 98       Client
                                   Switch           Windows 2000
                            1-2




                                   1-2 Windows 2000 NLB

                                              214
                                                                                            5


3 Windows 2000 NLB
(1)                     TCP/IP          ( 1-1)             Network Load Balancing     1-3




                                                                            NLB




                                             1-3




                          NLB             NIC(           )           Virtual IP
                     IP Address/Mask      IP Address/Mask        (                )
                        Gateway              Gateway           192.168.2.242
                      192.168.2.244        192.168.2.243
                                           192.168.2.254
                      192.168.2.246        192.168.2.245
                                           192.168.2.254
                                                                        NLB
                      192.168.2.248        192.168.2.247
                                                                 TCP/IP
                                           192.168.2.254
                      192.168.2.250        192.168.2.249
                                           192.168.2.254

                                  1-1         TCP/IP


(2)      [    ]       Network Load Balancing




                                           215
6


         1-4




                                        1-4


    IP
           IP                                 IP    (        IP   )


    IP
    Internet
                DNS             DNS           DNS


                      MAC             MAC               IP




                (           )


    wlbs.exe                           NLB



                                       216
                                                           7




                                Network Load Balancing


     1-5




                           1-5


     (               )
                     32                        1   32




           Windows 2000           Network Load Balancing
IP
IP              IP


IP



                          217
8


          1-6




                                     1-6


    Network Load Balancing                           0 65535   WEB
           Network Load Balancing               80 80


    Network Load Balancing




      C                                    Class C

                                    218
                                                                                               9




(3)        Network Load Balancing                          Network Load Balancing




( ) Layer 3 Routing Switch
1 Routing Switch
       Layer 3 Routing Switch          module                                  VLAN
                                  Server1~ Server 4
  Windows 2000 Advanced Server            NLB NIC                           NLB       Windows
2000                  (                                ) NIC                          Server
NIC              Layer 3 Routing Switch    V1 VLAN       Port   Client
  Layer 3 Routing Switch V3 VLAN          Port




                          1-7 Layer 3 Routing Switch

                                                 219
10


2 Routing Switch
      ia(config)# show
      Running system configuration:
       (1) : vlan create v3 port-based //create vlan and set it   s name as v3
       (2) : vlan create v1 port-based
       (3) : vlan add ports et.3.(1-8) to v3 //the ports included in v3
       (4) : interface create ip eth3 address-netmask 192.168.1.254/24 vlan v3
            //define v3 interface name, ip address and subnetmask
       (5) : vlan add ports et.1.(1-8) to v1
       (6) : interface create ip eth1 address-netmask 192.168.2.254/24 vlan v1
       (7) : load-balance create group-name nlb virtual-ip 192.168.2.242 protocol tcp
            //set up load balancing and monitor ip adreess ,port number
      (8) : load-balance add host-to-group 192.168.2.243-192.168.2.250 group-name nlb
            //defien the ip address of server in cluster


( )
                    VB                                Microsoft Winsock Control
Microsoft Winsock Control
                                         TCP IP
                                     95%


      1-8     1-9




                                         1-8

                                                   220
                                                                                      11




                                  1-9


                      Server            Server               Form_Load    Form_Load
                    30 Winsock                     Server(        )       30 Connection
    Server            cmdListen          Server(             )
Client      cmdBegin               IP
         Client                                  Server
                  Server                         SendData        Client
  Server
                    1-10




                                           221
12

          Server                                   Client


     Server   IP Address
     30   Winsock                                  Server IP


                   Cmdlisten_Click
                          Client
                   CmdBegin_Click
                   Trigger Timer Enable
                   50




                    WskServer_ConnectionRequest
                           30    Connect

                                                               RequestLoss
                                                            Server




                        WskServer_Connection
                                  RcquestSucces

                                                   Timer1_Timer



                                                   RequestTimeoutCount


               WskServer_DataArrival
                     GetData
               SendData         Client




                           WskServer_DataArrival
                                GetData


                                     Server




                                    End


                                     222
                                                                                              13




          1-2                50                  Layer 3 Routing Switch Windows 2000 NLB
                                          Layer 3 Routing Switch               Windows 2000
                           Layer 3 Routing Switch
                Routing
          Windows 2000                                   Routing


                                          Win 2000                L3 Switch
                                         (10                  )   (10          )
                    192.168.2.244                10                       11
                    192.168.2.245                11                       12
                    192.168.2.248                16                       15
                    192.168.2.250                13                       13
                                               2 55                     3 40




( )


        HUB       Switch     Router
            Winsock                                   Linux




( ) Win 2000 Layer3 Switch
                                      Layer 3 Switch Windows 2000
 Layer 3 Switch


                             Port                 Windows 2000
      Windows 2000                                            Windows
                                                                    Windows 2000


( )
                                               Server

                                                 223
14


(NIC NLB)
            NIC                        TCP IP                   IP
     IP
            NLB                            Win2000
Cluster Server                             TCP   IP
                                                                                           NLB
          Layer 3 Switch




( )


              Visual Basic Timer                 ms                                    1




                                                                                                 Windows
2000        Layer 3 Routing switch                                            Layer 3 Routing Switch
            GUI
                                                                             (Port)               Windows
2000




Web Server Proxy Server
                                   Linux




            (2001)   Windows 2000 Server
            (2000)   Visual Basic 6 Internet Programming                     TCP/IP
                        (2000)               Active Server Pages 3.0
            (2000)   Windows 2000                                    .
            (2000)   Windows 2000                     (                  )
                     (2001)      Windows 2000

                                                          224
                                                     15


http://www.enterasys.com/support/ Cabletron System
               (2002)   Linux              -




                                           225

								
To top