|
NAMEN2n Version 2 - version 2 of the n2n decentralised peer-to-peer network overlay VPN.DESCRIPTIONN2n is a peer-to-peer network overlay or VPN system that provides layer 2 over layer 3 encapsulation with data transform capabilities such as encryption and compression. This guide discusses the differences of version 2 or n2n from version 1.PROTOCOLSN2n-2 uses a different set of messages to communicate with edges and supernodes. The n2n-2 messages are not compatible with n2n-1. There is no backward compatibility for n2n-1.ENCRYPTIONN2n-2 offers a new way of handling encryption compared to n2n-1. N2n-1 provided facility for a single community password with no expiration. In n2n-2 this method is preserved but a new mechanism has been added using a key schedule file.
N2n-2 provides the following encryption ciphers; more can be added as required:
The following additional ciphers are specified but not yet implemented:
EXTENSIBILITYN2n-2 decouples the data transform system from the core of the edge operation. This allows for easier addition of new data transform operations. N2n-2 reserves 64 standard transform identifiers (such as TwoFish encryption) but allocates transform identifiers 64 - 65536 for user-defined transforms. This allows anyone to add to n2n new private transforms without breaking compatibility with the standard offering.MULTIPLE SUPERNODESN2n-2 introduces the capability of multiple supernodes to be used by an edge. N2n-2 offers supernode in several flavours:
The n2n-2 edge implementation allows multiple supernodes to be specified on the command line. Edges monitor the current supernode for responses to REGISTER_SUPER messages. If 3 responses are missed then the edge starts looking for a new supernode. It cycles through the list of supernodes specified until it finds a working one. EFFICIENCYThe n2n-2 message formats have been made more efficient. The amount of data overhead has been reduced by ensuring the messages contain only the data fields required. Some optional fields do not consume data if they are not present.DAEMON OPERATIONThe supernode and edge use daemon mode of operation by default. This sense is inverted from n2n-1 where they ran in the foreground by default. They can be made to run in the foreground so tools such a DJB's daemontools can work with them. See the -f optionMANAGEMENT CONSOLEEdge and supernode in n2n-2 provide a UDP-based management console. Both listen on the localhost address 127.0.0.1. Commands can be sent to the programs by sending to the UDP socket. Responses are returned to the socket from which commands were issued. This only works from the computer on which the programs are running. Statistics can be retrieved and commands issued. The netcat utility is all that is required; but more sophisticated tools could be built on the interface.SUPERNODE AUTHENTICATION(To be implemented) Space has been reserved in the supernode registration messages for an authentication mechanism.MESSAGE SUMMARYThe following message types work within n2n-2.
OTHER DIFFERENCES
AUTHORS
SEE ALSOifconfig(8) edge(8) supernode(1)
Visit the GSP FreeBSD Man Page Interface. |