summaryrefslogtreecommitdiffstats
path: root/src/vnet/fib/ip6_fib.h
diff options
context:
space:
mode:
authorSteven <sluong@cisco.com>2018-09-27 20:06:26 -0700
committerDamjan Marion <dmarion@me.com>2018-09-28 19:39:50 +0000
commitc4e99c5d6f19cf7c026b021266e309f29de1ac7f (patch)
tree760eb9f8c6cd365521edac14b731635063562ad5 /src/vnet/fib/ip6_fib.h
parent9be93c8f85d752930566a1d37e9f4841ca78861f (diff)
bond: tx performance enhancement part deux
- Reduce per packet cost by buffering the output packet buffer indexes in the queue and process the queue outside the packet processing loop. - Move unnecessary variable initialization outside of the while loop. - There is no need to save the old interface if tracing is not enabled. Test result for 256 bytes packet comparison. Other packet size shows similar improvement. With the patch -------------- BondEthernet0-output active 52836 13526016 0 1.71e1 256.00 BondEthernet0-tx active 52836 13526016 0 2.68e1 256.00 TenGigabitEthernet6/0/0-output active 52836 6762896 0 9.17e0 127.99 TenGigabitEthernet6/0/0-tx active 52836 6762896 0 6.97e1 127.99 TenGigabitEthernet6/0/1-output active 52836 6763120 0 9.40e0 128.00 TenGigabitEthernet6/0/1-tx active 52836 6763120 0 7.00e1 128.00 bond-input active 52836 13526016 0 1.76e1 256.00 Without the patch ----------------- BondEthernet0-output active 60858 15579648 0 1.73e1 256.00 BondEthernet0-tx active 60858 15579648 0 2.94e1 256.00 TenGigabitEthernet6/0/0-output active 60858 7789626 0 9.29e0 127.99 TenGigabitEthernet6/0/0-tx active 60858 7789626 0 7.01e1 127.99 TenGigabitEthernet6/0/1-output active 60858 7790022 0 9.31e0 128.00 TenGigabitEthernet6/0/1-tx active 60858 7790022 0 7.10e1 128.00 bond-input active 60858 15579648 0 1.77e1 256.00 Change-Id: Ib6d73a63ceeaa2f1397ceaf4c5391c57fd865b04 Signed-off-by: Steven <sluong@cisco.com>
Diffstat (limited to 'src/vnet/fib/ip6_fib.h')
0 files changed, 0 insertions, 0 deletions
h=oper-231211&id=f325af2076e3b9b158227f275df595a626dd4a8e'>methodology_geneve.rst
blob: 1ae8bfaa7abe12c6611b28217e6f7f8dd64b00d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
.. _geneve_methodology:

Generic Network Virtualization Encapsulation
--------------------------------------------

GENEVE Prefix Bindings
^^^^^^^^^^^^^^^^^^^^^^

GENEVE prefix bindings should be representative to target applications, where
a packet flows of particular set of IPv4 addresses (L3 underlay network) is
routed via dedicated GENEVE interface by building an L2 overlay.

Private address ranges to be used in tests:

- East hosts ip address range: 10.0.1.0 - 10.127.255.255 (10.0/9 prefix)

  - Total of 2^23 - 256 (8 388 352) of usable IPv4 addresses
  - Usable in tests for up to 32 767 GENEVE tunnels (IPv4 underlay networks)

- West hosts ip address range: 10.128.1.0 - 10.255.255.255 (10.128/9 prefix)

  - Total of 2^23 - 256 (8 388 352) of usable IPv4 addresses
  - Usable in tests for up to 32 767 GENEVE tunnels (IPv4 underlay networks)

GENEVE Tunnel Scale
~~~~~~~~~~~~~~~~~~~

If N is a number of GENEVE tunnels (and IPv4 underlay networks) then TG sends
256 packet flows in every of N different sets:

- i = 1,2,3, ... N - GENEVE tunnel index

- East-West direction: GENEVE encapsulated packets

  - Outer IP header:

    - src ip: 1.1.1.1

    - dst ip: 1.1.1.2

  - GENEVE header:

    - vni: i

  - Inner IP header:

    - src_ip_range(i) = 10.(0 + rounddown(i/255)).(modulo(i/255)).(0-to-255)

    - dst_ip_range(i) = 10.(128 + rounddown(i/255)).(modulo(i/255)).(0-to-255)

- West-East direction: non-encapsulated packets

  - IP header:

    - src_ip_range(i) = 10.(128 + rounddown(i/255)).(modulo(i/255)).(0-to-255)

    - dst_ip_range(i) = 10.(0 + rounddown(i/255)).(modulo(i/255)).(0-to-255)

+----------------+-------------+
| geneve-tunnels | total-flows |
+================+=============+
|              1 |         256 |
+----------------+-------------+
|              4 |       1 024 |
+----------------+-------------+
|             16 |       4 096 |
+----------------+-------------+
|             64 |      16 384 |
+----------------+-------------+
|            256 |      65 536 |
+----------------+-------------+
|          1 024 |     262 144 |
+----------------+-------------+