Franco Nicolas Bellomo
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Mesh wide ###### tags: `AM` ## Parte 1: Visualizar el estado de la red - Usar `multiwriter` para guardar la ~~topología~~ estado de referencia de la red de la red con una estructura: ```json { nodes: [ { id: "mac-ql-arbol" }, { id: "mac-ql-spam" }, { id: "mac-ql-foo" }, ... ], links: [ { from: "mac-ql-arbol", to: "mac-ql-spam" }, { from: "mac-ql-arbol", to: "mac-ql-foo" }, ... ] }``` La estructura es la misma que usa [netJson.org](https://netjson.org/). No se si sirve guardar los otros datos con esta misma estructura - Usar `shared-shate` para guardar el estado actual de cada nodo como su uptime, la señal con otros nodos, etc. ```json { "mac-ql-arbol": { uptime: "", signals: { "mac-ql-spam": "", "mac-ql-foo": "" } } }``` - Que el mapa use estos dos datos con la idea de unificar la fuente de datos los datos y visualizar todo el estado de la red: - Los nodos ahora van a ser verdes o rojos en función de si estan prendidos - Hacer un link entre los nodos donde el ancho y/o el color represente el nivel de señal. Los niveles de señal son bi-direccionales: mostrar solo el peor de los dos y en el popup desagregar por cada señal - ~~Al hacer click sobre un nodo se va a dibujar su camino a Internet. Por default, se pinta tu camino~~ - El popup de cada nodo: - Muestra su info como el uptime, la versión firmware, que más sería útil mostrar? - Para los nodos que esten prendidos, van a tener la opción de reiniciar. Deberías tener pass de red para esto - Para los nodos que esten off hace mucho tiempo (definir cuanto es), van a tener un boton para eliminarlos de la red - Tener varias capaz - wifi :arrow_up: - Red de referencia: mostrar el estado de referencia y con un slider calcular la diff de señal para decir de esta mal con respecto a la referencia - batman - babel La info de batman y babel deberia estar en shared-state, sino vamos a hacer un plugin No se si incluirlo en esta parte, pero podríamos pensar en algún análisis estadístico para calcular que tan "completa" o cerca del estado perfecto esta la red en base a sus estados anteriores. No tengo la más remota idea de como hacer esto así que no se que tan complejo o no puede ser. [Reescribir lo de arriba] ## Parte dos: correr experimentos/comandos Usando `shared-state` se van a compartir los experiemntos sobre toda la red: para este caso tenemos que pensar cuales son las condicones para que se corra. Por ej, tener 80% de la red up Si queremos correr comando sobre un nodo en particular, lo haríamos de otra forma median una conexion ssh contra el nodo. De esta forma se unifican la forma de compartir el estado de la red y como se corren los comandos. Acá falta pensar bastantes cosas, pero en general va a ser: - Se manda el paquete de comandos via `shared-state` - Cada nodo contesta con el has de los comandos - Si se comple las condiciones a definir: - Se crea un lock file - Los nodos indican en su estando es "running". En el mapa, ahora los nodos tienen un icono los "tuvo de ensayo" en amarillo. - Se corre el comando - A medida que van terminando cambian su estado a "done" y el icono pasa a verde. - Si pasa algo su estado es "fail" y icono en rojo - Cuando todos los nodos terminen (como done o fail) en el mapa aparece un boton para confirmar los cambios y mandar el ok al safe reboot - Si no se confirma después de un tiempo (le paso algo mi router), roolback para todos los nodos - Los experimentos tienen un TTL. Si se pasa, se muestra un error en la pantalla del Si alguien mas esta actualizando la red, debería aparecer un mensage en la UI para evitar que otros usuarios apagen el nodo, cambien su config, etc. Debería haber confirmación de que los nodos estan en modo manteniemiento - Se inicial el modo mantenimiento - Por shared state se confirma el modo manteniemiento de cada nodo - El admin trabaja en la nueva config - El aplicar solo se hace cuando se confirma el modo mantenimiento se confirmo en todos lados - Si no se pueden guardar los cambios, tenes un boton de error que te indica po que esto no es posible ## Falta definir - Que otros datos sería útil mostrar en el mapa? - Para los experimentos me imagino que se los va a poder seleccionar desde un desplegable: actualizar, cambiar canal, pass, etc. Tenemos que definirlos ## Plan de trabajo - Investigar si se puede usar SSE o websocket para mantener una connexion viva con el router. - [Lime-packages] Agregar un nuevo packaged que exponga dos nuevos endpoints: - El estado de la red - El estado de cada nodo (SSE) Los datos van a ser falsos por ahora - [Lime-app] Crear un nuevo pluggin (mesh-wide?) y crear el mapa base - [Lime-app] Leer el estado de la red y de cada nodo y hacer el plot - [Lime-app] Agregar los popus a los nodos y los links según su estado - [Lime-app] Diseñar e implementar el form para crear un experimento - [Lime-packages] Poder crear varios router virtaules con qemu y definir la topología para tener un lab virtual. - [Lime-packages] Leer el estado de la red y de cada nodo - [Lime-packages] Nuevo endpoint: - Eliminar un nodo del estado de la red - Para mandar un experimento al shared-state - Monitorear quienes contestan positivamente al experimento (SSE) - Comenzar con el experimento - Aceptar los cambios (ok al safe reboot) - [Lime-app] Conectar con los nuevos endpoints y mostrar progreso del experimento - [Lime-app] Boton para confirmar los cambios

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully