cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
932
Views
3
Helpful
2
Replies

How much memory is used for DHCP Snooping Database?

xzevallos
Level 1
Level 1

I want to enable DHCP Snooping on a Cisco 9300 switch and store its database in Flash.  How do I calculate how much memory the database will take up?

1 Accepted Solution

Accepted Solutions

xzevallos
Level 1
Level 1

Thanks, that answers my question!

View solution in original post

2 Replies 2

Christopher Hart
Cisco Employee
Cisco Employee

Hello!

The size of each entry in the DHCP Snooping database is documented in the DHCP Snooping Binding Database section of the "Configuring DHCP" chapter in the IP Addressing Services Configuration Guide, Cisco IOS XE Bengaluru 17.6.x (Catalyst 9300 Switches) document:

"Each entry is 77 bytes, followed by a space, the checksum value, and the EOL symbol."

The same document also indicates that the DHCP Snooping database can have a maximum of 64,000 entries:

"When DHCP snooping is enabled, the switch uses the DHCP snooping binding database to store information about untrusted interfaces. The database can have up to 64,000 bindings."

So with a bit of arithmetic, we can conclude that the DHCP Snooping database will have a maximum size of about 4,928,000 bytes (~5 megabytes). The actual size may be slightly higher due to the static overhead of table headers in the database, which take up a few bytes total.

Since each entry in the database has a relatively static length, the size of the DHCP Snooping database will grow linearly with the number of DHCP clients the switch snoops.

I hope this helps - thank you!

-Christopher

xzevallos
Level 1
Level 1

Thanks, that answers my question!