Skip to content

Instantly share code, notes, and snippets.

@hwchiu
Last active August 29, 2015 14:02
Show Gist options
  • Save hwchiu/890058bd0d3dbfa7257c to your computer and use it in GitHub Desktop.
Save hwchiu/890058bd0d3dbfa7257c to your computer and use it in GitHub Desktop.
step

@左邊電腦

  1. root@controller:/ neturon-server @tty1
  2. root@controller:/home/amy/floodlight_ecmp/: floodlight ..... @tty2
  3. 等他跑一下,可以看floodlight console有沒有噴計算完畢相關的訊息

@右邊筆電

  1. root@controller:/ cd home/amy/code_test/$VAR1 screen-9
  2. sh simple_random_VM..sh Ubuntu-exp2 執行此指令去創造vm
  3. 接下來慢慢等,大概兩三分鍾後去網頁看是否所有VM都有順利開起來,記得檢查最後一個IP是30.0.1.19
  4. 如果網頁噴 something goes wrong or internel error,在瀏覽器執行 193.168.3.20/horizon/auth/logout
  5. 如果網頁有任何問題,包括console開不起來,都要執行nova重啟步驟
    • root@controller: sh nova_restart.sh screen-11
  6. 由下到上把全部的vm console都打開
    • Instance -> More - >console
  7. 帳號密碼皆為 root/123,vm0為主控台

@vm(1~24):

  1. sh tc.sh
  2. python server.py

@vm0:

  1. 要取得traffic (history_$N)
  2. 從vm(1-24) 把history_$N給複製到vm0
  3. scp 30.0.1.${i+1}:~/history_$i . (3<=i<=9)
  4. mv history_$N history
  5. modify master.py -. line:97 while i!= {flow*4}
  6. python master.py 3
  7. you can delete all of fin now 1 or 3 : 3 @tty1
  8. 等到中間螢幕的iftop都沒有資料後,可以再稍微等一下下再往下處理
  9. open tty2 at vm0
  10. mkdir exp
  11. cp copy_VM.sh result_parser.py history exp/
  12. sh copy_VM.sh && password = 123
  13. repeat yes and 123
  14. python result_parser.yp > timeresult
  15. 檢查timeresult這個檔案裡面是否都是100%,看看傳輸時間那邊有沒有傳,如果有錯誤,就先用16 delete後,把master.py重新來過
  16. you can delete all of fin now 1 or 3 : 1 @tty1
  17. cd .. @tty2
  18. mv exp/ exp_$N
  19. 換下一個history後,從6繼續下次實驗
  20. 如果發現scp拿東西非常慢,那就先拿出來,然後把VM關掉,世界全部重新來過,history繼續往下跑

從VM拿出資料

  1. vm0: arp -s 30.0.1.56 bc:5f:f4:b0:33:78
  2. screen-0: arp -s 192.168.2.56 {$_(ifconfig on vm0)}
  3. refer to page.9 on word.
  4. ovs-ofctl ... normal
  5. ovs-ofctl .... flood
  6. ovs-ofctl .... screen-2 @node3
  7. scp -r exp_$N/ 30.0.1.56:~/$VAR2 @vm0

備註

  1. 如果VM不能刪除,就先把floodlight關掉 neutron重開 網頁把VM全不砍掉 然後fl & neutron都重開 如先前步驟
  2. $VAR1 and $VAR2 由amy決定,會變
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment