WUGS Software - PowerPoint PPT Presentation

1 / 31
About This Presentation
Title:

WUGS Software

Description:

Simplified over the years by removing about 25K lines of code. 135,100 ... Fore Systems adapter and driver - Solaris. Software Overview. GBNSC. Monitor one WUGS ... – PowerPoint PPT presentation

Number of Views:44
Avg rating:3.0/5.0
Slides: 32
Provided by: ash795
Category:
Tags: wugs | fore | software

less

Transcript and Presenter's Notes

Title: WUGS Software


1
WUGS Software
  • An Introduction to GBNSC and Jammer

2
Gigabit Switch Software Interfaces
  • Software completely separate from switch.
  • No processing engine on the switch

3
WUGS Software
  • GBNSC (GigaBit Network Switch Controller)
  • Jammer
  • Simplified over the years by removing about 25K
    lines of code
  • 135,100 lines of C code !!!
  • GBNSC (21000)Jammer(15300)lib(46000)
  • NodeSim(2800)CMAP(25000)CM(25000)
  • NetBSD platform
  • Fore Systems adapter and driver - Solaris

4
Software Overview
5
GBNSC
  • Monitor one WUGS
  • Hide Hardware details as much as possible from
    layers above
  • Provide access of all hardware details to Jammer
  • Monitor state of the switch
  • Event Driven

6
GBNSC Components
NCCP Node Control Communication Protocol CMSS
Core Connection Management Software System NCMO
Node Controller Managed Object
7
Contd
  • NCCP is responsible for communicating with CMSS
    parent and jammer.
  • NCMO state is the connection-oriented view of the
    switch that is provided to CMSS parent.
  • Switch control is responsible for switch
    initialization, keeping track of requestee
    operation and of the current hardware state.
  • The CellManager is responsible for communications
    with the switch via ATM card and reserves control
    connections that the switch controller will use.

8
GBNSC Configuration File
  • Specifies information needed about other end of
    the links for Connection Management to operate
  • Specifies the control interface for the switch
  • Allows for override of some default switch
    configurations.

9
Contd
  • GBNSC.apic for NetBSD
  • Problem with the size of the socket buffer for
    the RATM socket used by GBNSC !
  • GBNSC.apic -a -b64000 config.apic
  • -a tells GBNSC to use APIC
  • The -b64000 sets the socket buffer size for the
    RATM socket to be 64000 bytes.

10
NCCP Interface with Jammer
  • Interactions with the Jammer are strictly
    Request/Response with Jammer initiating the
    request
  • When GBNSC receives a Request message it creates
    a requestee object to process it.
  • After the processing is done, a Response is sent
    back to Jammer.

11
Jammer
  • Interactive script language interpreter
  • Complete access to all the bits in the switch
    tables and registers.
  • Allows for testing error conditions in the
    switch.
  • Supports iterative and repeated tests.

12
Communication Structure
13
The Actual Language
  • Loose adaptation of C and Shell language
    syntaxes.
  • Contains negation, conditional, comparision
    operators etc
  • The file extension .js is typically used for
    Jammer scripts.
  • Part relevant to the exercises.

14
What are we going to use ??
  • PING (Switch Controller / Module)
  • Ping SC the message goes to the switch
    controller and immediately back to Jammer.
  • Ping SM the switch controller sends a test cell
    through the switch and returns the result of the
    test cell.

15
Contd
  • Reset SC / SM
  • QUIT
  • get cells
  • get cells virtual_path virtual_circuit cell_count
    timeout repeat_count offset data
  • put cells
  • put cells virtual_path virtual_circuit cell_count
    repeat_count offset data

16
Get Cells
  • Cell_count no of cells to put or get
  • Timeout-length of time in sec that get waits
    before reporting a failure
  • Offset-offset into the payload where data pattern
    begins
  • Repeat_count-number of times the data pattern is
    repeated in the cell payload
  • Data-comma-delimited list of integers specifying
    the data pattern in the payload.
  • Get cells 0 100 2 5 4 2 0x19 0x10
  • Will wait for no more than 5 seconds for two
    cells on VPI0 and VCI100. The payload of these
    cells must be (in hex) 00 00 19 10 19 10 19 10 19
    10 00 00.

17
Commands Contd
  • Write vcxt port virtual_circuit_entry parameters
  • write vpxt port virtual_path_entry parameters
  • write mr port field parameters
  • Typically a connection is established with the
    above three operations. The MREG must be written
    in order to enable cell flow thru the switch . (
    SLE flag is set to 1 )

