Top Qs
Timeline
Chat
Perspective

Network Coordinate System

From Wikipedia, the free encyclopedia

Remove ads

A Network Coordinate System (NC system) is a system for predicting characteristics such as the latency or bandwidth of connections between nodes in a network by assigning coordinates to nodes. More formally, It assigns a coordinate embedding to each node in a network using an optimization algorithm such that a predefined operation estimates some directional characteristic of the connection between node and .[1]

Remove ads

Uses

Summarize
Perspective

In general, Network Coordinate Systems can be used for peer discovery, optimal-server selection, and characteristic-aware routing.

Latency Optimization

When optimizing for latency as a connection characteristic i.e. for low-latency connections, NC systems can potentially help improve the quality of experience for many different applications such as:

  • Online Games
    • Forming game groups such that all the players are close to each other and thus have a smoother overall experience.[2]
    • Choosing servers as close to as many players in a given multiplayer game as possible.[3]
    • Automatically routing game packets through different servers so as to minimize the total latency between players who are actively interacting with each other in the game map.[citation needed]
  • Content delivery networks
    • Directing a user to the closest server that can handle a request to minimize latency.[2][4]
  • Voice over IP
    • Automatically switch relay servers based on who is talking in a few-to-many or many-to-many voice chat to minimize latency between active participants.[5]
  • Peer-to-peer networks
    • Can use the latency-predicting properties of NC systems to do a wide variety of routing optimizations in peer-to-peer networks.
  • Onion routing networks
    • Choose relays such as to minimize the total round trip delay to allow for a more flexible tradeoff between performance and anonymity.[5][4]
  • Physical positioning
    • Latency correlates with the physical distances between computers in the real world. Thus, NC systems that model latency may be able to aid in locating the approximate physical area a computer resides in.[citation needed]

Bandwidth Optimization

NC systems can also optimize for bandwidth (although not all designs can accomplish this well). Optimizing for high-bandwidth connections can improve the performance of large data transfers.[6][7][4]

Sybil Attack Detection

Sybil attacks are of much concern when designing peer-to-peer protocols. NC systems, with their ability to assign a location to the source of traffic can aid in building systems that are Sybil-resistant.[8][9]

Remove ads

Design Space

Summarize
Perspective

Landmark-Based vs Decentralized

Almost any NC system variant can be implemented in either a landmark-based or fully decentralized configuration. Landmark-based systems are generally secure so long as none of the landmarks are compromised, but they aren't very scalable. Fully decentralized NC systems are harder to design as they must be resilient to adversarial nodes, but they can in theory scale indefinitely.

Euclidean Embeddings

This design assigns a point in -dimensional euclidean space to each node in the network and estimates characteristics via the euclidean distance function where represents the coordinate of node .

Euclidean Embedding designs are generally easy to optimize. The optimization problem for the network as a whole is equivalent to finding the lowest energy state of a spring-mass system where the coordinates of the masses correspond to the coordinates of nodes in the network and the springs between the masses represent measured latencies between nodes. To make this optimization problem function work in a decentralized protocol, each node exchanges its own coordinates with those of a fixed set of peers and measures the latencies to those peers, simulating a miniature spring-mass system where all the masses representing the coordinates of the peers and each mass is connected via a single spring to the node's own "mass" which when simulated, gives a more optimal value for the node's coordinate. All these individual updates allow the network as a whole to form a predictive coordinate space by collaboratively.

The laws of Euclidean space require certain characteristics of the distance function to hold true, such as symmetry (measuring from should give the same result as from ) and the triangle inequality . No real-world network characteristics completely satisfy these laws, but some do more than others[10] and NC systems using euclidean embedding are somewhat accurate when run on datasets containing violations of these laws.[11][12][13]

Existing research on the topic includes GNP,[11] PIC[12] Vivaldi,[13] and Pharos[14]

Matrix Factorization

This design imagines the entire network as represented by an incomplete matrix where is the total number of nodes in the network, and any element of the matrix at the intersection between row and column of the matrix represents a directional latency measurement from node to node . The goal is to estimate the numbers in the unfilled squares of the matrix using the squares that are already filled in, i.e. performing matrix completion.[15] To estimate a specific latency between two nodes, this method uses the dot product where / represents a point in a -dimensional inner product space.

NC system designs using matrix factorization are generally more complicated than their euclidean counterparts. In the centralized variant, matrix completion can be performed directly on a set of landmarks which have measured latency to every other landmark in a set, thus creating a complete matrix representing the landmark network. This matrix can then be factored on a single computer using non-negative matrix factorization (NNMF) into two matrices and such that . Since matrix multiplication is essentially doing the dot product for each row and column of the input matrices, coordinates for each landmark can be represented by two "in" and "out" vectors ( and ) taken respectively from the th row of and the th column of . With this, latencies between two landmarks can be approximates by a simple dot product: . Any node that wants to figure out their own coordinates can simply measure the latency to some subset of all the landmarks, re-create a complete matrix using the landmark's coordinates, and then perform NNMF to calculate their own coordinate. This coordinate can then be used with any other node (landmark or otherwise) to estimate latency to any other coordinate that was calculated via the same set of landmarks.[15][16]

The decentralized variant is decidedly simpler. For a given node, the goal is to minimize the absolute difference (or squared difference) between the measured latencies to the peers and the predicted latencies to the peers. The predicted latency is given by the same equation where is the outgoing vector of node and is the incoming vector of node . This goal (or loss function) can then be minimized using stochastic gradient descent with line search.[15]

Existing research on the topic includes IDES, which uses principal component analysis from a small set of beacon or landmark nodes.[16] There is also Phoenix, which proposes a distributed form and incorporates a weight-based trust mechanism using a gossip-based layer to protect against adversarial nodes (NCShield).[17] Finally, DMFSGD proposal stochastic gradient descent instead of alternating least squares to learn factorizations.[15]

Tensor Factorization

  • Notable Papers: TNDP[18] Leverage Sampling + Personal Devices[19]

Relative Coordinates

Relative coordinate systems are a slightly more restrictive, but also more stable form of network coordinate system. They don't allow for prediction between arbitrary pairs of nodes, but they are immune to attempts at network-wide coordinate distortion by instead opting for a 3-way factorization. This factorization is as follows: where to predict the one-way latency , you must collect a vector of measurements to other nodes and receive a vector from node of measurements to more nodes (potentially different nodes from measurements in ). Node then must learn a matrix to minimize the prediction error to all known peers. Then latency prediction to unknown peers given a corresponding vector from such unknown peer can occur.[2]

Remove ads

Alternatives

Network Coordinate Systems are not the only way to predict network properties. There are also methods such as iPlane[20] and iPlane Nano[21] which take a more analytical approach and try to mechanistically simulate the behavior of internet routers to predict by what route some packets will flow, and thus what properties a connection will have.

In The Wild

References

Loading related searches...

Wikiwand - on

Seamless Wikipedia browsing. On steroids.

Remove ads