Netlink sockets are the way entities communicate to each other.
- Address: Unix domain sockets do not need a IP address + port number, TCP/IP sockets do.
- Reach: Unix sockets are local to that machine, while TCP/IP sockets need not be.
- Speed: Unix sockets are faster since they do not go through the TCP/IP stack which ends up being faster.
- Types: TCP/IP sockets are of the type streaming, datagram, or Raw. There are no further types of Unix sockets.
- Application: Unix sockets are used for inter process communication on the same system. They behave like system pipes. TCP/IP sockets have a wide range of applications e.g. Telnet.
- Scope control: Unix domain sockets can be chmod protected while TCP/IP sockets have global scope. [2]
label: TLDR, Sockets, application, comparison, Unix, Networking, pipes, differences
References