Method and device for realizing flow meter information real-time synchronization of openflow switches

The invention relates to a method and a device for realizing the flow meter information real-time synchronization of openflow switches, which are applied in an openflow network composed of a controller, a master openflow switch and a standby openflow switch. The controller is used for sending a first request message to the master openflow switch every once in a while, wherein the first request message is used for inquiring the flow meter information of the master openflow switch. The master openflow switch returns a corresponding reply message to the controller upon receiving the first request message. After that, the controller extracts the flow meter information of the master openflow switch that is contained in the reply message, and then issues a second request massage to the standby openflow switch, wherein the second request massage is obtained through the restructuring transformation of the flow meter information. According to the technical scheme of the invention, the flow meter information can be mutually synchronized among multiple openflow switches. Meanwhile, the fully redundant backup of switches and flow meters in certain applications can be realized. The disturbance caused by the loss of the flow meter information to the IT management staff can be relieved.