Method, network card, and communication system for binding physical network ports
First Claim
1. A method for binding physical network ports, comprising:
- creating a virtual port, wherein the virtual port corresponds to a virtual network card in an application layer that is capable of being bound, in the application layer, with other created virtual ports through application layer software;
adding multiple physical network ports, which need to be bound, to the created virtual port;
when communications of the physical network ports in the virtual port are normal, identifying the physical network ports as being available; and
when a packet needs to be received or transmitted, selecting one or more physical network ports from the available physical network ports according to a configured mode to receive or transmit the packet;
wherein the step of selecting one or more physical network ports from the available physical network ports comprises;
if the configured mode is a server load balancing mode, searching correspondence between stored quintuples of packets and physical network ports according to a quintuple of the packet to determine whether a corresponding physical network port exists; and
if the corresponding physical network port exists, receiving or transmitting the packet through the determined physical port;
if no corresponding physical network port exists, selecting a physical network port with minimum traffic from the available physical network ports, and receiving or transmitting the packet through the selected physical network port.
1 Assignment
0 Petitions
Accused Products
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.
6 Citations
11 Claims
-
1. A method for binding physical network ports, comprising:
-
creating a virtual port, wherein the virtual port corresponds to a virtual network card in an application layer that is capable of being bound, in the application layer, with other created virtual ports through application layer software; adding multiple physical network ports, which need to be bound, to the created virtual port; when communications of the physical network ports in the virtual port are normal, identifying the physical network ports as being available; and when a packet needs to be received or transmitted, selecting one or more physical network ports from the available physical network ports according to a configured mode to receive or transmit the packet; wherein the step of selecting one or more physical network ports from the available physical network ports comprises; if the configured mode is a server load balancing mode, searching correspondence between stored quintuples of packets and physical network ports according to a quintuple of the packet to determine whether a corresponding physical network port exists; and if the corresponding physical network port exists, receiving or transmitting the packet through the determined physical port; if no corresponding physical network port exists, selecting a physical network port with minimum traffic from the available physical network ports, and receiving or transmitting the packet through the selected physical network port. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A network card, comprising:
-
a creation module configured to create a virtual port, wherein the virtual port corresponds to a virtual network card in an application layer and that is capable of being bound, in the application layer, with other created virtual ports through application layer software; an addition module configured to add, to the created virtual port, multiple physical network ports that need to be bound; a determining module configured to; when communications of the physical network ports in the virtual port are normal, identify the physical network ports in normal communication as being available; and a packet transceiver module configured to;
when a packet needs to be received or transmitted, select one or more available physical network ports according to a configured mode to receive or transmit the packet;wherein the packet transceiver module comprises; a search unit configured to;
if the configured mode is a server load balancing mode, search correspondence between stored quintuples of packets and physical network ports according to a quintuple of the packet to determine whether a corresponding physical network port exists; anda selection unit configured to;
if the corresponding physical network port exists, receive or transmit the packet through the determined physical network port, and if no corresponding physical network port exists, select a physical network port with minimum traffic from the available physical network ports, and receive or transmit the packet through the selected physical network port. - View Dependent Claims (7, 8, 9, 10)
-
-
11. A communication system, comprising:
-
a central processing unit CPU; and a network card, wherein the network card comprises multiple physical network ports; wherein the CPU is configured to run application layer programs to process service data; and the network card is configured to; create a virtual port, wherein the virtual port corresponds to a virtual network card in an application layer that is capable of being bound, in the application layer, with other created virtual ports through application layer software; add, 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 are normal, identify the physical network ports as being available; and when a packet needs to be received or transmitted, select one or more physical network ports from the available physical network ports according to a configured mode to receive or transmit the packet; wherein the operation of selecting one or more physical network ports from the available physical network ports comprises; if the configured mode is a server load balancing mode, searching correspondence between stored quintuples of packets and physical network ports according to a quintuple of the packet to determine whether a corresponding physical network port exists; and if no corresponding physical network port exists, receiving or transmitting the packet through the determined physical port; if no corresponding physical network port exists, selecting a physical network port with minimum traffic from the available physical network ports, and receiving or transmitting the packet through the selected phial network port.
-
Specification