CN114915592A - Method, system, storage medium and device for port binding of aggregation group - Google Patents

Method, system, storage medium and device for port binding of aggregation group Download PDF

Info

Publication number
CN114915592A
CN114915592A CN202210366611.2A CN202210366611A CN114915592A CN 114915592 A CN114915592 A CN 114915592A CN 202210366611 A CN202210366611 A CN 202210366611A CN 114915592 A CN114915592 A CN 114915592A
Authority
CN
China
Prior art keywords
network card
port
mac address
virtual network
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210366611.2A
Other languages
Chinese (zh)
Other versions
CN114915592B (en
Inventor
李盈
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210366611.2A priority Critical patent/CN114915592B/en
Publication of CN114915592A publication Critical patent/CN114915592A/en
Application granted granted Critical
Publication of CN114915592B publication Critical patent/CN114915592B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/245Link aggregation, e.g. trunking
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides a method, a system, a storage medium and a device for binding ports of an aggregation group, wherein the method comprises the following steps: identifying the configuration conditions of a virtual network card and a physical network card in a network; in response to the coexistence configuration of a virtual network card and a physical network card, determining a characteristic Mac address bit of the virtual network card and storing a corresponding port forwarding table for standby; adding the port into an aggregation group, judging the address type in a forwarding table of the aggregation group based on the characteristic Mac address bit, and analyzing the Mac address and the type corresponding to each data packet; responding to the fact that the address type is a virtual network card, and executing data forwarding based on preset forwarding logic according to the Mac address; and in response to the address type being a physical network card, determining a forwarding port based on a stored port forwarding table according to the Mac address to perform data forwarding. The invention solves the problems that the service interruption of the physical network card, the binding of the virtual network card and the coexistence of the physical network card are caused by adding the port into the aggregation group after the virtual network card is bound.

Description

Method, system, storage medium and device for port binding of aggregation group
Technical Field
The present invention relates to the field of communications technologies, and in particular, to the field of network port configuration technologies, and in particular, to port-bound data forwarding for an aggregation group.
Background
At present, with the improvement of development technology and the difference of market demands, the requirement on the virtual machine is higher and higher, and more products need to run value-added services and other services in the virtual machine. If the network bandwidth is required, the network bandwidth can be expanded by binding the ports. Generally, the implementation of the bound port needs to depend on the binding of an external switch, that is, not only the port of the virtual machine itself needs to be bound, but also an aggregation group needs to be added to the switch for an external physical network cable, so that the complete implementation of the bound port can be completed.
For the implementation of the bound port, if only the physical network card is used, the problems of service interruption and the like generally do not occur. But special problems may occur if binding ports is implemented by virtual machines. The most important of these problems is the potential interruption of the physical network card traffic. Virtual network cards are used in virtual machines, for example for kvm-type virtual machines, typically bound in order to create macvtap. The Macvtap needs to bind a physical network card and a network card actually existing in a host. And the Macvtap performs data interactive forwarding by depending on the corresponding host machine physical network card. When the port is bound, a plurality of macvtaps are bound, and the physical network card associated with the macvtap is not bound any more. This may cause that the port can only operate through the virtual network card after joining the aggregation group, and the service of the physical network card itself may be abnormal.
Therefore, in order to solve the above problem in the prior art, that is, after the virtual network card is bound, the corresponding port is added to the aggregation group, which results in the problem that the IP on the physical network card cannot be ping-through forwarded, an optimized implementation method for port-bound data forwarding of the aggregation group needs to be provided, so as to implement coexistence configuration of the physical network card and the virtual network card, thereby solving the problem of service interruption on the physical network card after the virtual network card is bound.
Disclosure of Invention
In view of this, the present invention provides an improved method, system, storage medium and device for binding ports of an aggregation group, so as to solve the problems in the prior art that after a virtual network card is bound, when a corresponding port joins the aggregation group, a service on a physical network card is interrupted.
In view of the above objects, in one aspect, the present invention provides a method for port bonding of an aggregation group, wherein the method comprises the following steps:
identifying the configuration conditions of a virtual network card and a physical network card in a network;
in response to the coexistence configuration of a virtual network card and a physical network card, determining a characteristic Mac address bit of the virtual network card and storing a corresponding port forwarding table for standby;
adding the port into an aggregation group, judging the address type in a forwarding table of the aggregation group based on the characteristic Mac address bit, and analyzing the Mac address and the type corresponding to each data packet;
responding to the address type as a virtual network card, and performing data forwarding based on preset forwarding logic according to the Mac address;
and in response to the address type being a physical network card, determining a forwarding port based on a stored port forwarding table according to the Mac address to perform data forwarding.
In some embodiments of the method for aggregating port bindings for a group according to the present invention, the method further comprises:
and responding to the coexistence configuration that the virtual network card and the physical network card do not exist, adding the ports into the aggregation group and executing data forwarding according to the bound port mode.
In some embodiments of the method for port binding of an aggregation group according to the present invention, the determining a characteristic Mac address bit of a virtual network card and saving a corresponding port forwarding table for standby in response to the existence of a coexistence configuration of the virtual network card and a physical network card further includes:
and determining different characteristic Mac address bits according to the virtual network cards of different types of virtual machines.
In some embodiments of the method for port binding of an aggregation group according to the present invention, the adding a port to an aggregation group, determining an address type in a forwarding table of the aggregation group based on the characteristic Mac address bits, and resolving a Mac address and a Mac address type corresponding to each packet further includes:
comparing an address to the characteristic Mac address bits;
responding to the address matched with the characteristic Mac address bit, and judging that the type corresponding to the address is a virtual network card;
and responding to the fact that the address is not matched with the characteristic Mac address bit, and judging that the type corresponding to the address is a physical network card.
In another aspect of the present invention, a system for port bonding of an aggregation group is further provided, including:
the network configuration identification module is configured to identify the configuration conditions of a virtual network card and a physical network card in a network;
the coexistence configuration processing module is configured to respond to coexistence configuration of a virtual network card and a physical network card, determine a characteristic Mac address bit of the virtual network card and store a corresponding port forwarding table for standby;
the port aggregation judging module is configured to add a port into an aggregation group, judge the address type in a forwarding table of the aggregation group based on the characteristic Mac address bit and analyze the Mac address and the type corresponding to each data packet;
a virtual network card forwarding module configured to respond to the address type being a virtual network card, and perform data forwarding based on a preset forwarding logic according to the Mac address;
and the physical network card forwarding module is configured to respond to the address type being the physical network card, and determine a forwarding port based on a stored port forwarding table according to the Mac address so as to execute data forwarding.
In some embodiments of the system for aggregating port bindings for groups according to the invention, the system further comprises:
a single port forwarding module configured to add a port to the aggregation group and perform data forwarding according to the bound port mode in response to an absence of a coexistence configuration of the virtual network card and the physical network card.
In some embodiments of the system for port bonding for an aggregation group according to the invention, the coexistence configuration handling module is further configured to:
and determining different characteristic Mac address bits according to the virtual network cards of different types of virtual machines.
In some embodiments of the system for aggregating port bindings for groups according to the invention, the port aggregation decision module is further configured to:
comparing an address to the characteristic Mac address bits;
responding to the address matched with the characteristic Mac address bit, and judging that the type corresponding to the address is a virtual network card;
and responding to the fact that the address is not matched with the characteristic Mac address bit, and judging that the type corresponding to the address is a physical network card.
In still another aspect of the present invention, a computer-readable storage medium is further provided, which stores computer program instructions, when executed, implement any of the above methods for port binding of an aggregation group according to the present invention.
In yet another aspect of the present invention, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, performs any of the above-described methods for port binding for an aggregation-group according to the present invention.
The invention has at least the following beneficial technical effects: based on the invention, a method for solving the service interruption of the physical network card after the virtual network card is bound is provided, after the aggregation group is added, the Mac address of the forwarding table is checked in the corresponding forwarding table, the Mac address of the virtual network card has a relatively consistent coding type (for example, the Mac address of the virtual network card corresponding to kvm starts at 52:54: 00), and the Mac address of the type is checked, namely the Mac address is regarded as a bound port of the virtual network card, so that a data packet corresponding to the physical network card is not filtered, and the problem of service interruption on the physical network card after the virtual network card is bound is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
In the figure:
FIG. 1 shows a schematic block diagram of an embodiment of a method for aggregating port bindings for a group in accordance with the present invention;
FIG. 2 illustrates a schematic block diagram of an embodiment of a system for aggregating port bindings for a group in accordance with the present invention;
FIG. 3 depicts a schematic diagram of an embodiment of a computer-readable storage medium to implement a method for aggregating port bindings for a group, in accordance with the present invention;
fig. 4 shows a hardware configuration diagram of an embodiment of a computer device implementing the method for port binding of an aggregation group according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two non-identical entities with the same name or different parameters, and it is understood that "first" and "second" are only used for convenience of expression and should not be construed as limiting the embodiments of the present invention. Furthermore, the terms "comprises" and "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements does not include all of the other steps or elements inherent in the list.
The invention provides a method for solving the problem of service interruption of a physical network card after a virtual network card is bound.
Generally, in order to implement a bound port in a network, aggregation group processing in a switch is required. And after the port is added into the aggregation group, judging and forwarding according to the mode of the bound port. For example, after the ports 1, 2, and 3 are bound, the bound ports are usually in a polling mode, that is, each packet is sequentially forwarded at three ports in sequence, thereby achieving the purpose of increasing the bandwidth. If both ends of the data forwarding link connection are configured accurately, then there is generally no problem. However, if the data is continuously sent to the network card corresponding to port 1 on port 1 according to the forwarding sequence only after the switch is configured to join the aggregation group, the data may be sent to the network card corresponding to port 2 due to the polling forwarding policy. At this time, the network card at port 1 will lose packets, and then service interruption occurs. Therefore, the problem of service interruption can not occur only when the same type of network card is bound and successfully set.
However, with the improvement of development technology and different market demands, the requirement on the virtual machine is higher and higher, and more products need to run value-added services and the like in the virtual machine. Therefore, the establishment and participation of virtual machines is increasingly required. Therefore, when the virtual network card and the physical network card are shared, that is, when the virtual network card performs port binding, the network port corresponding to the associated physical network card must be added to the aggregation group in the switch. At this time, the aggregation group in the switch fixes the forwarding table as the bound Mac address of the virtual network card, because the forwarding judgment is performed according to the bound port mode. In this case, the physical network card will no longer be used, but is filtered because the Mac address of the virtual network card has already been bound. At this time, data interaction cannot be performed due to forwarding limitation of the switch in the data service on the physical network card associated with the virtual network card, so that problems such as service interruption occur.
To address this problem, it is proposed according to the present invention to distinguish the types of virtual network cards and physical network cards by means of Mac addresses. The Mac address is a unique identifier of the network device. The Mac addresses of different vendors are not identical and can be distinguished from each other. Typically, the Mac address for the virtual network card is also fixed and differentiated. For example, the virtual network card Mac address of a kvm-type virtual machine starts at 52:54:00, the virtual network card Mac address of a vmware-type virtual machine starts at 00:0C:29, and so on. Therefore, when the port is added into the aggregation group, whether the forwarding table of the aggregation group is the Mac address of the virtual machine can be judged according to the port, and then the analysis is carried out according to the Mac address in the actual data packet. If the Mac address of the physical network card exists, filtering is not performed according to the filtering rule of the previous binding convention, and the Mac address is forwarded as a common port. Therefore, the purpose of coexistence and use of the binding port of the virtual network card and the physical network card can be achieved, and the problem that the virtual network card and the physical network card cannot coexist after being bound so that the service of the physical network card is interrupted is solved. In addition, aiming at different scenes, the function can be used as a configuration option, and the virtual network card and the physical network card can be used together more flexibly.
To this end, in a first aspect of the invention, a method 100 for port bonding for an aggregation group is provided. Fig. 1 shows a schematic block diagram of an embodiment of a method for aggregating port bindings for a group according to the present invention. In the embodiment shown in fig. 1, the method comprises:
step S110: identifying the configuration conditions of a virtual network card and a physical network card in a network;
step S120: in response to the coexistence configuration of a virtual network card and a physical network card, determining a characteristic Mac address bit of the virtual network card and storing a corresponding port forwarding table for standby; step S130: adding the port into an aggregation group, judging the address type in a forwarding table of the aggregation group based on the characteristic Mac address bit, and analyzing the Mac corresponding to each data packet
The address and its type;
step S140: responding to the address type as a virtual network card, and performing data forwarding based on preset forwarding logic according to the Mac address;
step S150: and in response to the address type being a physical network card, determining a forwarding port based on a stored port forwarding table according to the Mac address to perform data forwarding.
In summary, to solve the above problems in the prior art, it is first required to determine whether there is a need for coexistence of a virtual network card and a physical network card in the current network environment. Therefore, in step S110, the configuration of the virtual network card and the physical network card in the network is identified. In other words, it is first determined whether a coexistence configuration exists between the virtual network card and the physical network card. Subsequently, when it is determined that there is a requirement that the virtual network card and the physical network card coexist in the current network environment, that is, it is determined that there is a coexistence configuration of the virtual network card and the physical network card, in step S120, the types of the virtual network card and the physical network card are distinguished by means of the Mac address according to the concept of the present invention. Specifically, the characteristic Mac address bit of the virtual network card is determined, and the corresponding port forwarding table is saved for standby before the port joins the aggregation group.
On this basis, in step S130, the port is added to the aggregation group, and it is determined whether the address type in the forwarding table of the aggregation group belongs to the virtual network card or the physical network card based on the characteristic Mac address bit determined in step S120. And resolves the Mac address and its type for each packet.
If the address type is determined to be the virtual network card, data forwarding is performed based on a preset forwarding logic according to the Mac address in step S140. Namely, data forwarding through the virtual network card and the switch of the virtual machine is normally performed.
If the address type is determined not to be a virtual network card but a physical network card, a forwarding port is determined based on the saved port forwarding table according to the Mac address in step S150 to perform data forwarding. That is, if the Mac address in the data packet is a physical network card, the Mac address is not a virtual network card, and the Mac address is compared with the stored forwarding table data, so as to determine which forwarding port to forward. If the data in the forwarding table does not exist, the forwarding table is used as a common port for matching forwarding.
In some embodiments of the method 100 for aggregating port bindings for a group according to the present invention, the method further comprises:
step S160: and responding to the coexistence configuration that the virtual network card and the physical network card do not exist, adding the ports into the aggregation group and executing data forwarding according to the bound port mode.
Aiming at different scenes, the coexistence function can be used as a configuration option, and the virtual network card and the physical network card can be used in a coexistence manner more flexibly. Therefore, when it is determined that the requirement of coexistence of the virtual network card and the physical network card does not exist in the current network environment, that is, it is determined that coexistence configuration of the virtual network card and the physical network card does not exist, in step S160, the ports are added into the aggregation group and data forwarding is performed according to the bound port mode, that is, operation is performed according to the aggregation group-based data forwarding mode in the prior art. The requirement that coexistence does not exist includes a case where only the physical network card is used, and also includes a case where the virtual network card and the physical network card are used but the physical network card is not needed to execute the service.
In some embodiments of the method 100 for port binding of an aggregation group according to the present invention, the step S120, in response to the existence of the coexistence configuration of the virtual network card and the physical network card, determining the Mac address bit of the characteristic of the virtual network card and saving the corresponding port forwarding table for standby further includes: and determining different characteristic Mac address bits according to the virtual network cards of different types of virtual machines.
Specifically, the Mac address is a unique identification of the network device. The Mac addresses of different vendors are not identical and can be distinguished from each other. Typically, the Mac address for the virtual network card is also fixed and differentiated. For example, the virtual network card Mac address of a kvm-type virtual machine starts at 52:54:00, the virtual network card Mac address of a vmware-type virtual machine starts at 00:0C:29, and so on. Therefore, when a port joins the aggregate group, the characteristic Mac address bits can be determined accordingly. For example, for a virtual network card of a kvm type virtual machine, the corresponding characteristic Mac address bit is "52: 54: 00"; aiming at a virtual network card of a vmware type virtual machine, the corresponding characteristic Mac address bits are '00: 0C: 29', and the like.
In some embodiments of the method 100 for port binding of an aggregation group according to the present invention, the step S130 of adding a port to an aggregation group, determining an address type in a forwarding table of the aggregation group based on the characteristic Mac address bits, and resolving a Mac address and a Mac type corresponding to each packet further includes:
step S131: comparing an address to the characteristic Mac address bits;
step S132: responding to the address matched with the characteristic Mac address bit, and judging that the type corresponding to the address is a virtual network card;
step S133: and in response to that the address is not matched with the characteristic Mac address bit, judging that the type corresponding to the address is a physical network card.
Specifically, in order to determine the address type in the forwarding table of the aggregation group based on the characteristic Mac address bits and resolve the Mac address and its type corresponding to each packet, according to a further embodiment, the identified resolved address is first compared in step S131 with the characteristic Mac address bits determined in step S120. For example, the characteristic Mac address bits corresponding to the virtual network card for a kvm-type virtual machine are "52: 54: 00"; and comparing the corresponding characteristic Mac address bits of the virtual network card of the vmware type virtual machine to be 00:0C: 29. And when the address is matched with the characteristic Mac address bit, namely the first three bits of the address accord with the characteristic Mac address bit, judging that the type corresponding to the address is a virtual network card. And when the address is not matched with the characteristic Mac address bit, namely the first three bits of the address are not the characteristic Mac address bit, judging that the type corresponding to the address is a virtual network card.
Therefore, in summary, the present invention compares the virtual network card and the physical network card by judging the Mac address of the aggregation group forwarding table, and further realizes mutual noninterference between data exchange of the virtual network card and data exchange of the physical network card according to the usage scenario, thereby achieving the purpose of coexistence and usage of the virtual network card and the physical network card.
In a second aspect of the present invention, a system 200 for port bonding for an aggregation group is also provided. Fig. 2 shows a schematic block diagram of an embodiment of a system 200 for aggregating port bindings for a group in accordance with the invention. As shown in fig. 2, the system includes:
a network configuration identification module 210, wherein the network configuration identification module 210 is configured to identify the configuration conditions of a virtual network card and a physical network card in a network;
a coexistence configuration processing module 220, where the coexistence configuration processing module 220 is configured to determine a characteristic Mac address bit of a virtual network card and store a corresponding port forwarding table for standby in response to coexistence configuration of the virtual network card and a physical network card;
a port aggregation determining module 230, where the port aggregation determining module 230 is configured to add a port into an aggregation group, determine an address type in a forwarding table of the aggregation group based on the characteristic Mac address bit, and analyze a Mac address and a type thereof corresponding to each packet;
a virtual network card forwarding module 240, where the virtual network card forwarding module 240 is configured to respond that the address type is a virtual network card, and perform data forwarding based on a preset forwarding logic according to the Mac address;
a physical network card forwarding module 250, where the physical network card forwarding module 250 is configured to determine, in response to the address type being a physical network card, a forwarding port based on a stored port forwarding table according to the Mac address to perform data forwarding.
In some embodiments of a system 200 for aggregating port bindings for groups in accordance with the present invention, the system further comprises:
a single port forwarding module configured to add a port to the aggregation group and perform data forwarding according to the bound port mode in response to an absence of a coexistence configuration of the virtual network card and the physical network card.
In some embodiments of the system 200 for port bonding for an aggregation-group according to the invention, the coexistence configuration processing module 220 is further configured to:
and determining different characteristic Mac address bits according to the virtual network cards of different types of virtual machines.
In some embodiments of the system 200 for aggregating port bindings for groups according to the invention, the port aggregation decision module 230 is further configured to:
comparing an address to the characteristic Mac address bits;
responding to the address matched with the characteristic Mac address bit, and judging that the type corresponding to the address is a virtual network card;
and responding to the fact that the address is not matched with the characteristic Mac address bit, and judging that the type corresponding to the address is a physical network card.
In a third aspect of the embodiments of the present invention, a computer-readable storage medium is further provided, and fig. 3 is a schematic diagram of a computer-readable storage medium for a method for aggregating port bindings of a group, according to an embodiment of the present invention. As shown in fig. 3, the computer-readable storage medium 300 stores computer program instructions 310, the computer program instructions 310 being executable by a processor. The computer program instructions 310, when executed, implement the method of any of the embodiments described above.
It should be understood that all of the embodiments, features and advantages set forth above with respect to the method for port binding for an aggregation-group according to the present invention apply equally, without conflict with each other, to the system and storage medium for port binding for an aggregation-group according to the present invention.
In a fourth aspect of the embodiments of the present invention, there is further provided a computer device 400, comprising a memory 420 and a processor 410, wherein the memory stores a computer program, and the computer program, when executed by the processor, implements the method of any one of the above embodiments.
Fig. 4 is a schematic hardware structural diagram of an embodiment of a computer device for executing the method for port binding of an aggregation group according to the present invention. Taking the computer device 400 shown in fig. 4 as an example, the computer device includes a processor 410 and a memory 420, and may further include: an input device 430 and an output device 440. The processor 410, the memory 420, the input device 430, and the output device 440 may be connected by a bus or other means, such as the bus connection in fig. 4. Input device 430 may receive input numeric or character information and generate signal inputs related to port bindings for the aggregation group. The output device 440 may include a display device such as a display screen.
The memory 420 is a non-volatile computer-readable storage medium, and can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the resource monitoring method in the embodiment of the present application. The memory 420 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by use of the resource monitoring method, and the like. Further, the memory 420 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 420 may optionally include memory located remotely from processor 410, which may be connected to local modules via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The processor 410 executes various functional applications of the server and data processing by executing nonvolatile software programs, instructions and modules stored in the memory 420, that is, implements the resource monitoring method of the above-described method embodiment.
Finally, it is noted that the computer-readable storage medium (e.g., memory) herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile memory can include Read Only Memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM is available in a variety of forms such as synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
The various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein may be implemented or performed with the following components designed to perform the functions herein: a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP, and/or any other such configuration.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items. The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method for port bonding of an aggregation group, comprising the steps of:
identifying the configuration conditions of a virtual network card and a physical network card in a network;
in response to the coexistence configuration of a virtual network card and a physical network card, determining a characteristic Mac address bit of the virtual network card and storing a corresponding port forwarding table for standby;
adding the port into an aggregation group, judging the address type in a forwarding table of the aggregation group based on the characteristic Mac address bit, and analyzing the Mac address and the type corresponding to each data packet;
responding to the address type as a virtual network card, and performing data forwarding based on preset forwarding logic according to the Mac address;
and in response to the address type being a physical network card, determining a forwarding port based on a stored port forwarding table according to the Mac address to perform data forwarding.
2. The method of claim 1, further comprising:
and responding to the coexistence configuration of the virtual network card and the physical network card, adding the ports into the aggregation group and performing data forwarding according to the bound port mode.
3. The method of claim 1 or 2, wherein the determining the Mac address bits of the feature of the virtual network card and saving the corresponding port forwarding table as a standby in response to the existence of the coexistence configuration of the virtual network card and the physical network card further comprises:
and determining different characteristic Mac address bits according to the virtual network cards of different types of virtual machines.
4. The method of claim 1 or 2, wherein the adding a port into an aggregation group, determining an address type in a forwarding table of the aggregation group based on the characteristic Mac address bits, and resolving a Mac address and a Mac address type corresponding to each packet further comprises:
comparing an address to the characteristic Mac address bits;
responding to the address matched with the characteristic Mac address bit, and judging that the type corresponding to the address is a virtual network card;
and responding to the fact that the address is not matched with the characteristic Mac address bit, and judging that the type corresponding to the address is a physical network card.
5. A system for port bonding of an aggregation group, comprising:
the network configuration identification module is configured to identify the configuration conditions of a virtual network card and a physical network card in a network;
the coexistence configuration processing module is configured to respond to coexistence configuration of a virtual network card and a physical network card, determine a characteristic Mac address bit of the virtual network card and store a corresponding port forwarding table for standby;
the port aggregation judging module is configured to add a port into an aggregation group, judge the address type in a forwarding table of the aggregation group based on the characteristic Mac address bit and analyze the Mac address and the type corresponding to each data packet;
a virtual network card forwarding module configured to respond to the address type being a virtual network card, and perform data forwarding based on a preset forwarding logic according to the Mac address;
and the physical network card forwarding module is configured to respond to the address type being the physical network card, and determine a forwarding port based on a stored port forwarding table according to the Mac address so as to execute data forwarding.
6. The system of claim 5, further comprising:
a single port forwarding module configured to add a port to the aggregation group and perform data forwarding according to the bound port mode in response to an absence of a coexistence configuration of the virtual network card and the physical network card.
7. The system according to claim 5 or 6, wherein the coexistence configuration processing module is further configured to:
and determining different characteristic Mac address bits according to the virtual network cards of different types of virtual machines.
8. The system of claim 5 or 6, wherein the port aggregation decision is further configured to:
comparing an address to the characteristic Mac address bits;
responding to the address matched with the characteristic Mac address bit, and judging that the type corresponding to the address is a virtual network card;
and responding to the fact that the address is not matched with the characteristic Mac address bit, and judging that the type corresponding to the address is a physical network card.
9. A computer readable storage medium having stored thereon computer program instructions which, when executed, implement a method for port binding for an aggregation-group as claimed in any of claims 1 to 4.
10. A computer device comprising a memory and a processor, characterized in that the memory has stored therein a computer program which, when executed by the processor, performs the method for port binding of an aggregation group as claimed in any one of claims 1 to 4.
CN202210366611.2A 2022-04-08 2022-04-08 Method, system, storage medium and device for port binding of aggregation group Active CN114915592B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210366611.2A CN114915592B (en) 2022-04-08 2022-04-08 Method, system, storage medium and device for port binding of aggregation group

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210366611.2A CN114915592B (en) 2022-04-08 2022-04-08 Method, system, storage medium and device for port binding of aggregation group

Publications (2)

Publication Number Publication Date
CN114915592A true CN114915592A (en) 2022-08-16
CN114915592B CN114915592B (en) 2023-08-15

Family

ID=82763772

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210366611.2A Active CN114915592B (en) 2022-04-08 2022-04-08 Method, system, storage medium and device for port binding of aggregation group

Country Status (1)

Country Link
CN (1) CN114915592B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116055426A (en) * 2023-03-06 2023-05-02 珠海星云智联科技有限公司 Method, equipment and medium for traffic offload forwarding in multi-binding mode
CN117692382A (en) * 2024-02-04 2024-03-12 珠海星云智联科技有限公司 Link aggregation method, network card, equipment and medium
CN117692382B (en) * 2024-02-04 2024-06-07 珠海星云智联科技有限公司 Link aggregation method, network card, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103117873A (en) * 2013-01-11 2013-05-22 杭州初灵信息技术股份有限公司 Equipment in-band management achieving method based on media access control (MAC) frame
CN107257291A (en) * 2017-05-26 2017-10-17 深圳市杉岩数据技术有限公司 A kind of network equipment data interactive method and system
CN111355716A (en) * 2020-02-22 2020-06-30 苏州浪潮智能科技有限公司 Method, system, equipment and medium for determining unique identifier of virtual machine
CN112235136A (en) * 2020-10-10 2021-01-15 苏州浪潮智能科技有限公司 Network file system backup method, system, terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103117873A (en) * 2013-01-11 2013-05-22 杭州初灵信息技术股份有限公司 Equipment in-band management achieving method based on media access control (MAC) frame
CN107257291A (en) * 2017-05-26 2017-10-17 深圳市杉岩数据技术有限公司 A kind of network equipment data interactive method and system
CN111355716A (en) * 2020-02-22 2020-06-30 苏州浪潮智能科技有限公司 Method, system, equipment and medium for determining unique identifier of virtual machine
CN112235136A (en) * 2020-10-10 2021-01-15 苏州浪潮智能科技有限公司 Network file system backup method, system, terminal and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116055426A (en) * 2023-03-06 2023-05-02 珠海星云智联科技有限公司 Method, equipment and medium for traffic offload forwarding in multi-binding mode
CN116055426B (en) * 2023-03-06 2023-06-23 珠海星云智联科技有限公司 Method, equipment and medium for traffic offload forwarding in multi-binding mode
CN117692382A (en) * 2024-02-04 2024-03-12 珠海星云智联科技有限公司 Link aggregation method, network card, equipment and medium
CN117692382B (en) * 2024-02-04 2024-06-07 珠海星云智联科技有限公司 Link aggregation method, network card, equipment and medium

Also Published As

Publication number Publication date
CN114915592B (en) 2023-08-15

Similar Documents

Publication Publication Date Title
CN111367983B (en) Database access method, system, device and storage medium
CN110177010B (en) Link switching method and device
CN114915592B (en) Method, system, storage medium and device for port binding of aggregation group
CN109039947B (en) Network packet duplication removing method and device, network distribution equipment and storage medium
JP6701377B2 (en) SIP information analysis method, device, server and medium
CN112511438B (en) Method and device for forwarding message by using flow table and computer equipment
US11271985B2 (en) Method and network node for handling SCTP packets
CN116566752B (en) Safety drainage system, cloud host and safety drainage method
CN112217780A (en) Apparatus and method for identifying attacks in a computer network
US10623421B2 (en) Detecting IP address theft in data center networks
CN116055403A (en) Message data transmission method, device and server
CN112217782B (en) Apparatus and method for identifying attacks in a computer network
CN111988446B (en) Message processing method and device, electronic equipment and storage medium
US11729188B2 (en) Method and device for intrusion detection in a computer network
CN115314319A (en) Network asset identification method and device, electronic equipment and storage medium
CN110611678B (en) Method for identifying message and access network equipment
CN111200505B (en) Message processing method and device
CN109756454B (en) Data interaction method, device and system
US10868729B2 (en) System and method for automatically determining the optimal topology for multiple networked devices
US11799756B2 (en) Route learning method, packet forwarding method and device, and storage medium
CN110098982B (en) Link state providing method, device, router and computer readable storage medium
CN111106982B (en) Information filtering method and device, electronic equipment and storage medium
US20160182443A1 (en) Communication device, communication method, and program
CN117857668A (en) Internet surfing behavior management method and device and Internet surfing behavior management equipment
CN116996514A (en) Computing task allocation method, system, electronic device, medium and program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant