CN108616453B - Method, device and system for network equipment - Google Patents

Method, device and system for network equipment Download PDF

Info

Publication number
CN108616453B
CN108616453B CN201810365357.8A CN201810365357A CN108616453B CN 108616453 B CN108616453 B CN 108616453B CN 201810365357 A CN201810365357 A CN 201810365357A CN 108616453 B CN108616453 B CN 108616453B
Authority
CN
China
Prior art keywords
protocol
network device
network
data frame
multicast data
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
CN201810365357.8A
Other languages
Chinese (zh)
Other versions
CN108616453A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201810365357.8A priority Critical patent/CN108616453B/en
Publication of CN108616453A publication Critical patent/CN108616453A/en
Application granted granted Critical
Publication of CN108616453B publication Critical patent/CN108616453B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/185Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/16Multipoint routing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks

Landscapes

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

Abstract

The present disclosure provides a method for a network device. The network device is capable of communicating with one or more other network devices in a network, the method comprising: obtaining a multicast data frame comprising at least one field conforming to a first protocol and a multicast address not conforming to the first protocol, the at least one field conforming to the first protocol describing information about the network device, the multicast address being identifiable by the network device and the one or more other network devices; and transmitting the multicast data frame to the one or more other network devices. The present disclosure also provides an apparatus and system for a network device.

Description

