Skip to content

[RFE] Consider allowing wnbd-client to setup nbd connection via AF_UNIX unix sockets #116

@hgkamath

Description

@hgkamath

Description:

Consider the possibility of also allowing AF_UNIX unix-socket connections to a nbd-server also (maybe also rbd-client, if the rbd-protocol also has the same ability)

Since Windows-10 1803 Windows allows for usable AF_UNIX unix-sockets.
AF_UNIX sockets can be used when the processes (storport-wnbd-client and nbd-server) are local.
An emulated socketpair() is also said to be do-able. (but some advanced things like abstract unix-sockets are not do-able)
Advantages include:

  • A performance benefit is to be expected as AF_UNIX sockets avoid the network packetization overhead that happens over TCP/IP layers. Peers communicate over unix-socket at the session-layer.
  • avoids exposing the nbd-server tcp port over the network
  • filesystem permissions safeguard the socket.
  • TCP connections need layer-4 ACK-keep-alives going back and forth.

References

Misc

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions