Study Notes on Geolocation and Network Management
Updates on Geolocation and IP Addresses
The time and the information will now be updated.
Last time, discussed how to inform location based on IP addresses.
ICLM (Internet Control and Location Management) manages IP addresses.
When purchasing or renting IP addresses from ICLM, the location is associated with each IP address.
This is a method to approximate geolocation based on the assigned IP address.
Inaccuracy of IP-Based Geolocation
IP Address Geolocation Inaccuracy
IP address-based geolocation is typically not precise.
Most users do not directly purchase or rent an IP. Instead, IP addresses are obtained from Internet Service Providers (ISPs).
ISPs handle ranges of IP addresses and provide these addresses to users.
Thus, when using an IP address to ascertain geolocation, it often leads to the physical address of the ISP or the company's physical location, making it unreliable.
Tracing Routes through IP Addresses
Previously covered commands used for trace route operations.
Commands like
traceroute(ortracertin Windows) help identify the routing path of packets.The operating system generates a series of IP packets, gradually increasing the Time-To-Live (TTL) field starting from one.
Each time a packet is forwarded, the TTL value decreases by one.
TTL Functionality
When the TTL value reaches zero, the network device drops the packet and sends back an ICMP (Internet Control Message Protocol) error message.
The sender's computer receives this message, which can help in identifying the nodes along the routing path.
Generating Packets
Using
traceroute, multiple IP packets are created, each with increasing TTL values.For example, the first packet has TTL=1, the next TTL=2, and so forth.
As TTL values reach zero, error messages are processed to identify routing nodes.
Measuring Round Trip Time
Round Trip Time Calculation
Upon receiving error messages, the sender adjusts the TTL and sends a new IP packet.
This continues until the packet successfully reaches its destination, allowing measurement of the round trip time for each probe.
Displayed results typically show multiple columns of round trip times corresponding to each probe's path.
Network Traffic Variation
The routing path can vary due to network conditions; alternative paths may be used based on congestion, resulting in different IP addresses being recorded at the same hop.
Example: Step 9 may show two different IP addresses, indicating the routing path chosen for alternate probes.
This fluctuation can lead to a misunderstanding of the network routes if inspection is done at a single point.
Firewalls and Response Behavior
Firewalls may filter returning ICMP messages, leading to missing information on certain machines in routing paths.
If a filtering rule is established, resulting messages may not reach the sender, denoted by an asterisk in traceroute outputs.
Operating System Variants
traceroutefor Unix/Linux vstracertfor Windows.Output structures differ slightly but provide similar routing path insights.
Geolocation Fundamentals
Geolocation is a broad term involving the estimation of a real-world geographic location.
Can stem from various data sources, critical for applications like emergency services.
Example: 911 Calls - Law mandates geolocation data availability regardless of the call's origin.
Car navigation systems also rely on geolocation data.
Methods of Geolocation
GPS (Global Positioning System)
Utilizes satellites to provide detailed location data.
Requires obstruction-free sight to satellites to maintain signal accuracy.
At least four satellite signals are needed to determine precise positioning due to three-dimensional calculations.
Dead Reckoning
Involves estimating one's current location based on a known starting point, measuring speed, time traveled, and direction.
Calculation of distance and direction requires initial location information to approximate current geographic position.
Geolocation via Wi-Fi
Access Wi-Fi signals to derive estimated locations, requiring knowledge of SSID and other identifiers.
Wi-Fi signals can provide further granularity in location estimation alongside traditional IP methods.
Emergency 911 Call Mechanism
Methods to estimate location when a 911 call is made vary with the device used.
Landline: Provides precise address due to fixed physical registration.
Call office retrieves location based on caller's number.
Mobile Phones:
Use cellular towers for triangulation. Proximity to multiple towers increases accuracy of geolocation approximation.
Smartphones can directly supply GPS data, contingent on device type and settings.
VoIP Systems (Voice over Internet Protocol):
Regulations require valid geolocation data be provided if connected to 911.
Can use registered addresses or network information for estimation.
Enhanced 911 System (E911)
Incorporates various methods to provide accurate location data during emergency calls.
Different databases (IP, Wi-Fi) correlate geolocation to provide additional services.
Issues with Geolocation Databases
Variability in responses from different geolocation databases due to timing and updates.
The same IP may yield different results depending on the database queried.
Advanced Tools and Techniques
Network Monitoring and Analysis
Before incidents occur, organizations should employ tools to collect and analyze data.
Tools like NetFlow help capture metadata related to network traffic and can identify interactions between devices.
Centralized logging helps manage logs from multiple devices effectively, crucial for forensic investigations.
Log Management
Logging systems provide records critical for understanding system activity.
Centralized logging ensures logs are unaffected by potential endpoint compromises.
Open-source vs. commercial solutions available for managing and analyzing logs.
Conclusion
The complexities of geolocation based on IP addresses and the importance of tools like NetFlow or centralized logging are fundamental for maintaining network integrity and emergency response capabilities.
Ongoing discussions will further explore logging systems and security measures against potential attacks.