Changes between Version 6 and Version 7 of P2pnsInstall


Ignore:
Timestamp:
Sep 29, 2008, 2:13:55 PM (16 years ago)
Author:
baumgart
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • P2pnsInstall

    v6 v7  
    2222}}}
    2323
    24 5. Edit !OverSim-20080919/Simulations/realworld/realdhtapp.ini and remove the bootstrap IP:
     245. Edit !OverSim-20080919/Simulations/realworld/realdhtapp.ini and remove the bootstrap IP (since this is the first node in the overlay):
    2525{{{
    2626   bootstrapIP: replace the "10.6.0.1" by ""
    2727}}}
    2828
    29 5. Start !OverSim and click on the "FAST" button:
     296. Start !OverSim and click on the "FAST" button:
    3030{{{
    3131  cd ~/sim/OverSim
     
    3333}}}
    3434
    35 6. Start OpenSER (in a new terminal):
     357. Start OpenSER (in a new terminal):
    3636{{{
    3737  cd ~/sim/openser-1.3.1-p2psip
     
    3939}}}
    4040
    41 7. Start and configure a SIP UA of your choice (e.g. [http://www.ekiga.org/ Ekiga]):
     418. Start and configure a SIP UA of your choice (e.g. [http://www.ekiga.org/ Ekiga]):
    4242{{{
    4343  - Set the outgoing proxy to ''localIP'':5061
     
    4848    (With Ekiga: ''Edit->Accounts'': Click the checkbox next to the account, if it's not already registered)
    4949}}}
     50
     51Congratulations - now you should have a running P2PNS installation. With this setup you could connect a second SIP UA to the same local proxy and start a call between the two UAs.
     52
     53Of course a peer-to-peer network with a single node is not very interesting ;-) You have to alternatives to add additional overlay nodes:
     54
     55=== Emulation of additional nodes by using the tun interface (needs root privileges) ===
     56
     575a. Adapt !OverSim-20080919/Simulations/realworld/setup-realdht to your environment (username and LD_LIBRARY_PATH). If you removed the bootstrapIP paramter from realdhtapp.ini in step 5 restore the old "10.6.0.1" setting.
     58
     596a. Start !OverSim, enter your password and click on the "FAST" button for both !OverSim processes:
     60{{{
     61  cd ~/sim/OverSim/Simulations/realworld
     62  ./setup-realdht
     63}}}
     64
     65In this configuration there is a second !OverSim process emulating 10 additional overlay nodes.
     66
     67=== Adding additional overlay nodes (you need multiple machines for this) ===
     68
     699. Install OverSim and OpenSER on a second machine.
     70
     7110. Now change realdhtapp.ini on the second machine:
     72{{{
     73  - Replace the run number (''Run'' and ''default-run'') by a unique number for each node
     74    (Otherwise all nodes will have the same nodeID!)
     75  - Set bootstrapIP to the IP of the first overlay node
     76
     7711. Start OverSim and OpenSER on the second machine (see steps 6 and 7).
     78