It doesn't work like the Bitcoin network at all. Except that its computer software for handling transactions.
Bitcoin is based on a primarily zero trust model, where every node validates all the data completely and cannot be tricked— except for transaction ordering which (due to relativity) can't be evaluated like that, and so Bitcoin uses a computational lottery to establish ordering.
Ripple has a small number of server nodes which can freely set all balances, no validation at all. Its an entirely different model. The servers believe according to a majority of configured trusted peers.
It doesn't even appear if the ripple model can be stable even absent attackers if the peering are not centrally controlled.
See this thread for more discussion: https://bitcointalk.org/index.php?topic=144471.0 (esp the later posts with the network topology diagrams)