CN110661730A - Network switching equipment management method, device, server and storage medium - Google Patents

Network switching equipment management method, device, server and storage medium Download PDF

Info

Publication number
CN110661730A
CN110661730A CN201911018404.2A CN201911018404A CN110661730A CN 110661730 A CN110661730 A CN 110661730A CN 201911018404 A CN201911018404 A CN 201911018404A CN 110661730 A CN110661730 A CN 110661730A
Authority
CN
China
Prior art keywords
topology
equipment
information
network switching
topology information
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
CN201911018404.2A
Other languages
Chinese (zh)
Other versions
CN110661730B (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.)
Beijing Ruian Technology Co Ltd
Original Assignee
Beijing Ruian 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 Beijing Ruian Technology Co Ltd filed Critical Beijing Ruian Technology Co Ltd
Priority to CN201911018404.2A priority Critical patent/CN110661730B/en
Publication of CN110661730A publication Critical patent/CN110661730A/en
Application granted granted Critical
Publication of CN110661730B publication Critical patent/CN110661730B/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
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/72Admission control; Resource allocation using reservation actions during connection setup
    • H04L47/726Reserving resources in multiple paths to be used simultaneously
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/829Topology based

Landscapes

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

Abstract

The invention discloses a network switching equipment management method, which comprises the following steps: the method comprises the steps that a first management card reads first topology information from first equipment, wherein the first equipment comprises a plurality of communication ports for receiving and transmitting data; acquiring second topology information of second equipment; generating adjustment information based on the first topology information and the second topology information; and adjusting the weight of the communication port of the first device in a load balancing algorithm according to the adjustment information. Meanwhile, the invention also provides a network switching equipment management device, a server and a storage medium. The invention generates the adjustment information of the output port by acquiring the topology information of the network switching equipment and the topology information of the interconnection network equipment at the network switching equipment, thereby realizing the output balance of the cascade equipment.

Description

