CN111030859B - Configuration method and device for port convergence - Google Patents

Configuration method and device for port convergence Download PDF

Info

Publication number
CN111030859B
CN111030859B CN201911256190.2A CN201911256190A CN111030859B CN 111030859 B CN111030859 B CN 111030859B CN 201911256190 A CN201911256190 A CN 201911256190A CN 111030859 B CN111030859 B CN 111030859B
Authority
CN
China
Prior art keywords
port
convergence
name
aggregation
list
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.)
Active
Application number
CN201911256190.2A
Other languages
Chinese (zh)
Other versions
CN111030859A (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 CN201911256190.2A priority Critical patent/CN111030859B/en
Publication of CN111030859A publication Critical patent/CN111030859A/en
Application granted granted Critical
Publication of CN111030859B publication Critical patent/CN111030859B/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
    • 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

Landscapes

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

Abstract

The invention relates to a configuration method and a device for port convergence, wherein the method comprises the following steps: establishing a port convergence list in a data center switch system; in response to receiving a creation instruction of port convergence, checking whether a port convergence name to be created contained in the creation instruction exists in a port convergence list; in response to the fact that the port convergence list does not have the port convergence name to be created, creating a port convergence table item by the port convergence name to be created, and adding a public configuration and a verified naked port; in response to receiving a deleting instruction of port convergence, checking whether a port convergence name to be deleted contained in the deleting instruction exists in a port convergence list; and responding to the port convergence name to be deleted in the port convergence list, cleaning the corresponding port and public configuration, and deleting the corresponding port convergence list item from the port convergence list. The invention not only realizes the function of port convergence, but also better ensures the network security and the stability of the switch system in the configuration process.

Description

Configuration method and device for port convergence
Technical Field
The invention relates to the technical field of switches. The invention further relates to a configuration method and a configuration device for port convergence.
Background
Currently, there are many small and medium enterprises using traditional switches of the Huawei, Huasan and Cisco brands, however, more and more large enterprises like Google, Amazon and Facebook have started to take the lead to use white-box switches. The former is programmable and the latter is not programmable, as compared to conventional switches. The white box switch has the biggest highlight of strong openness, that is, the white box switch has more choices for users in terms of operating systems, software and the like.
TRUNK or portchannel is the meaning of port convergence, that is, through the setting of configuration software, 2 or more physical ports are combined together into a logical path, so as to increase the bandwidth between a switch and a network node, the bandwidths belonging to the several ports are combined, a single high bandwidth which is several times as high as that of an independent port is provided for the ports, data can be transmitted through a plurality of bound physical links at the same time, the link redundancy function is achieved, and when a network fails or one or more links are disconnected due to other reasons, the remaining links can also work. Based on a port convergence (Trunk/portchannel) function, the parallel transmission between the switches, the switches and the routers, and the hosts and the switches or the routers through two or more ports is allowed to provide higher bandwidth, larger throughput and greatly provide the whole network capacity.
The port configuration mode of the current port convergence supports two modes: manual static convergence configuration and dynamic LACP convergence mode. And the configuration of manual static convergence is adopted, protocol messages do not need to be interacted among the aggregated devices, and the aggregation of the ports is completely specified manually by an administrator. The dynamic LACP aggregation configuration dynamic LACP aggregation mode does not need to manually create an aggregation group or designate an aggregation group of ports, LACPDUs are interacted among devices, which ports have aggregated conditions are determined according to parameters such as opposite terminal device IDs received on each port, hardware limitations of the device and the like, and then the same Key value is distributed to each port, so that the ports can be aggregated.
The network operating system (such as sonic, etc.) used by the current data center switch is open source software, and the development process is short, so that various problems exist at present. For example, an already existing portchannel can be created repeatedly; a port that has joined a portchannel can be repeatedly added to other portchannels; when the configuration of a port member port exists, the port member port can also be normally added into the port, so that the problems that the port has the configuration of the port and the configuration common to the port and the like are caused. When there is service forwarding, the switch system cannot determine which portchannel, which member port, and which configuration is accurate, which finally causes service confusion, resulting in serious consequences such as data obstruction of the whole network, even database crash, and the like.
Therefore, it is necessary to provide a more effective and safer port convergence configuration method, which not only can implement the port convergence function during the configuration process, but also can better ensure the network security and the stability of the switch system.
Disclosure of Invention
In one aspect, the present invention provides a method for configuring port convergence, where the method includes the following steps:
establishing a port convergence list in a data center switch system;
in response to receiving a creation instruction of port convergence, checking whether a port convergence name to be created contained in the creation instruction exists in a port convergence list;
in response to the fact that the port convergence list does not have the port convergence name to be created, creating a port convergence table item by the port convergence name to be created, and adding a public configuration and a verified naked port;
in response to receiving a deleting instruction of port convergence, checking whether a port convergence name to be deleted contained in the deleting instruction exists in a port convergence list;
and responding to the port convergence name to be deleted in the port convergence list, cleaning the corresponding port and public configuration, and deleting the corresponding port convergence list item from the port convergence list.
According to an embodiment of the configuration method for port convergence, the method further comprises:
and feeding back a prompt that the port convergence to be created already exists in response to the port convergence name to be created existing in the port convergence list.
According to an embodiment of the configuration method of port convergence of the present invention, the method further comprises:
and feeding back a prompt that the port aggregation to be deleted does not exist in response to the fact that the port aggregation name to be deleted does not exist in the port aggregation list.
According to the embodiment of the configuration method for port convergence, in response to that no port convergence name to be created exists in the port convergence list, creating a port convergence table entry with the port convergence name to be created, and adding a public configuration and a verified naked port further includes:
adding public configuration in the port convergence table entry;
checking whether a port to be added is marked with a port convergence name;
in response to the port to be added not marking the port convergence name, checking whether the port to be added has a configuration;
and responding to the fact that the port to be added is not configured, marking the port convergence name on the port to be added, and adding the identifier of the port to be added into the corresponding port convergence table entry.
According to the embodiment of the configuration method for port aggregation, in response to a port aggregation name to be deleted existing in the port aggregation list, the method for clearing the corresponding port and the public configuration and deleting the corresponding port aggregation entry from the port aggregation list further comprises the following steps:
deleting the public configuration in the port convergence list item corresponding to the port convergence name to be deleted according to the record of the port convergence list item;
deleting the port convergence name to be deleted marked on the port corresponding to the port convergence name to be deleted according to the record of the port convergence table entry;
and deleting the corresponding port aggregation table entry from the port aggregation list.
In another aspect, the present invention further provides a port convergence configuration device, where the port convergence configuration device includes:
at least one processor; and
a memory storing processor-executable program instructions that, when executed by the processor, perform the steps of:
establishing a port convergence list in a data center switch system;
in response to receiving a creation instruction of port convergence, checking whether a port convergence name to be created contained in the creation instruction exists in a port convergence list;
in response to the fact that the port convergence list does not have the port convergence name to be created, creating a port convergence table item by the port convergence name to be created, and adding a public configuration and a verified naked port;
in response to receiving a deleting instruction of port convergence, checking whether a port convergence name to be deleted contained in the deleting instruction exists in a port convergence list;
and responding to the port convergence name to be deleted in the port convergence list, cleaning the corresponding port and public configuration, and deleting the corresponding port convergence list item from the port convergence list.
An embodiment of the port aggregation configuration apparatus according to the invention, wherein the program instructions, when executed by the processor, further perform the steps of:
and feeding back a prompt that the port convergence to be created already exists in response to the port convergence name to be created existing in the port convergence list.
An embodiment of the port aggregation configuration apparatus according to the invention, wherein the program instructions, when executed by the processor, further perform the steps of:
and feeding back a prompt that the port aggregation to be deleted does not exist in response to the fact that the port aggregation name to be deleted does not exist in the port aggregation list.
According to an embodiment of the configuration apparatus for port aggregation, in response to that no port aggregation name to be created exists in the port aggregation list, creating a port aggregation table entry with the port aggregation name to be created, and adding a public configuration and a verified naked port further includes:
adding public configuration in the port convergence table entry;
checking whether a port to be added is marked with a port convergence name;
in response to the port to be added not marking the port convergence name, checking whether the port to be added has a configuration;
and responding to the fact that the port to be added is not configured, marking a port convergence name on the port to be added, and adding the identifier of the port to be added into the corresponding port convergence table entry.
According to the embodiment of the configuration apparatus for port aggregation in the present invention, in response to a port aggregation name to be deleted existing in the port aggregation list, cleaning the corresponding port and the public configuration, and deleting the corresponding port aggregation entry from the port aggregation list further includes:
deleting the public configuration in the port convergence list item corresponding to the port convergence name to be deleted according to the record of the port convergence list item;
deleting the port convergence name to be deleted marked on the port corresponding to the port convergence name to be deleted according to the record of the port convergence table entry;
and deleting the corresponding port aggregation table entry from the port aggregation list.
By adopting the technical scheme, the invention at least has the following beneficial effects: adding port convergence, deleting inspection, adding and deleting inspection of a port to be added and verifying of configuration of the port to be added are added in the configuration process of the port convergence, so that repeated creation of the existing portchannel is effectively avoided; the port which has added the portchannel is repeatedly added into other portchannels; when the configuration exists, the port member port is added into the port channel, so that the problems that the port has the port configuration per se and the common configuration of the port channel and the like are caused, the function of port convergence is realized in the configuration process, and the network security and the stability of a switch system are better ensured.
The present invention provides aspects of embodiments, which should not be used to limit the scope of the present invention. Other embodiments are contemplated in accordance with the techniques described herein, as will be apparent to one of ordinary skill in the art upon study of the following figures and detailed description, and are intended to be included within the scope of the present application.
Embodiments of the invention will be explained and described in more detail below with reference to the drawings, but they should not be construed as limiting the invention.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are required in the prior art and the description of the embodiments will be briefly introduced below, components in the drawings are not necessarily drawn to scale, and related elements may be omitted, or in some cases the scale may have been exaggerated in order to emphasize and clearly show the novel features described herein. In addition, the structural order may be arranged differently, as is known in the art.
FIG. 1 shows a schematic block diagram of an embodiment of a configuration method of port aggregation according to the present invention;
FIG. 2 is a schematic block diagram illustrating other embodiments of a configuration method for port aggregation in accordance with the present invention;
fig. 3 shows a schematic block diagram of a further embodiment of a configuration method of port aggregation according to the present invention.
Detailed Description
While the present invention may be embodied in various forms, there is shown in the drawings and will hereinafter be described some exemplary and non-limiting embodiments, with the understanding that the present disclosure is to be considered an exemplification of the invention and is not intended to limit the invention to the specific embodiments illustrated.
It should be noted that the steps mentioned in the following description of the embodiments of the present invention are only numbered for convenience and clarity of indicating the steps without specific description, and do not limit the sequence of the steps.
The method aims to solve the problem that the existing portchannel in the prior art can be repeatedly created; a port that has joined a portchannel can be repeatedly added to other portchannels; the invention provides a mechanism for adding the addition and deletion check of port convergence and the addition and deletion check of the port to be added and the check of the configuration of the port to be added in the configuration process of the port convergence. Fig. 1 shows a schematic block diagram of an embodiment of a configuration method of port aggregation according to the present invention. In the embodiment shown in fig. 1, the method comprises at least the following steps:
s1: establishing a port convergence list in a data center switch system;
s2: in response to receiving a creation instruction of port convergence, checking whether a port convergence name to be created contained in the creation instruction exists in a port convergence list;
s3: in response to the fact that the port convergence list does not have the port convergence name to be created, creating a port convergence table item by the port convergence name to be created, and adding a public configuration and a verified naked port;
s4: in response to receiving a deleting instruction of port convergence, checking whether a port convergence name to be deleted contained in the deleting instruction exists in a port convergence list;
s5: and responding to the port convergence list with the port convergence name to be deleted, cleaning the corresponding port and public configuration, and deleting the corresponding port convergence list item from the port convergence list.
Specifically, the information related to port aggregation is preferably stored in a database of the white-box switch system in the form of a port aggregation list, and when performing related operations such as data transmission, the switch may obtain information related to a portchannel, a port, a configuration, and the like by reading the port aggregation list in the database, and select a corresponding link to perform the related operations based on the information. Therefore, first step S1 is to establish a port aggregation list in the data center switch system. During the configuration process of port aggregation, the operation and maintenance personnel input corresponding instructions to create and delete portchannels and add and delete ports. After receiving the instruction, the method of the invention does not directly execute the corresponding operation, but firstly carries out the relevant checking work. On one hand, the method comprises the portchannel and the port check when creating the portchannel, and on the other hand, the method comprises the portchannel and the port check when deleting the portchannel.
For the first aspect, when a creation instruction of port aggregation is received, step S2 checks whether a port aggregation name included in the creation instruction exists in a port aggregation list, that is, checks whether a port channel to be created has already been created, and avoids the problem of repeated creation of existing port channels. When it is determined that the port channel to be created has not been created, that is, the port aggregation list does not have the port aggregation name to be created, step S3 creates a port aggregation entry with the port aggregation name to be created, and adds a port with common configuration and verified naked configuration, where the verified port ensures that the port has not been added to other port channels, and avoids the problem that the port that has been added to a port channel is repeatedly added to other port channels. The specific naked port verification process is further explained in the following embodiments.
On the other hand, when a deletion instruction of port aggregation is received, step S4 checks whether a port aggregation name included in the deletion instruction exists in the port aggregation list, so as to ensure that the port channel to be deleted is possible to be deleted, avoid further operation on a port channel that does not exist due to incorrect input of an operation and maintenance person, and query a port aggregation entry corresponding to the port aggregation name in the port aggregation list for further operation. When it is determined that the port aggregation name to be deleted exists in the port aggregation list, that is, the port aggregation entry corresponding to the port aggregation name is queried, step S5 clears the corresponding port and the public configuration, and deletes the corresponding port aggregation entry from the port aggregation list. That is, the corresponding port and public configuration are deleted according to the record in the corresponding port aggregation table entry, and then the corresponding port aggregation table entry is deleted from the port aggregation list. In other words, the port and public configuration are cleaned first, so that the port to be deleted is guaranteed not to correspond to any port and public configuration any more, and then the port convergence table entry is deleted to completely delete the port, so that the condition that relevant junk information does not exist in the switch system is guaranteed.
In some embodiments of the configuration method of port convergence of the present invention, the method further comprises:
s6: and feeding back a prompt that the port convergence to be created already exists in response to the port convergence name to be created existing in the port convergence list.
If the step S2 finds that the port aggregation name to be created exists in the port aggregation list when checking whether the port aggregation name included in the creation instruction exists in the port aggregation list, it proves that the port channel to be created by the operation and maintenance staff has already been created, and then step S6 feeds back a prompt that the port aggregation to be created already exists. In some embodiments, the operation and maintenance personnel may be further prompted to modify the creation instructions to create additional portchannels.
In some embodiments of the configuration method of port convergence of the present invention, the method further comprises:
s7: and feeding back a prompt that the port aggregation to be deleted does not exist in response to the fact that the port aggregation name to be deleted does not exist in the port aggregation list.
If it is found that the port aggregation name to be deleted does not exist in the port aggregation list when the port aggregation name included in the delete instruction exists in the port aggregation list in step S4, a situation such as a false input by an operation and maintenance worker may occur, and then step S7 feeds back a prompt that the port aggregation to be deleted does not exist, so that the operation and maintenance worker is prevented from mistakenly considering that the portchannel desired to be deleted has been deleted without obtaining feedback, and a situation that the portchannel actually exists still occurs. In some embodiments, the operation and maintenance personnel may be further prompted to modify the delete instruction to delete the desired portchannel.
Referring to fig. 2, in some embodiments of the method for configuring port aggregation of the present invention, step S3, in response to that no port aggregation name to be created exists in the port aggregation list, creates a port aggregation table entry with the port aggregation name to be created, and adds the public configuration and the verified naked port further includes:
s31: adding public configuration in the port convergence table entry;
s32: checking whether a port to be added is marked with a port convergence name;
s33: in response to the port to be added not marking the port convergence name, checking whether the port to be added has a configuration;
s34: and responding to the fact that the port to be added is not configured, marking the port convergence name on the port to be added, and adding the identifier of the port to be added into the corresponding port convergence table entry.
When creating a portchannel, once it is confirmed that the portchannel to be created does not exist, a port aggregation table entry can be created with the port aggregation name to be created. Public configurations and ports can then be added to the created portchannel. In one aspect, step S31 adds the public configuration to the port aggregation entry. Another aspect is adding ports. However, to further ensure that duplicate additions of a port that has joined a portchannel to other portchannels do not occur; when the port member port has the configuration, the port member port is normally added to the port, which causes the situations that the port has the configuration of the port itself and the configuration common to the port, and the like, and a specific naked port checking mechanism is further proposed in the embodiment shown in fig. 2. Wherein, step S32 checks whether the port to be added is already marked with a port aggregation name to confirm whether the port to be added is already added to an existing or other port channel. If it is confirmed that the port to be added does not mark the port aggregation name, step S33 further checks whether the port to be added is already configured, so as to ensure that the port to be added is a naked port. If it is determined that the port to be added is not configured, the actual port adding operation is performed, that is, step S34 marks the port aggregation name on the port to be added, and adds the identifier of the port to be added into the corresponding port aggregation entry. In the above process, if it is found that the port to be added is marked with the port aggregation name, or it is found that the port to be added is configured, the corresponding prompt information is fed back. In some embodiments, the operation and maintenance personnel is further prompted to delete the port aggregation name of the port label to be added, delete the configuration in the port to be added, or replace the port.
Referring to fig. 3, in some embodiments of the method for configuring port aggregation according to the present invention, in step S5, in response to a port aggregation name to be deleted existing in the port aggregation list, cleaning a corresponding port and a public configuration, and deleting a corresponding port aggregation entry from the port aggregation list further includes:
s51: deleting the public configuration in the port convergence list item corresponding to the port convergence name to be deleted according to the record of the port convergence list item;
s52: deleting the port convergence names to be deleted marked on the ports corresponding to the port convergence names to be deleted according to the records of the port convergence table entries;
s53: and deleting the corresponding port aggregation table entry from the port aggregation list.
When a portchannel is deleted, once the existence of the portchannel to be deleted is confirmed, the actual deletion operation can be started. Specifically, firstly, in step S51, the public configuration in the port aggregation entry corresponding to the port aggregation name to be deleted is deleted according to the record of the port aggregation entry, and on the other hand, in step S52, the port aggregation name to be deleted marked on the port corresponding to the port aggregation name to be deleted is deleted according to the record of the port aggregation entry, that is, the port and the public configuration are cleaned up first, so that it is ensured that the portchannel to be deleted no longer corresponds to any port and public configuration. Then step S53 deletes the corresponding port aggregation entry from the port aggregation list to completely delete the portchannel, thereby ensuring that no relevant spam exists in the switch system.
On the other hand, the present invention also provides a port convergence configuration device, wherein the device includes: at least one processor; and a memory storing processor-executable program instructions that, when executed by the processor, perform the steps of:
s1: establishing a port convergence list in a data center switch system;
s2: in response to receiving a creation instruction of port convergence, checking whether a port convergence name to be created contained in the creation instruction exists in a port convergence list;
s3: in response to the fact that the port convergence list does not have the port convergence name to be created, creating a port convergence table item according to the port convergence name to be created, and adding a public configuration and a verified naked port;
s4: in response to receiving a deleting instruction of port convergence, checking whether a port convergence name to be deleted contained in the deleting instruction exists in a port convergence list;
s5: and responding to the port convergence list with the port convergence name to be deleted, cleaning the corresponding port and public configuration, and deleting the corresponding port convergence list item from the port convergence list.
In some embodiments of the port convergence configuring device of the present invention, the method further comprises:
s6: and feeding back a prompt that the port convergence to be created already exists in response to the port convergence name to be created existing in the port convergence list.
In some embodiments of the configuration method of port convergence of the present invention, the method further comprises:
s7: and feeding back a prompt that the port aggregation to be deleted does not exist in response to the fact that the port aggregation name to be deleted does not exist in the port aggregation list.
Referring to fig. 2, in some embodiments of the port aggregation configuration apparatus of the present invention, step S3, in response to that no port aggregation name to be created exists in the port aggregation list, creates a port aggregation table entry with the port aggregation name to be created, and adds the public configuration and the verified naked port further includes:
s31: adding public configuration in the port convergence table entry;
s32: checking whether a port to be added is marked with a port convergence name;
s33: in response to the port to be added not marking the port convergence name, checking whether the port to be added has a configuration;
s34: and responding to the fact that the port to be added is not configured, marking a port convergence name on the port to be added, and adding the identifier of the port to be added into the corresponding port convergence table entry.
Referring to fig. 3, in some embodiments of the port aggregation configuration apparatus of the present invention, the step S5, in response to that a port aggregation name to be deleted exists in the port aggregation list, cleaning up a corresponding port and a public configuration, and deleting a corresponding port aggregation entry from the port aggregation list further includes:
s51: deleting the public configuration in the port convergence list item corresponding to the port convergence name to be deleted according to the record of the port convergence list item;
s52: deleting the port convergence name to be deleted marked on the port corresponding to the port convergence name to be deleted according to the record of the port convergence table entry;
s53: and deleting the corresponding port aggregation table entry from the port aggregation list.
The devices and apparatuses disclosed in the embodiments of the present invention may be various electronic terminal apparatuses, such as a mobile phone, a Personal Digital Assistant (PDA), a tablet computer (PAD), a smart television, and the like, or may be a large terminal apparatus, such as a server, and therefore the scope of protection disclosed in the embodiments of the present invention should not be limited to a specific type of device and apparatus. The client disclosed in the embodiment of the present invention may be applied to any one of the above electronic terminal devices in the form of electronic hardware, computer software, or a combination of both.
The memory (e.g., computer-readable storage media) described herein may be either volatile memory or nonvolatile memory, or may 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.
By adopting the technical scheme, the invention at least has the following beneficial effects: adding port convergence, deleting inspection, adding and deleting inspection of a port to be added and verifying of configuration of the port to be added are added in the configuration process of the port convergence, so that repeated creation of the existing portchannel is effectively avoided; the port which has added the portchannel is repeatedly added into other portchannels; when the configuration exists, the port member port is added into the port channel, so that the problems that the port has the port configuration per se and the common configuration of the port channel and the like are caused, the function of port convergence is realized in the configuration process, and the network security and the stability of a switch system are better ensured.
It is to be understood that the features listed above for the different embodiments may be combined with each other to form further embodiments within the scope of the invention, where technically feasible. Furthermore, the specific examples and embodiments described herein are non-limiting, and various modifications of the structure, steps and sequence set forth above may be made without departing from the scope of the invention.
In this application, the use of the term "meaning" is intended to include the term "meaning". The use of definite or indefinite articles is not intended to indicate cardinality. In particular, references to "the" object or "an" and "an" object are intended to mean one of many such objects possible. However, 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. Furthermore, the conjunction "or" may be used to convey simultaneous features, rather than mutually exclusive schemes. In other words, the conjunction "or" should be understood to include "and/or". The term "comprising" is inclusive and has the same scope as "comprising".
The above-described embodiments, particularly any "preferred" embodiments, are possible examples of implementations, and are presented merely for a clear understanding of the principles of the invention. Many variations and modifications may be made to the above-described embodiments without departing substantially from the spirit and principles of the technology described herein. All such modifications are intended to be included within the scope of this disclosure.

Claims (10)

1. A configuration method for port convergence is characterized in that the method comprises the following steps:
establishing a port convergence list in a data center switch system;
in response to receiving a creation instruction of port convergence, checking whether a port convergence name to be created contained in the creation instruction exists in the port convergence list;
in response to the fact that the port convergence list does not have the port convergence name to be created, creating a port convergence table item according to the port convergence name to be created, and adding a public configuration and a verified naked configuration port;
in response to receiving a deleting instruction of port aggregation, checking whether a port aggregation name to be deleted contained in the deleting instruction exists in the port aggregation list;
and responding to the port convergence list with the port convergence name to be deleted, cleaning the corresponding port and public configuration, and deleting the corresponding port convergence list item from the port convergence list.
2. The method of claim 1, further comprising:
and feeding back a prompt that the port convergence to be created already exists in response to the port convergence list to be created having the port convergence name to be created.
3. The method of claim 1, further comprising:
and feeding back a prompt that the port aggregation to be deleted does not exist in response to the fact that the port aggregation name to be deleted does not exist in the port aggregation list.
4. The method of claim 1, wherein in response to no port aggregation name to be created existing in the port aggregation list, creating the port aggregation table entry with the port aggregation name to be created, and adding a public configuration and a verified naked configuration port further comprises:
adding public configuration in the port convergence table entry;
checking whether a port to be added is marked with a port convergence name;
in response to that the port to be added does not mark a port aggregation name, checking whether the port to be added has a configuration;
and in response to that the port to be added is not configured, marking the port convergence name on the port to be added, and adding the identifier of the port to be added into the corresponding port convergence table entry.
5. The method according to claim 1, wherein said responsive to a port aggregation name to be deleted existing in the port aggregation list, cleaning a corresponding port and a public configuration, and deleting the corresponding port aggregation entry from the port aggregation list further comprises:
deleting the public configuration in the port convergence list item corresponding to the port convergence name to be deleted according to the record of the port convergence list item;
deleting the port convergence name to be deleted marked on the port corresponding to the port convergence name to be deleted according to the record of the port convergence table entry;
and deleting the corresponding port aggregation table entry from the port aggregation list.
6. A configuration apparatus for port convergence, the apparatus comprising:
at least one processor; and
a memory storing processor-executable program instructions that, when executed by the processor, perform the steps of:
establishing a port convergence list in a data center switch system;
in response to receiving a creation instruction of port convergence, checking whether a port convergence name to be created contained in the creation instruction exists in the port convergence list;
in response to the fact that the port convergence list does not have the port convergence name to be created, creating a port convergence table item according to the port convergence name to be created, and adding a public configuration and a verified naked port;
in response to receiving a deleting instruction of port aggregation, checking whether a port aggregation name to be deleted contained in the deleting instruction exists in the port aggregation list;
and responding to the port convergence list with the port convergence name to be deleted, cleaning the corresponding port and public configuration, and deleting the corresponding port convergence list item from the port convergence list.
7. The apparatus of claim 6, wherein the program instructions, when executed by the processor, further perform the steps of:
and feeding back a prompt that the port convergence to be created already exists in response to the port convergence list to be created having the port convergence name to be created.
8. The apparatus of claim 6, wherein the program instructions, when executed by the processor, further perform the steps of:
and feeding back a prompt that the port aggregation to be deleted does not exist in response to the fact that the port aggregation name to be deleted does not exist in the port aggregation list.
9. The apparatus of claim 6, wherein the creating the port aggregation table entry with the port aggregation name to be created in response to no port aggregation name to be created in the port aggregation list, and adding a public configured and verified naked configured port further comprises:
adding public configuration in the port convergence table item;
checking whether a port to be added is marked with a port convergence name;
in response to that the port to be added does not mark a port aggregation name, checking whether the port to be added has a configuration;
and responding to the situation that the port to be added is not configured, marking the port convergence name on the port to be added, and adding the identifier of the port to be added into the corresponding port convergence table entry.
10. The apparatus of claim 6, wherein the clearing the corresponding port and public configuration in response to a port aggregation name to be deleted existing in the port aggregation list, and deleting the corresponding port aggregation entry from the port aggregation list further comprises:
deleting the public configuration in the port convergence list item corresponding to the port convergence name to be deleted according to the record of the port convergence list item;
deleting the port convergence name to be deleted marked on the port corresponding to the port convergence name to be deleted according to the record of the port convergence table entry;
and deleting the corresponding port aggregation table entry from the port aggregation list.
CN201911256190.2A 2019-12-10 2019-12-10 Configuration method and device for port convergence Active CN111030859B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911256190.2A CN111030859B (en) 2019-12-10 2019-12-10 Configuration method and device for port convergence

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911256190.2A CN111030859B (en) 2019-12-10 2019-12-10 Configuration method and device for port convergence

Publications (2)

Publication Number Publication Date
CN111030859A CN111030859A (en) 2020-04-17
CN111030859B true CN111030859B (en) 2022-07-26

Family

ID=70206501

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911256190.2A Active CN111030859B (en) 2019-12-10 2019-12-10 Configuration method and device for port convergence

Country Status (1)

Country Link
CN (1) CN111030859B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111835411B (en) * 2020-06-24 2021-07-20 苏州浪潮智能科技有限公司 Testing method applied to optical module of white box switch

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101018228A (en) * 2006-12-22 2007-08-15 华为技术有限公司 A port convergence method and device
CN108337163A (en) * 2018-02-07 2018-07-27 北京百度网讯科技有限公司 Method and apparatus for link aggregation
CN108418752A (en) * 2017-07-24 2018-08-17 新华三技术有限公司 A kind of creation method and device of aggregation group
CN109088820A (en) * 2018-09-21 2018-12-25 锐捷网络股份有限公司 A kind of striding equipment link aggregation method, device, computing device and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101018228A (en) * 2006-12-22 2007-08-15 华为技术有限公司 A port convergence method and device
CN108418752A (en) * 2017-07-24 2018-08-17 新华三技术有限公司 A kind of creation method and device of aggregation group
CN108337163A (en) * 2018-02-07 2018-07-27 北京百度网讯科技有限公司 Method and apparatus for link aggregation
CN109088820A (en) * 2018-09-21 2018-12-25 锐捷网络股份有限公司 A kind of striding equipment link aggregation method, device, computing device and storage medium

Also Published As

Publication number Publication date
CN111030859A (en) 2020-04-17

Similar Documents

Publication Publication Date Title
EP3429143B1 (en) Packet forwarding method and apparatus
US9923984B2 (en) Methods, systems, and computer readable media for remote authentication dial in user service (RADIUS) message loop detection and mitigation
US9742667B2 (en) Packet processing method, device and system
US8369332B2 (en) Server-side load balancing using parent-child link aggregation groups
EP2079207A1 (en) A method and device for processing the notification message
CN109274592B (en) MAC address table item processing method and device and computer readable medium
US20190166042A1 (en) Method for data transmitting, centralized controller, forwarding plane device and communication apparatus
CN106899500B (en) Message processing method and device for cross-virtual extensible local area network
CN112887229B (en) Session information synchronization method and device
CN110430135B (en) Message processing method and device
WO2018219300A1 (en) Method and apparatus for packet exchange in sdn
US10666558B2 (en) Automatic alignment of roles of routers in networks
CN111030859B (en) Configuration method and device for port convergence
CN113839882B (en) Message flow splitting method and device
CN107154917A (en) Data transmission method and server
US10680930B2 (en) Method and apparatus for communication in virtual network
CN108234358B (en) Multicast message transmission method, device and machine readable storage medium
CN107404456A (en) Location of mistake method and device
US8055746B2 (en) Method and system for improved management of a communication network by extending the simple network management protocol
CN113225247B (en) Group chat processing method and system, electronic device and computer readable storage medium
WO2022088931A1 (en) Information processing method and apparatus, broadband access server, and storage medium
CN110809033B (en) Message forwarding method and device and switching server
CN104917729A (en) Network device and method for preventing address resolution protocol message from being attacked
CN107547428B (en) Message sending method and device, load balancing LB device and gateway device
CN105721313B (en) Data transmission method and relevant device

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