Difference between revisions of "Riset-1"

From belajarwiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
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>
 
</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>
 +
 +
Catatan:
 +
* Build ascon_aead_cli di server (gunakan upstream lokal aead_upstream/ascon), lalu copy ke server/bin/.
 +
* Jalankan coap-echo-server di -A 192.168.122.246 -p 6001.
 +
* inbox/ menyimpan arsip payload masuk (bahan evaluasi).
 +
* tmp/ untuk ekstraksi .txn.tar; decrypted/ hasil dekripsi.
 +
 +
 +
Untuk instalasi libcoap dapat dilihat pada [[libcoap]]
 +
 +
==Client==
 +
Siapkan struktur dan install dependency
 +
 +
mkdir -p /home/noble/shared/images/{640x360,1280x720,1920x1080}
 +
mkdir -p /home/noble/shared/algorithms/{ascon,ascon_r1_cli}
 +
mkdir -p /home/noble/experiments/coap_5001_6001/client/{bin,scripts,processed_r1}
 +
mkdir -p /home/noble/experiments/coap_5001_6001/client/processed_r1/{640x360,1280x720,1920x1080}
 +
mkdir -p /home/noble/experiments/coap_5001_6001/libcoap_client
 +
mkdir -p /home/noble/libcoap
 +
 +
sudo apt-get update
 +
sudo apt-get install -y \
 +
  python3 python3-venv python3-opencv \
 +
  build-essential autoconf automake libtool pkg-config \
 +
  libssl-dev libpng-dev git
 +
 +
 +
Clone ascon-c dari github
 +
 +
cd /home/noble/shared/algorithms
 +
git clone https://github.com/ascon/ascon-c.git ascon
 +
 +
 +
Siapkan ascon_r1_cli (wrapper) + Makefile + build script
 +
 +
File: /home/noble/shared/algorithms/ascon_r1_cli/ascon_aead_cli.c dapat dilihat di
 +
 +
 +
==Server==
 +
Siapkan struktur dan install dependency
 +
 +
mkdir -p /home/noble/shared/algorithms/{ascon,ascon_r1_cli}
 +
mkdir -p /home/noble/experiments/coap_5001_6001/server/{bin,inbox,logs,tmp,decrypted}
 +
mkdir -p /home/noble/libcoap
 +
 +
sudo apt-get update
 +
sudo apt-get install -y \
 +
  python3 python3-venv python3-opencv \
 +
  build-essential autoconf automake libtool pkg-config \
 +
  libssl-dev libpng-dev git

Latest revision as of 14:35, 3 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/

Catatan:

  • Build ascon_aead_cli di server (gunakan upstream lokal aead_upstream/ascon), lalu copy ke server/bin/.
  • Jalankan coap-echo-server di -A 192.168.122.246 -p 6001.
  • inbox/ menyimpan arsip payload masuk (bahan evaluasi).
  • tmp/ untuk ekstraksi .txn.tar; decrypted/ hasil dekripsi.


Untuk instalasi libcoap dapat dilihat pada libcoap

Client

Siapkan struktur dan install dependency

mkdir -p /home/noble/shared/images/{640x360,1280x720,1920x1080}
mkdir -p /home/noble/shared/algorithms/{ascon,ascon_r1_cli}
mkdir -p /home/noble/experiments/coap_5001_6001/client/{bin,scripts,processed_r1}
mkdir -p /home/noble/experiments/coap_5001_6001/client/processed_r1/{640x360,1280x720,1920x1080}
mkdir -p /home/noble/experiments/coap_5001_6001/libcoap_client
mkdir -p /home/noble/libcoap
sudo apt-get update
sudo apt-get install -y \
 python3 python3-venv python3-opencv \
 build-essential autoconf automake libtool pkg-config \
 libssl-dev libpng-dev git


Clone ascon-c dari github

cd /home/noble/shared/algorithms
git clone https://github.com/ascon/ascon-c.git ascon


Siapkan ascon_r1_cli (wrapper) + Makefile + build script

File: /home/noble/shared/algorithms/ascon_r1_cli/ascon_aead_cli.c dapat dilihat di


Server

Siapkan struktur dan install dependency

mkdir -p /home/noble/shared/algorithms/{ascon,ascon_r1_cli}
mkdir -p /home/noble/experiments/coap_5001_6001/server/{bin,inbox,logs,tmp,decrypted}
mkdir -p /home/noble/libcoap
sudo apt-get update
sudo apt-get install -y \
 python3 python3-venv python3-opencv \
 build-essential autoconf automake libtool pkg-config \
 libssl-dev libpng-dev git