Microsoft Azure IoT Development Tutorial
Microsoft Azure IoT Development Tutorial
Microsoft Azure, AWS Cloud, and Google Cloud are international cloud service providers offering services such as cloud computing, Internet of Things (IoT), and AI. This tutorial will focus on the practical application of using Microsoft Azure to connect IoT devices for program execution and data collection.
Azure Login and IoT Hub SetupFirst, we need to log in to the Azure cloud: https://portal.azure.com. Azure provides some always-free services for every ...
Elasticsearch, Kibana for IoT Data Visualization and Analysis
Elasticsearch, Kibana for IoT Data Visualization and AnalysisLaunch an Elasticsearch instance or run Elasticsearch on your own LinuxThe first step is to have an account for Elastic Cloud. If you don’t have one, you can register for a trial here (no credit card required). Once you log in, you can create a new deployment, choosing the size of the Elasticsearch instances that you want to use.
Use Elasticsearch and Kibana in the cloud: Easiest way!you can follow this link to create an instance using ...
Microsoft Azure IoT 开发教程
Microsoft Azure与AWS Cloud,Google Cloud为国际云服务厂商,提供云计算,物联网,AI等服务。本次教程具体来实践一下如何用微软云(Microsoft Azure)来连接物联网设备进行程序运行与数据采集等。
Azure登录与IoT hub设置首先,我们需要登录Azure云:https://portal.azure.com,Azure为每个账户提供了一些永久免费的服务,其中就包含物联网相关的IoT hub。我们从free services中找到Microsoft IoT Hub,点击创建,如图所示
其中我们可以自定义命名一个IoT hub name,然后选择我们的资源组(Resource Group)。关于Subscription和资源组,一般是在创建任何资源之前最先创建一个Subscription和其中的资源组的,所以如果第一次使用Azure,一开始会提示创建这两个的,不必担心。在Tier部分选择free,Rigion部分选择离我们较近的East Asia即可。
创建完之后我们打开并且点击左栏中的Device Management,然后点击其中的Devic ...
星链的工作流程
以下是关于星链的使用方式、网络建立全流程的详细讲解,并配合你要求的 IP 分配案例 进行说明。
1. 星链的使用方式 (User Experience)对用户来说,星链的使用非常“傻瓜化”。
硬件组成: 你会收到一个 Dishy(碟形天线)和一个 Wi-Fi 路由器。
操作流程:
把 Dishy 放在天空视野开阔的地方(无树木遮挡)。
通电。
Dishy 内部有相控阵雷达和马达,它会自动旋转、倾斜,扫描天空中的卫星信号。
通过手机 App 设置 Wi-Fi 名称和密码,即可上网。
2. 网络建立详细流程 (Technical Workflow)当你的终端通电后,网络建立分为四个核心阶段:
第一阶段:扫描与捕获 (Acquisition)
终端行为: Dishy 通电后,利用内置的 GPS 定位自身位置,并加载星历数据(卫星轨道数据)。
波束赋形: 它的相控阵天线会发射电子波束(无需物理大范围移动)去“抓取”头顶飞过的 Starlink 卫星。
握手: 一旦锁定一颗卫星,双方建立 Ku/Ka 波段的无线电链路。
第二阶段:DHCP 与 IP 分配 (IP Assignment ...
PDU session establishment in 5G
5G 会话建立(PDU session establishment in 5G)此处PDU即Packet Data Unit, 是数据流的基本单位,即数据单元。下面我们分步骤讲解5G会话建立的过程,此过程发生在注册,安全认证(5G-AKA)之后。安全认证之后,所有信令消息都已被加密传输,所以下面步骤中传输的所有消息都是加密的。
UE -> AMF (PDU Session Establishment Request (5GSM))UE initiates PDU Session establishment by sending a 5GSM message inside NAS. It specifies which network slice to use, which data network (DNN), IP type, and session parameters.
AMF -> SMF (AMF Selects SMF by Nnrf_NFDiscovery_Request (Find SMF))AMF queries NRF (Network Reposito ...
WireGuard快速启动
WireGuard快速启动机器B:
机器A:
12345wg genkey > privatesudo ip link add wg0 type wireguardsudo ip addr add 10.0.0.1/24 dev wg0sudo wg set wg0 private-key ./privatesudo ip link set wg0 up
机器B:
1234sudo ip link add wg0 type wireguardsudo ip addr add 10.0.0.2/24 deg wg0sudo wg set wg0 private-key ./privatesudo ip link set wg0 up
现在初步设置好各自的私钥和内网ip。但是现在两者还不能互通。
现在开始用对方公钥参数进行互通,握手
机器A:
1wg set wg0 peer 6rG/IxtF5ThipkLsNzMuUvcQgzcnV5mr5dgzvtfZRBU= allowed-ips 10.0.0.2/32 endpoint B的ip:port
机器B:
1wg set wg ...
DTLS 1.3协议解析
DTLS 1.3协议握手解析DTLS 1.3协议是基于TLS1.3协议的支持UDP的安全协议,提供加密性,和TLS1.3类似,它同样支持保密性,认证和完整性检验。DTLS与TLS最大区别是TLS无法支持UDP,因为UDP是无连接的协议。DTLS握手报文全部经UDP协议传输。DTLS1.3 与TLS1.3类似,都支持普通握手模式和预共享密钥握手模式(Pre-shared Key Handshake),而后者则是为快速恢复的0-RTT准备的模式。本文主要讲解普通握手模式,并省略初始ClientHello发送后服务端请求Cookie的过程。
根据RFC9147,DTLS1.3握手过程如下:
客户端交换密钥生成 Key Gen指定一个椭圆曲线算法生成客户端公钥。
ClientHello32字节客户端随机数(Client Random)。
Session ID 字段在DTLS1.3中不再被使用,但仍然存在该字段。
Cookie字段不再被使用。
Cipher Suites提供了一系列客户端支持的加密套件,最常用的比如TLS_AES_128_GCM_SHA256。
Compression Meth ...
QUIC protocol
Before Sending Data (Client Key Exchange Generatio)Here we adopt X25519 algorithms to generate private and public key (pk, sk), length(sk) = 256, namely the sk is a random integer from (0, $2^{256}-1$)
12345678910111213The public key calculation can be confirmed at the command line:### requires openssl 1.1.0 or higher$ openssl pkey -noout -text < client-ephemeral-private.keyX25519 Private-Key:priv: 20:21:22:23:24:25:26:27:28:29:2a:2b:2c:2d:2e: 2f:30:31:32:33:34:35:36:37:38:39:3a:3b:3c:3 ...
Microsoft Visual Studio 2022编译后量子密码学库liboqs
写本文的目的是,liboqs的github官方只给出了linux/Mac的编译,而对于windows只给出了建议编译方式,这里我们采用Microsoft Visual Studio 2022编译liboqs库,用于windows平台。我们的系统是windows 10, 21H2, OS Build 20348.因为有些太古老的系统会有很多不支持。
下载源码和编译配置首先拉取源码12git clone -b main https://github.com/open-quantum-safe/liboqs.gitcd liboqs在配置编译工具链的时候为了方便,我们使用Clion,加载源码并且配置CMake和build。
我们需要在liboqs下自己创建一个编译文件夹build,并且后续的ninja等编译和安装测试命令都在此文件夹下进行。
但是这里我们需要首先安装VS 2022,不然是无法选中ToolChain为Visual Studio的,安装过程这里省略啦,在勾选安装的组件的时候要选择对应版本的sdk和build工具,此处参见网上visual studio安装博客。下面在勾选配置的 ...
No title
In this paper, they focused on integrating PQ-TLS protocols into 5G control plane. They proposed a VPN over TLS communication scheme, which can be used for NF registration messages and UE registration and authentication messages. In their VPN over TLS, they created tunneling between two communication entities, where all traffics were protected using TLS, and NAT was used for data transmission between two TUN interfaces.
In the 5G scenario, they considered the Service Communication Proxy (SCP) ...



