English
Language : 

LAN9313 Datasheet, PDF (80/398 Pages) SMSC Corporation – Three Port 10/100 Managed Ethernet Switch with MII
Three Port 10/100 Managed Ethernet Switch with MII
Datasheet
6.5.5 Egress Rate Limiting (Leaky Bucket)
For egress rate limiting, the leaky bucket algorithm is used on each output priority queue. For each
output port, the bandwidth that is used by each priority queue can be limited. If any egress queue
receives packets faster than the specified egress rate, packets will be accumulated in the packet
memory. After the memory is used, packet dropping or flow control will be triggered.
Note: Egress rate limiting occurs before the Transmit Priority Queue Servicing, such that a lower
priority queue will be serviced if a higher priority queue is being rate limited.
The egress limiting is enabled per priority queue. After a packet is selected to be sent, its length is
recorded. The switch then waits a programmable amount of time, scaled by the packet length, before
servicing that queue once again. The amount of time per byte is programmed into the Buffer Manager
Egress Rate registers (refer to Section 13.3.4.14 through Section 13.3.4.19 for detailed register
definitions). The value programmed is in approximately 20 nS per byte increments. Typical values are
listed in Table 6.5. When a port is transmitting at 10 Mbps, any setting above 39 has the effect of not
limiting the rate.
Table 6.5 Typical Egress Rate Settings
EGRESS RATE
SETTING
0-3
4
5
6
7
9
12
19
39
78
158
396
794
1589
3973
7947
TIME PER BYTE
80 nS
100 nS
120 nS
140 nS
160 nS
200 nS
260 nS
400 nS
800 nS
1580 nS
3180 nS
7940 nS
15900 nS
31800 nS
79480 nS
158960 nS
BANDWIDTH @
BANDWIDTH @
BANDWIDTH @
64 BYTE PACKET 512 BYTE PACKET 1518 BYTE PACKET
76 Mbps (Note 6.3)
66 Mbps
55 Mbps
48 Mbps
42 Mbps
34 Mbps
26 Mbps
17 Mbps
8.6 Mbps
4.4 Mbps
2.2 Mbps
870 Kbps
440 Kbps
220 Kbps
87 Kbps
44 Kbps
96 Mbps (Note 6.3)
78 Mbps
65 Mbps
56 Mbps
49 Mbps
39 Mbps
30 Mbps
20 Mbps
10 Mbps
5 Mbps
2.5 Mbps
990 Kbps
490 Kbps
250 Kbps
98 Kbps
49 Kbps
99 Mbps (Note 6.3)
80 Mbps
67 Mbps
57 Mbps
50 Mbps
40 Mbps
31 Mbps
20 Mbps
10 Mbps
5 Mbps
2.5 Mbps
1 Mbps
500 Kbps
250 Kbps
100 Kbps
50 Kbps
Note 6.3 These are the unlimited max bandwidths when IFG and preamble are taken into account.
6.5.6 Adding, Removing, and Changing VLAN Tags
Based on the port configuration and the received packet formation, a VLAN tag can be added to,
removed from, or modified in a packet. There are four received packet type cases: non-tagged, priority-
tagged, normal-tagged, and CPU special-tagged. There are also four possible settings for an egress
port: dumb, access, hybrid, and CPU. In addition, each VLAN table entry can specify the removal of
the VLAN tag (the entry’s un-tag bit).
Revision 1.2 (04-08-08)
80
DATASHEET
SMSC LAN9313/LAN9313i