18
VXT and MREG parameters
  • Write vcxt 3 200 1 2 1 0 0 0 210..4 0
  • This instruction writes to entry 200(VCI) of the
    VCT for input port 3.The cells are sent to output
    port 4 and leave the switch on virtual circuit
    210.
  • Write mr 3 2 . 32..1
  • Software link enable(SLE) 1 RCBDT 32 to
    relieve congestion.

19
Configuring The WUGS-20
  • Logon to the Server running NetBSD in our lab the
    host name is UT105193.ni.utoledo.edu
  • /usr/wugs/bin/FreeBSD should be in your search
    path
  • On The Prompt give the command
    NodeSim-fconfig-ppeer_file
  • the path for this should be usr/wugs/src/NodeSim/C
    ONFIGS

20
Configuration Contd
  • On the Prompt give the command
    GBNSC-sut105193-p4550config.port0
  • the path for this should be /usr/wugs/src/GBNSC/CO
    NFIGS
  • At your home directory give the command
  • Jammer0.1 ut105193 portno
  • Currently 3552 is the port specified in
    config.apic
  • Ping sc and Ping sm

21
Configuration Contd
  • Write your Jammer Program and store it as .js
    file and this file can be included in current
    directory by command
  • include filename.js
  • this will execute the commands in the script

22
Experiment - 1
  • Direct Loop Back Connection

23
Experiment - 2
  • Simple Loop Back Connection

24
Data Transfer from one host to another host
SERVER
UT105193
Wugs-20
PORT 5
PORT 6
  • UT105194

CLIENT
25
Steps Involved In The Experiment
  • Run The SW_CON File
  • Activates the Switch Controller
  • Run The SW_JAM File
  • Activates the Jammer
  • Write The Jammer Script

26
Jammer File For This Experiment
  • write vcxt 5 200 1 2 1 0 0 1 0 0 0 0 0 0 0 50 0 0
    0 0 6 0
  • write vpxt 5 0 1 2 1 0 0 1 0 0 0 0 0 0 0 50 0 0 0
    0 6 0
  • write mr 5 2 0 128 32 0 256 1 1 1 1 100000 0
  • write vcxt 6 200 1 2 1 0 0 1 0 0 0 0 0 0 0 50 0 0
    0 0 5 0
  • write vpxt 6 0 1 2 1 0 0 1 0 0 0 0 0 0 0 50 0 0 0
    0 5 0
  • write mr 6 2 0 128 32 0 256 1 1 1 1 100000 0

27
Whats That File About
  • write vpcxt targetport inputchannel bi rc d
    cyc1 cyc2 cs ud1 ud2 sc vpt rco br
  • vpi1 vci1 bdi1 vci2 vpi2 bdi2 port1 port2
  • target port Port whose entries are to be made
  • input channel the input channel on which for
    which the entries are written
  • bi to differentiate between busy and idle cell
    slots
  • rc 010 sends to addr1, 001 sends to addr2
  • d this determines whether you are sending data
    or control cells
  • cyc1 if a cyc bit is set then the cells
    received on that IPP are forwarded to the next
    address port and not sent to the OPP
  • cs this bit gives the cell priority
  • ud multi-point connections

28
Contd
  • Vpt this bit being set indicates that the
    connection is a virtual channel and that another
    (channel) table lookup should be made
  • vpi1 this is the output path for addr1
  • vci1 this is the output channel for addr1
  • bdi bdi fields may only be enabled when the ATM
    transfer mode is AAL5
  • port1 one of the ports to which cells may be
    sent

29
General Remarks
  • Include read commands after each write to check
    the contents of the VPT, VCT or Mreg you have
    written .
  • Use quit to exit Jammer and Ctrl-C to exit GBNSC.
    Be sure to exit in the reverse order of
    initiation.
  • Remote login as group1, group2. No Password.
  • Ut105193.ni.utoledo.edu lt-gt WUGS port 5
  • 194 port 6 195 port 7. SPC on port 7.

30
Any problem !!
  • ONLY RESET THE SWITCH WHEN IT IS REALLY NECESSARY
    !!!
  • Go to the website for tons of material.
  • http//www.arl.wustl.edu/projects/gigabitkits
  • Handouts

31
  • THANK YOU
Write a Comment
User Comments (0)
About PowerShow.com