cn & case tools [].doc

Upload: shaik-bawajan

Post on 13-Apr-2018

216 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    1/148

    Department of I.T. CN & Case Tools Lab Manual

    COMPUTER NETWORKS AND CASETOOLS LAB

    Objective:

    To Under of various layers of OSI model

    To inculcate object oriented software designSystem/ Soft!"e Re#$i"eme%t

    Intel based desktop PCs L! CO!!"CT"# wit$

    minimum of %&& '() or faster processor wit$ atleast

    &* '+ ,' and %-- '+ free disk space

    Tools Suc$ as ,ational ,ose

    P!"t & A%. Implement t$e data link layer framing met$ods suc$ as

    c$aracter/ c$aracter stuffing and bit stuffing.

    0. Implement on a data set of c$aracters t$e t$ree C,C

    polynomials 1 C,C %0/ C,C %&

    and C,C CCIP.

    2. Implement #ijkstra 3s algorit$m to compute t$e S$ortest

    pat$ t$ru a grap$.*. Take an e4ample subnet grap$ wit$ weig$ts indicating

    delay between nodes. !ow obtain ,outing table art eac$

    node using distance vector routing algorit$m

    5. Take an e4ample subnet of $osts . Obtain broadcast tree

    for it.

    &. Take a &* bit playing te4t and encrypt t$e same using

    #"S algorit$m.6. 7rite a program to break t$e above #"S coding

    8. Using ,S algorit$m "ncrypt a te4t data and #ecrypt t$e

    same.

    P!"t & B

    %. T$e student s$ould take up t$e case study of Unified

    Library application w$ic$ is mentioned in t$e t$eory/ andVizag Institute of Engineering and Technolog !NT"#$%LD

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    2/148

    Department of I.T. CN & Case Tools Lab Manual

    'odel it in different views i.e Use case view/ logical view/

    component view/ #eployment view/ #atabase design/

    forward and ,everse "ngineering/ and 9eneration of

    documentation of t$e project.0. Student $as to take up anot$er case study of $is:$er own

    interest and do t$e same w$at ever mentioned in first

    problem. Some of t$e ideas regarding case studies are given

    in reference books w$ic$ were mentioned in t$eory syllabus

    can be referred for some idea.Note : T$e analysis/ design/ coding/ documentation/

    database design of mini project w$ic$ will be carried out in*t$ year s$ould be done in object;oriented approac$ using

    U'L and by using appropriate software w$ic$ supports

    U'L/ ot$erwise t$e mini project will not be evaluated.

    COMPUTER NETWORKS LAB

    '!( PRO)RAM SPEC*+*CAT*ON:

    Program to implement bit stuffing.AL)OR*T,M:

    Ste- '< StartSte- .< ,ead t$e bit string to be transmitted in -=s and

    %=s.Vizag Institute of Engineering and Technolog !NT"#$%LD

    '

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    3/148

    Department of I.T. CN & Case Tools Lab Manual

    Ste- < >or stuffing process/ append at begin and end

    of t$e string.Ste- 0< C$eck t$e string w$et$er it $as five

    consecutive %=s e4cept t$e appending string.Ste- 1< If yes/ insert 3-= bit as stuff in t$e ne4t bit else

    transmit t$e ne4t bit.

    Ste- 2< Continue t$is process until t$e completion of

    string.Ste- 3< Stuffed data is obtained.Ste- 4< !ow destuffing process/ remove t$e appended

    string at start and end of string.Ste- 5< C$eck t$e stuffed string again w$et$er it $as

    five consecutive %=s.Ste- '6< If yes t$en remove t$e ne4t bit i.e. do not

    transmit t$e ne4t bit else transmit t$e data.

    Ste- ''< Continue t$is process until t$e last bit of

    string.Ste- '.< Original bit data $as been obtained.Ste- '< Stop

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    (

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    4/148

    Department of I.T. CN & Case Tools Lab Manual

    PRO)RAM:

    ?include@stdio.$A

    mainB

    D

    int aE5-F/bE5-F/i/j/countG-/n/cEFGD-/%/%/%/%/%/%/-H

    clrscrB

    printfBJ"nter t$e lengt$ of t$e string

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    5/148

    Department of I.T. CN & Case Tools Lab Manual

    H

    forBiG-i@niNN

    D

    ifBaEiFGG% D

    bEjFGaEiF

    countNN

    ifBcountGG5

    D

    bEjFGaEiF

    jNNbEjFG-

    countG-

    HjNN

    H

    else

    D

    bEjFGaEiF

    jNN

    countG-

    H

    H

    forBiG-i@8iNND

    bEjFGcEiFjNN

    H

    nGj

    printfBJT$e frame after bit stuffing is

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    6/148

    Department of I.T. CN & Case Tools Lab Manual

    printfBJKnJ

    :#estuffing:

    countGjG-forBiG8i@n;8iNN

    D

    ifBbEiFGG%

    D

    aEjFGbEiF

    countNN

    ifBcountGG5 D

    iNN

    countG- H

    jNN

    H

    else

    D

    aEjFGbEiF

    jNN

    countG-

    H

    HprintfBJT$e destuffed data is

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    7/148

    Department of I.T. CN & Case Tools Lab Manual

    *NPUT':

    "nter t$e lengt$ of t$e stringrames after stuffing

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    13/148

    Department of I.T. CN & Case Tools Lab Manual

    *NPUT':

    STU>>I!9>I!9rames after destuffing>I!9rames after stuffing!vio"! T>i%;s

    Interactions

    State 'ac$ines

    )"o$-i%; T>i%;s

    Packages

    A%%ot!tio%! T>i%;s

    !otes

    Di!;"!ms i% UML:

    Class #iagram

    Object #iagram

    Usecase #iagram

    Se\uence #iagram

    Collaboration #iagram

    Statec$art #iagram

    ctivity #iagram

    Component #iagram

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    ,)

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    75/148

    Department of I.T. CN & Case Tools Lab Manual

    #eployement #iagram

    C!ss: class is t$e descriptor for a set of objects wit$

    similar structure/ be$avior/ and relations$ips. It is

    represented by a rectangle.

    *%te"f!ce: n interface is a specified for t$e e4ternally;

    visible operations of a class/ component/ or ot$er classifier

    Bincluding subsystems wit$out specification of internal

    structure. It is represented by a circle.

    Re!tio%s:

    ssociation

    #ependency

    9enerali[ation

    ,eali[ation

    In addition to t$is t$ere are

    #irected ssociation

    ggregation and

    Composition

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    ,*

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    76/148

    Department of I.T. CN & Case Tools Lab Manual

    Associ!tio%:

    n association is a structural relations$ip t$at

    specifies t$e relation between two objects w$en t$ey are at

    t$e same level Bpeer level systems.

    n ssociation can specify t$e relations$ip/ role of

    t$e class and 'ultiplicity.

    n ssociation used in class diagram/ Component

    diagram/ deployment diagram/ usecase diagrams.

    T$e multiplicity can be represented as %;%..//-W

    %.

    It is represented as followsorm data

    entry

    0.Ticket

    processing

    2.Updation

    %."nter t$e

    details into

    system

    0.Trigger

    ticket for printing

    2.Update datain t$e system

    ,eservation

    system

    Server %. Process

    reservation

    data/ process

    ticketing and

    process

    cancellation.0.Update.

    Use c!se 9i!;"!ms

    0stem

    &assenger CounterClerk

    'n(uiries for availability

    Availability status

    Passenger en\uiries for t$e availability of

    Seats

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    /(

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    104/148

    Department of I.T. CN & Case Tools Lab Manual

    ,eservation and ticketing

    0stem

    &assenger

    Counter Clerk

    )ill Cancellation form

    'nter data into system

    Collect issued ticket

    Cancels ticket

    *eturn money after deduction

    Cancellation of issued ticket

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    /)

    &assengerCounter Clerk

    )ill re(uisition form

    'nter data into system

    &rint ticket

    Collect fare amount + ssues ticket

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    105/148

    Department of I.T. CN & Case Tools Lab Manual

    C!ss 9i!;"!m

    &assenger

    4Name4Fender4ge4ddress

    47llorm:;4paaremount:;4collectTic8et:;

    *eservation System

    4processorm:;4reser9ation:;4fareComputation:;4processTic8et:;4printTic8et:;

    Clerk

    4Name4Fender4ge

    4getDetails:;4getaremount:;4getTic8et:;

    ..@/..@

    &ayment

    Credit&ayment Cash&ayment

    ..@

    Class diagram for railway reservation

    system

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    /*

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    106/148

    Department of I.T. CN & Case Tools Lab Manual

    *%te"!ctio% 9i!;"!ms

    Se#$e%ce 9i!;"!m

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    /+

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    107/148

    Department of I.T. CN & Case Tools Lab Manual

    A passenger A cler8 A reser9ation sstem

    A re>uestorm:;

    ' A gi9esorm:;

    ( A returnsilledorm:;

    ) A entersDetails:;

    * A chec8s9ailabilit:;

    + A fareamount

    , A pasmount:;

    - A triggersTic8et:;

    . A printTic8et:;

    / A issueTic8et:;

    A updates:;

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    /,

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    108/148

    Department of I.T. CN & Case Tools Lab Manual

    Co!bo"!tio% 9i!;"!m

    A passenger A cler8 A reser9ation sstem

    A re>uestorm:;

    ' A gi9esorm:;

    ( A returnsilledorm:;

    ) A entersDetails:;

    * A chec8s9ailabilit:;

    + A fareamount

    , A pasmount:;

    - A triggersTic8et:;

    A printTic8et:;

    / A issueTic8et:;

    A updates:;

    Collaboration diagram for reservationActivity 9i!;"!ms

    GThe Data train and tic8etsH

    Data Entered into %&T 0stem

    %&T Chec8s 9ailabillit

    9ailable

    ills %e>uisition rom

    %&T rocess the orm

    rints Tic8ets

    Tic8ets Issued and are mount Collected

    Not 9ailable uts Ne< Data and Train

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    /-

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    109/148

    Department of I.T. CN & Case Tools Lab Manual

    Activity 9i!;"!m fo" E%#$i"y of se!ts !v!i!be

    assenger Cler8 %eser9ation sstem

    Gill formdetailsH

    assenger Comes to the Counter

    GCler8 Enters Details into sstemH

    G0ubmits formto cler8HGVerif 9ailabilitiesH

    $8Gormmodi7edHNot o8

    GInforms the fare amountH

    $8

    Not o8

    Not

    GTrigger Tic8ets rinting rocessH

    Gprints the Tic8etsH

    GIssue Tic8etsH

    GCollect mountH

    GTrigger "pdate rocessH

    Con7rms

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    110/148

    Department of I.T. CN & Case Tools Lab Manual

    reservation$e%e

    *eservation form

    update$e%e11artifact33

    cancellation$e%e

    Cancellation form

    Component diagram for reservation

    and ticketing

    De-oyme%t 9i!;"!m

    Clients

    Clerk

    -iosk

    %eser9ation ser9er

    *eservation Server

    #eployment diagram for ,ailway

    reservation system

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    /

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    111/148

    Department of I.T. CN & Case Tools Lab Manual

    C!se St$9y

    PROBLEM SPEC*+*CAT*ON: C!se St$9y of ATM

    t"!%s!ctio%

    n !$tom!te9 tee" m!c>i%e BATM or !$tom!tic

    b!%=i%; m!c>i%e BABM is a computeri[ed

    telecommunications device t$at provides t$e clients of a

    financial institution wit$ access to financial transactions in a

    Vizag Institute of Engineering and Technolog !NT"#$%LD

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    112/148

    Department of I.T. CN & Case Tools Lab Manual

    public space wit$out t$e need for a cas$ier/ $uman clerk or

    bank teller. On most modern T's/ t$e customer is

    identified by inserting a plastic T' card wit$ a magnetic

    stripe or a plastic smart card wit$ a c$ip t$at contains a

    uni\ue card number and some security information suc$ as

    an e4piration date or CC BC. ut$entication is

    provided by t$e customer entering a personal identification

    number BPI!. Using an T'/ customers can access t$eir

    bank accounts in order to make cas$ wit$drawals Bor credit

    card cas$ advances and c$eck t$eir account balances as

    well as purc$ase cellp$one prepaid credit.

    7it$ growing usage of t$e Internet/ people are

    utili[ing t$e convenience of online s$opping and t$e ability

    to place an order for w$at t$ey want at all $ours of t$e day

    and nig$t/ at t$e office/ $ome/ airport/ a cafe/ or just about

    anyw$ere you can imagine. T$ey want conveniences of

    Internet communications to $elp t$em improve t$eir

    productiveness in t$e day to day balance between work and

    personal life. 7$ile T'Qs $ave added some convenience

    to our lives. +y using T'=s we can make payment

    transaction at anytime from anyw$ere.

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    '

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    113/148

    Department of I.T. CN & Case Tools Lab Manual

    USE CASE D*A)RAMS:

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    (

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    114/148

    Department of I.T. CN & Case Tools Lab Manual

    0stem

    "ank client A./ machine

    depositewithdrawal

    transcation

    balance en(uiry valid client

    11include33

    invalid client

    11e2tend33

    "ank

    verifcation

    managedatabaseinvalid &,0

    11e2tend33

    ACTORS:

    ' BANKCL*ENT: t$e bank client is a primary actor

    w$ic$ $aving an T' card.

    . ATM MAC,*NE: T$e T' mac$ine is a primary

    actor w$ic$ is used to

    Perform t$e online transaction. It is an

    intermediate

    between t$e bank client and bank.

    BANK: T$e +ank is a second actor w$ic$ will

    verify t$e bank client account

    and also manages t$e database.

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    )

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    115/148

    Department of I.T. CN & Case Tools Lab Manual

    USE CASES SPEC*+*CAT*ON O+ TRANSACT*ON:

    T$e use case t"!%s!ctio% performs t$e T'transaction w$enever card$older is valid. It contains anot$er

    use cases like deposited/ wit$drawal M balance en\uiry.*( MA*N +LOW O+ E

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    116/148

    Department of I.T. CN & Case Tools Lab Manual

    *( PERS*STENCE CLASSES:

    +ank client/ T' mac$ine are t$e persistence classes.**( NON&PERS*STENCE CLASSES:

    +ank/ T$ird;party/ +ank database are non;persistenceclasses

    SEUENCE D*A)RAM O+ ATM TRANSACT*ON:

    8Ove"! ATM t"!%s!ctio%(

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    +

    "ank client

    6pin card number

    4deposit:;4tranfer:;4

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    117/148

    Department of I.T. CN & Case Tools Lab Manual

    A ?an8client A TM machineA ?an8

    A Insert TMcard:;

    ' A %e>uest INnum:;

    ( A Enter INnum:;

    ) A 9erif INnum:;

    * A 9alid IN:;

    + A %e>uest amount:;

    , A Enter amount:;

    - A

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    118/148

    Department of I.T. CN & Case Tools Lab Manual

    ACT*uest amount

    G9alidH

    Enter amount

    dispense cash update customer account

    close transcation

    Gin9alidH

    gi9e recipt

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    -

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    119/148

    Department of I.T. CN & Case Tools Lab Manual

    STATE C,ART D*A)RAMS O+ ATM

    TRANSACT*ON:

    ideal

    cti9e

    9alidate

    selecting processing

    printreciept

    9alidate

    selecting processing

    printreciept

    Insert card

    GcontinueH

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    120/148

    Department of I.T. CN & Case Tools Lab Manual

    DEPLOMENT D*A)RAM O+ ATM

    TRANSACT*ON:

    A./ machine server

    A./$e%e"ank

    Ethernet

    %06'('

    *A# farm

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    '/

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    121/148

    Department of I.T. CN & Case Tools Lab Manual

    C!se St$9y 0

    ONL*NE BOOKS S,OP

    PROBLEM STATEMENT:

    Customer can buy books t$roug$ online.

    Customers login into t$e website and add or remove to t$e

    cart. T$en $e will place t$e order i.e./ t$e cart of t$e books

    t$en t$e ware$ouse c$ecks t$at t$e customer is validate user

    or not. Customer fills $is details and made payment

    transactions. T$e customer got $is books t$roug$ s$ipment.

    Customer may get gifts for t$eir transactions. 7rongtransactions can be verified. T$e main objective of t$is case

    study ONL*NE BOOK S,OPF is to make t$e customers

    purc$ase t$eir books of interest t$roug$ online wit$out

    wasting time by stepping into t$e books$ops. T$e customer

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    '

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    122/148

    Department of I.T. CN & Case Tools Lab Manual

    can visit t$is site at any time/ searc$ t$e books and place t$e

    orders w$ic$ will be delivered by t$e dealer in s$ort period

    of time. T$is reduces t$e burden for bot$ t$e customer and

    dealer as t$e customer need not travel to t$e cities if t$e

    book of $is:$er interest is not available in $is area/ w$ereas

    t$e dealer also need not strain $imself by standing in t$e

    s$op all t$e time. (ere t$e dealer also need not respond to

    eac$ and every customer \ueries. T$roug$ t$is system t$e

    customer submits a \uery and gets t$e response from t$e

    database. T$e dealer can update t$e stock details of t$e

    books in t$e database. T$is project is developed using

    SP.!et and S_L Server.

    E*ST*N) SSTEM

    In t$e current system if a customer wants to purc$ase a book

    $e needs to go to t$e s$op and searc$ for t$e book t$en $e

    can buy t$at book.

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    ''

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    123/148

    Department of I.T. CN & Case Tools Lab Manual

    P>ysic! D!t! +o Di!;"!ms:&

    Context Level Diagram:-

    Use c!se 9i!;"!m:

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    '(

    +ook

    S$opCustomer #ealer

    Searc$

    Order

    Ordered +ooks

    +ook #etails

    Orders

    s#etails

    dd +ooks

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    124/148

    Department of I.T. CN & Case Tools Lab Manual

    0stem

    Login

    create cart

    order placing

    1alidation

    payment

    Shipment

    customer

    individual lecturer

    authentication

    re>uest

    chec8ing

    pa

    %ecei9e

    bookshop sta!

    sent

    accept

    certi7cate

    9erif

    validate customer11include33

    bank

    gifts

    11e2tend33

    Scenario for Use case Diagram:-

    'Usec!se N!me ONLINE BOOK SHOP

    . P!"tici-!ti%; Acto"

    *%st!%ces

    %. Customer0. #ealer

    E%t"y Co%9itio%s

    %. "very customer s$ould

    $ave a uni\ue id.0. #ealer s$ould $ave a

    login;id and password.

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    ')

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    125/148

    Department of I.T. CN & Case Tools Lab Manual

    0 +o of Eve%ts

    %. Customer s$ouldregister in t$is system

    for future purpose.

    0. Customer can searc$for $is:$er books of

    interest.

    2. Customer order books.

    *. T$e Customer provides

    t$e s$ipment details to

    w$ic$ address t$e

    ordered books s$ouldbe delivered.5. #ealer can update t$e

    book details.

    &. #ealer delivers t$e

    ordered books.

    1 S-eci! "e#$i"eme%ts

    %. T$e customer can get

    t$e \uick response from

    t$e server.

    ctors< Customer/ +ook s$op staff/ bank.

    'ain flow of events< Create cart/ order placing/ validations.

    "4ception flow of events< 9ifts to customer/ canceling

    orders

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    '*

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    126/148

    Department of I.T. CN & Case Tools Lab Manual

    C!ss Di!;"!ms:

    cart

    6total mone

    4place order:;4cancle order:;

    credit card

    6card number6date of e2pire

    4chec8 authorized charge:;

    customer

    6customer6billing address

    6deli9er address6email6rating

    4create customer:;4get customer:;4change status:;

    items to buy

    6unit price

    4add:;6remo9e:;

    database

    6user name6boo8 name

    4store:;4update:;4delete:;

    fre(uent shopper

    6discount rate6appro9al date

    4appro9al:;4disappro9e:;

    2arehouse

    6name

    4update:;4delete:;

    &/..@

    &

    &..@

    &..@

    &

    &

    /..@

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    '+

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    127/148

    Department of I.T. CN & Case Tools Lab Manual

    #atabase depends on t$e ware$ouse means adding new

    customers and books done by 7are$ouse. Customers add

    $is books to t$e cart and make order at a time. payment isdone t$roug$ credit cards and receives t$eir books t$roug$

    s$ipment.

    Se#$e%ce !%9 Co!bo"!tio% 9i!;"!ms:

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    ',

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    128/148

    Department of I.T. CN & Case Tools Lab Manual

    c A customer

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    129/148

    Department of I.T. CN & Case Tools Lab Manual

    Coobo"!tio% Di!;"!m:

    c A customer

    < A database

    card A credit card

    c A cart

    sta= A #arehouse

    & A login:;

    * A place order:;

    ' A authentication:;

    + A 9ie

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    130/148

    Department of I.T. CN & Case Tools Lab Manual

    ACT*

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    131/148

    Department of I.T. CN & Case Tools Lab Manual

    STATE C,ART D*A)RAM:

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    (

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    132/148

    Department of I.T. CN & Case Tools Lab Manual

    ideal

    sho< order

    add boo8s to cart place order

    login

    sho< cart

    chec8 to add

    pament

    shipment

    COMPONENT D*A)RAM:

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    ('

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    133/148

    Department of I.T. CN & Case Tools Lab Manual

    online shopping

    login$html11artifact33

    user3customer

    items

    users

    permissions

    authentication

    DEPLOMENT D*A)RAM:

    s

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    ((

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    134/148

    Department of I.T. CN & Case Tools Lab Manual

    TEST*N)

    Test cases for customer registration:-

    Test C!seCo%9itio% Bei%;

    C>ec=e9EG-ecte9 O$t-$t

    %. If password

    is not

    matc$edwit$

    confirm

    password.

    Password G

    confirmpassword.

    'ismatc$edpassword.

    0. Password is

    empty.

    Password lengt$

    A&.

    Password

    s$ould $ave at

    least &

    c$aracters.

    2. Customerid contains

    spaces.

    Customer ids$ould be alp$a

    numeric.

    +lank spaces

    are not allowed.

    *. P$onenumber

    Is !umeric.

    P$one number

    s$ould benumeric.

    Test Cases for Customer Verification:-

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    ()

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    135/148

    Department of I.T. CN & Case Tools Lab Manual

    Test C!seCo%9itio% Bei%;

    C>ec=e9EG-ecte9 O$t-$t

    %. Password Password lengt$A&. Invalidpassword.

    0. LoginS$ould not beempty.

    Invalid loginname.

    Test Cases for searching books:-

    Test C!seCo%9itio% Bei%;

    C>ec=e9EG-ecte9 O$t-$t

    %. t leastone of t$e

    fields

    s$ould be

    filled.

    booknameGnull/

    aut$orGnull/

    publis$erGnull/

    editionGnull.

    t least one of

    t$e fields must

    be filled.

    Test Cases for ordering books:-

    Test C!se Co%9itio% Bei%;

    C>ec=e9

    EG-ecte9 O$t-$t

    %. _uantity \uantity@G- _uantity s$ouldbe at least one

    to place t$eVizag Institute of Engineering and Technolog !NT"#$%LD

    (*

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    136/148

    Department of I.T. CN & Case Tools Lab Manual

    order.

    0. Credit card

    no. s$ould be numericS$ould be

    numeric only.

    2. Credit cardno.

    lengt$YG %*invalid creditcard no.

    Test Cases for Shipment Details:-

    Test C!seCo%9itio% Bei%;

    C>ec=e9EG-ecte9 O$t-$t

    %. ddress addressGnull

    address isre\uired to

    deliver t$e

    order.

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    (+

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    137/148

    Department of I.T. CN & Case Tools Lab Manual

    C!se St$9y 1:

    PROBLEM SPEC*+*CAT*ON: C!se st$9y of coe;e!9mi%ist"!tio%:

    >or a student to enter college $e must first obtain

    an application form. >ill t$e details and write an entrance

    test/ after \ualifying t$e student issues a rank card. In t$e

    counseling system of "'C"T t$e student certificates are

    verified and t$en seat is allotted in re\uired college. T$e

    college is e\uipped wit$ computer laboratory/ electrical and

    electronics laboratory/ "nglis$ laboratory/ embedded

    systems laboratory etc. T$e library $as several volumes of

    books/ journals/ maga[ines/ news papers etc.

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    (,

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    138/148

    Department of I.T. CN & Case Tools Lab Manual

    $SE CASE D*A)RAMS O+ COLLE)E

    ADM*N*STRAT*ON:

    0stem

    Student

    college administration

    asks the certicates

    Submits certicates

    veries the certicates

    invalid certicates

    11e2tend33

    'n(uires about courses

    o!ers the courses

    selects the course

    gives the fees details

    pays the fee

    ssues # card

    rank card

    11include33

    managerclerk

    ACTORS:

    ' St$9e%t: T$e student is t$e primary actor w$o

    re\uests for seat. Coe;e !9mi%ist"!tio%: T$e college administrator

    is t$e primary actor w$o verifies t$e certificates and

    grants t$e seat

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    (-

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    139/148

    Department of I.T. CN & Case Tools Lab Manual

    a Ce"=: one w$o collects t$e certificates from t$e

    student and submits to t$e administrator for

    verification.

    b M!%!;e": one w$o manages t$e collegeadministration`

    USE CASES SPEC*+*CAT*ON O+ EAM*NAT*ON:

    T$e $se&c!se specifies t$e college admission by

    verifying t$e certificates and allotting t$e seat

    *( MA*N +LOW O+ E

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    140/148

    Department of I.T. CN & Case Tools Lab Manual

    CLASS D*A)RAMS O+ COLLE)E

    ADM*N*STRAT*ON:

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    )/

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    141/148

    Department of I.T. CN & Case Tools Lab Manual

    college

    4college name4address4phone

    4maintain database:;

    department

    4department t4dept name

    4time table:;4add d:;4sta=:;

    library

    4te2t boo8s4boo8 name4author name

    4issues:;4rene

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    142/148

    Department of I.T. CN & Case Tools Lab Manual

    SEUENCE D*A)RAM O+ COLLE)E

    ADM*N*STRAT*ON:

    8A9mitti%; ! St$9e%t i%to t>e coe;e(:

    s A student a A admission cell college database

    A as8s the certi7cates:;

    ' A submits the certi7cates:;

    ( A 9eri7es the certi7cates:;

    ) A en>uires about the ran8 card:;

    * A submits the ran8 card:;

    + A 9eri7es the ran8 card:;

    , A chec8s for the a9ailabilit of seats:;

    - A a9ailble:;

    . A enters the details:;

    / A issues the id card:;11destro33

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    )'

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    143/148

    Department of I.T. CN & Case Tools Lab Manual

    COLLOBARAT*ON D*A)RAM O+ COLLE)E

    ADM*N*STRAT*ON:

    8Rec"$itme%t of t>e f!c$ty(

    p A participant

    i A inter9ie

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    144/148

    Department of I.T. CN & Case Tools Lab Manual

    ACT*

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    145/148

    Department of I.T. CN & Case Tools Lab Manual

    student sstem ser9er

    enters the I address

    opens the login page

    accepts

    enters the user name and passuests

    9eri7es student details

    in9alid

    displas >uestion paper

    9alid

    ans

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    146/148

    Department of I.T. CN & Case Tools Lab Manual

    STATE C,ART D*A)RAMS O+ COLLE)E

    ADM*N*STRAT*ON:

    8A STUDENT *SSU*N) A BOOK *N A L*BRAR(

    Idle

    0tudent re>uirement Chec8 7neboo8 a9ailable

    7ne e2ists

    boo8 not a9ailable

    issue boo8

    stores information to database

    7ne doesnKt e2ist

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    )+

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    147/148

    Department of I.T. CN & Case Tools Lab Manual

    COMPONENT D*A)RAM O+ COLLE)E

    ADM*

    N*STR

    AT*ON

    :

    student$db college$db

    .tlb

    contains the

    tables of student

    .tlb

    contains the

    tables of college

    .e2e

    contains

    e2ecute 7les

    .dll

    contains the

    librar 7les

    admission

    DEPLOMENT D*A)RAM O+ COLLE)EADM*N*STRAT*ON:

    Vizag Institute of Engineering and Technolog !NT"#$%LD

    ),

  • 7/24/2019 CN & CASE TOOLS [www.jntuworld.com].doc

    148/148

    Department of I.T. CN & Case Tools Lab Manual

    student server

    console

    %06'('

    ETE%NET

    *A#