Changes

Jump to navigation Jump to search
m
no edit summary
Line 1: Line 1: −
See also [[Platform_Team/Sugar_Network|introduction page]] and [[Platform_Team/Sugar_Network/Concept|basic concepts overview]].
+
This is a twin page of Sugar Network's [[Sugar_Network/Concept|basic concepts]] from technical point of view. See also the [[Sugar_Network|introduction page]].
   −
== Summary ==
+
== Overview ==
   −
The technical decisions are tailored by:
+
=== Functioning ===
   −
* The particular technical implementation is fully driven by real needs of deployments like [[Deployment_Team/Peru/Puno|one-teacher schools in Peru]] and should be as simple as possible;<br>[[Wikipedia:KISS_principle|Keep it simple, wise man!]];
+
The only worfklow within the Sugar Network from the technical point of view is:
* The system, from users point of view, should just work proving high-level services that cover the full collaboration circle that should exist within Sugar learning community;
  −
* It is all about creating high-level services that use regular client-server interaction model with one addition, an optional need to make a synchronization between a distributed server and the main one, the Mothership; In other words, it is all time about having a chain of {{Code|Motherhip <-> [Distributed Server] <-> Client}} interactions; Because:
  −
** Only on the Mothership level, there could be skilled people that can follow not trivial way to solve possible issues;
  −
** Thus, either system should be smart enough to solve issues on its own or it should be as simple as possible delegating not trivial work to the Mothership; The 2nd option is taken;
     −
