Abstract:
In a data packet processing method applied to a computing device in SDN, after receiving a data packet of a data flow, a NIC queries a flow table set according to matching information of the data packet; and if a flow table is obtained from the flow table set the NIC processes the data packet according to the flow table; or if no flow table can be obtained from the flow table set, the NIC sends the data packet to a virtual switch to obtain a flow table corresponding to the data flow, and saves the flow table into the flow table set, so that the NIC can process a subsequent data packet of the data flow.
Abstract:
The present disclosure discloses a data packet processing method applied to a computing device in software-defined networking. After receiving a data packet of a data flow, a NIC queries a flow table set according to matching information of the data packet; and if a flow table is obtained from the flow table set the NIC processes the data packet according to the flow table; or if no flow table can be obtained from the flow table set, the NIC sends the data packet to a virtual switch to obtain a flow table corresponding to the data flow, and saves the flow table into the flow table set, so that the NIC can process a subsequent data packet of the data flow. An operating load of the virtual switch is reduced, and operating efficiency of the computing device is improved.
Abstract:
A method for binding physical network ports includes creating a virtual port, where the virtual port corresponds to a virtual network card in an application layer and is capable of being bound, in the application layer, with other created virtual ports through application layer software. The method also includes adding, to the created virtual port, multiple physical network ports, which need to be bound. When communications of the physical network ports in the virtual port is normal, the method includes identifying the physical network ports as being available. When a packet needs to be received or transmitted, the method includes selecting one or more physical network port from the available physical network ports according to a configured mode to receive or transmit the packet.
Abstract:
This application discloses a data packet processing method applied to a computing device in software-defined networking. After receiving a data packet of a data flow, a NIC in the computing device queries a flow table set according to matching information of the data packet; and if a flow table is obtained from the flow table set, the NIC processes the data packet according to the flow table; or if no flow table can be obtained from the flow table set, the NIC sends the data packet to a virtual switch, and the virtual switch obtains a flow table corresponding to the data flow, and saves the flow table into the flow table set, so that the NIC can directly process a subsequent data packet of the data flow. An operating load of the virtual switch is reduced, and operating efficiency of the computing device is improved.
Abstract:
A method for binding physical network ports for network communications creates in an application layer virtual ports that correspond to virtual network cards. Each virtual port is capable of being bound in the application layer with other created virtual ports. Multiple physical network ports, which need to be bound, are added to the created virtual ports. To receive or transmit a packet, one or more available physical network ports are selected according to a configured mode for receiving or transmitting the packet. If the configured mode is a server load balancing mode, a physical network port that corresponds to a quintuple of the packet is identified, and the packet is received or transmitted through the identified physical network port. When no corresponding physical port is found, a physical network port with minimum traffic is selected for receiving or transmitting the packet.