Method, device and system for network equipment
Technical Field
The present disclosure relates to a method, apparatus, and system for a network device.
Background
With the development of ethernet technology, the variety of network devices is increasingly complex. In order to enable devices of different manufacturers to discover and interact with respective system and configuration information in a network, a standard information exchange platform is required.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art: in order to obtain topology information, topology discovery may be implemented using a specific protocol, but there are devices in the physical network environment that do not support the specific protocol or do not turn on the specific protocol; there are also virtual network devices that do not support a specific protocol in a virtual network environment, or virtual network devices in which a specific protocol is in an off state because an on state of a specific protocol causes a large amount of overhead of a CPU (central processing unit). Therefore, under the condition that the second network device directly connected or remotely connected to the first network device does not support the specific protocol or does not start the specific protocol, the specific protocol packet carrying the configuration information of the first network device sent by the first network device cannot be identified and received by the second network device, so that the specific protocol packet is directly discarded, which inevitably prevents the topology information from being correctly calculated.
Disclosure of Invention
A first aspect of the present disclosure provides a method for a network device capable of communicating with one or more other network devices in a network, the method comprising: obtaining a multicast data frame comprising at least one field conforming to a first protocol and a multicast address not conforming to the first protocol, the at least one field conforming to the first protocol describing information about the network device, the multicast address being identifiable by the network device and the one or more other network devices; and transmitting the multicast data frame to the one or more other network devices.
Optionally, the multicast data frame is a multicast data frame for network topology discovery; and/or the first protocol is the LLDP protocol; and/or the at least one field conforming to the first protocol comprises at least one of: protocol type information, identification information of the network device, management address information and interface identification information.
Optionally, the multicast data frame further comprises a hop count value, and the hop count value has an initial value of 28n-1, wherein n is the number of bytes occupied by the hop count value; and/or, the acquiring the multicast data frame includes generating the multicast data frame locally in the network device, or receiving the multicast data frame from outside the network device.
A second aspect of the disclosure provides a method for a network device capable of communicating with one or more other network devices in a network, the method comprising: receiving a multicast data frame comprising at least one field conforming to a first protocol and a multicast address not conforming to the first protocol, the at least one field conforming to the first protocol describing information about a particular network device in the network, the multicast address being identifiable by the network device and the one or more other network devices; in the case that the network device supports the first protocol, parsing the multicast data frame to obtain information about the specific network device; and transmitting the multicast data frame to one or more other network devices if the network device does not support the first protocol.
Optionally, the multicast data frame is a multicast data frame for network topology discovery; and/or the first protocol is the LLDP protocol; and/or the at least one field conforming to the first protocol includes at least one of: protocol type information, identification information of the specific network device, management address information, and interface identification information.
Optionally, the multicast data frame further comprises a hop count value, and the hop count value has an initial value of 28n-1, wherein n is the number of bytes occupied by the hop value; the method further comprises the following steps: reducing the hop value by 1 under the condition that the network equipment does not support the first protocol; and under the condition that the network equipment supports the first protocol, determining the number of the network equipment which does not support the first protocol between the network equipment and the specific network equipment in the network based on the current hop value and the initial value.
A third aspect of the present disclosure provides an apparatus for a network device, the network device being capable of communicating with one or more other network devices in a network, the apparatus comprising an obtaining module and a sending module, wherein the obtaining module is configured to obtain a multicast data frame, the multicast data frame comprising at least one field conforming to a first protocol and a multicast address not conforming to the first protocol, the at least one field conforming to the first protocol describing information related to the network device, the multicast address being capable of being identified by the network device and the one or more other network devices; the sending module is configured to send the multicast data frame to the one or more other network devices.
A fourth aspect of the present disclosure provides an apparatus for a network device, the network device being capable of communicating with one or more other network devices in a network, the apparatus comprising a receiving module, a parsing module, and a transmitting module, wherein the receiving module is configured to receive a multicast data frame, the multicast data frame comprising at least one field conforming to a first protocol and a multicast address not conforming to the first protocol, the at least one field conforming to the first protocol describing information about a specific network device in the network, the multicast address being capable of being identified by the network device and the one or more other network devices; the analyzing module is used for analyzing the multicast data frame to acquire the information related to the specific network equipment under the condition that the network equipment supports the first protocol; the sending module is configured to send the multicast data frame to the one or more other network devices when the network device does not support the first protocol.
A fifth aspect of the present disclosure provides a system for a network device, comprising: one or more processors; a storage device for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method for a network device provided by the first aspect of the disclosure.
A sixth aspect of the present disclosure provides a system for a network device, comprising: one or more processors; a storage device for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method for a network device provided by the second aspect of the present disclosure.
Drawings
For a more complete understanding of the present disclosure and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
fig. 1 schematically illustrates an application scenario diagram to which the method, apparatus and system for a network device according to an embodiment of the present disclosure are applied;
fig. 2 schematically shows a flow chart of a method for a network device according to an embodiment of the present disclosure;
fig. 3 schematically shows a flow diagram of a method for a network device according to another embodiment of the present disclosure;
fig. 4 schematically shows a flow chart of a method for a network device according to yet another embodiment of the present disclosure;
fig. 5 schematically illustrates an apparatus for a network device according to an embodiment of the disclosure;
6A-6B schematically illustrate an apparatus for a network device according to another embodiment of the disclosure;
FIG. 7 schematically illustrates a block diagram of a computer system suitable for implementing the above-described method according to an embodiment of the present disclosure;
fig. 8 schematically illustrates a block diagram of a computer system suitable for implementing the above-described method according to another embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). It will be further understood by those within the art that virtually any disjunctive word and/or phrase presenting two or more alternative terms, whether in the description, claims, or drawings, should be understood to contemplate the possibilities of including one of the terms, either of the terms, or both terms. For example, the phrase "a or B" should be understood to include the possibility of "a" or "B", or "a and B".
Some block diagrams and/or flow diagrams are shown in the figures. It will be understood that some blocks of the block diagrams and/or flowchart illustrations, or combinations thereof, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the instructions, which execute via the processor, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks.
Accordingly, the techniques of this disclosure may be implemented in hardware and/or software (including firmware, microcode, etc.). In addition, the techniques of this disclosure may take the form of a computer program product on a computer-readable medium having instructions stored thereon for use by or in connection with an instruction execution system. In the context of this disclosure, a computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the instructions. For example, the computer readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. Specific examples of the computer readable medium include: magnetic storage devices, such as magnetic tape or Hard Disk Drives (HDDs); optical storage devices, such as compact disks (CD-ROMs); a memory, such as a Random Access Memory (RAM) or a flash memory; and/or wired/wireless communication links.
An embodiment of the present disclosure provides a method for a network device capable of communicating with one or more other network devices in a network, the method comprising: obtaining a multicast data frame, and sending the multicast data frame to the one or more other network devices. Wherein the multicast data frame includes at least one field conforming to the first protocol that describes information about the network device and a multicast address that is not conforming to the first protocol that is recognizable by the network device and the one or more other network devices.
Embodiments of the present disclosure also provide another method for a network device capable of communicating with one or more other network devices in a network, the method comprising: receiving a multicast data frame comprising at least one field conforming to a first protocol and a multicast address not conforming to the first protocol, the at least one field conforming to the first protocol describing information about a particular network device in the network, the multicast address being identifiable by the network device and the one or more other network devices; in the case that the network device supports a first protocol, parsing the multicast data frame to obtain information about the particular network device; and transmitting a multicast data frame to the one or more other network devices if the network device does not support the first protocol.
According to the embodiment of the disclosure, because the multicast address of the multicast data frame sent by the network device supporting the first protocol is not in the form of the first protocol, but in a form capable of being recognized by other network devices in the network, and further includes a field conforming to the first protocol, after the multicast data frame is received by other network devices, even if the other network devices do not support the first protocol, the received multicast data frame is not discarded, but the multicast data frame is forwarded to other network devices communicating with the multicast data frame as a common data packet by recognizing the multicast address, so that the situation that part of topology information cannot be normally collected during topology discovery is avoided; when the multicast data frame is transmitted to other network devices supporting the first protocol, the other network devices can analyze the multicast data frame according to the field conforming to the first protocol, so as to acquire the information of the network device sending the multicast data frame.
Fig. 1 schematically illustrates an application scenario of the method, apparatus and system for a network device according to an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of an application scenario in which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, but does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in FIG. 1, according to an embodiment of the present disclosure, an application scenario of the method, apparatus and system for network device of the present disclosure may include a plurality of network devices 101 to 107 and a plurality of networks 108 to 110.
The network devices 101-107 may be various physical devices or various virtual devices that can be interconnected over a network, such as servers, switches, routers, workstations, desktop PCs, laptop PCs, tablet Personal Computers (PCs), or tablets, which can form a network topology.
The networks 108-110 are used to provide a medium for communication links between different terminal devices. The networks 108-110 may include various types of connections, such as wired communication links, wireless communication links, or fiber optic cables, and the networks 108-110 may collectively be referred to as a local area network or a wide area network.
It will be appreciated that the number of network devices and networks in fig. 1 is merely illustrative. Any number of terminal devices and networks may be provided according to implementation requirements, as long as any one of the plurality of network devices is ensured to be in communication connection with at least one other network device through the network.
According to embodiments of the present disclosure, a plurality of network devices are interconnected to form a computer network topology, which may be, for example, a bus-type topology, a ring topology, a tree topology, a hybrid topology that includes any of the above types of topologies, and the like. The tree topology is illustrated in fig. 1, but it is understood that the present disclosure does not limit the type of the topology, and the plurality of network devices may be connected and arranged in any type of topology according to actual requirements.
The network devices forming the network topology structure communicate through a multicast protocol, so that when the topology information is calculated, the network devices send multicast data frames conforming to a specific protocol to other network devices communicating with the network devices, so that the other network devices communicating with the network devices can store the related information of the network devices according to the received multicast data frames.
In the prior art, in order to obtain topology information of a network topology, a network device sends a multicast data frame of a specific protocol to other network devices in communication with the network device, for example, referring to the network device 101 in fig. 1, the network device 102 and the network device 103 in communication with the network device 102 support the specific protocol, and the network device 103 does not support the specific protocol or is in a state that the specific protocol is not turned on, so that the network device 102 can recognize the multicast data frame sent by the network device 101, so as to be able to parse and store information of the network device 101, and send its own multicast data frame to the network device 101, the network device 104 and the network device 105 in communication with the network device 101 in the specific protocol, and accordingly, since the network device 101 supports the specific protocol, the information of the network device 102 can also be parsed and stored, according to the information stored in the network device 101 and the network device 102, topology information of mutual communication between the network device 101 and the network device 102 can be obtained; however, since the network device 103 does not support the specific protocol, it directly discards the multicast data frame sent by the network device 101, and cannot send the multicast data frame of the specific protocol to the network device 101, the network device 106, and the network device 107 which communicate with the network device 101, the network device 106, and the network device 107, so that during topology discovery, the existence of the network device 103, the network device 106, and the network device 107 is not known, and thus, the obtained topology information is incomplete, and the topology information cannot be calculated correctly.
When the network device sends the multicast data frame to other network devices, the sent multicast data frame comprises at least one field conforming to the specific protocol and a multicast address which does not conform to the specific protocol but can be identified by any network device in the network, so that after the network device which does not support the specific protocol receives the multicast data frame, the multicast address can be identified, and the multicast data frame can be forwarded to other network devices connected with the network device as a common data packet, namely the multicast data frame cannot be discarded because the multicast data frame is not identified. For example, although the network device 103 does not support the specific protocol in fig. 1, since it can forward the multicast data frame of the network device 101 to the network device 106 and the network device 107 communicating with it as a normal data packet, in case that the network device 106 and the network device 107 support the specific protocol, the information of the network device 101 can be parsed and stored, and at the same time, the multicast data frame sent by the network device 106 and the network device 107 can be received and parsed by the network device 101 via the forwarding of the network device 103, so that the topology information of the network device 101, the network device 106 and the network device 107 can be obtained, and the defect that other network devices communicating with the network device that does not support the specific protocol are not discovered is avoided. Therefore, the method, the device and the system for the network equipment can enable the network management to obtain more comprehensive topology information to a certain extent, and improve the accuracy of network topology information calculation.
Fig. 2 schematically shows a flow chart of a method for a network device according to an embodiment of the present disclosure.
According to an embodiment of the present disclosure, the network device is capable of communicating with one or more other network devices in a network. For example, the network device may form a local area network or a wide area network with one or more other network devices in the network connected by links. Through communication among a plurality of network devices in the local area network or the wide area network, topology discovery can be carried out so as to facilitate management of the network.
As shown in fig. 2, the method for a network device includes operations S210 to S220.
In operation S210, a multicast data frame is acquired, the multicast data frame including at least one field conforming to a first protocol and a multicast address not conforming to the first protocol.
In operation S220, a multicast data frame is transmitted to the one or more other network devices.
According to the embodiment of the present disclosure, the multicast data frame is a multicast data frame used for network topology discovery, the network device sends the multicast data frame to other network devices, and after other network devices which are in communication with the network device and support the first protocol receive and analyze the multicast data frame, the network device can know the existence of the network device, and store the analyzed information related to the network device. Similarly, other network devices supporting the first protocol may also send a multicast data frame, so that the network device receives and analyzes the multicast data frame to obtain information related to other network devices, and then according to the information stored in the network device and other network devices, network topology information related to the network device in the network may be obtained.
According to an embodiment of the present disclosure, the acquiring of the multicast data frame may be, for example, a generation of the multicast data frame locally by the network device, and the multicast data frame can uniquely represent the network device. Specifically, when topology information is acquired, an initial multicast data frame of a network device supporting a first protocol is in a first protocol form, where a multicast address, protocol type information, and the like are in the first protocol form. Thus, the network device may, for example, obtain a multicast data frame comprising at least one field of the first protocol and a multicast address that does not conform to the first protocol before sending the multicast data frame. For example, the network device may modify the multicast address of the initial multicast data frame before sending the multicast data frame, so that the modified multicast address does not conform to the first protocol. It is to be understood that the present disclosure does not limit the manner of acquiring the multicast data frame, for example, the multicast data frame may also be sent to the network device after being processed by an external electronic device communicating with the network device.
The multicast data frame may include, for example, a plurality of bytes that may include, for example, one or more bytes for indicating a destination address, one or more bytes for indicating a source address, one or more bytes for indicating a protocol type, and/or one or more bytes for checking a Frame Check Sequence (FCS), etc.
According to an embodiment of the present disclosure, the first protocol is a protocol for network topology discovery, and may be, for example, a link layer discovery protocol (LLDP protocol), a simple network management protocol (SNMP protocol), an open shortest path first protocol (OSPF protocol), or a spanning tree protocol (STP protocol), and the specific format of the multicast data frame acquired by the network device corresponds to the first protocol.
According to the embodiment of the present disclosure, the first protocol may be, for example, an LLDP protocol, and thus, devices from different vendors having different characteristics existing in the network can be uniformly managed. The LLDP protocol allows a network device accessing a network to send its main capabilities, Management address, device identifier, interface identifier, etc. to other network devices accessing the same lan, and when a network device receives these Information from other network devices, it stores them in the form of MIB (Management Information Base). These MIB information may be used to discover the physical topology of the network device and to manage configuration information. LLDP is designed for information advertisement, and it is used to advertise information of one network device and to obtain information of other network devices, and thus obtain relevant MIB information, and obtain topology information.
When the first protocol is an LLDP protocol, the acquired multicast data frame specifically includes: a destination MAC address (DA), which is a fixed multicast MAC address; the source MAC address is a port MAC address or a network equipment MAC address; a frame type; the data is LLDPDU, which is an effective load of LLDP, and is used to carry a message to be sent, specifically, a data unit encapsulated in the data part of the LLDP packet, and is used to uniquely identify the network device; and a frame check sequence.
According to an embodiment of the present disclosure, the multicast address is recognizable by the network device and the one or more other network devices, and the at least one field conforming to the first protocol describes information about the network device. The multicast address may be, for example, a multicast address of a general protocol such as a data protocol, so as to ensure that all network devices in the network do not perform packet loss processing on the multicast data frame.
Generally, a multicast address, a protocol type, and the like of a multicast data frame of a first protocol are in a first protocol form, and are used for performing frame identification on other network devices receiving the multicast data frame, but when the other network devices do not support the first protocol, because the multicast address of the first protocol cannot be identified, packet loss processing is performed on the received multicast data frame by default, and if it is specified that topology information is acquired through the first protocol, because the other network devices performing packet loss processing on the received multicast data frame do not support the first protocol, the multicast data frame of the network cannot be transmitted into the network, and accurate topology information cannot be acquired.
The multicast data frame of the disclosed embodiments includes a multicast address that is recognizable by the network device and the one or more other network devices, and at least one field conforming to a first protocol. Therefore, when the other network devices do not support the first protocol, the multicast address can be identified by parsing, and the multicast data frame is transmitted through (forwarded to the other network devices) as a normal data frame instead of packet loss processing, so that the other network devices communicating with the other network devices receive the multicast data frame.
Wherein, the at least one field conforming to the first protocol may comprise at least one of: protocol type information, identification information of a network device, management address information, and interface identification information to describe information related to the network device. If the other network device communicating with the other network device not supporting the first protocol supports the first protocol, the multicast data frame can be identified as the first protocol type according to at least one field conforming to the first protocol, so that the multicast data frame is analyzed, information related to the network device is obtained, and the analyzed information is stored in a local remote device MIB (remote system MIB) of the network device, so that the existence of the network device in the network is known. The other network devices which analyze and store the related information of the network device can also send own multicast data frames to the network devices which are communicated with the other network devices, thereby avoiding the defect that partial topology information is lost due to the existence of the network devices which do not support the first protocol when the network topology information is obtained.
According to the embodiment of the present disclosure, the multicast data frame may further include a hop value, for example, and the initial value of the hop value may be 2, for example8n-1, wherein n is the number of bytes occupied by the hop count value.
Wherein, the hop count value may be set to, for example: and subtracting 1 from the hop value every time the multicast data frame is transparently transmitted. Therefore, under the condition that other network devices receiving the multicast data frame support the first protocol, the change value of the hop value can be obtained through the current hop value and the initial value of the hop value, and the change value represents the number of times of forwarding the multicast data frame as a common data frame, so that the number of other network devices which do not support the first protocol between the other network devices which support the first protocol and the network device which sends the multicast data frame is indirectly obtained. In summary, the multicast data frame in the embodiment of the present disclosure can further enrich the acquired network topology information by setting the hop value.
In summary, the embodiment of the present disclosure transmits the multicast data frame including the multicast address that does not conform to the first protocol and the at least one field that conforms to the first protocol, so that other network devices that do not support the first protocol can forward (forward only and do not parse, that is, pass through) the multicast data frame, and other network devices that support the first protocol receive and parse the multicast data frame, thereby providing more accurate topology data support for network management and traffic optimization. For example, for a state that a part of virtual network devices in the cloud platform environment are not started by the first protocol, network topology calculation in the cloud platform environment can be more accurately realized; for a network structure with mixed deployment of new and old equipment, topology calculation under a network environment can be more accurately realized without modifying the old equipment.
Fig. 3 schematically shows a flow chart of a method for a network device according to another embodiment of the present disclosure.
According to an embodiment of the present disclosure, the network device is capable of communicating with one or more other network devices in a network. For example, the network device may form a local area network or a wide area network with one or more other network devices in the network connected by links. Through communication among a plurality of network devices in the local area network or the wide area network, topology discovery can be carried out so as to facilitate management of the network.
As shown in fig. 3, the method for a network device includes operations S310 to S330.
In operation S310, a multicast data frame is received, the multicast data frame including at least one field conforming to a first protocol and a multicast address not conforming to the first protocol.
According to an embodiment of the present disclosure, the above-mentioned at least one field conforming to the first protocol describes information relating to a specific network device in the network, the multicast address being identifiable by the network device and the one or more other network devices.
If the network device supports the first protocol, after receiving the multicast data frame, operation S320 is performed to parse the multicast data frame to obtain information related to the specific network device.
If the network device does not support the first protocol, after receiving the multicast data frame, operation S330 is performed to send the multicast data frame to the one or more other network devices.
The specific network device is a network device that transmits the multicast data frame, and the specific network device supports a first protocol, so that the transmitted multicast data frame is a data frame in the form of the first protocol. However, in order to avoid the situation that the network device receiving the multicast data frame discards the multicast data frame because the network device does not support the first protocol, the multicast address in the sent multicast data frame is in a form which is not in accordance with the first protocol, that is, in a form which can be identified by all network devices in the network (no matter whether other network devices support the first protocol or not), so that the network device which does not support the first protocol can forward the multicast data frame as a normal data packet after receiving the multicast data frame; and the network equipment supporting the first protocol can identify that the multicast data frame is in the first protocol form according to at least one field in the multicast data frame which accords with the first protocol after receiving the multicast data frame, so that the multicast data frame is analyzed to obtain the information related to the specific network equipment. In this way, the situation that the information related to the specific network device is discarded can be avoided, and the accuracy of the topology information can be ensured.
According to the embodiment of the present disclosure, the multicast data frame is a multicast data frame for network topology discovery, and the multicast data frame is the same as or similar to the multicast data frame described with reference to fig. 2, and is not described herein again.
According to an embodiment of the present disclosure, the received multicast data frame may include, for example, a multicast data frame generated locally by the specific network device or a multicast data frame received from outside the specific network device. According to an embodiment of the present disclosure, the specific network device may be, for example, the network device described with reference to fig. 2, and the received multicast data frame may be, for example, the network device described with reference to fig. 2, which is not described herein again.
According to an embodiment of the present disclosure, the first protocol is a protocol for network topology discovery, and may be, for example, a link layer discovery protocol (LLDP protocol), a simple network management protocol (SNMP protocol), an open shortest path first protocol (OSPF protocol), or a spanning tree protocol (STP protocol), and the specific format of the multicast data frame acquired by the network device corresponds to the first protocol.
According to the embodiment of the present disclosure, the first protocol may be, for example, an LLDP protocol, and thus, devices from different vendors having different characteristics existing in the network can be uniformly managed. According to an embodiment of the present disclosure, the first protocol may be, for example, the first protocol described with reference to fig. 2, and is not described herein again.
According to an embodiment of the present disclosure, the at least one field conforming to the first protocol may comprise, for example, at least one of: protocol type information, identification information of the specific network device, management address information, and interface identification information. According to an embodiment of the present disclosure, the at least one field conforming to the first protocol may be, for example, the at least one field conforming to the first protocol described with reference to fig. 2, and is not described herein again.
Fig. 4 schematically shows a flow chart of a method for a network device according to yet another embodiment of the present disclosure.
According to an embodiment of the present disclosure, the multicast data frame further includes a hop number having an initial value of 28n-1, wherein n is the number of bytes occupied by the hop value.
According to an embodiment of the present disclosure, the hop count value may be set, for example, to: subtracting 1 from the hop value every time the multicast data frame is forwarded once; and under the condition that the network equipment receiving the multicast data frame supports the first protocol, the forwarded times of the multicast data frame before being received by the network equipment supporting the first protocol can be obtained according to the difference value between the hop value obtained by analysis and the initial hop value.
Therefore, as shown in fig. 4, the method for a network device may further include operations S410 and S420 in addition to operations S310 to S330.
In operation S410, in a case where the network device supports the first protocol, the number of network devices that do not support the first protocol between the network device and the specific network device in the network is determined based on the current hop value and the initial value of the hop value. As shown in fig. 4, this operation S410 may be performed after operation S320. It is understood that the present disclosure does not limit the execution order of operations S410 and S320, for example, operation S410 may be executed before operation S320 or simultaneously with operation S320.
In operation S420, in case that the network device does not support the first protocol, the hop value is decremented by 1. As shown in fig. 4, the operation S420 should be performed before the operation S330, so that the multicast data frame sent by the network device is a multicast data frame with a modified hop count value, so that after receiving the modified multicast data frame, another device supporting the first protocol can learn the existence of the network device not supporting the first protocol.
In summary, the multicast data frame in the embodiment of the present disclosure can further enrich the acquired network topology information by setting the hop value.
Fig. 5 schematically illustrates an apparatus for a network device according to an embodiment of the disclosure.
As shown in fig. 5, the apparatus 500 for a network device includes an obtaining module 510 and a sending module 520. Wherein the network device is capable of communicating with one or more other network devices in the network.
The obtaining module 510 is configured to obtain a multicast data frame, where the multicast data frame includes at least one field conforming to a first protocol and a multicast address not conforming to the first protocol. Wherein the at least one field conforming to the first protocol describes information about the network device, the multicast address being identifiable by the network device and the one or more other network devices. According to an embodiment of the present disclosure, the obtaining module 510 may be configured to perform operation S210 described with reference to fig. 2, for example, and is not described herein again.
According to an embodiment of the present disclosure, the multicast data frame is a multicast data frame for network topology discovery; and/or the multicast data frame may comprise, for example, a multicast data frame generated locally by the network device or received externally by the network device. According to the embodiment of the present disclosure, the multicast data frame is the same as or similar to the multicast data frame described with reference to fig. 2, and is not described herein again.
According to the embodiment of the present disclosure, the multicast data frame may further include, for example, a hop value, and the initial value of the hop value is 28n-1, wherein n is the number of bytes occupied by the jump value.
According to an embodiment of the present disclosure, the first protocol is a protocol for network topology discovery, and may be, for example, a link layer discovery protocol (LLDP protocol), a simple network management protocol (SNMP protocol), an open shortest path first protocol (OSPF protocol), or a spanning tree protocol (STP protocol), and the specific format of the multicast data frame acquired by the network device corresponds to the first protocol.
According to the embodiment of the present disclosure, the first protocol may be, for example, an LLDP protocol, and thus, devices from different vendors having different characteristics existing in the network can be uniformly managed. According to an embodiment of the present disclosure, the first protocol may be, for example, the first protocol described with reference to fig. 2, and is not described herein again.
According to an embodiment of the present disclosure, the at least one field conforming to the first protocol may comprise, for example, at least one of: protocol type information, identification information of the network device, management address information and interface identification information. According to an embodiment of the present disclosure, the at least one field conforming to the first protocol may be, for example, the at least one field conforming to the first protocol described with reference to fig. 2, and is not described herein again.
Wherein the sending module 520 is configured to send the multicast data frame to the one or more other network devices. According to an embodiment of the present disclosure, the sending module 520 may be configured to perform operation S220 described with reference to fig. 2, for example, and is not described herein again.
Any of the obtaining module 510 and the sending module 520, or at least part of the functionality of any of them, according to embodiments of the present disclosure may be implemented in one module. Any one or more of the obtaining module 510 and the sending module 520 may be implemented by being split into a plurality of modules according to the embodiment of the present disclosure. Any one or more of the obtaining module 510 and the sending module 520 according to the embodiments of the present disclosure may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by any other reasonable means of hardware or firmware for integrating or packaging a circuit, or may be implemented by any one of three implementations of software, hardware, and firmware, or any suitable combination of any of them. Alternatively, one or more of the obtaining module 510 and the sending module 520 according to embodiments of the present disclosure may be implemented at least in part as computer program modules, which, when executed, may perform corresponding functions.
For example, any number of the obtaining module 510 and the sending module 520 may be combined and implemented in one module, or any one of the modules may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the obtaining module 510 and the sending module 520 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware by any other reasonable manner of integrating or packaging a circuit, or may be implemented in any one of three implementations of software, hardware, and firmware, or in a suitable combination of any of them. Alternatively, at least one of the obtaining module 510 and the sending module 520 may be at least partially implemented as a computer program module, which when executed may perform a corresponding function.
Fig. 6A-6B schematically illustrate an apparatus for a network device according to another embodiment of the disclosure.
As shown in fig. 6A, the apparatus 600 for a network device includes a receiving module 610, a parsing module 620 and a sending module 630. Wherein the network device is capable of communicating with one or more other network devices in a network.
The receiving module 610 is configured to receive a multicast data frame, where the multicast data frame includes at least one field conforming to a first protocol and a multicast address not conforming to the first protocol. Wherein the at least one field conforming to the first protocol describes information about a particular network device in the network, the multicast address being identifiable by the network device and the one or more other network devices. According to an embodiment of the present disclosure, the receiving module 610 may be configured to perform operation S310 described with reference to fig. 3, for example, and is not described herein again.
According to an embodiment of the present disclosure, the multicast data frame is a multicast data frame for network topology discovery; and/or the multicast data frame may comprise, for example, a multicast data frame generated locally by the particular network device, or a multicast data frame received externally by the particular network device. According to the embodiment of the present disclosure, the multicast data frame is the same as or similar to the multicast data frame described with reference to fig. 2, and is not described herein again.
According to an embodiment of the present disclosure, the first protocol is a protocol for network topology discovery, and may be, for example, a link layer discovery protocol (LLDP protocol), a simple network management protocol (SNMP protocol), an open shortest path first protocol (OSPF protocol), or a spanning tree protocol (STP protocol), and the specific format of the multicast data frame received by the network device corresponds to the first protocol.
According to the embodiment of the present disclosure, the first protocol may be, for example, an LLDP protocol, and thus, devices from different vendors having different characteristics existing in the network can be uniformly managed. According to an embodiment of the present disclosure, the first protocol may be, for example, the first protocol described with reference to fig. 2, and is not described herein again.
According to an embodiment of the present disclosure, the at least one field conforming to the first protocol may comprise, for example, at least one of: protocol type information, identification information of the specific network device, management address information, and interface identification information. According to an embodiment of the present disclosure, the at least one field conforming to the first protocol may be, for example, the at least one field conforming to the first protocol described with reference to fig. 2, and is not described herein again.
Wherein the parsing module 620 is configured to parse the multicast data frame to obtain the information related to the specific network device if the network device supports the first protocol. According to an embodiment of the present disclosure, the parsing module 620 may be configured to perform operation S320 described with reference to fig. 3, for example, and is not described herein again.
Wherein the sending module 630 is configured to send the multicast data frame to the one or more other network devices if the network device does not support the first protocol. According to an embodiment of the present disclosure, the sending module 630 may be configured to perform operation S330 described with reference to fig. 3, for example, and is not described herein again.
According to the embodiment of the present disclosure, the multicast data frame may further include, for example, a hop value, and the initial value of the hop value is 28n-1, wherein n is the number of bytes occupied by the hop value.
Then, as shown in fig. 6B, the apparatus 600 for a network device may further include a determining module 640 and a changing module 650, for example.
The determining module 640 is configured to determine, based on the current hop value and the initial value of the hop value, the number of network devices that do not support the first protocol between the network device and the specific network device in the network when the network device supports the first protocol. According to an embodiment of the present disclosure, the determining module 640 may be configured to perform operation S410 described with reference to fig. 4, for example, and is not described herein again.
Wherein the changing module 650 is configured to reduce the hop value by 1 if the network device does not support the first protocol. According to an embodiment of the present disclosure, the modification module 650 may be configured to perform operation S420 described with reference to fig. 4, for example, and is not described herein again.
Any of the receiving module 610, the parsing module 620, the sending module 630, the determining module 640, and the altering module 650, or at least part of the functionality of any of them, according to embodiments of the present disclosure, may be implemented in one module. Any one or more of the receiving module 610, the parsing module 620, the sending module 630, the determining module 640, and the altering module 650 may be implemented as a plurality of modules, according to embodiments of the present disclosure. Any one or more of the receiving module 610, the parsing module 620, the sending module 630, the determining module 640, and the altering module 650 according to the embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by any other reasonable manner of hardware or firmware that integrates or packages a circuit, or in any one of three implementations of software, hardware, and firmware, or in any suitable combination of any of them. Alternatively, one or more of the receiving module 610, the parsing module 620, the sending module 630, the determining module 640, and the altering module 650 according to embodiments of the present disclosure may be implemented at least in part as computer program modules that, when executed, may perform corresponding functions.
For example, any of the receiving module 610, the parsing module 620, the sending module 630, the determining module 640, and the altering module 650 may be combined in one module to be implemented, or any one of them may be split into multiple modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the disclosure, at least one of the receiving module 610, the parsing module 620, the sending module 630, the determining module 640, and the changing module 650 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or may be implemented in any one of three implementations of software, hardware, and firmware, or in a suitable combination of any several of them. Alternatively, at least one of the receiving module 610, the parsing module 620, the sending module 630, the determining module 640 and the altering module 650 may be at least partially implemented as a computer program module, which when executed, may perform a corresponding function.
FIG. 7 schematically illustrates a block diagram of a computer system suitable for implementing the above-described method according to an embodiment of the present disclosure. The computer system illustrated in FIG. 7 is only one example and should not impose any limitations on the scope of use or functionality of embodiments of the disclosure.
As shown in fig. 7, the system 700 for a network device includes a processor 710, a computer-readable storage medium 720, a signal transmitter 730. The system 700 for a network device may perform a method according to an embodiment of the present disclosure.
In particular, processor 710 may comprise, for example, a general purpose microprocessor, an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), and/or the like. The processor 710 may also include on-board memory for caching purposes. Processor 710 may be a single processing unit or a plurality of processing units for performing the different actions of the method flows according to embodiments of the present disclosure.
Computer-readable storage medium 720 may be, for example, any medium that can contain, store, communicate, propagate, or transport the instructions. For example, a readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. Specific examples of the readable storage medium include: magnetic storage devices, such as magnetic tape or Hard Disk Drives (HDDs); optical storage devices, such as compact disks (CD-ROMs); a memory, such as a Random Access Memory (RAM) or a flash memory; and/or wired/wireless communication links.
The computer-readable storage medium 720 may include a computer program 721, which computer program 721 may include code/computer-executable instructions that, when executed by the processor 710, cause the processor 710 to perform a method according to an embodiment of the disclosure, or any variation thereof.
The computer program 721 may be configured with, for example, computer program code comprising computer program modules. For example, in an example embodiment, code in computer program 721 may include one or more program modules, including 721A, modules 721B, … …, for example. It should be noted that the division and number of modules are not fixed, and those skilled in the art may use suitable program modules or program module combinations according to actual situations, so that the processor 710 may execute the method according to the embodiment of the present disclosure or any variation thereof when the program modules are executed by the processor 710.
According to an embodiment of the present disclosure, processor 710 may interact with signal transmitter 730 to perform a method according to an embodiment of the present disclosure or any variation thereof.
According to an embodiment of the present invention, the obtaining module 510 may be implemented as a computer program module described with reference to fig. 7, which when executed by the processor 710 may implement the corresponding operations described above. The transmitting module 520 may be implemented as the signal transmitter described with reference to fig. 7.
Fig. 8 schematically illustrates a block diagram of a computer system suitable for implementing the above-described method according to another embodiment of the present disclosure. The computer system illustrated in FIG. 8 is only one example and should not impose any limitations on the scope of use or functionality of embodiments of the disclosure.
As shown in fig. 8, a system 800 for a network device includes a processor 810, a computer-readable storage medium 820, a signal receiver 830, and a signal transmitter 840. The system 800 for a network device may perform a method according to embodiments of the present disclosure.
In particular, processor 810 may include, for example, a general purpose microprocessor, an instruction set processor and/or related chip set and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), and/or the like. The processor 810 may also include on-board memory for caching purposes. Processor 810 may be a single processing unit or a plurality of processing units for performing different actions of a method flow according to embodiments of the disclosure.
Computer-readable storage medium 820 may be, for example, any medium that can contain, store, communicate, propagate, or transport the instructions. For example, a readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. Specific examples of the readable storage medium include: magnetic storage devices, such as magnetic tape or Hard Disk Drives (HDDs); optical storage devices, such as compact disks (CD-ROMs); a memory, such as a Random Access Memory (RAM) or a flash memory; and/or wired/wireless communication links.
The computer-readable storage medium 820 may include a computer program 821, which computer program 821 may include code/computer-executable instructions that, when executed by the processor 810, cause the processor 810 to perform a method according to an embodiment of the present disclosure, or any variation thereof.
The computer program 821 may be configured with, for example, computer program code comprising computer program modules. For example, in an example embodiment, code in computer program 821 may include one or more program modules, including for example 821A, modules 821B, … …. It should be noted that the division and number of modules are not fixed, and those skilled in the art may use suitable program modules or program module combinations according to actual situations, and when the program modules are executed by the processor 810, the processor 810 may execute the method according to the embodiment of the present disclosure or any variation thereof.
In accordance with an embodiment of the present disclosure, processor 810 may interact with signal receiver 830 and signal transmitter 840 to perform a method in accordance with an embodiment of the present disclosure, or any variation thereof.
According to an embodiment of the present invention, at least one of the parsing module 620, the determining module 640 and the altering module 650 may be implemented as a computer program module as described with reference to fig. 8, which when executed by the processor 810 may implement the respective operations described above.
The present disclosure also provides a computer-readable medium, which may be embodied in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer readable medium carries one or more programs which, when executed, implement the method for the network device described with reference to fig. 2 or the method for the network device described with reference to fig. 3 to 4.
According to embodiments of the present disclosure, a computer readable medium may be a computer readable signal medium or a computer readable storage medium or any combination of the two. 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 of the computer readable storage medium may include, but are not limited to: 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 present disclosure, 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. In contrast, in the present disclosure, 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 computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, optical fiber cable, radio frequency signals, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
While the disclosure has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims and their equivalents. Accordingly, the scope of the present disclosure should not be limited to the above-described embodiments, but should be defined not only by the appended claims, but also by equivalents thereof.