== Overview ==
+
* Clients create, modify and browse different types of resources ([[Sugar_Network/Concept#Resources|resources]] from conceptual point of view, [[Platform_Team/Sugar_Network/API#Resources|resources]] from the API point of view) on a server;
 +
* If this server is a [[#Node_servers|Node]] server, the system will take care about [[#Synchronization|synchronizing]] its resources with other Node servers and, finally, with the central one, the [[#Master_server|Master]] server.
   −
The Sugar Network consists of different types of parts:
+
=== Components ===
   −
* [[#Client|client side]], and
+
This is technical view on [[Sugar_Network/Concept#Overview|three levels]] of the Sugar Network:
* [[#Server|server side]].
     −
The Sugar Network supports Internet and Internet-less environments. In both cases, the participant's experience is the same. The only difference is the amount of time when all contributors will see the same picture, in case of the Internet, it will happen in live mode, for Internet-less cases, after synchronizing all school servers.
+
* [[#Server|Server side]],
 +
* [[#Conceptual_level|Conceptual level]],
 +
* [[#Client|Client side]].
    
== Server ==
 
== Server ==
   −
In all cases the server API is the same for clients. But depending on connectivity, client might be connected to the Mothership or to an intermediate server.
+
[[File:Sugar-networks-architecture.png|right]]
 +
 
 +
Server side is represented by:
 +
 
 +
* [[#Master_server|Master]] server that keeps the whole Sugar Network information, clients might connect directly to this server (on-line case) or indirectly via Node servers (off-line case);
 +
* Optional [[#Node_servers|Node]] servers, contain a [[#Synchronization|synchronised]] copy of central server (might be not for the entire Network to save storage space);
 +
 
 +
In all cases the server [[Platform_Team/Sugar_Network/API|API]] is the same for clients. But depending on connectivity, clients might be connected to the [[#Master_server|Master]] server or to a [[#Node_servers|intermediate server]].
 +
 
 +
=== Master server ===
 +
 
 +
The place where data is being collected from all Node servers. If clients have connectivity, they can connect to the Master to contribute to the Network directly.
 +
 
 +
=== Node servers ===
 +
 
 +
Servers that will be useful if:
 +
 
 +
* there is no connectivity at all;
 +
* connectivity is sporadic;
 +
* connectivity is not cheap and its usage needs to be minimized.
 +
 
 +
Node servers provide full featured [[Platform_Team/Sugar_Network/API|API]] as the Master does. Nodes need to be [[#Synchronization|synchronized]].
 +
 
 +
== Conceptual level ==
 +
 
 +
This is how Sugar Network looks like on [[Sugar_Network/Concept|conceptual level]] represented by the [[Platform_Team/Sugar_Network/API|API]].
 +
 
 +
=== Objects model ===
 +
 
 +
{{:Platform_Team/Sugar_Network/Objects_model}}
 +
 
 +
The model refers to the following additional information:
 +
 
 +
=== Simplified editing workflow ===
 +
 
 +
The system is designed to be as lightweight as possible to make it running on XO laptops in unmaintainable environments and simplify synchronization. So, the following design decisions were taken:
   −
Todo:
+
* No history for Sugar Network objects, only events about made changes;
 +
* Only object author(s) can process editing;
 +
* But, other people can suggest changes (that might be implemented on client side in pretty powerful way, e.g., people can change objects but it will be postponed for later author(s)' review).
   −
:* Would be useful to involve, in automatic manner, clients, i.e., like in case of VCS; client can work with the server or with local replication that needs to be pushed to the server when client will be online.
+
That might be changed but only after making system one level more complicated.
    
== Client ==
 
== Client ==
   −
Client application that runs on machines of people who take part in the Sugar Network. Its functionality is split into:
+
This is what Network participants are interacting with. This is a software that let people get access to the Sugar Network and define how Sugar Network should look like from users point of view. User experience, that these clients provide, might be too different from a client to a client. Starting from a couple of elements in the already existing software's [[Wikipedia:Graphical_user_interface|GUI]] (when people even don't suspect they are interacting with the Sugar Network) and ending with clients that represent conceptual level as close as possible.
 +
 
 +
Client side is represented by:
 +
 
 +
* Client application that uses [[Platform_Team/Sugar_Network/API|API]] to interact with a server;
 +
* Client application that [[#Personal_server|provides]] limited [[Platform_Team/Sugar_Network/API|API]] to support server-less workflow.
 +
 
 +
Client application is local, for reasons:
 +
 
 +
* Originally, Sugar Network was being developed for deployments where teachers' XOs will be Node servers, thus, it will be useful to delegate some of computing to students' XOs;
 +
* Stimulate doing behaviour when it should be possible to create new client application or tweak existing on a client side;
 +
* It is all time possible to create Web application on a server side.
 +
 
 +
=== Personal server ===
 +
 
 +
This local application provides limited [[Platform_Team/Sugar_Network/API|API]] to get access to:
   −
* [[#DBus_service|DBus service]], and
+
* Private data in user's home directory,
* [[#Frontend|frontends]].
+
* Data accessible from removable devices like USB sticks or SD cards.
   −
The frontends are lightweight, think about ''Web browsers vs. standalone applications'', that delegate the whole work to the DBus service that has high-level API. The reasons to do that are:
+
== Synchronization ==
   −
* Let it possible to create as many as people want frontends, trying to satisfy different types of purposes, full featured frontend, simple but-still-useful frontend, ''Hello, world!'' frontend to let other people create new one, etc.;
+
To let Network participant, connected to particular [[#Node_servers|Node server]], interact with people from another Node servers or with people from the Internet (Master server), Node servers need to be synchronized.
* Use DBus service API in Sugar activities to integrate them to the Sugar Network.
     −
=== DBus service ===
+
Server might be synchronized:
   −
=== Frontend ===
+
* With the Master, if connectivity presents;
 +
* With the Master or any other Node servers via the [[Wikipedia:Sneakernet|Sneakernet]].
   −
The default frontend implemented using Web technologies to:
+
== Getting involved ==
   −
* Make it possible to reuse Sugar Network in any Web browser in any Desktop Environment, i.e., not only from Sugar Shell;
+
{{:Sugar_Network/Feedback}}
* Using existing Web methods might make frontend developing easier;
  −
* Involve Web developers to Sugar community;
     −
At the same time it is a local Web application. It sounds a bit confusing, but this decision is based on:
+
== References ==
   −
* Local Web applications serve only one user and are much simpler than singular applications that are intended to serve thousands of users simultaneously;
+
* An [http://wiki.laptop.org/go/Sneakernet OLPC wiki page] about the [[Wikipedia:Sneakernet|Sneakernet]].
* Having simple and clean designed code, it will be easy for doers to learn, change, reimplement the frontend.
 

Navigation menu