Skip to main content

City

Traffic between your home network and the outside world, keyed by the city of the external IP address.

PropertyValue
GUID{6D201FA3-6F8B-4F83-73F7-CB0B8A66EA2E}
LayerL3 Network
InputPackets, Flows
Key typeGeoNames city ID (decimal)
ImplementationNative C++ — CPICGCity (trisul_geo/src/geometer/PICGCity.cpp)
Bucket / Topper60 s / 300 s
Enabled by defaultNo. Set MeterCity to TRUE in Geo.xml (off by default because of memory use).

What it measures​

The Geo plugin looks up IPv4 addresses in the MaxMind GeoLite2-City-Blocks-IPv4.csv and GeoLite2-City-Locations-en.csv files. The City CSV is not installed with the plugin. Enable the GeoLite2-City-CSV source in Geo.xml with your MaxMind license key.

  • Packets. Home → external: the destination's city gets Upload. External → home: the source's city gets Download. External → external (transit): the destination's city gets Upload and the source's city gets Download, the same as Country. Home → home packets are not counted.
  • Packets are sampled. The plugin counts 1 packet in every SampleRate (Geo.xml ships 32) and multiplies its bytes by SampleRate.
  • NetFlow/IPFIX records. Only flows with exactly one endpoint in the Home Network are counted. The external endpoint's city gets Upload (bytes sent from home) and Download (bytes received). Transit and home → home flows are not counted. IPv6 flow records are skipped.

Keys​

One key is the GeoNames ID of the location (geoname_id). The key label is <country>/<subdivision>/<city> built from the locations file.

KeyMeaning
5375480US/CA/Mountain View
1275339IN/MH/Mumbai
2643743GB/ENG/London

Special keys​

KeyMeaning
SYS:GROUP_TOTALSSum of every update made to this group in the interval. Transit packets update two city keys.
XXIP address not found in the City database.

Meter list​

IDNameTypeUnitsTopBottomDescription
0Upload BytesVT_RATE_COUNTERBps2020Bytes sent toward this city.
1Download BytesVT_RATE_COUNTERBps2020Bytes received from this city.
2Unused Cardinality counterVT_GAUGEUniques2020Reserved cardinality slot. Not populated.
3Unused Cardinality counterVT_GAUGEUniques2020Reserved cardinality slot. Not populated.