Claims (10)

1. A method for a network device capable of communicating with one or more other network devices in a network, the method comprising:
obtaining a multicast data frame comprising at least one field conforming to a first protocol and a multicast address not conforming to the first protocol, the at least one field conforming to the first protocol describing information about the network device, the multicast address being identifiable by the network device and the one or more other network devices; and
transmitting the multicast data frame to the one or more other network devices,
the multicast data frame is used for network topology discovery; the first protocol is the LLDP protocol.
2. The method of claim 1, wherein:
the at least one field conforming to the first protocol includes at least one of: protocol type information, identification information of the network device, management address information and interface identification information.
3. The method of claim 1, wherein:
the multicast data frame also comprises a hop value, wherein the hop value has an initial value of 28n-1, and n is the number of bytes occupied by the hop value; and/or
The acquiring the multicast data frame includes generating the multicast data frame locally at the network device or receiving the multicast data frame from outside the network device.
4. A method for a network device capable of communicating with one or more other network devices in a network, the method comprising:
receiving a multicast data frame comprising at least one field conforming to a first protocol that describes information about a particular network device in the network and a multicast address that is not conforming to the first protocol that is identifiable by the network device and the one or more other network devices;
in the case that the network device supports the first protocol, parsing the multicast data frame to obtain information about the particular network device; and
transmitting the multicast data frame to the one or more other network devices if the network device does not support the first protocol,
the multicast data frame is used for network topology discovery; the first protocol is the LLDP protocol.
5. The method of claim 4, wherein:
the at least one field conforming to the first protocol includes at least one of: protocol type information, identification information of the specific network device, management address information, and interface identification information.
6. The method of claim 4, wherein:
the multicast data frame also comprises a hop value, wherein the hop value has an initial value of 28n-1, and n is the number of bytes occupied by the hop value;
the method further comprises the following steps:
subtracting 1 from the hop value in the case that the network device does not support the first protocol; and
determining the number of network devices which do not support the first protocol between the network device and the specific network device in the network based on the current hop value and the initial value under the condition that the network device supports the first protocol.
7. An apparatus for a network device capable of communicating with one or more other network devices in a network, the apparatus comprising:
an obtaining module that obtains a multicast data frame, the multicast data frame including at least one field conforming to a first protocol and a multicast address not conforming to the first protocol, the at least one field conforming to the first protocol describing information related to the network device, the multicast address being identifiable by the network device and the one or more other network devices;
a transmitting module to transmit the multicast data frame to the one or more other network devices,
the multicast data frame is used for network topology discovery; the first protocol is the LLDP protocol.
8. An apparatus for a network device capable of communicating with one or more other network devices in a network, the apparatus comprising:
a receiving module that receives a multicast data frame, the multicast data frame including at least one field conforming to a first protocol and a multicast address not conforming to the first protocol, the at least one field conforming to the first protocol describing information about a particular network device in the network, the multicast address being identifiable by the network device and the one or more other network devices;
a parsing module that parses the multicast data frame to obtain information related to the specific network device if the network device supports the first protocol; and
a transmitting module that transmits the multicast data frame to the one or more other network devices if the network device does not support the first protocol,
the multicast data frame is used for network topology discovery; the first protocol is the LLDP protocol.
9. A system for a network device, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-3.
10. A system for a network device, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 4-6.
CN201810365357.8A 2018-04-20 2018-04-20 Method, device and system for network equipment Active CN108616453B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810365357.8A CN108616453B (en) 2018-04-20 2018-04-20 Method, device and system for network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810365357.8A CN108616453B (en) 2018-04-20 2018-04-20 Method, device and system for network equipment

