Configuration examples, Step 1: determine the ip addresses and udp ports, Step 2: determine the maximum sflow datagram size – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual
Page 2088
sFlow Introduction and Configuration
Software Reference for x310 Series Switches
80.8
AlliedWare Plus
TM
Operating System - Version 5.4.4C
C613-50046-01 REV A
Configuration Examples
This configuration example shown is based on the network shown below:
Figure 80-2: sFlow Configuration Example
Step 1:
Determine the IP addresses and UDP ports
Collector IP address is 192.0.2.65
sFlow UDP port uses the default of 6343
Agent (local) IP address 192.0.2.33. This is the address that the collector may use
to configure the agent via SNMP.
Step 2:
Determine the maximum sFlow Datagram size
Datagrams will be sent at one second intervals regardless of the amount of data
they contain. If the amount of data to be sent is greater than the maximum
datagram size, then several datagrams will be sent in quick succession - within
the 1 second interval. The objective is to contain the sFlow information in a the
minimum number of datagrams. That is. to fragment datagrams when necessary,
but do so as little as possible.
Find the maximum datagram size that will pass through all network components
without fragmenting. Then set the sFlow datagram size a little less than this
value.
The maximum datagram size should be less than the MTU size.
For this example, the MTU is assumed to be set to its default of 1500 bytes. In this
situation we could leave the maximum Datagram size at its default of 1400 bytes;
but in order to show this as a configuration step, we will change it to 1200 bytes.
Note
sFlow datagrams are generally transmitted at 1 second intervals. However,
where there is more information than can fit into one datagram, several
datagrams are sent sequentially, within the 1 second time frame.
sFlow-1_2eps
sFlow Agent
Switch
sFlow Network Configuration - Example
R
sFlow Collector and
SNMP Management
Station
Traffic Data
Traffic Analysis
SNMP Manager
sFlow source ports
sFlow Datagrams
Number of agent ports sampled = 12
Agent port speed = 1 Gbps
Collector IP address =192.0.2.1
Collector UDP port = 6343
1
3
5
7
9
11
13
15
17
19
21R
23R
2
4
6
8
10
12
14
16
18
20
22R
24R
x610-24Ts Layer 3 Gigabit Ethernet Switch
CLASS 1
LASER PRODUCT
D/C
L/A
1000 LINK / ACT
HDX / COL
FDX
10/100 LINK / ACT
PORT ACTIVITY
L/A
D/C
D/C
L/A
L/A
STACK
PRES
MSTR
L/A
1
2
SFP
21
22
23
24
1
3
5
7
9
11
13
15
17
19
21R 23R
2
4
6
8
10
12
14
16
18
20
22R 24R
FAULT
RPS
MASTER
PWR
STATUS
21
22
23
24
SFP
L/A
BUSY
READY
FAULT
SD
RESET
CONSOLE
sFlow source ports
sFlow Datagrams