The GeoIP Kernel design is show in the following figure:
The functions of each module in the figure are:
- findAddrID: Find the start address in netLow21 according to the input IP.
- readHead and findChunck: Narrow the search scope in netLow21.
- addrConvert, readNetLow21, and searchID: Find the netLow21 corresponding to IP and get its ID.