Difference between revisions of "Riset-1"

From belajarwiki
Jump to navigation Jump to search
Line 1: Line 1:
 +
==Skema di Client dan Server==
 +
 +
====Client====
 
<pre>
 
<pre>
 
/home/noble/
 
/home/noble/
├─ experiments/
+
├─ shared/
│  └─ coap_5001_6001/
+
│  ├─ images/
│    ├─ client/
+
│  │  ├─ 640x360/
│    │  ├─ bin/                # helper CLI (ascon_aead_cli, packer)
+
│  │  ├─ 1280x720/
│    │  ├─ scripts/            # python & bash pipeline
+
│  │  └─ 1920x1080/
│    │ └─ processed_r1/      # hasil siap kirim (akan dihapus tiap run)
+
│  └─ algorithms/
    └─ server/
+
│    ├─ ascon/                 # ← clone upstream ascon-c (TANPA modifikasi)
│        ├─ bin/               # coap-server custom (opsional)
+
│    └─ ascon_r1_cli/          # ← wrapper CLI khusus R1 (ascon_aead_cli.c, Makefile, build/)
      └─ inbox/              # hasil echo dari server (sementara)
+
├─ libcoap/                     # libcoap (client/server)
+
├─ libcoap/                    # ← clone & build libcoap di CLIENT
└─ shared/
+
  ├─ images/                   # 640x360 / 1280x720 / 1920x1080 (asli)
+
└─ experiments/
  └─ algorithms/
+
  └─ coap_5001_6001/
      └─ ascon/                  # referensi C untuk Ascon (lib + CLI kecil)
+
      ├─ client/
 +
      │  ├─ bin/                # ← ascon_aead_cli (hasil build), tool lain
 +
      │  ├─ scripts/            # ← detect_poi.py, encrypt_roi_ascon.py, run_r1.sh, models/
 +
      │  └─ processed_r1/
 +
      │    ├─ 640x360/
 +
      │    ├─ 1280x720/
 +
          └─ 1920x1080/
 +
       └─ libcoap_client/
 +
        └─ coap-client        # ← copy dari /home/noble/libcoap/examples/coap-client
 +
</pre>
 +
Catatan:
 +
* shared/algorithms/ascon = repo asli upstream (tetap bersih).
 +
* shared/algorithms/ascon_r1_cli = tempat ascon_aead_cli.c + Makefile + build/ (hasil make).
 +
* Setelah make, copy build/ascon_aead_cli → experiments/coap_5001_6001/client/bin/.
 +
* experiments/coap_5001_6001/libcoap_client/coap-client adalah binary dari libcoap (hasil build di /home/noble/libcoap).
 +
 
 +
 
 +
====Server====
 +
<pre>
 +
/home/noble/
 +
├─ libcoap/                    # ← clone & build libcoap di SERVER
 +
 +
└─ experiments/
 +
  └─ coap_5001_6001/
 +
      └─ server/
 +
        ├─ bin/
 +
        │  ├─ coap-echo-server # ← copy dari /home/noble/libcoap/examples/coap-server (atau versi kustom)
 +
        └─ ascon_aead_cli  # hasil build CLI di server (mirror dari client)
 +
        ├─ aead_upstream/
 +
        │  └─ ascon/           # ← clone upstream ascon-c (TANPA modifikasi)
 +
        ├─ aead_cli_r1/
 +
        │  ├─ ascon_aead_cli.c # ← copy dari client agar build lokal
 +
        │  ├─ Makefile        # ← sesuaikan ASCON_UPSTREAM ke path server
 +
        │  └─ build/
 +
        ├─ inbox/             # ← simpan payload .txn.tar yang diterima
 +
        ├─ tmp/               # ← tempat ekstrak .txn.tar untuk kerja sementara
 +
        ├─ decrypted/         # ← hasil rekonstruksi (imgX.decrypted.png)
 +
        └─ logs/
 +
 
 
</pre>
 
</pre>

Revision as of 06:53, 1 November 2025

Skema di Client dan Server

Client

/home/noble/
├─ shared/
│  ├─ images/
│  │  ├─ 640x360/
│  │  ├─ 1280x720/
│  │  └─ 1920x1080/
│  └─ algorithms/
│     ├─ ascon/                 # ← clone upstream ascon-c (TANPA modifikasi)
│     └─ ascon_r1_cli/          # ← wrapper CLI khusus R1 (ascon_aead_cli.c, Makefile, build/)
│
├─ libcoap/                     # ← clone & build libcoap di CLIENT
│
└─ experiments/
   └─ coap_5001_6001/
      ├─ client/
      │  ├─ bin/                # ← ascon_aead_cli (hasil build), tool lain
      │  ├─ scripts/            # ← detect_poi.py, encrypt_roi_ascon.py, run_r1.sh, models/
      │  └─ processed_r1/
      │     ├─ 640x360/
      │     ├─ 1280x720/
      │     └─ 1920x1080/
      └─ libcoap_client/
         └─ coap-client         # ← copy dari /home/noble/libcoap/examples/coap-client

Catatan:

  • shared/algorithms/ascon = repo asli upstream (tetap bersih).
  • shared/algorithms/ascon_r1_cli = tempat ascon_aead_cli.c + Makefile + build/ (hasil make).
  • Setelah make, copy build/ascon_aead_cli → experiments/coap_5001_6001/client/bin/.
  • experiments/coap_5001_6001/libcoap_client/coap-client adalah binary dari libcoap (hasil build di /home/noble/libcoap).


Server

/home/noble/
├─ libcoap/                     # ← clone & build libcoap di SERVER
│
└─ experiments/
   └─ coap_5001_6001/
      └─ server/
         ├─ bin/
         │  ├─ coap-echo-server # ← copy dari /home/noble/libcoap/examples/coap-server (atau versi kustom)
         │  └─ ascon_aead_cli   # ← hasil build CLI di server (mirror dari client)
         ├─ aead_upstream/
         │  └─ ascon/           # ← clone upstream ascon-c (TANPA modifikasi)
         ├─ aead_cli_r1/
         │  ├─ ascon_aead_cli.c # ← copy dari client agar build lokal
         │  ├─ Makefile         # ← sesuaikan ASCON_UPSTREAM ke path server
         │  └─ build/
         ├─ inbox/              # ← simpan payload .txn.tar yang diterima
         ├─ tmp/                # ← tempat ekstrak .txn.tar untuk kerja sementara
         ├─ decrypted/          # ← hasil rekonstruksi (imgX.decrypted.png)
         └─ logs/