20151218_jeffrey - silenceuncrio/diary GitHub Wiki

Index

  • 1030 - JS9331 - CGI/FastCGI test with lan/wlan
  • 1050 - JS9331 - 再準備一次 Nginx
  • 1330 - JS9331 - cgi_test with lan/wlan - no load
  • 1430 - JS9331 - fcgi_test with lan/wlan - no load
  • 1500 - IoS - meeting at ACE
  • 2240 - mail - SW Arch and feature list. Re: MiFi Schedule Plan

1030

回顧昨天的禮尚往來

pioneer 於 2015/12/17 下午 05:34 寫道:

Dear Jeffrey,
This is excellent experiment and report. Well done and good job.
Were these tests executed from lan or wlan ? If not from wlan, please execute the same test through wlan and compare the result.
And, I need you to proceed some other additional experiments:

  1. Same test with higher simultaneous connections (5000, 10000, ...) for finding the limitation of 9331.
  2. Same test as above with full load traffic from:
    -- lan to wan
    -- wlan to lan
    -- wlan to wan
    And, all need to find the limitation.

整理待做事項

  • same test through wlan and compare the result.
  • Additional experiments:
    • Same test with higher simultaneous connections (5000, 10000, ...) for finding the limitation of 9331.
    • Same test as above with full load traffic from:
      • lan to wan
      • wlan to lan
      • wlan to wan
    • And, all need to find the limitation.

不得不說處長的腦袋還蠻清楚的... 做吧

1050

前天晚上因為 JS9331 的異常已經將之恢復成出廠預設

再準備一次 Nginx

opkg update
opkg install nginx spawn-fcgi

/etc/nginx/nginx.conf

user nobody nogroup;
worker_processes  1;

events {
  worker_connections  1024;
}

http {
  server {
    listen 8080;
    server_name localhost;

    location / {
      fastcgi_pass   127.0.0.1:8000;
      include        fastcgi_params;
    }
  }
}

cgi_test.c

#include <stdio.h>
#include <cgi.h>
#include <json-c/json.h>

s_cgi       *cgi;
json_object *obj;

int main(void) {
    cgi = cgiInit();
    cgiSetType("application/json");
    cgiHeader();
    obj = json_object_new_object();
    json_object_object_add(obj, "ok", json_object_new_boolean(TRUE));
    printf("%s", json_object_to_json_string(obj));
    json_object_put(obj);
    return 0;
}
mips-openwrt-linux-uclibc-gcc \
-I~/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include/ \
-L~/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib/ \
-I/home/jeffrey/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include/ \
-L/home/jeffrey/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib/ \
-lcgi \
-ljson-c \
-o cgi_test cgi_test.c

fcgi_test.c

#include <stdio.h>
#include <json-c/json.h>
#include "fcgiapp.h"

json_object *obj;

int main () {
    FCGX_Stream *in, *out, *err;
    FCGX_ParamArray envp;
    while (FCGX_Accept(&in, &out, &err, &envp) >= 0) {
        FCGX_FPrintF(out, "Content-type: application/json\r\n\r\n");
        obj = json_object_new_object();
        json_object_object_add(obj, "ok", json_object_new_boolean(TRUE));
        FCGX_FPrintF(out, "%s", json_object_to_json_string(obj));
        json_object_put(obj);
    }
    return 0;
}
mips-openwrt-linux-uclibc-gcc \
-I~/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include/ \
-L~/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib/ \
-I/home/jeffrey/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include/ \
-L/home/jeffrey/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib/ \
-lm \
-ldl \
-lpthread \
-lfcgi \
-ljson-c \
-o fcgi_test fcgi_test.c

1500

meeting at ACE

錄音有四段 建議要搭配投影片來觀看

照片有一張 是關於成本估算的

今天為了成本估算的議題
真的覺得公司很丟臉

2240

SW Arch and feature list. Re: MiFi Schedule Plan

pioneer 於 2015/12/18 下午 12:38 寫道:
Dear Ariel,
Just reviewed the sw arch and feature list you sent.
The following features are missed and need to be included:

  1. NAT
  2. SNMP (v1, v2c, v3)
  3. CLI
  4. telnet, ssh
  5. DoS, DDoS, Intrusion Detection
  6. URL BLocking
  7. Content Filtering
  8. VLAN
  9. QoS

These features are not all necessary for MiFi router. But most of them are all necessary for mobil router. The others are nice to have and may be requested by some customers.
And, you can plan your schedule in the feature list, by separating the sw into phases (by completeness of feature sets). Each phases should at least has alpha, beta and final stage.

Attached the examples of sw arch and feature list. Please refer and modify yours to be more complete.

Dear Winson, Anton, Venti, Jeffrey,
Please also refer the attached files and find time to make corresponding sw arch and feature list for:

  1. 708P
  2. 579X -- feature list as attached, just need to review.
  3. 52xxN -- refer 579x's
  4. IOT platform

You don't need to complete follow my format at this moment. But, need to cover enough dettail same as the ones I attached.
And, after that, for some major modules, like icos config and icostimer in our VPN, 579x and 52xxN, we also need to sketch the control diagram and data diagram.
The diagram will be simliar to the ones which Ariel presented in mifi router proposal presentation.

下禮拜一開始衝

不管是智邦也好
廣達也好

好的經驗我通通要學起來

⚠️ **GitHub.com Fallback** ⚠️