This is a modification of the content of https://github.com/hydrokhoos/relayPod-ICSM to allow experimentation in my environment. Here is the original:
This repository provides a Kubernetes Pod designed for use within an Information-Centric Service Mesh (ICSM) using NDN.
RelayPod simply passes through the received content and returns the content without any modification.
- Clone the repositories:
git clone https://github.com/NekoWilliams/relayPod-ICSM.git-
Deploy NDN network:
For NDN network deployment, refer to the instructions at https://github.com/NekoWilliams/nlsr-sample-k8s. -
Deploy the pod:
cd relayPod-ICSM
kubectl apply -f relayPod.yaml- Provide content:
kubectl exec deployment/ndn-node1 -- /bin/bash -c "echo 'Hello, world' > /sample.txt"
kubectl exec deployment/ndn-node1 -- /bin/bash -c "nlsrc advertise /sample.txt"
kubectl exec deployment/ndn-node1 -- /bin/bash -c "ndnputchunks /sample.txt < /sample.txt"- Request relaid content from another node:
kubectl exec deployment/ndn-node3 -- /bin/bash -c "ndncatchunks /relay/sample.txt"All segments have been received.
Time elapsed: 0.0024145 seconds
Segments received: 1
Transferred size: 0.013 kB
Goodput: 43.073100 kbit/s
Congestion marks: 0 (caused 0 window decreases)
Timeouts: 0 (caused 0 window decreases)
Retransmitted segments: 0 (0%), skipped: 0
RTT min/avg/max = 2.388/2.388/2.388 ms
Hello, world
To remove the deployment, execute the following command:
kubectl delete -f relayPod.yaml