Network switching equipment management method, device, server and storage medium
Technical Field
The embodiment of the invention relates to the field of computer data communication, in particular to a network switching equipment management method, a network switching equipment management device, a server and a storage medium.
Background
In a large data distribution system, network switching equipment needs to uniformly perform hash output on data from different lines so as to ensure that the data are homologously homodromous and homologized and intelligently balanced.
Although a single network switching device is used, the corresponding output port weight can be calculated according to the Hash algorithm, and the output balance of the device is achieved. However, when a system has a plurality of devices, the amount of data accessed by different devices is different, and the problem of unbalanced input exists, so that the output ports of different devices are also unbalanced.
Disclosure of Invention
In a first aspect, the present invention provides a method for managing a network switching device, so as to implement load balancing of an output port in a system with a multi-network switching device cascade topology, including the following steps:
the method comprises the steps that a first management card reads first topology information from first equipment, wherein the first equipment comprises a plurality of communication ports for receiving and transmitting data;
acquiring second topology information of second equipment;
generating adjustment information based on the first topology information and the second topology information;
and adjusting the weight of the communication port of the first device in a load balancing algorithm according to the adjustment information.
Further, after the first management card reads the first topology information from the first device, the method further includes:
and reading an ip address list of a second device prestored by the first device, and sending the first topology information to the ip address.
Further, the first topology information includes an in-place flag and a topology flag of the first device, the second topology information includes an in-place flag and a topology flag of the second device, the in-place flag is 1 to indicate that the network switching device is in a power-off state, and the topology flag is 1 to indicate that the topology of the network switching device is changed.
Further, the generating adjustment information based on the first topology information and the second topology information includes:
setting the position marks of the first equipment and the second equipment in the adjustment information to be 0;
judging whether the topology of the first equipment and the second equipment changes or not;
if the number of the output port is changed, acquiring the output port number in the working state, and writing the adjustment information;
setting the topological mark of the first device and/or the second device to be 1;
and if the topology flag is not changed, setting the topology flag of the first device and the topology flag of the second device to be 0.
Further, the determining whether the topology of the first device and the second device changes further includes:
judging whether the second equipment is newly added to the topology;
and if so, reading the output port number in the working state in the second equipment, and writing the adjustment information.
Further, the adjusting the weight of the communication port of the first device in the load balancing algorithm according to the adjustment information includes:
sequentially judging whether the in-place marks of the first equipment and the second equipment are 1;
if the on-site flag is 1, deleting the topology information of the power-off equipment from the adjustment information;
setting the topological mark of the uninterrupted equipment in the adjustment information as 1;
inquiring and updating the output port in the working state in the adjustment information;
and adjusting the output weight of the output port based on the updated adjustment information and a preset load balancing algorithm.
Further, before the reading an ip address list of a second device pre-stored by the first device, the reading an ip address list of the second device pre-stored by the first device, and sending the first topology information to the ip address, the method further includes:
and converting the first topology information into a character string in a preset format.
Further, after the obtaining of the second topology information of the second device, the method further includes:
checking the character string of the second topological information based on a preset format to judge whether the character string is legal or not;
and if the character string is legal, converting the character string into the second topology information.
In a second aspect, the present invention further provides a network switching device management apparatus, including the following modules:
a first obtaining module 401, configured to enable a first management card to read first topology information from a first device, where the first device includes a plurality of communication ports for receiving and sending data;
a second obtaining module 402, configured to obtain second topology information of a second device;
an information generating module 403, configured to generate adjustment information based on the first topology information and the second topology information;
the adjusting module 404 adjusts the weight of the communication port of the first device in the load balancing algorithm according to the adjustment information.
In a third aspect, the present invention provides a server, including a memory, a processor and a program stored in the memory and executable on the processor, wherein the processor executes the program to implement a network switching device management method as described in any one of the above.
In a fourth aspect, the present invention provides a terminal readable storage medium, on which a program is stored, which when executed by a processor is capable of implementing a network switching device management method as described in any one of the above.
The invention uses a topology management algorithm in a cascade system of two or more network switching devices to carry out unified management, realizes real-time communication among the network switching devices, and outputs the data to be output to all output ports in a balanced manner, thereby achieving the purpose of homologously homologating and homologously outputting and balancing the shunt data of the plurality of network switching devices.
Drawings
Fig. 1 is a flowchart of a network switching device management method according to a first embodiment of the present invention.
Fig. 2 is a flowchart of a network switching device management method according to an alternative embodiment of the first embodiment of the present invention.
Fig. 3 is a bus topology of a plurality of network switching devices in a second embodiment of the present invention.
Fig. 4 is a flowchart of a network switching device management method in the second embodiment of the present invention.
Fig. 5 is a distributed topology of a plurality of network switching devices in a second embodiment of the present invention.
Fig. 6 is a flowchart of a network switching device management method in the second embodiment of the present invention.
Fig. 7 is a flowchart of a network switching device management method in the third embodiment of the present invention.
Fig. 8 is a flowchart of a network switching device management method in an alternative embodiment to the third embodiment of the present invention.
Fig. 9 is a flowchart of a network switching device management method in an alternative embodiment to the third embodiment of the present invention.
Fig. 10 is a block diagram of a network switching device management apparatus according to a fourth embodiment of the present invention.
Fig. 11 is a block diagram of a network switching device management apparatus in a fourth alternative embodiment of the present invention.
Fig. 12 is a schematic structural diagram of a server according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. A process may be terminated when its operations are completed, but may have additional steps not included in the figure. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
Furthermore, the terms "first," "second," and the like may be used herein to describe various orientations, actions, steps, elements, or the like, but the orientations, actions, steps, or elements are not limited by these terms. These terms are only used to distinguish one direction, action, step or element from another direction, action, step or element. For example, a first apparatus may be a second apparatus, and similarly, a second apparatus may be a first apparatus without departing from the scope of the present application. The first device and the second device are both network switching devices, but are not the same network switching device. The terms "first", "second", etc. are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "plurality", "batch" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Example one
As shown in fig. 1, this embodiment provides a network switching device management method, which is suitable for load balancing output of two internet switching devices, and includes the following steps:
s101, a first management card reads first topology information from first equipment, and the first equipment comprises a plurality of communication ports for receiving and transmitting data.
The first device and the second device are network switching devices and are mainly used for carrying out data distribution on input network data information so as to achieve homologous homoclinic and load balancing of data. The same source and sink refers to that the same session data distributed on different links are output from the same port, and the same session data are mainly used for preliminary processing of data collected by a metropolitan area network outlet and an IDC outlet, so that the data traffic of the same session is output to an analyzer at the rear end. The load balancing means that the weight of each output port is adjusted through an algorithm, so that the data flow of each output port reaches a balanced and stable state, and data congestion is not generated.
Topology refers to the physical connectivity of a network, such as the physical layout of the network switching devices connected to each other, and each network switching device refers to the connection relationship between the device and other devices. The topology structure mainly includes a star structure, a ring structure, a bus structure, a distributed structure, a mesh structure, a honeycomb structure, and the like.
In this step, the first device includes a management card and a plurality of communication ports for transceiving data, the management card searches all ports in a working state from a memory of the first device, and generates first topology information of the first device according to the working state and the weight of the ports, where the states of the communication ports include whether the ports are in the working state or the non-working state, and the ports in the working state are used for data output or data input.
S102, second topology information of the second device is obtained.
In this step, the first device starts a listening thread to receive the second topology information.
S103, generating adjustment information based on the first topology information and the second topology information.
The management card of the first device obtains the port state and the weight of the first device from the first topology information, and the port state and the weight of the second device from the second topology information.
And S104, adjusting the weight of the communication port of the first device in a load balancing algorithm according to the adjustment information.
In this step, the first device obtains the adjusted weight of the output port of the first device from the adjustment information, and adjusts the output port.
As shown in fig. 2, in an alternative embodiment, step S101 is followed by:
s105, reading an ip address list of a second device prestored by the first device, and sending the first topology information to the ip address.
In the step, the first device generates first topology information, converts the topology information into a character string in a specific Json format at regular time and sends the character string to a pre-stored IP address. Similarly, the second device also generates second topology information at regular time and sends the second topology information to the preset IP address. Preferably, the sending period is 10 seconds, so as to ensure that when the local device changes, other devices can learn the change within 10 seconds and update to the current latest topology, so as to improve the identification efficiency of the topology.
In another alternative embodiment, S105 further comprises before:
and S106, converting the first topological information into a character string in a preset format.
Illustratively, the first piece of equipment first topology information is converted into a string in Json format.
After S102, further comprising:
s107, checking the character string of the second topological information based on a preset format to judge whether the character string is legal or not;
and if the character string is legal, converting the character string into the second topology information.
In this embodiment, the output balance of the cascade device is realized by acquiring topology information of the network switching device and the interconnection network device, and generating adjustment information of the output port.
Example two
The present embodiment provides a network switching device management method, which is used for load balancing output of a cascaded topology system of two or more network switching devices, where cascading refers to that two or more network switching devices are connected to each other in a certain manner, and multiple network switching devices can be cascaded in multiple manners as needed to form different cascaded topologies. In larger lans, multiple network switching devices typically form a bus-type or distributed cascade topology, depending on performance and use.
Illustratively, the following description is made by taking three network switching devices as an example, and three or more management manners are similar to this. As shown in fig. 3, if the network switching device is in a bus topology structure, the first device 1, the second device 2, and the third device 3 are directly connected to the common bus through hardware interfaces, and topology information of the second device and the third device can be heard by the first device, then in the bus structure, as shown in fig. 4, the network switching device management method includes the following steps:
s201, a first management card reads first topology information from first equipment, and the first equipment comprises a plurality of communication ports for receiving and transmitting data.
S202, second topology information of the second device is obtained.
S203, third topology information of the third device is obtained.
And S204, generating adjustment information based on the first topology information, the second topology information and the third topology information.
S205, adjusting the weight of the communication port of the first device in the load balancing algorithm according to the adjustment information.
As shown in fig. 5, when the device is a distributed topology structure, where the first device 1 is only topologically connected to the second device 3, the second device 2 is topologically connected to the third device 3, and taking the first device 1, the second device 2, and the third device 3 as an example, the steps of the network switching device management method provided in the embodiment of the present invention are as follows, as shown in fig. 6:
s201, a first management card reads first topology information from first equipment, and the first equipment comprises a plurality of communication ports for receiving and transmitting data.
S206, second adjustment information of the second device is obtained, wherein the second adjustment information comprises second topology information generated by the second device and third topology information obtained by the second device from a third device.
In this step, as described in the first embodiment, when there are multiple devices, each device sends its own topology information to the pre-stored ip address at regular time. In the distributed topology structure described in this embodiment, the first device prestores an IP address of the second device, the second device prestores IP addresses of the first device and the third device, and the third device prestores an IP address of the second device. In this step, the second device obtains third topology information sent by the third device, and generates second adjustment information according to the second topology information and the third topology information, where the second adjustment information includes port states in the topology structures of the second device and the third device.
S207, generating first adjusting information based on the first topological information and the second adjusting information.
In this step, the first topology information includes the port state of the first device, and is merged with the second adjustment information obtained in the above step to generate a common topology structure of the first device, the second device, and the third device, and output port information of all the first device, the second device, and the third device in a working state.
S208, adjusting the weight of the communication port of the first device in a load balancing algorithm according to the first adjustment information.
In this embodiment, a management method for multiple network switching devices is added, and the multiple devices acquire topology information of themselves and other interconnected devices to generate adjustment information of an output port, thereby implementing output balance of multiple cascaded devices.
EXAMPLE III
On the basis of the first embodiment, an in-place mark and a topology mark are added to topology information, and the conditions that the network switching device is powered off, a board card is pulled out, and the optical fiber plugging and unplugging hierarchical connection topology structure of an output port is changed are known in time, so that the weight of the output port in an algorithm is updated. As shown in fig. 7, the method comprises the following steps:
s301, a first management card reads first topology information from first equipment, and the first equipment comprises a plurality of communication ports for receiving and transmitting data.
In this step, the first topology information includes an in-place flag and a topology flag of the first device; a bit flag of 1 indicates that the network switching device is in a powered down state and a topology flag of 1 indicates that the topology of the network switching device has changed.
S302, second topology information of the second device is obtained.
In this step, the second topology information includes an in-place flag and a topology flag of the second device.
S303, setting the position marks of the first device and the second device in the adjustment information to be 0.
S304, judging whether the topology of the first device and the second device changes or not.
The second topology information and the first topology information acquired last time are stored in the first device, and the current acquisition and the last acquisition are compared. Specifically, the change of the first topology information of the first device is compared twice, and the change of the second topology information of the second device is compared twice. The comparison content includes the device ID and the port ID of the topology information that are compared twice in sequence, and optionally, the comparison content may also include a board ID, where the board is a service board that controls one or more ports.
S305, if the number of the output port is changed, acquiring the output port number in the working state, and writing the adjustment information.
In this step, the changes include the following:
one or more of the board ID and the port ID of the first device change; and/or
One or more of the board ID and the port ID of the second device change; and/or
The device ID of the second device is the new ID.
In this step, if the change of the board ID indicates that a board of a certain card slot is pulled out, the port ID and the weight of the output port in the operating state in the board ID in the device need to be checked;
when the port ID changes, the situation that the optical fiber accessed by the port is plugged, unplugged or flashed and the like is shown, and the port ID and the weight are obtained;
a new device ID appears indicating that the second device is a newly connected device into the topology.
S306, setting the topological mark of the first device and/or the second device to be 1.
And setting the topological mark of the changed equipment to be 1, indicating that the topological structure is changed.
And S307, if the topology signs of the first equipment and the second equipment are not changed, setting the topology signs of the first equipment and the second equipment to be 0.
S308, adjusting the weight of the communication port of the first device in a load balancing algorithm according to the adjustment information.
In this step, the changed port ID and the weight obtained in the above step are integrated to form adjustment information, and the weight of the communication port of the first device in the load balancing algorithm is adjusted according to the adjustment information.
As shown in fig. 8, in an alternative embodiment, step S304 further includes:
s309, judging whether the second equipment is newly added to the topology.
And S310, if so, reading the output port number in the working state in the second equipment, and writing the adjustment information.
As shown in fig. 9, in an alternative embodiment, S308 further includes:
s311, sequentially judging whether the in-place marks of the first equipment and the second equipment are 1.
In the step, the first device starts a check thread at regular time, checks all machine frame in-place marks in the topology information, and the in-place mark is 1, which indicates that the network switching device does not send the topology information of the local device to the outside in one thread cycle, and indicates that the device is powered off.
S312, if the in-place flag is 1, deleting the topology information of the power-off equipment from the adjustment information;
in this step, after detecting that a certain device is powered off, the powered-off device is deleted from the topology information.
S313, setting the topological mark of the uninterrupted equipment in the adjustment information as 1;
after the device is deleted, the topology structure is changed, and illustratively, when the power-off device is the second device, the topology information of the second device in the adjustment information is deleted. And simultaneously setting the topological mark of the first device in the adjustment information to be 1.
S314, inquiring and updating the output port in the working state in the adjustment information;
in this step, since the power-off device is deleted and the port of the power-off device cannot continuously transmit data, the management card needs to sequentially query the output port information and the weight in the non-power-off device in the working state to update the adjustment information.
And S315, adjusting the output weight of the output port based on the updated adjustment information and a preset load balancing algorithm.
In this embodiment, by adding the in-place flag and the topology flag to the topology information, it is possible to timely know that the network switching device is powered off or the cascaded topology structure changes, and update the adjustment information, so that the load adjustment and data output of the port are more stable.
Example four
The present embodiment provides a network switching device management apparatus 4, as shown in fig. 10, including the following modules:
a first obtaining module 401, configured to enable a first management card to read first topology information from a first device, where the first device includes a plurality of communication ports for receiving and sending data;
a second obtaining module 402, configured to obtain second topology information of a second device;
an information generating module 403, configured to generate adjustment information based on the first topology information and the second topology information;
the adjusting module 404 adjusts the weight of the communication port of the first device in the load balancing algorithm according to the adjustment information.
As shown in fig. 11, in an alternative embodiment, the network switching device management apparatus further includes:
the sending module 405 is configured to read an ip address list of the second device pre-stored by the first device, and send the first topology information to the ip address.
A first format module 406, configured to convert the adjustment information into a character string in a preset format.
A second format module 407, configured to check the character string of the second topology information based on a preset format to determine whether the character string is legal;
and if the character string is legal, converting the character string into the second topology information.
In an alternative embodiment, further comprising:
a location flag module 408, configured to set location flags of the first device and the second device in the adjustment information to 0;
a judging module 409, configured to judge whether the topologies of the first device and the second device change; if the number of the output port is changed, acquiring the output port number in the working state, and writing the adjustment information;
a topology flag module 410, configured to set a topology flag of the first device and/or the second device to 1 at the same time; and if the topology flag is not changed, setting the topology flag of the first device and the topology flag of the second device to be 0.
In an alternative embodiment, the determining module 409 is further configured to: judging whether the second equipment is newly added to the topology; and if so, reading the output port number in the working state in the second equipment, and writing the adjustment information.
In an alternative embodiment, the determining module 409 is further configured to sequentially determine whether the in-place flags of the first device and the second device are 1; and if the on-site flag is 1, deleting the topology information of the power-off equipment from the adjustment information.
The topology flag module 410 is further configured to set the topology flag of the non-power-off device in the adjustment information to 1 after deleting the topology information of the power-off device.
The query module 411 queries and updates the output port in the adjustment information in the working state.
The adjusting module 404 adjusts the output weight of the output port based on the updated adjusting information and a preset load balancing algorithm.
The network switching device management apparatus of this embodiment uses a set of topology management algorithms to uniformly manage by using a plurality of network switching devices as a whole set of system, so as to implement real-time communication between devices, and output data to be output to all output ports in a balanced manner, thereby achieving output balance of the plurality of network switching devices. The present embodiment provides a network switching device management apparatus, which is capable of executing the network switching device management method provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.
EXAMPLE five
As shown in fig. 12, the server includes a processor 501, a memory 502, an input device 503, and an output device 504; the number of the processors 501 in the server may be one or more, and one processor 501 is taken as an example in the figure; the processor 501, the memory 502, the input device 503 and the output device 504 in the device/terminal/server may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 12.
The memory 502 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the theme update method in the embodiment of the present invention (for example, the task data classification module 402, the task thread module 403, and the like in the network switching device management apparatus). The processor 501 executes various functional applications of the device/terminal/server and data processing by running software programs, instructions and modules stored in the memory 502, that is, implements the network switching device management method described above.
The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 502 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 examples, memory 502 may further include memory located remotely from processor 501, which may be connected to devices/terminals/servers through 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 input means 503 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the device/terminal/server. The output device 504 may include a display device such as a display screen.
In the fifth embodiment of the present invention, the server uses a plurality of network switching devices as a whole set of system, and uses a set of topology management algorithm to perform unified management, so as to implement real-time communication between the devices, and output data to be output to all output ports in a balanced manner, thereby achieving balanced output data and efficient management of the plurality of network switching devices.
EXAMPLE six
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for processing data of an internet of things, where the method includes:
the method comprises the steps that a first management card reads first topology information from first equipment, wherein the first equipment comprises a plurality of communication ports for receiving and transmitting data;
acquiring second topology information of second equipment;
generating adjustment information based on the first topology information and the second topology information;
and adjusting the weight of the communication port of the first device in a load balancing algorithm according to the adjustment information.
The computer-readable storage media of embodiments of the invention may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a storage medium may be transmitted over any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (11)

