Geo Tagging for advanced analytics and policy enforcement on remote devices
Systems and methods implemented in a node in a cloud-based system include loading a data structure into memory, wherein the data structure includes cities mapped to cells where the cells cover all of the Earth; receiving a call with a given latitude and longitude of a user device; finding a closest city to the given latitude and longitude utilizing the data structure; and providing the closest city in response to the call. The systems and methods can also include utilizing the closest city for policy in the cloud-based system for the user device.
The present disclosure relates generally to networking and computing. More particularly, the present disclosure relates to a highly scalable Representational State Transfer (REST) RESTful framework, to a distributed Telemetry and Policy Gateway (TPG) using the RESTful framework for policy, configuration, and metric publication, to an election mechanism for randomly selecting devices for metric measurement, and to geo tagging of the metrics.
BACKGROUND OF THE DISCLOSURERepresentational State Transfer (REST) is a software architectural style which uses a subset of Hypertext Transfer Protocol (HTTP). It is commonly used to create interactive applications that use Web services. A Web service that follows these guidelines is called RESTful. Such a Web service must provide its Web resources in a textual representation and allow them to be read and modified with a stateless protocol and a predefined set of operations. This approach allows interoperability between the computer systems on the Internet that provide these services. As services grow, there is a need to scale in terms of infrastructure, developing and testing new software modules, parallel development, etc.
A service may be implemented via microservices or as a monolith. A monolith software system introduces productivity challenges as complexity increases, relative to microservices. However, there are situations where the monolith software system is advantageous over microservices. For example, a user monitoring system that deals with packet processing can be a monolith system that is highly optimized for hardware efficiency and latency can be lowered by reducing latency of inter module communication. For example, imagine if a firewall module and a proxy module were microservices, additional latency between them would degrade user experience.
Comparing microservices versus a monolith, for less complex systems, the extra baggage required to manage microservices reduces productivity. As complexity increases, microservices provide more productivity versus a monolith. Thus, growth brings challenges with a monolithic software system. For example, as new modules are added, so too does the coupling between the modules. Not all modules require the strict optimizations as core data path modules. As teams and team sizes increase, it introduces challenges in cross team communication and agreement decreasing feature velocity. The question becomes how to achieve higher modularity for new requirements while still maintaining high level of optimization in a software system.
BRIEF SUMMARY OF THE DISCLOSUREThe present disclosure relates to a highly scalable Representational State Transfer (REST) RESTful framework, to a distributed Telemetry and Policy Gateway (TPG) using the RESTful framework for policy, configuration, and metric publication, to an election mechanism for randomly selecting devices for metric measurement, and to geo tagging of the metrics. The present disclosure provides a modular communication approach that can be used between software modules in monolith software system. The present disclosure uses HTTP for communication between modules/services, moving towards a RESTful framework for transferring state and data between modules/services. The goal is not to decompose the whole monolith but instead help achieve higher modularity for new requirements and rewrites that are not so time sensitive by creating microservices.
The present disclosure is illustrated and described herein with reference to the various drawings, in which like reference numbers are used to denote like system components/method steps, as appropriate, and in which:
Again, the present disclosure relates to a highly scalable Representational State Transfer (REST) RESTful framework, to a distributed Telemetry and Policy Gateway (TPG) using the RESTful framework for policy, configuration, and metric publication, to an election mechanism for randomly selecting devices for metric measurement, and to geo tagging of the metrics The present disclosure provides a modular communication approach that can be used between software modules in monolith software system. The present disclosure uses HTTP for communication between modules/services, moving towards a RESTful framework for transferring state and data between modules/services. The goal is not to decompose the whole monolith but instead help achieve higher modularity for new requirements and rewrites that are not so time sensitive by creating microservices.
§ 1.0 Example Cloud-Based System ArchitectureThe cloud-based firewall can provide Deep Packet Inspection (DPI) and access controls across various ports and protocols as well as being application and user aware. The URL filtering can block, allow, or limit website access based on policy for a user, group of users, or entire organization, including specific destinations or categories of URLs (e.g., gambling, social media, etc.). The bandwidth control can enforce bandwidth policies and prioritize critical applications such as relative to recreational traffic. DNS filtering can control and block DNS requests against known and malicious destinations.
The cloud-based intrusion prevention and advanced threat protection can deliver full threat protection against malicious content such as browser exploits, scripts, identified botnets and malware callbacks, etc. The cloud-based sandbox can block zero-day exploits (just identified) by analyzing unknown files for malicious behavior. Advantageously, the cloud-based system 100 is multi-tenant and can service a large volume of the users 102. As such, newly discovered threats can be promulgated throughout the cloud-based system 100 for all tenants practically instantaneously. The antivirus protection can include antivirus, antispyware, antimalware, etc. protection for the users 102, using signatures sourced and constantly updated. The DNS security can identify and route command-and-control connections to threat detection engines for full content inspection.
The DLP can use standard and/or custom dictionaries to continuously monitor the users 102, including compressed and/or SSL-encrypted traffic. Again, being in a cloud implementation, the cloud-based system 100 can scale this monitoring with near-zero latency on the users 102. The cloud application security can include CASB functionality to discover and control user access to known and unknown cloud services 106. The file type controls enable true file type control by the user, location, destination, etc. to determine which files are allowed or not.
For illustration purposes, the users 102 of the cloud-based system 100 can include a mobile device 110, a headquarters (HQ) 112 which can include or connect to a data center (DC) 114, Internet of Things (IoT) devices 116, a branch office/remote location 118, etc., and each includes one or more user devices (an example user device 300 is illustrated in
Further, the cloud-based system 100 can be multi-tenant, with each tenant having its own users 102 and configuration, policy, rules, etc. One advantage of the multi-tenancy and a large volume of users is the zero-day/zero-hour protection in that a new vulnerability can be detected and then instantly remediated across the entire cloud-based system 100. The same applies to policy, rule, configuration, etc. changes—they are instantly remediated across the entire cloud-based system 100. As well, new features in the cloud-based system 100 can also be rolled up simultaneously across the user base, as opposed to selective and time-consuming upgrades on every device at the locations 112, 114, 118, and the devices 110, 116.
Logically, the cloud-based system 100 can be viewed as an overlay network between users (at the locations 112, 114, 118, and the devices 110, 116) and the Internet 104 and the cloud services 106. Previously, the IT deployment model included enterprise resources and applications stored within the data center 114 (i.e., physical devices) behind a firewall (perimeter), accessible by employees, partners, contractors, etc. on-site or remote via Virtual Private Networks (VPNs), etc. The cloud-based system 100 is replacing the conventional deployment model. The cloud-based system 100 can be used to implement these services in the cloud without requiring the physical devices and management thereof by enterprise IT administrators. As an ever-present overlay network, the cloud-based system 100 can provide the same functions as the physical devices and/or appliances regardless of geography or location of the users 102, as well as independent of platform, operating system, network access technique, network access provider, etc.
There are various techniques to forward traffic between the users 102 at the locations 112, 114, 118, and via the devices 110, 116, and the cloud-based system 100. Typically, the locations 112, 114, 118 can use tunneling where all traffic is forward through the cloud-based system 100. For example, various tunneling protocols are contemplated, such as GRE, L2TP, IPsec, customized tunneling protocols, etc. The devices 110, 116, when not at one of the locations 112, 114, 118 can use a local application that forwards traffic, a proxy such as via a Proxy Auto-Config (PAC) file, and the like. An application of the local application is the application 350 described in detail herein as a connector application. A key aspect of the cloud-based system 100 is all traffic between the users 102 and the Internet 104 or the cloud services 106 is via the cloud-based system 100. As such, the cloud-based system 100 has visibility to enable various functions, all of which are performed off the user device in the cloud.
The cloud-based system 100 can also include a management system 120 for tenant access to provide global policy and configuration as well as real-time analytics. This enables IT administrators to have a unified view of user activity, threat intelligence, application usage, etc. For example, IT administrators can drill-down to a per-user level to understand events and correlate threats, to identify compromised devices, to have application visibility, and the like. The cloud-based system 100 can further include connectivity to an Identity Provider (IDP) 122 for authentication of the users 102 and to a Security Information and Event Management (SIEM) system 124 for event logging. The system 124 can provide alert and activity logs on a per-user 102 basis.
The enforcement nodes 150 are full-featured secure internet gateways that provide integrated internet security, i.e., proxies. They inspect all web traffic bi-directionally for malware and enforce security, compliance, and firewall policies, as described herein, as well as various additional functionality. In an embodiment, each enforcement node 150 has two main modules for inspecting traffic and applying policies: a web module and a firewall module. The enforcement nodes 150 are deployed around the world and can handle hundreds of thousands of concurrent users with millions of concurrent sessions. Because of this, regardless of where the users 102 are, they can access the Internet 104 from any device, and the enforcement nodes 150 protect the traffic and apply corporate policies. The enforcement nodes 150 can implement various inspection engines therein, and optionally, send sandboxing to another system. The enforcement nodes 150 include significant fault tolerance capabilities, such as deployment in active-active mode to ensure availability and redundancy as well as continuous monitoring.
In an embodiment, customer traffic is not passed to any other component within the cloud-based system 100, and the enforcement nodes 150 can be configured never to store any data to disk. Packet data is held in memory for inspection and then, based on policy, is either forwarded or dropped. Log data generated for every transaction is compressed, tokenized, and exported over secure Transport Layer Security (TLS) connections to the log routers 154 that direct the logs to the storage cluster 156, hosted in the appropriate geographical region, for each organization. In an embodiment, all data destined for or received from the Internet is processed through one of the enforcement nodes 150. In another embodiment, specific data specified by each tenant, e.g., only email, only executable files, etc., is processed through one of the enforcement nodes 150.
Each of the enforcement nodes 150 may generate a decision vector D=[d1, d2, . . . , dn] for a content item of one or more parts C=[c1, c2, . . . , cm]. Each decision vector may identify a threat classification, e.g., clean, spyware, malware, undesirable content, innocuous, spam email, unknown, etc. For example, the output of each element of the decision vector D may be based on the output of one or more data inspection engines. In an embodiment, the threat classification may be reduced to a subset of categories, e.g., violating, non-violating, neutral, unknown. Based on the subset classification, the enforcement node 150 may allow the distribution of the content item, preclude distribution of the content item, allow distribution of the content item after a cleaning process, or perform threat detection on the content item. In an embodiment, the actions taken by one of the enforcement nodes 150 may be determinative on the threat classification of the content item and on a security policy of the tenant to which the content item is being sent from or from which the content item is being requested by. A content item is violating if, for any part C=[c1, c2, . . . , cm] of the content item, at any of the enforcement nodes 150, any one of the data inspection engines generates an output that results in a classification of “violating.”
The central authority 152 hosts all customer (tenant) policy and configuration settings. It monitors the cloud and provides a central location for software and database updates and threat intelligence. Given the multi-tenant architecture, the central authority 152 is redundant and backed up in multiple different data centers. The enforcement nodes 150 establish persistent connections to the central authority 152 to download all policy configurations. When a new user connects to an enforcement node 150, a policy request is sent to the central authority 152 through this connection. The central authority 152 then calculates the policies that apply to that user 102 and sends the policy to the enforcement node 150 as a highly compressed bitmap.
The policy can be tenant-specific and can include access privileges for users, websites and/or content that is disallowed, restricted domains, DLP dictionaries, etc. Once downloaded, a tenant's policy is cached until a policy change is made in the management system 120. The policy can be tenant-specific and can include access privileges for users, websites and/or content that is disallowed, restricted domains, DLP dictionaries, etc. When this happens, all of the cached policies are purged, and the enforcement nodes 150 request the new policy when the user 102 next makes a request. In an embodiment, the enforcement node 150 exchange “heartbeats” periodically, so all enforcement nodes 150 are informed when there is a policy change. Any enforcement node 150 can then pull the change in policy when it sees a new request.
The cloud-based system 100 can be a private cloud, a public cloud, a combination of a private cloud and a public cloud (hybrid cloud), or the like. Cloud computing systems and methods abstract away physical servers, storage, networking, etc., and instead offer these as on-demand and elastic resources. The National Institute of Standards and Technology (NIST) provides a concise and specific definition which states cloud computing is a model for enabling convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, servers, storage, applications, and services) that can be rapidly provisioned and released with minimal management effort or service provider interaction. Cloud computing differs from the classic client-server model by providing applications from a server that are executed and managed by a client's web browser or the like, with no installed client version of an application required. Centralization gives cloud service providers complete control over the versions of the browser-based and other applications provided to clients, which removes the need for version upgrades or license management on individual client computing devices. The phrase “Software as a Service” (SaaS) is sometimes used to describe application programs offered through cloud computing. A common shorthand for a provided cloud computing service (or even an aggregation of all existing cloud services) is “the cloud.” The cloud-based system 100 is illustrated herein as an example embodiment of a cloud-based system, and other implementations are also contemplated.
As described herein, the terms cloud services and cloud applications may be used interchangeably. The cloud service 106 is any service made available to users on-demand via the Internet, as opposed to being provided from a company's on-premises servers. A cloud application, or cloud app, is a software program where cloud-based and local components work together. The cloud-based system 100 can be utilized to provide example cloud services, including Zscaler Internet Access (ZIA), Zscaler Private Access (ZPA), and Zscaler Digital Experience (ZDX), all from Zscaler, Inc. (the assignee and applicant of the present application). Also, there can be multiple different cloud-based systems 100, including ones with different architectures and multiple cloud services. The ZIA service can provide the access control, threat prevention, and data protection described above with reference to the cloud-based system 100. ZPA can include access control, microservice segmentation, etc. The ZDX service can provide monitoring of user experience, e.g., Quality of Experience (QoE), Quality of Service (QoS), etc., in a manner that can gain insights based on continuous, inline monitoring. For example, the ZIA service can provide a user with Internet Access, and the ZPA service can provide a user with access to enterprise resources instead of traditional Virtual Private Networks (VPNs), namely ZPA provides Zero Trust Network Access (ZTNA). Those of ordinary skill in the art will recognize various other types of cloud services 106 are also contemplated. Also, other types of cloud architectures are also contemplated, with the cloud-based system 100 presented for illustration purposes.
§ 2.0 Example Server ArchitectureThe processor 202 is a hardware device for executing software instructions. The processor 202 may be any custom made or commercially available processor, a Central Processing Unit (CPU), an auxiliary processor among several processors associated with the server 200, a semiconductor-based microprocessor (in the form of a microchip or chipset), or generally any device for executing software instructions. When the server 200 is in operation, the processor 202 is configured to execute software stored within the memory 210, to communicate data to and from the memory 210, and to generally control operations of the server 200 pursuant to the software instructions. The I/O interfaces 204 may be used to receive user input from and/or for providing system output to one or more devices or components.
The network interface 206 may be used to enable the server 200 to communicate on a network, such as the Internet 104. The network interface 206 may include, for example, an Ethernet card or adapter or a Wireless Local Area Network (WLAN) card or adapter. The network interface 206 may include address, control, and/or data connections to enable appropriate communications on the network. A data store 208 may be used to store data. The data store 208 may include any of volatile memory elements (e.g., random access memory (RAM, such as DRAM, SRAM, SDRAM, and the like)), nonvolatile memory elements (e.g., ROM, hard drive, tape, CDROM, and the like), and combinations thereof.
Moreover, the data store 208 may incorporate electronic, magnetic, optical, and/or other types of storage media. In one example, the data store 208 may be located internal to the server 200, such as, for example, an internal hard drive connected to the local interface 212 in the server 200. Additionally, in another embodiment, the data store 208 may be located external to the server 200 such as, for example, an external hard drive connected to the I/O interfaces 204 (e.g., SCSI or USB connection). In a further embodiment, the data store 208 may be connected to the server 200 through a network, such as, for example, a network-attached file server.
The memory 210 may include any of volatile memory elements (e.g., random access memory (RAM, such as DRAM, SRAM, SDRAM, etc.)), nonvolatile memory elements (e.g., ROM, hard drive, tape, CDROM, etc.), and combinations thereof. Moreover, the memory 210 may incorporate electronic, magnetic, optical, and/or other types of storage media. Note that the memory 210 may have a distributed architecture, where various components are situated remotely from one another but can be accessed by the processor 202. The software in memory 210 may include one or more software programs, each of which includes an ordered listing of executable instructions for implementing logical functions. The software in the memory 210 includes a suitable Operating System (O/S) 214 and one or more programs 216. The operating system 214 essentially controls the execution of other computer programs, such as the one or more programs 216, and provides scheduling, input-output control, file and data management, memory management, and communication control and related services. The one or more programs 216 may be configured to implement the various processes, algorithms, methods, techniques, etc. described herein.
§ 3.0 Example User Device ArchitectureThe processor 302 is a hardware device for executing software instructions. The processor 302 can be any custom made or commercially available processor, a CPU, an auxiliary processor among several processors associated with the user device 300, a semiconductor-based microprocessor (in the form of a microchip or chipset), or generally any device for executing software instructions. When the user device 300 is in operation, the processor 302 is configured to execute software stored within the memory 310, to communicate data to and from the memory 310, and to generally control operations of the user device 300 pursuant to the software instructions. In an embodiment, the processor 302 may include a mobile-optimized processor such as optimized for power consumption and mobile applications. The I/O interfaces 304 can be used to receive user input from and/or for providing system output. User input can be provided via, for example, a keypad, a touch screen, a scroll ball, a scroll bar, buttons, a barcode scanner, and the like. System output can be provided via a display device such as a Liquid Crystal Display (LCD), touch screen, and the like.
The network interface 306 enables wireless communication to an external access device or network. Any number of suitable wireless data communication protocols, techniques, or methodologies can be supported by the network interface 306, including any protocols for wireless communication. The data store 308 may be used to store data. The data store 308 may include any of volatile memory elements (e.g., random access memory (RAM, such as DRAM, SRAM, SDRAM, and the like)), nonvolatile memory elements (e.g., ROM, hard drive, tape, CDROM, and the like), and combinations thereof. Moreover, the data store 308 may incorporate electronic, magnetic, optical, and/or other types of storage media.
The memory 310 may include any of volatile memory elements (e.g., random access memory (RAM, such as DRAM, SRAM, SDRAM, etc.)), nonvolatile memory elements (e.g., ROM, hard drive, etc.), and combinations thereof. Moreover, the memory 310 may incorporate electronic, magnetic, optical, and/or other types of storage media. Note that the memory 310 may have a distributed architecture, where various components are situated remotely from one another but can be accessed by the processor 302. The software in memory 310 can include one or more software programs, each of which includes an ordered listing of executable instructions for implementing logical functions. In the example of
The application 350 is configured to auto-route traffic for a seamless user experience. This can be protocol as well as application-specific, and the application 350 can route traffic with a nearest or best fit enforcement node 150. Further, the application 350 can detect trusted networks, allowed applications, etc. and support secure network access. The application 350 can also support the enrollment of the user device 300 prior to accessing applications. The application 350 can uniquely detect the users 102 based on fingerprinting the user device 300, using criteria like device model, platform, operating system, etc. The application 350 can support Mobile Device Management (MDM) functions, allowing IT personnel to deploy and manage the user devices 300 seamlessly. This can also include the automatic installation of client and SSL certificates during enrollment. Finally, the application 350 provides visibility into device and app usage of the user 102 of the user device 300.
The application 350 supports a secure, lightweight tunnel between the user device 300 and the cloud-based system 100. For example, the lightweight tunnel can be HTTP-based. With the application 350, there is no requirement for PAC files, an IPSec VPN, authentication cookies, or end user 102 setup.
§ 5.0 Zero Trust Network Access Using the Cloud-Based SystemThe paradigm of virtual private access systems and methods is to give users network access to get to an application and/or file share, not to the entire network. If a user is not authorized to get the application, the user should not be able even to see that it exists, much less access it. The virtual private access systems and methods provide an approach to deliver secure access by decoupling applications 402, 404 from the network, instead of providing access with a connector 400, in front of the applications 402, 404, an application on the user device 300, a central authority 152 to push policy 410, and the cloud-based system 100 to stitch the applications 402, 404 and the software connectors 400 together, on a per-user, per-application basis.
With the virtual private access, users can only see the specific applications 402, 404 allowed by the policy 410. Everything else is “invisible” or “dark” to them. Because the virtual private access separates the application from the network, the physical location of the application 402, 404 becomes irrelevant—if applications 402, 404 are located in more than one place, the user is automatically directed to the instance that will give them the best performance. The virtual private access also dramatically reduces configuration complexity, such as policies/firewalls in the data centers. Enterprises can, for example, move applications to Amazon Web Services or Microsoft Azure, and take advantage of the elasticity of the cloud, making private, internal applications behave just like the marketing leading enterprise applications. Advantageously, there is no hardware to buy or deploy, because the virtual private access is a service offering to end-users and enterprises.
The cloud-based system 100 connects users 102 at the locations 112, 118 to the applications 402, 404, the Internet 104, the cloud services 106, etc. The inline, end-to-end visibility of all users enables digital experience monitoring. The cloud-based system 100 can monitor, diagnose, generate alerts, and perform remedial actions with respect to network endpoints, network components, network links, etc. The network endpoints can include servers, virtual machines, containers, storage systems, or anything with an IP address, including the Internet of Things (IoT), cloud, and wireless endpoints. With these components, these network endpoints can be monitored directly in combination with a network perspective. Thus, the cloud-based system 100 provides a unique architecture that can enable digital experience monitoring, network application monitoring, infrastructure component interactions, etc. Of note, these various monitoring aspects require no additional components—the cloud-based system 100 leverages the existing infrastructure to provide this service.
Again, digital experience monitoring includes the capture of data about how end-to-end application availability, latency, and quality appear to the end user from a network perspective. This is limited to the network traffic visibility and not within components, such as what application performance monitoring can accomplish. Networked application monitoring provides the speed and overall quality of networked application delivery to the user in support of key business activities. Infrastructure component interactions include a focus on infrastructure components as they interact via the network, as well as the network delivery of services or applications. This includes the ability to provide network path analytics.
The cloud-based system 100 can enable real-time performance and behaviors for troubleshooting in the current state of the environment, historical performance and behaviors to understand what occurred or what is trending over time, predictive behaviors by leveraging analytics technologies to distill and create actionable items from the large dataset collected across the various data sources, and the like. The cloud-based system 100 includes the ability to directly ingest any of the following data sources network device-generated health data, network device-generated traffic data, including flow-based data sources inclusive of NetFlow and IPFIX, raw network packet analysis to identify application types and performance characteristics, HTTP request metrics, etc. The cloud-based system 100 can operate at 10 gigabits (10G) Ethernet and higher at full line rate and support a rate of 100,000 or more flows per second or higher.
The applications 402, 404 can include enterprise applications, Office 365, Salesforce, Skype, Google apps, internal applications, etc. These are critical business applications where user experience is important. The objective here is to collect various data points so that user experience can be quantified for a particular user, at a particular time, for purposes of analyzing the experience as well as improving the experience. In an embodiment, the monitored data can be from different categories, including application-related, network-related, device-related (also can be referred to as endpoint-related), protocol-related, etc. Data can be collected at the application 350 or the cloud edge to quantify user experience for specific applications, i.e., the application-related and device-related data. The cloud-based system 100 can further collect the network-related and the protocol-related data (e.g., Domain Name System (DNS) response time).
Application-Related Data
Network-Related Data
Device-Related Data (Endpoint-Related Data)
Metrics could be combined. For example, device health can be based on a combination of CPU, memory, etc. Network health could be a combination of Wi-Fi/LAN connection health, latency, etc. Application health could be a combination of response time, page loads, etc. The cloud-based system 100 can generate service health as a combination of CPU, memory, and the load time of the service while processing a user's request. The network health could be based on the number of network path(s), latency, packet loss, etc.
The lightweight connector 400 can also generate similar metrics for the applications 402, 404. In an embodiment, the metrics can be collected while a user is accessing specific applications that user experience is desired for monitoring. In another embodiment, the metrics can be enriched by triggering synthetic measurements in the context of an inline transaction by the application 350 or cloud edge. The metrics can be tagged with metadata (user, time, app, etc.) and sent to a logging and analytics service for aggregation, analysis, and reporting. Further, network administrators can get UEX reports from the cloud-based system 100. Due to the inline nature and the fact the cloud-based system 100 is an overlay (in-between users and services/applications), the cloud-based system 100 enables the ability to capture user experience metric data continuously and to log such data historically. As such, a network administrator can have a long-term detailed view of the network and associated user experience.
§ 7.0 RESTful FrameworkThe present disclosure includes a RESTful framework that is a library for creating a RESTful server, such as in the cloud-based system 100. The library provides Application Programming Interfaces (APIs) for app configuration, request handling, and logging. The present disclosure includes an approach using HTTP for communication between modules or services, moving towards a RESTful framework for transferring state and data. That is, the goal is not to decompose a whole monolith but instead help achieve higher modularity for new requirements and rewrites that are not so time sensitive by creating microservices, i.e., a hybrid between a monolith and microservices where the monolith is designed for time sensitive operations while microservices are used for non-time sensitive operations. The RESTful framework describes support for microservices and applications with a monolith.
The RESTful framework 510 supports IP whitelist Based Authentication where the application 512 can specify the list of IP addresses to allow access to the application endpoints.
In an embodiment, the RESTful framework 510 can be used for the applications 512 to upload metrics periodically to a central hub.
§ 7.1 RESTful Framework ModesThe RESTful framework 510 can be deployed in two modes. One is a standalone mode and the other is embedded mode. In standalone mode the instance or binary runs the RESTful stack 500 as the primary stack whereas in embedded mode the stack 502 has to co-exists with other stacks like the proxy stack 502. In the embedded mode, the RESTful framework 510 can be run along with the functions described herein for the enforcement node 150 as an embedded service. The RESTful framework 510 has a port enabled for listening to HTTP or HTTPS data.
Each application 512 implements its own input/output controls (IOCTLs) just like HTTP endpoints. The application 512 can define IOCTLs and put the config in the config.json file. Application specific IOCTLs can be sent using HTTP as well.
§ 7.2 SNI Based RoutingThe load balancer 550 can monitor the applications 512 and the RESTful framework 510 on the nodes 150 using Internet Control Message Protocol (ICMP), HTTP, or the like. In an embodiment, HTTP is utilized to directly monitor the applications 512 for load balancing.
§ 7.4 Applications in the RESTful FrameworkThe RESTful framework 510 is developed similar to the microservices concept where each application 512 is treated as a single service and APIs are defined. The applications 512 uses an HTTP connection in the RESTful framework 510, but the applications 512 can be configured to switch to different protocols. Each endpoint defined in config.json must be handled by a callback method. A query and JSON request body must have corresponding deserializer. The JSON response body must have corresponding serializer.
§ 7.5 Metric Collection Using the RESTful FrameworkThe applications 512 can define their own metrics such as for monitoring, debugging, etc., and severity levels can also be attached to metrics. Also, the metrics can be grouped by devices 300 the application 512 interacts with. The RESTful framework 510 automatically sends these metrics periodically to a centralized cloud store 600, such as via a metrics uploader 602. The cloud store 600 can be in the storage cluster 156.
The metrics can be counters that are very useful for the debugging and analysis of an application 512. The RESTful framework 510 provides APIs to send metrics (counters whose value has been changed) periodically to a central hub. In an embodiment, the RESTful framework 510 keeps track of the previous value (the value sent last time) and current value of every counter, metrics can be at some interval, and the RESTful framework 510 attempts to find counters whose values have changed for each severity and device pair. If there is one or more such counters, the RESTful framework 510 will send a metrics JSON for this pair.
§ 7.6 CASB and DLP Support with the RESTful Framework
In an example embodiment, the cloud-based system 100 can provide CASB and/or DLP functionality in addition to the other security functions. A challenge in adding CASB and/or DLP functionality to an existing monolith is a challenge, i.e., a primary challenge is communication between many components, and creating a new custom protocol or interface would have added complexity, RESTful was desired but using a standalone server just for API is not practical. The RESTful framework 510 can be embedded in the nodes 150, i.e., it is a module within existing components and is easier to develop and maintain, providing full JSON-based communication interfaces.
§ 7.7 RESTful Framework ProcessThe process 650 includes operating a first cloud service that is implemented as a monolith system (step 651); operating a RESTful framework (Representational State Transfer web service) embedded in the cloud node (step 652); and operating one or more applications for one or more cloud services utilizing the RESTful framework, wherein the one or more applications are microservices (step 653).
The RESTful framework can utilize Hypertext Transfer Protocol (HTTP) methods. The first cloud service can include inline monitoring for security, and the one or more cloud services can include user experience monitoring. The first cloud service can required less latency than the one or more cloud services. The RESTful framework can be configured for Server Name Indication (SNI) routing with the one or more applications. The operating the one or more applications can be based on a load balancer monitoring the one or more applications. The one or more applications can include metric collection where the RESTful framework is configured to update the metrics based on changes. The RESTful framework can utilize a same network and operating stack as the monolith system.
§ 8.0 Telemetry and Policy Gateway (TPG)Highlights of the TPG 700 include optimizing the updates of the latest policies/configuration to the devices 300, such as by managing version numbers. This way the connected devices 300 will download policies only when there is a change in a policy for that device 300. Also, there is a reduction of the load on upstream data/config stores by caching policies and customizing the policy on a per device basis. The TPG 700 acts as not just a cache but has the ability to customize the configuration on a per device basis, thus relieving stress on the upstream data/config stores. The TPG 700 has the ability to add Geo location information to the metrics uploaded by the devices 300 based on the data transmitted. The TPG identifies the device location by looking into any of the location identifiable parameters like IP address or Lat/Long and publishes that data into the data store.
The TPG 700 can aggregate data to optimize the upload and the storage of the data into any third-party data store. So when multiple devices upload their data into the TPG, it can aggregate data across multiple devices and push that to any data store helping save compute cycles on expensive data stores. Also, the TPG 700 can be a stateless and horizontally scaling server—as this is a stateless server, it is possible seamlessly add and remove an instance into the cluster. The management of a transaction state is managed by the entities talking to the TPG 700.
The TPG 700 itself is multi-tenant and has a scope of single clouds. The connector applications 350 use RESTful endpoints to push data (metrics) and request for policies.
The TPG 700 can include various RESTful endpoints, and they all require basic authentication. The endpoints can include a GET/policy, a POST/metrics, and a POST/updates. The GET/policy endpoint can provide policy downloads for UPM policy from a central authority node 152. The POST/metrics endpoint can accept metrics payload from the applications 350, populate location info and user info, and then push it to a data store.
§ 8.1 TPG Request and CachingThe TPG 700 caches objects it fetches from the central authority node 152, such as user configuration (User Performance Management (UPM)) and configuration for each tenant. The following provides an example:
https://<TPG Service IP>/tpg/policy?version=<version number>&locid=<location id>
A version number can be used to control the versioning of configurations. The version number is used to avoid downloading policies when there are no changes. Clients can extract version number from the downloaded config and send the same version number on the next request. It can always request version 0 if it is requesting the config for the first time.
§ 8.2 Flow for PolicyIf the authentication is successful (step 725), the process 720 includes checking if the configuration in the cache is valid (step 728), and, if so, checks if a requested version is the same as the cached version (step 729), and, if so, terminates and sends a code 204 (step 730). If the configuration in the cache is not valid (step 728), the TPG fetches a UPM configuration for the organization from the central authority and caches it (step 731).
If the download is successful (step 732), the process 720 checks if the configuration has changed (step 733), and, if not, the process 720 terminates and sends a code 204 (step 733). If the download is bit successful (step 732), the process 720 checks if there is a configuration in the cache (step 734), and, if not, the process 720 terminates and sends a code 500 (step 735). If there is no configuration in the cache (step 734) or if the configuration has changed (step 733), the process 720 includes building a device specific UPM (step 736), and the process 720 terminates and sends code 200 along with the configuration (step 737).
§ 8.3 TPG ProcessThe process 750 includes connecting to and authenticating a plurality of user devices (step 751); utilizing a plurality of RESTful (Representational State Transfer web service) endpoints to communicate with the plurality of user devices (step 752); providing any of policy and configuration to the plurality of user devices utilizing version number via a RESTful endpoint (step 753); caching the any of policy and configuration for each device of the plurality of user devices (step 754); and receiving metrics based on measurements at the plurality of user devices according to corresponding policy and configuration, via a RESTful endpoint (step 755).
The process 750 can further include obtaining the any of policy and configuration from a central authority associated with the cloud-based system. The process 750 can further include publishing the received metrics to a cloud metric store associated with the cloud-based system. The process 750 can further include aggregating received metrics from some or all of the plurality of devices; and publishing the aggregated received metrics to a data store. The process 750 can further include adding geo location information to the received metrics based on location identifiable parameters. The cloud-based system can include the TPG node and one or more additional TPG nodes, each TPG node is stateless with respect to one another. The received metrics can be associated with user experience monitoring.
§ 9.0 Device Election for Random Population Selection of Remote DevicesThe user experience monitoring can utilize probe traffic for measuring performance. The probe traffic can go direct to destinations or through the cloud-based system 100. For example, the use of such probes is described in commonly-assigned U.S. patent application Ser. No. 17/188,007, filed Mar. 1, 2021, and entitled “Proactively detecting failure points in a network,” and in U.S. patent application Ser. No. 17/235,267, filed Apr. 20, 2021, and entitled “Cached web probes for monitoring user experience,” the contents of each are incorporated by reference in their entirety. When probes are sent through the cloud-based system 100, the nodes 150 can cache probes and optimize the actual number of probes sent to the destination. Since the cloud-based system 100 acts as the man in the middle, it is possible to throttle the number of outbound probes. Without the throttling, the probes can flood a given destination causing the destination to blacklist sites, such as the cloud-based system 100.
Similar problems exist even when the user device 300 does not go through the cloud-based system 100. In such cases, there is a need to have the connector applications 350 throttle the number of probes to avoid flooding a given destination. Here are some example scenarios where probes may go direct to destinations instead of through the cloud-based system 100. A user experience monitoring customer does not use the cloud-based system 100 for inline monitoring or the customer uses the cloud-based system 100 but has configured bypass for certain traffic.
A tenant (organization) can have thousands of users 102, and the cloud-based system 100 can have millions of users 102 for the user experience monitoring. The cloud-based system 100 can cache probes to reduce the load. Further, the present disclosure includes an election protocol where a subset of devices 300 are used. This reduces the footprint of devices 300 designated for a task, reduces CPU and memory on end devices 300 as they do not have to always perform the designated tasks, and the like.
This further ensures fairness in the selection of devices 300 considering various parameters such location, organization, device-type, department, group etc., so that the burden of performing the tasks is evenly distributed. As fairness is ensured, this gets a diverse set of devices 300 giving good data to base decisions on. This further protects the IP address reputation of devices 300 as they do not send as many probes.
§ 9.1 Election MechanismThe election can include each monitor (TPG 700) defining a selection percentage. This value defines what is the percentage of devices from a given IP, that should run this monitor in direct mode.
The election is done at the monitor level. For each unique source IP the TPG 700 sees, it would carry out election based on the source IP/subnet and monitor ID combination.
The TPG 700 maintains a state for each monitor ID, source IP/subnet combination and uses to carry out the election.
The election can be valid for time period Tm. This time period Tm should be larger than the frequency of probes that will be carried out. For example, if probes are sent every 5 minutes, then Tm should be greater than 5.
The TPGs 700 can adhere to the same value of Tm and the start of the Time period can be aligned on all the TPGs 700. This can be achieved by using GMT epoch time on each TPG to find the start of Tm boundary.
The election is random which provides a good deal of fairness.
The process does not guarantee that exact level of desired selection percentage will be achieved. The algorithm does its best effort to achieve the desired configured selection percentage.
The election information is sent as part of the config download to the application 350. The election is sent as a separate object in the config.
The following code describes a probability calculation
After the steps 784 and 788 and if there is a change in the policy (step 785), the process 780 processes the configuration for the device (step 789). For each monitor (TPG 700) (step 790), the process 780 gets the last election (step 791) and checks if the device was present (step 792), and, if not, the process 780 performs an adaptive election and stores the result (step 793). The process then writes the election results (step 794). If the device was present (step 792) and after step 794, the loop checks if all monitors are done (step 796), and terminates, if so, returning code 200 (step 797).
§ 9.2 Election ProcessThe process 800 includes connecting to and authenticating a set of user devices of a plurality of user devices (step 801); determining an election of a subset of user devices of the set of user devices, wherein the election determines which user devices perform metric collection (step 802); providing any of policy and configuration to the plurality of user devices including election information (step 803); and receiving metrics based on measurements at the subset of user devices of user devices according to corresponding policy and configuration (step 804).
The election can be for a first time period, and the process 800 can further include performing a second election for a second time period. The first time period and the second time period are larger than a frequency of the measurements.
The election can be based on a combination of source Internet Protocol (IP) address and monitor identifier of each device. The election can be based on a combination of location, organization, device-type, department, and group. The election can be based on a desired percentage of user devices. The cloud-based system can include the node and one or more additional nodes, each node is stateless with respect to one another and performs its election independently, and each node is time synchronized with one another.
§ 10.0 Geo LocationWith respect to published metrics from user devices, there is a need to associate a geographical (geo) location therewith. The present disclosure includes a process for determining a nearest city a device is located at to apply location specific policies. This helps map a city to the device with a minimal set of data points. For this we have come up with a method of flattening the earth and using it as a grid to compute the nearest city for a given location. That is, there is a need to figure out a nearest city for a given geo coordinate, latitude and longitude. This approach should be accurate and scalable.
With employees working from anywhere, it is imperative to have policy based on the physical/geo location of the user 102. Security threats are becoming aware of users' physical location to target them with more success. For example, a threat actor might utilize some local event to run a phishing attack. Different geo regions have different service providers, which make knowing the users' physical location even more important. Service providers publish their outage alerts based on locality/zip code. User experience monitoring will benefit from this, as it can quickly raise an alert if it notices degradation for traffic coming from a particular geo location. Traffic can be redirected to the nearest data center based on users' physical location.
Devices can provide Global Positioning Satellite (GPS) latitude and longitude but these need to be converted into human readable addresses. Based on human readable address, different policies can be defined for different geographical areas. Based on human readable address, user experience monitoring can monitor for any possible networking issues for given geo location.
There are paid databases for such efforts. These approaches include creating a custom function in Structured Query Language (SQL) to calculate distance between two points, and selecting the entry with the minimum distance from a given point. This approach is O(n) complexity and scales through sharding.
The present disclosure includes an efficient model with a highly scalable algorithm. Given GPS longitude and latitude, getting the exact address of a user requires too many resources with database approaches. The present disclosure proposes finding the nearest city from GPS data. Most policies and monitoring are done at city level and serve the required purpose. This will make the system very fast, i.e., O(Log(n)).
§ 10.1 CellsThe proposed geo location approach flattens the Earth and divides it into cells, call this a geo data source. This data source can be hosted in a database, e.g., PSQL, and indexes can be created based on latitude and longitude. A RESTful application 512, call it geo locate, can act as an API endpoint. When the geo locate app starts, it can load the full database in memory.
For equal size cells, each cell can represent one or x minutes on latitude and longitude, and each cell will be a square, i.e., equal delta for latitude and longitude. This approach has easy cell management, but some cells might not have an entry. For variable sized cells, cells are dynamic and the same number of cities is included in every cell. This approach has no empty cells, but is more complex. Both approaches are efficient (O(Log(n))) and scale by adding additional RESTful nodes.
The following describes the fixed or equal size cells approach. The whole earth is divided into 360 Latitude (0.5 degree unit) and 360 (1.0 degree unit) Longitude. This will give 360*360=129600 cells. There is a data structure for city information, such as
A two dimensional array of city_info_ptr_t will behave as hash, geo hash henceforth, where the first dimension will be latitude and second will be longitude. A valid latitude will be mapped to geo hash index as: (int)((x*2)+180) % 360 i.e. {−90, −75.5, 0, 80, 87}=>{0, 28, 180, 340, 354}. 90 degrees latitude must be normalized to 89.9 before getting index. 90 degrees North is not 90 degrees south. A valid longitude will be mapped to geo hash index as: ((int)(x+180)) % 360 i.e. {−180, −150, 0, 175, 179, 180}=>{0, 30, 180, 355, 359, 0}. There is no need to normalize 180 degrees East as 180 degrees East is same 180 degrees West.
When a RESTful server starts, it will build hash for all cities from a database, open a connection to the database, and get all entries in the database. For each entry in the database, it will get indexes for latitude and longitude and insert the city info to that index. If there is more than one city on that index, addition cities will be inserted to a tail of a city list, i.e., ‘next’ pointer of geo_city_info.
§ 10.2 Getting Nearest CityWhen there is an API request to get nearest city for given latitude and longitude, if latitude is not valid or longitude is not valid then return; otherwise, get indexes for latitude and longitude, and set a level to zero. Until at least one city is found, check cities at the current level, update return value with city distance less than current distance. The level is updated, and the current level is processed for a neighborhood search.
The Earth is not flat, so the above approach has potential to give wrong results, for some sparsely populated areas like the Pacific Ocean (somewhere in the middle of nowhere) because of the following. Unit latitude are separated by the same distance, more or less, each degree of latitude is approximately 69 miles apart. This distance is 68.703 miles at equator. This distance is 68.94 miles at the Tropic of Cancer and Tropic of Capricorn. This distance is 69.407 at poles. The max difference is −0.7 miles. For this calculation, ignore this difference and take 69 miles as standard distance for latitude. Unit longitude are separated by varying distances, each degree of longitude is 69.172 miles apart at the equator. This distance is 53 miles at 40 degrees North or South. This distance is ZERO at poles. This distance gradually decreases from the equator to poles.
Considering above two points, unit degree cannot move in each direction when moving to the next level. The varying distance of latitude must be facto while moving up the level. Think of it as increasing the radius of the circle to get more city on radar.
Considering the above “Accuracy” factors, either trace a different number of cells for each row while tracing or come up with better solution to avoid these calculations. Consider following, while building the data structure, it is possible to fix the area of cell, says unit_cell_area. This will give a fix number of rows, says num_row, for latitudes. For every latitude row, it is possible to calculate how many cells should be there to cover all longitudes. That is, calculate the circumference of Earth for that latitude row and divide that by square_root(unit_cell_area). This will give a number of cells for particular latitude row.
The data structure can include
The following describes a process to build the data structure.
-
- 1) Define constant cell_width i.e. square cell width. Cell area will be (cell_width*cell_width)
- 2) Set nums_rows=CEIL (180.0/cell_width)
- 3) Initialize geo_cell_info_t geo_data[nums_rows]
- 4) Get all cities with geo coordinates from database or read it as flat file into city_list
- 5) For every city in city_list
- a) Set city_row=FLOOR((latitude+90)/nums_rows)
- b) If geo_data[city_row].cell_count is 0
- i) Set cell_count=CEIL(circumference at latitude/cell_width)
- ii) Set geo_data[city_row].cell_count=cell_count
- iii) Gset eo_data[city_row].city_cell=new geo_city_info_ptr_t[cell_count]
- c) Set city_col=ROUND((longitude+180)/cell_count)
- d) Append city to list at geo_data[city_row].city_cell[city_col]
- 6) END
The following describes a process to find a city for a given latitude and longitude.
-
- 1) Set row_num=FLOOR((180.0/nums_row)*lat)
- 2) Set col_num=ROUND((Ing+180)/geo_data[row_num].cell_count)
- 3) Set level=0, num_cell=0
- 4) While at least one city found
- a) For row_num−level to row_num+level
- i) For col_num−num_cell to col_num+num_cell
- 1) Calculate distance from each city int cell
- 2) Set city to current city if distance is less
- i) For col_num−num_cell to col_num+num_cell
- b) level=√{square root over (2)}*level
- c) num_cell=√{square root over (2*num_cell)}
- a) For row_num−level to row_num+level
- 5) Return city
An example SQL Query to get nearest city from database—Either one of the following will work.
SELECT city_name, region_name, country_code, latitude, longitude, calculate_distance(latitude, longitude, 37.785144, −122.523189, ‘M’) as distance FROM world_cities ORDER BY distance LIMIT 1;
SELECT city_name, region_name, country_code, latitude, longitude, distance FROM find_nearest_city(37.785144, −122.523189, ‘M’);
An example API Endpoint includes
-
- Method: POST
- Payload Type: JSON
- Payload Example: {“latitude”:37.785144, “longitude”:−122.523189}
- Response Example:
Note: exe_time is code execution time to find nearest city from given latitude-longitude based on distance in miles.
Geo Tagging of devices have taken central places to enforce policies which can enhance security and user experience. Attacks are being generated based on place device is moved to. For example, user who visits Las Vega are more susceptible to see gambling ads contain malicious code. Geo Tagging helps the cloud-based system 100 to detect the location of user and enforce policy based on that. Geo Tagging can also improve user experience. Based on user's location, it is possible to decide which monitors should be enabled. This can save bandwidth and allows user to have seamless browsing experience.
This approach has a memory requirement of about −250 MB and is 1250× faster than the paid database approach.
§ 10.5 Geo Location ProcessThe process 850 includes loading a data structure into memory, wherein the data structure includes cities mapped to cells where the cells cover all of the Earth (step 851); receiving a call with a given latitude and longitude of a user device (step 852); finding a closest city to the given latitude and longitude utilizing the data structure (step 853); and providing the closest city in response to the call (step 854).
The process 850 can include utilizing the closest city for policy in the cloud-based system for the user device. The process 850 can include redirecting traffic from the user device to a specific data center based on the closest city. The process 850 can include appending the closet city to metrics from the user device.
The cells can be one of fixed size and variable size. The finding can include finding a current cell with cities, determining distance and setting each city with a minimum distance to the given latitude and longitude as a current city. The finding can include starting at a cell as an input point and tracing surrounding cells until the closest city is found.
§ 11.0 ConclusionIt will be appreciated that some embodiments described herein may include one or more generic or specialized processors (“one or more processors”) such as microprocessors; Central Processing Units (CPUs); Digital Signal Processors (DSPs): customized processors such as Network Processors (NPs) or Network Processing Units (NPUs), Graphics Processing Units (GPUs), or the like; Field Programmable Gate Arrays (FPGAs); and the like along with unique stored program instructions (including both software and firmware) for control thereof to implement, in conjunction with certain non-processor circuits, some, most, or all of the functions of the methods and/or systems described herein. Alternatively, some or all functions may be implemented by a state machine that has no stored program instructions, or in one or more Application-Specific Integrated Circuits (ASICs), in which each function or some combinations of certain of the functions are implemented as custom logic or circuitry. Of course, a combination of the aforementioned approaches may be used. For some of the embodiments described herein, a corresponding device in hardware and optionally with software, firmware, and a combination thereof can be referred to as “circuitry configured or adapted to,” “logic configured or adapted to,” etc. perform a set of operations, steps, methods, processes, algorithms, functions, techniques, etc. on digital and/or analog signals as described herein for the various embodiments.
Moreover, some embodiments may include a non-transitory computer-readable storage medium having computer-readable code stored thereon for programming a computer, server, appliance, device, processor, circuit, etc. each of which may include a processor to perform functions as described and claimed herein. Examples of such computer-readable storage mediums include, but are not limited to, a hard disk, an optical storage device, a magnetic storage device, a Read-Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory, and the like. When stored in the non-transitory computer-readable medium, software can include instructions executable by a processor or device (e.g., any type of programmable circuitry or logic) that, in response to such execution, cause a processor or the device to perform a set of operations, steps, methods, processes, algorithms, functions, techniques, etc. as described herein for the various embodiments.
The foregoing sections include headers for various embodiments and those skilled in the art will appreciate these various embodiments may be used in combination with one another as well as individually. Although the present disclosure has been illustrated and described herein with reference to preferred embodiments and specific examples thereof, it will be readily apparent to those of ordinary skill in the art that other embodiments and examples may perform similar functions and/or achieve like results. All such equivalent embodiments and examples are within the spirit and scope of the present disclosure, are contemplated thereby, and are intended to be covered by the following claims. Moreover, it is noted that the various elements described herein can be used in any and all combinations with each other.
Claims
1. A method implemented in a node in a cloud-based system, the method comprising:
- loading a data structure into memory, wherein the data structure includes cities mapped to cells where the cells cover all of the Earth;
- receiving a call with a given latitude and longitude of a user device;
- finding a closest city to the given latitude and longitude utilizing the data structure, wherein a level is set to zero at the given latitude and longitude, and until at least one city is found, updating the level and processing the updated level;
- providing the closest city in response to the call; and
- utilizing the closest city for policy enforcement in the cloud-based system for the user device.
2. (canceled)
3. The method of claim 1, further comprising redirecting traffic from the user device to a specific data center based on the closest city found utilizing the data structure.
4. The method of claim 1, further comprising appending the closest city to metrics from the user device.
5. The method of claim 1, wherein the cells are one of fixed size and variable size.
6. The method of claim 1, wherein the finding includes finding a current cell with cities, determining distance and setting each city with a minimum distance to the given latitude and longitude as a current city.
7. The method of claim 1, wherein the finding includes starting at a cell as an input point and tracing surrounding cells until the closest city is found.
8. A node in a cloud-based system comprising:
- one or more processors and memory storing instructions that, when executed, cause the one or more processors to load a data structure into memory, wherein the data structure includes cities mapped to cells where the cells cover all of the Earth; receive a call with a given latitude and longitude of a user device; find a closest city to the given latitude and longitude utilizing the data structure, wherein a level is set to zero at the given latitude and longitude, and until at least one city is found, update the level and process the updated level; provide the closest city in response to the call; and utilize the closest city for policy reinforcement in the cloud-based system for the user device.
9. (canceled)
10. The node of claim 8, wherein the instructions that, when executed, cause the one or more processors to
- redirect traffic from the user device to a specific data center based on the closest city found utilizing the data structure.
11. The node of claim 8, wherein the instructions that, when executed, cause the one or more processors to
- append the closest city to metrics from the user device.
12. The node of claim 8, wherein the cells are one of fixed size and variable size.
13. The node of claim 8, wherein the finding includes finding a current cell with cities, determining distance and setting each city with a minimum distance to the given latitude and longitude as a current city.
14. The node of claim 8, wherein the finding includes starting at a cell as an input point and tracing surrounding cells until the closest city is found.
15. A non-transitory computer-readable storage medium having computer-readable code stored thereon for programming a node to perform steps of:
- loading a data structure into memory, wherein the data structure includes cities mapped to cells where the cells cover all of the Earth;
- receiving a call with a given latitude and longitude of a user device;
- finding a closest city to the given latitude and longitude utilizing the data structure, wherein a level is set to zero at the given latitude and longitude, and until at least one city is found, updating the level and process the updated level;
- providing the closest city in response to the call; and
- utilizing the closest city for policy enforcement in the cloud-based system for the user device.
16. (canceled)
17. The non-transitory computer-readable storage medium of claim 15, wherein the steps include
- redirecting traffic from the user device to a specific data center based on the closest city found utilizing the data structure.
18. The non-transitory computer-readable storage medium of claim 15, wherein the steps include
- appending the closest city to metrics from the user device.
19. The non-transitory computer-readable storage medium of claim 15, wherein the cells are one of fixed size and variable size.
20. The non-transitory computer-readable storage medium of claim 15, wherein the finding includes finding a current cell with cities, determining distance and setting each city with a minimum distance to the given latitude and longitude as a current city.
Type: Application
Filed: Jun 2, 2021
Publication Date: Dec 8, 2022
Inventor: Ajit Singh (Fremont, CA)
Application Number: 17/336,675