Skip to content

Commit

Permalink
add networking layer diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
imane-ess committed Apr 15, 2023
1 parent c627c81 commit 2b6ae82
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 0 deletions.
29 changes: 29 additions & 0 deletions versioned_docs/version-1.7/references/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,35 @@ flowchart TD
end
communication_layer --- WSL
```

## Networking Layer

```mermaid
flowchart LR;
subgraph Host["HOST"]
subgraph hostSwitch["Host Switch"]
vsockHost["Host Daemon"]
Win32_API(("Win32 API"))
dhcp["DHCP"]
dns["DNS"]
api["API"]
portForwarding["Port Forwarding"]
vsockHost --system calls---- Win32_API
vsockHost ---- dhcp
vsockHost ---- dns
vsockHost ---- portForwarding
vsockHost ---- api
end
end
subgraph VM["VM"]
subgraph vmSwitch["VM Switch"]
vsockVM["VM Daemon"]
tapDevice("tap device")
tapDevice ---- vsockVM
end
end
vsockVM --- |AF_VSOCK| vsockHost
```
</TabItem>

<TabItem value="macOS">
Expand Down
29 changes: 29 additions & 0 deletions versioned_docs/version-1.8/references/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,35 @@ flowchart TD
end
communication_layer --- WSL
```

## Networking Layer

```mermaid
flowchart LR;
subgraph Host["HOST"]
subgraph hostSwitch["Host Switch"]
vsockHost["Host Daemon"]
Win32_API(("Win32 API"))
dhcp["DHCP"]
dns["DNS"]
api["API"]
portForwarding["Port Forwarding"]
vsockHost --system calls---- Win32_API
vsockHost ---- dhcp
vsockHost ---- dns
vsockHost ---- portForwarding
vsockHost ---- api
end
end
subgraph VM["VM"]
subgraph vmSwitch["VM Switch"]
vsockVM["VM Daemon"]
tapDevice("tap device")
tapDevice ---- vsockVM
end
end
vsockVM --- |AF_VSOCK| vsockHost
```
</TabItem>

<TabItem value="macOS">
Expand Down
30 changes: 30 additions & 0 deletions versioned_docs/version-latest/references/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,36 @@ flowchart TD
end
communication_layer --- WSL
```

## Networking Layer

```mermaid
flowchart LR;
subgraph Host["HOST"]
subgraph hostSwitch["Host Switch"]
vsockHost["Host Daemon"]
Win32_API(("Win32 API"))
dhcp["DHCP"]
dns["DNS"]
api["API"]
portForwarding["Port Forwarding"]
vsockHost --system calls---- Win32_API
vsockHost ---- dhcp
vsockHost ---- dns
vsockHost ---- portForwarding
vsockHost ---- api
end
end
subgraph VM["VM"]
subgraph vmSwitch["VM Switch"]
vsockVM["VM Daemon"]
tapDevice("tap device")
tapDevice ---- vsockVM
end
end
vsockVM --- |AF_VSOCK| vsockHost
```

</TabItem>

<TabItem value="Linux">
Expand Down

0 comments on commit 2b6ae82

Please sign in to comment.