Provided in the present application a method and system for switching between an active broadband network gateway (BNG) and a standby BNG. The system comprises a first BNG, a second BNG and a database. The first BNG is an active BNG, and the second BNG is a standby BNG. The first BNG processes a service of a first user. After common attribute information of the first BNG and the second BNG is written into the database and before the second BNG switches to become the active BNG, the second BNG reads the common attribute information from the database. After static information of the first user is written by the first BNG into the database and before the second BNG switches to become the active BNG, the second BNG reads the static information from the database. When the first BNG experiences a fault and cannot further process the service, the second BNG reads, from the database, dynamic information generated by the service on the first BNG. The second BNG then switches to become the active BNG and takes over the service from the first BNG. The solution can reduce a waste of communication resources between an active BNG and a standby BNG, and improve the efficiency of CPU resources of the standby BNG.
展开▼