1. A network switching device management method, comprising:
the method comprises the steps that a first management card reads first topology information from first equipment, wherein the first equipment comprises a plurality of communication ports for receiving and transmitting data;
acquiring second topology information of second equipment;
generating adjustment information based on the first topology information and the second topology information;
and adjusting the weight of the communication port of the first device in a load balancing algorithm according to the adjustment information.
2. The method for managing a network switching device according to claim 1, wherein after the first management card reads the first topology information from the first device, the method further comprises:
and reading an ip address list of a second device prestored by the first device, and sending the first topology information to the ip address.
3. The method according to claim 1, wherein the first topology information includes a presence flag and a topology flag of the first device, the second topology information includes a presence flag and a topology flag of the second device, a presence flag of 1 indicates that the network switching device is in a power-off state, and a topology flag of 1 indicates that the topology of the network switching device is changed.
4. The method for managing network switching devices according to claim 3, wherein the generating adjustment information based on the first topology information and the second topology information includes:
setting the position marks of the first equipment and the second equipment in the adjustment information to be 0;
judging whether the topology of the first equipment and the second equipment changes or not;
if the number of the output port is changed, acquiring the output port number in the working state, and writing the adjustment information;
setting the topological mark of the first device and/or the second device to be 1;
and if the topology flag is not changed, setting the topology flag of the first device and the topology flag of the second device to be 0.
5. The method for managing network switching devices according to claim 4, wherein the determining whether the topology of the first device and the second device changes further comprises:
judging whether the second equipment is newly added to the topology;
and if so, reading the output port number in the working state in the second equipment, and writing the adjustment information.
6. The method as claimed in claim 5, wherein the adjusting the weight of the communication port of the first device in the load balancing algorithm according to the adjustment information includes:
sequentially judging whether the in-place marks of the first equipment and the second equipment are 1;
if the on-site flag is 1, deleting the topology information of the power-off equipment from the adjustment information;
setting the topological mark of the uninterrupted equipment in the adjustment information as 1;
inquiring and updating the output port in the working state in the adjustment information;
and adjusting the output weight of the output port based on the updated adjustment information and a preset load balancing algorithm.
7. The method according to claim 2, wherein before reading an ip address list of a second device pre-stored in the first device and sending the first topology to the ip address, the method further includes:
and converting the first topology information into a character string in a preset format.
8. The method for managing network switching devices according to claim 7, further comprising, after the obtaining the second topology information of the second device:
checking the character string of the second topological information based on a preset format to judge whether the character string is legal or not;
and if the character string is legal, converting the character string into the second topology information.
9. A network switching equipment management device is characterized by comprising the following modules:
the first acquisition module is used for enabling a first management card to read first topology information from first equipment, and the first equipment comprises a plurality of communication ports for receiving and transmitting data;
the second acquisition module is used for acquiring second topology information of the second equipment;
an information generation module that generates adjustment information based on the first topology information and the second topology information;
and the adjusting module is used for adjusting the weight of the communication port of the first equipment in the load balancing algorithm according to the adjusting information.
10. A server comprising a memory, a processor and a program stored on the memory and executable on the processor, wherein the processor when executing the program implements a network switching device management method according to any one of claims 1 to 8.
11. A terminal readable storage medium, having a program stored thereon, wherein the program, when executed by a processor, is capable of implementing a network switching device management method according to any one of claims 1 to 8.
CN201911018404.2A 2019-10-24 2019-10-24 Network switching equipment management method, device, server and storage medium Active CN110661730B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911018404.2A CN110661730B (en) 2019-10-24 2019-10-24 Network switching equipment management method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911018404.2A CN110661730B (en) 2019-10-24 2019-10-24 Network switching equipment management method, device, server and storage medium

