SHENYANG INSTITUTE OF AUTOMATION, CHINESE ACADEMY OF SCIENCES
The present invention discloses a method and system for realizing Open vSwitch that supports 802.1p. The method of the present invention comprises: a priority mode configuration stage: the switch receiving a priority configuration statement of a user and parsing the configuration statement; a configuration storage stage: storing the parsed configuration information into a switch database; and a priority-based data forwarding stage: the switch putting a received data packet into a corresponding priority queue according to said configuration information and a flow table so as to forward the data packet. The system of the present invention comprises a configuration module, a configuration information storage module and a priority-based forwarding module, wherein the data priority-based forwarding module comprises a configuration reading unit, a traffic control setting unit, a flow table storage unit, a data packet parsing unit, a flow table matching unit, a flow table executing unit, a scheduling unit, priority queues, a sending unit, etc. Through the method and the system of the present invention, Open vSwitch can support 802.1p, realize a priority-based forwarding function and solve the defect that an Open vSwitch network lacks of a priority-based forwarding mode, and the Open vSwitch network can support data transmission of profinet, IEC61850, etc. that rely on 802.1p.