Skip to content

rohsaini/cohort2015

Repository files navigation

**********************************************************
************************READ FILE*************************
**********************************************************

***COMMON FILES***
common.c                    -->         Common functions used by Server and Client
sn_ll.c                     -->         Link List Primitives
comm_primitives.c           -->         XDR Communication Encoding/Decoding

***SERVER FILES***
server.c                    -->         Main Server File
server_fsm.c                -->         FSM Implementation of Server
server_ll.c                 -->         Server Link List Implementation
rbt.c                       -->         RBT Implementation for Server Clients

***CLIENT FILES***
client.c                    -->         Main Client File
client_ll.c                 -->         Client Link List Implementation
moderator_fsm.c             -->         FSM Implementation of Moderator
receiver.c                  -->         Multicast logic of client

***AUTOMATED CODE DOCUMENTATION***
utility/doc-extractor.py    -->       Generates the code documentation


***********************************************************
***************HOW TO EXECUTE SCALE BINARIES***************
***********************************************************
Step 1> SSH to any rtp machine. For example, rtppnkvm4-vm4

Step 2> Compile server and client using -
        make STRIPPED=1

Step 3> Run scale_server on RTP machine
       ./scale_server --up

Step 4> Run scale_client on same RTP machine
        ./scale_client --num 20

        Step4 will simulate 20 clients. To deconfigure IPs, use
        ./scale_client --num 20 --down

Note - 
IPs from 30.30.30.1 - 30.30.30.4 are reserved for server purpose
Client IPs will start from 30.30.30.5