Publications (2)

Publication Number Publication Date
CN110661730A true CN110661730A (en) 2020-01-07
CN110661730B CN110661730B (en) 2022-11-08

Family

ID=69041650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911018404.2A Active CN110661730B (en) 2019-10-24 2019-10-24 Network switching equipment management method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN110661730B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114697206A (en) * 2020-12-31 2022-07-01 新智云数据服务有限公司 Internet of things node management method, device, equipment and computer readable medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685054A (en) * 2013-12-18 2014-03-26 武汉烽火网络有限责任公司 Multipath load balancing method based on service awareness
US20140140210A1 (en) * 2012-11-20 2014-05-22 Inventec Corporation Network system and load balancing method
CN105119840A (en) * 2015-09-01 2015-12-02 华东师范大学 Data center network load balancing method based on SDN and employing fat-tree topological structure
CN105634962A (en) * 2016-01-22 2016-06-01 北京航空航天大学 SDN network topology generation method and device
CN109150602A (en) * 2018-08-16 2019-01-04 郑州云海信息技术有限公司 A kind of method, apparatus, computer storage medium and the terminal of adaptation storage equipment
CN109361552A (en) * 2018-11-28 2019-02-19 迈普通信技术股份有限公司 Port switching method, master control board card, business board and switching equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140140210A1 (en) * 2012-11-20 2014-05-22 Inventec Corporation Network system and load balancing method
CN103685054A (en) * 2013-12-18 2014-03-26 武汉烽火网络有限责任公司 Multipath load balancing method based on service awareness
CN105119840A (en) * 2015-09-01 2015-12-02 华东师范大学 Data center network load balancing method based on SDN and employing fat-tree topological structure
CN105634962A (en) * 2016-01-22 2016-06-01 北京航空航天大学 SDN network topology generation method and device
CN109150602A (en) * 2018-08-16 2019-01-04 郑州云海信息技术有限公司 A kind of method, apparatus, computer storage medium and the terminal of adaptation storage equipment
CN109361552A (en) * 2018-11-28 2019-02-19 迈普通信技术股份有限公司 Port switching method, master control board card, business board and switching equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114697206A (en) * 2020-12-31 2022-07-01 新智云数据服务有限公司 Internet of things node management method, device, equipment and computer readable medium
CN114697206B (en) * 2020-12-31 2024-04-19 新智云数据服务有限公司 Method, device, equipment and computer readable medium for managing nodes of Internet of things

