20190715_jeffrey - silenceuncrio/diary GitHub Wiki

0910

M330 - develop - add 'LTE > USSD' web page

USSD 的 responce 應該在 send 之後

持續去 get

一直到 get 回來的 result.data.responce.result 不為空字串為止


M330 - develop - at 'LTE > USSD' web page

commit cacde03b87276eccb65f5d53462820e24eb3e180
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Mon Jul 15 10:02:45 2019 +0800

    at 'LTE > USSD' web page
    - after sending and send ok without fail, get the result per 2 seconds until the result is not empty

    add the missing ussd.c for ussd.cgi

 proscend/prosrc/webcgi/ussd.c             | 102 ++++++++++++++++++++++++++++++
 proscend/prosrc/www/app/feature/ussd.html |   3 +-
 proscend/prosrc/www/app/feature/ussd.js   |  93 ++++++++++++++++++---------
 3 files changed, 166 insertions(+), 32 deletions(-)

1025

多個按鈕讓使用者能夠手動去要最後的 result

目前原作者 ariel 還在 debug

多這個按鈕給個方便

不過後續要不要留就讓 ariel 決定

先不切過去 M300 做事 - Multiple upload files through web

今天先配合 ariel 在 M330 上的步調

等待的時間可以來做一下功課 - Layer 2 Encapsulation over GRE (L2oGRE)

1035

先從 Layer 2 Ethernet over GRE 這一篇出發

這邊提到

The major components involved in L2 EoGRE are:

  • Virtual Ethernet interface.
  • Ethernet service instance.
  • IP GRE tunnel data plane.
  • L2 bridge-domain data plane.

我想我只能繼續再了解這四個 major components 是什麼

重點是評估在 linux 平台實作的可能性

一步一步前進 - Virtual Ethernet interface

參考 Configuring Virtual Ethernet Interfaces

1055

看得一頭霧水 - Configuring Virtual Ethernet Interfaces

換一個 component - Ethernet service instance

從這篇題提問 What is a Service Instance? 可以看到

service-instance is the way to configure the IOS Carrier Ethernet infrastructure which has been developed to address the Carrier Ethernet services requirement. The framework is called EVC (Ethernet Virtual Connection). The idea behind is able to bind some traffic based to their tag(s) or VLAN(s) to a service (L2 or L3).

Each service will be instanciated with a different service-instance. The VLAN becomes locally significant so you can better scale.

那什麼是 EVC 呢

挖到這篇 - Understanding Ethernet Virtual Circuits (EVC)

這需要花一些時間看


先繼續挖 major component - IP GRE tunnel data plane

直接 google IP GRE tunnel data plane 並沒有找到單純跟 GRE 相關的內容

先跳過


google L2 bridge-domain data plane

先分析 Cisco APIC Layer 2 Networking Configuration Guide

沒有準確出現的字眼

不過有 Bridge Domain


試著單獨 google cisco data plane

分析這一篇 Management, Control and Data plane

或許我可以先忽略掉這些 plane 相關的字眼

1120

再回到 Layer 2 Ethernet over GRE

Ethernet over Soft Generic Routing Encapsulation (EoGRE) is an aggregation solution for aggregating WiFi traffic from hotspots. This solution enables customer premises equipment (CPE) devices to bridge the Ethernet traffic from an end host, and encapsulates the traffic in Ethernet packets over an IP GRE tunnel. The IP GRE tunnel terminates on a service provider broadband network gateway, which then terminates the end host traffic and manages the subscriber session for the end host.

一段一段看

Ethernet over Soft Generic Routing Encapsulation (EoGRE) is an aggregation solution for aggregating WiFi traffic from hotspots.

This solution enables customer premises equipment (CPE) devices to bridge the Ethernet traffic from an end host, and encapsulates the traffic in Ethernet packets over an IP GRE tunnel.

The IP GRE tunnel terminates on a service provider broadband network gateway, which then terminates the end host traffic and manages the subscriber session for the end host.

每個字都看得懂

串起來就一頭霧水


跳著看 Information About Layer 2 Ethernet over GRE 這個章節

The ASR 1000 platform services as the SP broadband network gateway which:

  • Terminates the IP GRE tunnel, and/or
  • Manages the subscriber session for the end-host client.

ASR 1000 - 是 Cisco 某一個系列的 router

SP - Service Provider

broadband network gateway - 需要繼續看一下文章


就看吧 - Broadband Network Gateway Overview

1300

M330 - develop - wanst.apply() need the information about the dns_static.apply()

commit aeab1d99d8ab5b42ddee4c788ad29a2568c01236
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Mon Jul 15 13:30:01 2019 +0800

    since wanst.apply() need the information about the dns_static.apply(),
    so we need to change the order when apply with 'Work As' 'Static IPv4':
    1. icos.dns_static.apply(vm.dns_static)
    2. icos.wanst.apply(vm.wanst)
    3. icos.connmgr.ping_health_apply(vm.ping_health)
    4. icos.connmgr.chg_wproto_apply(vm.chg_wproto)

 proscend/prosrc/www/app/feature/wanEthernet.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

M330 - develop - fix 'Uncaught SyntaxError: Unexpected token .'

commit cfadda3217bda3b8d8e8868b318f18c6da09eb2e
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Mon Jul 15 13:47:54 2019 +0800

    at 'WAN > Ethernet' page:
    - fix 'Uncaught SyntaxError: Unexpected token .'

 proscend/prosrc/www/app/feature/wanEthernet.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

這是來自於 john 的 request

順手也搬到 M300 - develop 去


M300 - develop - wanst.apply() need the information about the dns_static.apply()

commit c297b55778b567ea6f2788447392f5cb46836f77
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Mon Jul 15 14:14:06 2019 +0800

    since wanst.apply() need the information about the dns_static.apply(),
    so we need to change the order when apply with 'Work As' 'Static IPv4':
    1. icos.dns_static.apply(vm.dns_static)
    2. icos.wanst.apply(vm.wanst)
    3. icos.connmgr.ping_health_apply(vm.ping_health)
    4. icos.connmgr.chg_wproto_apply(vm.chg_wproto)

 proscend/prosrc/www/app/feature/wanEthernet.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

1415

M330 USSD 相關的問題 原作者表示已經修好了

來測一下

send 到有回應會超過 10 秒

但我的 web ui 部分算完工了

把為了好 debug 的按鈕拿掉吧

commit 97c2d1cc0f7eff4ea68cef00b2fdaa738384b507
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Mon Jul 15 14:42:49 2019 +0800

    at 'LTE > USSD' web page
    - remove 'Get the latest result' button

 proscend/prosrc/www/app/feature/ussd.html | 9 ---------
 1 file changed, 9 deletions(-)

1655

考慮用另一套 c 的 cgi library 來處理多個檔案上傳的問題

cgic: an ANSI C library for CGI Programming

花點時間先熟悉一下

發現這個 library 並沒有支援 multiple file upload

1800

明天繼續 trace 原來這一套問題出在哪邊