Wiki

Clone wiki

mobilityfirst / Computing_installation

Installing the computing elements to the MF click router is straightforward, i.e.,

copying the additional file: Core_Computing_Func.hh to the directory containing all MF click elements as follows:

#!bash

CLICK_DIR=/usr/src/click-2.0.1/
cd $CLICK_DIR

sudo rsync ~/mobilityfirst/router/click/elements/gstar/* $CLICK_DIR/elements/local/
sudo rsync ~/mobilityfirst/router/click/elements/gnrs/* $CLICK_DIR/elements/local/
sudo rsync ~/mobilityfirst/router/click/elements/test/* $CLICK_DIR/elements/local/
sudo rsync ~/mobilityfirst/router/click/elements/utils/* $CLICK_DIR/elements/local/
sudo rsync ~/mobilityfirst/common/include/* $CLICK_DIR/elements/local/
sudo rsync ~/mobilityfirst/router/click/elements/computing/* $CLICK_DIR/elements/local/

sudo ./configure --enable-user-multithread --disable-linuxmodule --enable-local
echo "Install gstar!"

sudo make -j 8
sudo make -j 8 install

for a 3 nodes topology, I use the following script to test:

node 1: file sender

click -j 4 MF_FileSender.click my_GUID=1 src_GUID=1 dst_GUID=2 service_id=0 chk_size=50000 delay=7 pkt_size=1024 topo_file=/users/yeung/topology/topology.txt core_dev=eth0 file_to_send=/users/yeung/squid.conf window_size=1 loss_prob=0
node 2: receiver

click -j 4 MF_ChunkReceiver.click my_GUID=2 topo_file=/users/yeung/topology/topology.txt core_dev=eth1

node 3: a router sitting in the middle

click -j 4 MF_BasicRouter.click my_GUID=3 topo_file=/users/yeung/topology/topology3.txt core_dev=eth0 service_id=1

(btw, we need to revise MF_BasicRouter.click a bit to add the service_id to the MF_segmentor element)

Updated