Publications (2)

Publication Number Publication Date
CN108616453A CN108616453A (en) 2018-10-02
CN108616453B true CN108616453B (en) 2020-12-18

Family

ID=63660810

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810365357.8A Active CN108616453B (en) 2018-04-20 2018-04-20 Method, device and system for network equipment

Country Status (1)

Country Link
CN (1) CN108616453B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111628957B (en) * 2019-02-28 2021-10-01 华为技术有限公司 Data transmission method and network equipment
US11336502B2 (en) * 2020-07-07 2022-05-17 Juniper Networks, Inc. Deriving network device and host connection

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383772A (en) * 2008-09-26 2009-03-11 中兴通讯股份有限公司 Method and device for automatically discovering and establishing MAC route information table
CN101459536A (en) * 2008-12-29 2009-06-17 杭州华三通信技术有限公司 Port configuration method and switching device
CN103259728A (en) * 2013-05-24 2013-08-21 华为技术有限公司 OFS in-band communication method and OFS
CN107888466A (en) * 2017-11-15 2018-04-06 国网天津市电力公司电力科学研究院 A kind of self-organization distribution wide area protection network communication method based on LLDP

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101789900B (en) * 2009-11-19 2012-08-15 福建星网锐捷网络有限公司 Multicast forwarding route query method, intermediate node and management node
US8379642B2 (en) * 2010-04-26 2013-02-19 International Business Machines Corporation Multicasting using a multitiered distributed virtual bridge hierarchy
US8897301B2 (en) * 2012-03-14 2014-11-25 International Business Machines Corporation Multicast bandwidth multiplication for a unified distributed switch
US8913620B2 (en) * 2012-03-14 2014-12-16 International Business Machines Corporation Multicast traffic generation using hierarchical replication mechanisms for distributed switches
CN103856579B (en) * 2014-03-03 2017-01-25 国家电网公司 Dynamic recognition method for intelligent substation network device topology based on MAC address matching
EP3248362B1 (en) * 2015-02-26 2018-12-26 Siemens Aktiengesellschaft Data transmission in a communications network
CN105246126A (en) * 2015-08-28 2016-01-13 深圳市唯传科技有限公司 Intelligent equipment access method, device and system
CN106357547A (en) * 2016-09-08 2017-01-25 重庆邮电大学 Software-defined network congestion control algorithm based on stream segmentation
CN106790146A (en) * 2016-12-28 2017-05-31 山东大学 The system and its operation method of mobile multicast are realized under a kind of cloud environment based on SDN technologies
CN107548058B (en) * 2017-07-28 2020-05-19 深圳和而泰智能控制股份有限公司 Equipment access method and intelligent terminal
CN107465622B (en) * 2017-10-09 2020-05-12 安徽皖通邮电股份有限公司 Method for realizing network topology discovery by utilizing LLDP

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383772A (en) * 2008-09-26 2009-03-11 中兴通讯股份有限公司 Method and device for automatically discovering and establishing MAC route information table
CN101459536A (en) * 2008-12-29 2009-06-17 杭州华三通信技术有限公司 Port configuration method and switching device
CN103259728A (en) * 2013-05-24 2013-08-21 华为技术有限公司 OFS in-band communication method and OFS
CN107888466A (en) * 2017-11-15 2018-04-06 国网天津市电力公司电力科学研究院 A kind of self-organization distribution wide area protection network communication method based on LLDP

