2006-01-02 19:04:38 +01:00
|
|
|
|
|
|
|
|
|
2007-02-09 23:25:21 +09:00
|
|
|
|
2014-11-20 10:29:07 +01:00
|
|
|
|
2008-05-21 14:52:30 -07:00
|
|
|
|
2006-01-02 19:04:38 +01:00
|
|
|
|
|
|
|
|
|
2006-01-11 13:30:43 +01:00
|
|
|
|
2006-01-02 19:04:38 +01:00
|
|
|
|
|
|
|
|
|
2006-01-11 13:30:43 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-01-02 19:04:38 +01:00
|
|
|
|
2006-01-11 13:30:43 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-01-02 19:04:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-20 10:29:10 +01:00
|
|
|
|
2014-11-20 10:29:20 +01:00
|
|
|
|
2014-11-20 10:29:07 +01:00
|
|
|
|
2014-11-20 10:29:12 +01:00
|
|
|
|
2014-11-20 10:29:17 +01:00
|
|
|
|
2014-11-20 10:29:18 +01:00
|
|
|
|
2016-08-26 10:52:56 +02:00
|
|
|
|
2006-01-02 19:04:38 +01:00
|
|
|
|
|
|
|
|
|
2014-11-20 10:29:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-20 10:29:10 +01:00
|
|
|
|
2014-11-20 10:29:12 +01:00
|
|
|
|
|
|
|
|
|
2014-11-20 10:29:15 +01:00
|
|
|
|
2014-11-20 10:29:18 +01:00
|
|
|
|
2014-11-20 10:29:20 +01:00
|
|
|
|
2016-07-26 08:47:19 +02:00
|
|
|
|
|
|
|
|
|
2014-11-20 10:29:07 +01:00
|
|
|
|
|
|
|
|
|
2016-03-04 17:04:42 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-07-26 08:47:19 +02:00
|
|
|
|
|
|
|
|
|
2016-07-26 08:47:22 +02:00
|
|
|
|
2016-07-26 08:47:19 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-03-04 17:04:42 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-04-16 08:29:42 -07:00
|
|
|
|
|
|
|
|
|
2018-04-16 08:29:43 -07:00
|
|
|
|
|
|
|
|
|
2019-12-19 16:03:57 +11:00
|
|
|
|
2016-03-04 17:04:42 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-10-30 16:55:40 +09:00
|
|
|
|
2016-03-04 17:04:42 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-11-08 12:05:12 +07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tipc: introduce encryption master key
In addition to the supported cluster & per-node encryption keys for the
en/decryption of TIPC messages, we now introduce one option for user to
set a cluster key as 'master key', which is simply a symmetric key like
the former but has a longer life cycle. It has two purposes:
- Authentication of new member nodes in the cluster. New nodes, having
no knowledge of current session keys in the cluster will still be
able to join the cluster as long as they know the master key. This is
because all neighbor discovery (LINK_CONFIG) messages must be
encrypted with this key.
- Encryption of session encryption keys during automatic exchange and
update of those.This is a feature we will introduce in a later commit
in this series.
We insert the new key into the currently unused slot 0 in the key array
and start using it immediately once the user has set it.
After joining, a node only knowing the master key should be fully
communicable to existing nodes in the cluster, although those nodes may
have their own session keys activated (i.e. not the master one). To
support this, we define a 'grace period', starting from the time a node
itself reports having no RX keys, so the existing nodes will use the
master key for encryption instead. The grace period can be extended but
will automatically stop after e.g. 5 seconds without a new report. This
is also the basis for later key exchanging feature as the new node will
be impossible to decrypt anything without the support from master key.
For user to set a master key, we define a new netlink flag -
'TIPC_NLA_NODE_KEY_MASTER', so it can be added to the current 'set key'
netlink command to specify the setting key to be a master key.
Above all, the traditional cluster/per-node key mechanism is guaranteed
to work when user comes not to use this master key option. This is also
compatible to legacy nodes without the feature supported.
Even this master key can be updated without any interruption of cluster
connectivity but is so is needed, this has to be coordinated and set by
the user.
Acked-by: Jon Maloy <jmaloy@redhat.com>
Signed-off-by: Tuong Lien <tuong.t.lien@dektech.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-18 08:17:27 +07:00
|
|
|
|
2020-09-18 08:17:29 +07:00
|
|
|
|
2016-03-04 17:04:42 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tipc: support broadcast/replicast configurable for bc-link
Currently, a multicast stream uses either broadcast or replicast as
transmission method, based on the ratio between number of actual
destinations nodes and cluster size.
However, when an L2 interface (e.g., VXLAN) provides pseudo
broadcast support, this becomes very inefficient, as it blindly
replicates multicast packets to all cluster/subnet nodes,
irrespective of whether they host actual target sockets or not.
The TIPC multicast algorithm is able to distinguish real destination
nodes from other nodes, and hence provides a smarter and more
efficient method for transferring multicast messages than
pseudo broadcast can do.
Because of this, we now make it possible for users to force
the broadcast link to permanently switch to using replicast,
irrespective of which capabilities the bearer provides,
or pretend to provide.
Conversely, we also make it possible to force the broadcast link
to always use true broadcast. While maybe less useful in
deployed systems, this may at least be useful for testing the
broadcast algorithm in small clusters.
We retain the current AUTOSELECT ability, i.e., to let the broadcast link
automatically select which algorithm to use, and to switch back and forth
between broadcast and replicast as the ratio between destination
node number and cluster size changes. This remains the default method.
Furthermore, we make it possible to configure the threshold ratio for
such switches. The default ratio is now set to 10%, down from 25% in the
earlier implementation.
Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: Hoang Le <hoang.h.le@dektech.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-03-19 18:49:48 +07:00
|
|
|
|
2020-03-02 21:05:23 -08:00
|
|
|
|
tipc: support broadcast/replicast configurable for bc-link
Currently, a multicast stream uses either broadcast or replicast as
transmission method, based on the ratio between number of actual
destinations nodes and cluster size.
However, when an L2 interface (e.g., VXLAN) provides pseudo
broadcast support, this becomes very inefficient, as it blindly
replicates multicast packets to all cluster/subnet nodes,
irrespective of whether they host actual target sockets or not.
The TIPC multicast algorithm is able to distinguish real destination
nodes from other nodes, and hence provides a smarter and more
efficient method for transferring multicast messages than
pseudo broadcast can do.
Because of this, we now make it possible for users to force
the broadcast link to permanently switch to using replicast,
irrespective of which capabilities the bearer provides,
or pretend to provide.
Conversely, we also make it possible to force the broadcast link
to always use true broadcast. While maybe less useful in
deployed systems, this may at least be useful for testing the
broadcast algorithm in small clusters.
We retain the current AUTOSELECT ability, i.e., to let the broadcast link
automatically select which algorithm to use, and to switch back and forth
between broadcast and replicast as the ratio between destination
node number and cluster size changes. This remains the default method.
Furthermore, we make it possible to configure the threshold ratio for
such switches. The default ratio is now set to 10%, down from 25% in the
earlier implementation.
Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: Hoang Le <hoang.h.le@dektech.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-03-19 18:49:48 +07:00
|
|
|
|
|
|
|
|
|
2016-03-04 17:04:42 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-10-30 16:55:40 +09:00
|
|
|
|
2016-03-04 17:04:42 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-20 10:29:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-26 14:07:31 +02:00
|
|
|
|
2014-11-20 10:29:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-26 14:07:31 +02:00
|
|
|
|
2014-11-20 10:29:07 +01:00
|
|
|
|
2014-11-20 10:29:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-26 14:07:31 +02:00
|
|
|
|
2014-11-20 10:29:08 +01:00
|
|
|
|
|
|
|
|
|
2014-11-20 10:29:09 +01:00
|
|
|
|
2016-08-26 10:52:53 +02:00
|
|
|
|
|
|
|
|
|
2019-04-26 14:07:31 +02:00
|
|
|
|
2016-08-26 10:52:53 +02:00
|
|
|
|
|
|
|
|
|
2014-11-20 10:29:09 +01:00
|
|
|
|
|
|
|
|
|
2019-04-26 14:07:31 +02:00
|
|
|
|
2014-11-20 10:29:09 +01:00
|
|
|
|
2014-11-20 10:29:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-26 14:07:31 +02:00
|
|
|
|
2018-08-24 12:28:06 -07:00
|
|
|
|
2014-11-20 10:29:10 +01:00
|
|
|
|
2018-08-24 12:28:06 -07:00
|
|
|
|
2014-11-20 10:29:11 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-10-05 20:04:39 +02:00
|
|
|
|
|
|
|
|
|
2014-11-20 10:29:11 +01:00
|
|
|
|
2014-11-20 10:29:12 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-26 16:38:37 +07:00
|
|
|
|
2015-11-19 14:30:45 -05:00
|
|
|
|
2015-11-19 14:30:46 -05:00
|
|
|
|
2014-11-20 10:29:13 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-26 14:07:31 +02:00
|
|
|
|
2015-11-19 14:30:45 -05:00
|
|
|
|
2014-11-20 10:29:14 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-26 14:07:31 +02:00
|
|
|
|
2015-11-19 14:30:45 -05:00
|
|
|
|
2014-11-20 10:29:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-26 14:07:31 +02:00
|
|
|
|
2014-11-20 10:29:15 +01:00
|
|
|
|
|
|
|
|
|
2014-11-20 10:29:16 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-26 14:07:31 +02:00
|
|
|
|
2014-11-20 10:29:16 +01:00
|
|
|
|
2014-11-20 10:29:17 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-26 14:07:31 +02:00
|
|
|
|
2014-11-20 10:29:17 +01:00
|
|
|
|
2014-11-20 10:29:18 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-26 14:07:31 +02:00
|
|
|
|
2014-11-20 10:29:18 +01:00
|
|
|
|
2014-11-20 10:29:19 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-26 14:07:31 +02:00
|
|
|
|
2014-11-20 10:29:19 +01:00
|
|
|
|
2014-11-20 10:29:20 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-26 14:07:31 +02:00
|
|
|
|
2014-11-20 10:29:20 +01:00
|
|
|
|
2016-07-26 08:47:19 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-26 14:07:31 +02:00
|
|
|
|
2016-07-26 08:47:19 +02:00
|
|
|
|
|
|
|
|
|
2016-07-26 08:47:20 +02:00
|
|
|
|
|
|
|
|
|
2019-04-26 14:07:31 +02:00
|
|
|
|
2016-07-26 08:47:20 +02:00
|
|
|
|
2016-07-26 08:47:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-10-05 20:04:39 +02:00
|
|
|
|
|
|
|
|
|
2016-07-26 08:47:22 +02:00
|
|
|
|
2016-07-26 08:47:20 +02:00
|
|
|
|
2016-08-18 10:33:52 +02:00
|
|
|
|
|
|
|
|
|
2019-04-26 14:07:31 +02:00
|
|
|
|
2016-08-18 10:33:52 +02:00
|
|
|
|
2016-08-26 10:52:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-10-05 20:04:39 +02:00
|
|
|
|
|
|
|
|
|
2016-08-26 10:52:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-11-08 12:05:12 +07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-12-19 16:03:57 +11:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-20 10:29:07 +01:00
|
|
|
|
|
|
|
|
|
2016-10-24 14:40:05 +02:00
|
|
|
|
2016-10-24 14:40:03 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-06-24 16:45:16 +10:00
|
|
|
|
2016-10-24 14:40:03 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-24 17:18:30 -07:00
|
|
|
|
2016-10-24 14:40:03 +02:00
|
|
|
|
|
|
|
|
|
2016-10-24 14:40:05 +02:00
|
|
|
|
2006-01-02 19:04:38 +01:00
|
|
|
|
2009-05-21 10:34:05 +00:00
|
|
|
|
2006-01-10 18:54:24 +00:00
|
|
|
|
2016-10-24 14:40:03 +02:00
|
|
|
|
2009-05-21 10:34:05 +00:00
|
|
|
|
2012-06-29 00:16:37 -04:00
|
|
|
|
2009-05-21 10:34:05 +00:00
|
|
|
|
|
|
|
|
|
2007-02-09 23:25:21 +09:00
|
|
|
|
2006-01-02 19:04:38 +01:00
|
|
|
|
|
|
|
|
|
2006-01-18 00:38:21 +01:00
|
|
|
|
2006-01-02 19:04:38 +01:00
|
|
|
|
2009-05-21 10:34:05 +00:00
|
|
|
|
2006-01-02 19:04:38 +01:00
|
|
|
|