Also Published As

Publication number Publication date
CN110661730B (en) 2022-11-08

Similar Documents

Publication Publication Date Title
CN109547306B (en) Intelligent household equipment management method and system, intelligent gateway and server
CN110032382A (en) A kind of vehicle electronic control unit upgrade method, system and terminal device
CN104243210A (en) Method and system for remotely having access to administrative web pages of routers
CN108833251B (en) Method and apparatus for controlling network interconnection
CN104426927B (en) A kind of intercommunication terminal parameter setting method and system
EP2864877A1 (en) Clientless cloud computing
CN103959734B (en) For the protocol-specific key of mixed networks
CN110875850B (en) Firmware upgrading method and system, readable storage medium and terminal equipment
CN107347062A (en) A kind of method, electronic equipment and the readable storage medium storing program for executing of daily record data processing
CN104656607A (en) Stage multimachine wireless coordination system
CN109743259B (en) Network traffic scheduling method and device
CN106155264A (en) The computer approach of the power consumption of management storage subsystem and computer system
CN105450585A (en) Information transmission method and device
CN110661730B (en) Network switching equipment management method, device, server and storage medium
CN109617713A (en) The implementation method and server of resource dissemination
CN112954770A (en) Device binding method and device, storage medium and electronic device
CN111737084A (en) Information monitoring method and device, intelligent equipment, computer equipment and medium
CN114374614A (en) Network topology configuration method and device
CN110601892B (en) Main module access method, device and equipment based on object-oriented protocol
CN115968543A (en) Resource mapping method, device, equipment and storage medium
CN113014409B (en) Networking equipment configuration method, device, equipment and storage medium
CN116436994B (en) Profinet protocol message transmission method, device, equipment and medium
CN102917029B (en) The implementation method that cloud stores and cloud storage system
CN114338525B (en) Automatic route aggregation method and device, electronic equipment and storage medium
CN113741937B (en) Application updating method and device for cloud terminal and computer 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