A network framework based on erlang