Also Published As

Publication number Publication date
CN108616453A (en) 2018-10-02

Similar Documents

Publication Publication Date Title
US10484265B2 (en) Dynamic update of virtual network topology
US11184267B2 (en) Intelligent in-band telemetry auto-configuration for IP networks
US11228991B2 (en) Link auto-negotiation between a radio equipment controller (REC) and radio equipment (RE) in an ethernet-based fronthaul network
US20230289174A1 (en) Vehicle upgrade method and apparatus
US20140056152A1 (en) Port mirroring in distributed switching systems
CN107579900B (en) Method, device and system for accessing VX L AN network from V L AN network
US20160011862A1 (en) Methods and apparatus for improving compatibility between network devices
CN112039796B (en) Data packet transmission method and device, storage medium and electronic equipment
US20200076925A1 (en) Software-defined Interconnection Method and Apparatus for Heterogeneous Protocol Data
US11461206B2 (en) Cloud simulation and validation system
KR20160149229A (en) Fine-grained network monitoring
CN105515816B (en) Processing method and device for detecting hierarchical information
US20190335386A1 (en) Protocol to detect if uplink is connected to 802.1d noncompliant device
CN111614505B (en) Message processing method and gateway equipment
US20220294663A1 (en) Data transmission method, device, and system
US10182132B2 (en) Method, apparatus and system for communication between OpenFlow device and IP network device
CN108616453B (en) Method, device and system for network equipment
US20210064410A1 (en) Apparatus and method for network function virtualization in wireless communication system
US9985862B2 (en) MEP configuration method and network device
CN105763463B (en) Method and device for transmitting link detection message
US20150207721A1 (en) Method and system for generating multi-protocol fault management packet by using fpga
CN114826973A (en) Transmission quality detection method, device and system
WO2023011047A1 (en) Processing method and apparatus
CN115277641A (en) Address sharing method and device, electronic equipment and storage medium
CN113765863A (en) Information notification method and 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