Skip to content

Instantly share code, notes, and snippets.

View edwarnicke's full-sized avatar

Ed Warnicke edwarnicke

View GitHub Profile
@edwarnicke
edwarnicke / gist:deb7e0330feeec874477cfc700923e26
Created June 3, 2024 17:28
openssl speed md5 sha1 sha256 - output
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes
md5 49743.00k 154842.10k 382517.28k 588280.71k 734586.36k 730631.98k
sha1 47740.44k 160123.03k 434087.05k 773829.86k 1000173.78k 1028204.30k
sha256 36617.01k 107972.99k 263175.92k 399225.21k 463062.55k 469893.12k
## NSM
## PREROUTING
| Rule | target | prot | opt | in | out | source | destination |
|---|---------|------|-----|-------|----------|----------|---|
| 1 | ISTIO_REDIRECT | tcp | -- | ${NSM_INTERFACE} | any | anywhere | anywhere |
| 2 | ISTIO_INBOUND | tcp | -- | any | any | anywhere | anywhere |
vpp# show fib entry
FIB Entries:
0@0.0.0.0/0
unicast-ip4-chain
[@0]: dpo-load-balance: [proto:ip4 index:1 buckets:1 uRPF:0 to:[0:0]]
[0] [@0]: dpo-drop ip4
1@0.0.0.0/32
unicast-ip4-chain
[@0]: dpo-load-balance: [proto:ip4 index:2 buckets:1 uRPF:1 to:[0:0]]
[0] [@0]: dpo-drop ip4
02:03:43:042982: memif-input
memif: hw_if_index 6 next-index 0
slot: ring 0
02:03:43:047017: ip4-input-no-checksum
ICMP: 169.254.0.4 -> 169.254.0.0
Packet 1
00:01:17:093431: memif-input
memif: hw_if_index 2 next-index 2
slot: ring 0
00:01:17:093455: ip6-input
ICMP6: fc00::1 -> fc00::
tos 0x00, flow label 0xadb89, hop limit 63, payload length 64
ICMP echo_request checksum 0xbf8a
00:01:17:093466: ip6-lookup
=== RUN TestRunFeatureSuite/TestKernel2Wireguard2Kernel
time=2021-10-13T15:19:46-05:00 level=info msg=NAMESPACE=($(kubectl create -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/c49ab6a85c269e440be9f18e5b2facedb47ff10e/examples/features/namespace.yaml)[0])
NAMESPACE=${NAMESPACE:10} TestRunFeatureSuite/TestKernel2Wireguard2Kernel=stdin
time=2021-10-13T15:19:48-05:00 level=info msg=NODES=($(kubectl get nodes -o go-template='{{range .items}}{{ if not .spec.taints }}{{index .metadata.labels "kubernetes.io/hostname"}} {{end}}{{end}}')) TestRunFeatureSuite/TestKernel2Wireguard2Kernel=stdin
time=2021-10-13T15:19:48-05:00 level=info msg=cat > kustomization.yaml <<EOF
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: ${NAMESPACE}
=== RUN TestRunFeatureSuite/TestKernel2Wireguard2Memif
time=2021-10-13T15:21:43-05:00 level=info msg=NAMESPACE=($(kubectl create -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/c49ab6a85c269e440be9f18e5b2facedb47ff10e/examples/features/namespace.yaml)[0])
NAMESPACE=${NAMESPACE:10} TestRunFeatureSuite/TestKernel2Wireguard2Memif=stdin
time=2021-10-13T15:21:44-05:00 level=info msg=NODES=($(kubectl get nodes -o go-template='{{range .items}}{{ if not .spec.taints }}{{index .metadata.labels "kubernetes.io/hostname"}} {{end}}{{end}}')) TestRunFeatureSuite/TestKernel2Wireguard2Memif=stdin
time=2021-10-13T15:21:44-05:00 level=info msg=cat > kustomization.yaml <<EOF
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: ${NAMESPACE}
=== RUN TestRunFeatureSuite/TestNse_composition
time=2021-10-13T15:27:54-05:00 level=info msg=NAMESPACE=($(kubectl create -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/c49ab6a85c269e440be9f18e5b2facedb47ff10e/examples/features/namespace.yaml)[0])
NAMESPACE=${NAMESPACE:10} TestRunFeatureSuite/TestNse_composition=stdin
time=2021-10-13T15:27:55-05:00 level=info msg=NODE=($(kubectl get nodes -o go-template='{{range .items}}{{ if not .spec.taints }}{{index .metadata.labels "kubernetes.io/hostname"}} {{end}}{{end}}')[0]) TestRunFeatureSuite/TestNse_composition=stdin
time=2021-10-13T15:27:56-05:00 level=info msg=cat > kustomization.yaml <<EOF
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: ${NAMESPACE}
=== RUN TestRunFeatureSuite/TestScale_from_zero
time=2021-10-13T15:31:53-05:00 level=info msg=NAMESPACE=($(kubectl create -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/c49ab6a85c269e440be9f18e5b2facedb47ff10e/examples/features/namespace.yaml)[0])
NAMESPACE=${NAMESPACE:10} TestRunFeatureSuite/TestScale_from_zero=stdin
time=2021-10-13T15:31:54-05:00 level=info msg=NODES=($(kubectl get nodes -o go-template='{{range .items}}{{ if not .spec.taints }}{{ .metadata.name }} {{end}}{{end}}'))
NSC_NODE=${NODES[0]}
SUPPLIER_NODE=${NODES[1]}
if [ "$SUPPLIER_NODE" == "" ]; then SUPPLIER_NODE=$NSC_NODE; echo "Only 1 node found, testing that pod is created on the same node is useless"; fi TestRunFeatureSuite/TestScale_from_zero=stdin
time=2021-10-13T15:31:54-05:00 level=info msg=cat > patch-nsc.yaml <<EOF
---
apiVersion: apps/v1
=== RUN TestRunFeatureSuite/TestWebhook
time=2021-10-13T15:34:56-05:00 level=info msg=WH=$(kubectl get pods -l app=admission-webhook-k8s -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')
kubectl wait --for=condition=ready --timeout=1m pod ${WH} -n nsm-system TestRunFeatureSuite/TestWebhook=stdin
time=2021-10-13T15:34:56-05:00 level=info msg=pod/admission-webhook-k8s-7688b745d-tvbcg condition met TestRunFeatureSuite/TestWebhook=stdout
time=2021-10-13T15:34:56-05:00 level=info msg=NAMESPACE=($(kubectl create -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/c49ab6a85c269e440be9f18e5b2facedb47ff10e/examples/features/namespace.yaml)[0])
NAMESPACE=${NAMESPACE:10} TestRunFeatureSuite/TestWebhook=stdin
time=2021-10-13T15:34:57-05:00 level=info msg=NODES=($(kubectl get nodes -o go-template='{{range .items}}{{ if not .spec.taints }}{{index .metadata.labels "kubernetes.io/hostname"}} {{end}}{{end}}')) TestRunFeatureSuite/TestWebhook=stdin
time=2021-10-13T15:34:57-05: