From fc3c2cb796fec117da5b12ba3737ac0a7d97e59c Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Fri, 30 Apr 2021 20:11:06 +0200 Subject: [PATCH] [WIP] Added envelopes --- spec/usimp.md | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/spec/usimp.md b/spec/usimp.md index 5a6f694..8f63318 100644 --- a/spec/usimp.md +++ b/spec/usimp.md @@ -173,6 +173,9 @@ An *User* may have multiple *Profiles* which in turn may contain multiple *Accou #### 2.3.2 Account {#account} + + + #### 2.3.3 Profile {#profile} #### 2.3.4 Account Types {#account-types} @@ -201,17 +204,31 @@ An *User* may have multiple *Profiles* which in turn may contain multiple *Accou #### 2.6.2 Bridge {#bridge} -## 3 Transport Protocols {#transport-protocols} +## 3 Transport {#transport} -Following protocols may be used to transport USIMP messages between USIMP participants: +### 3.1 Transport Protocols {#transport-protocol} + +In USIMP the messages used to communicate between participants are calles envelopes. +For each of the transport protocols the envelope format may look different. +Following protocols may be used to transport USIMP envelopes between USIMP participants: * [*Hypertext Transfer Protocol* (HTTP) and HTTPS](transport/http.md) * [*WebSocket Protocol* (WS) and WSS](transport/websocket.md) * [*User Datagram Protocol* (UDP)](transport/udp.md) -| Protocol | L3 Protocol | Encrypted | Default Port | Required | -|----------|-------------|-----------|--------------|----------| -| HTTP | TCP | No | 80 | Yes | -| HTTPS | TCP | Yes | 443 | No | -| WS | TCP | No | 80 | No | -| WSS | TCP | Yes | 443 | No | +| Protocol | L3 Protocol | Encrypted | Default Port | Implementation Required | +|----------|-------------|-----------|--------------|-------------------------| +| HTTP | TCP | No | 80 | Yes | +| HTTPS | TCP | Yes | 443 | No | +| WS | TCP | No | 80 | No | +| WSS | TCP | Yes | 443 | No | + + +### 3.2 Envelopes {#envelopes} + +Each USIMP envelope has to contain the following fields in some form: + +* Domain-ID +* Status +* Method/Resource name +* Credentials