CN113824579B - Interface configuration method of equipment in campus network and network equipment - Google Patents

Interface configuration method of equipment in campus network and network equipment Download PDF

Info

Publication number
CN113824579B
CN113824579B CN202010567176.0A CN202010567176A CN113824579B CN 113824579 B CN113824579 B CN 113824579B CN 202010567176 A CN202010567176 A CN 202010567176A CN 113824579 B CN113824579 B CN 113824579B
Authority
CN
China
Prior art keywords
ospf
equipment
role
network
neighbor
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
CN202010567176.0A
Other languages
Chinese (zh)
Other versions
CN113824579A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010567176.0A priority Critical patent/CN113824579B/en
Priority to PCT/CN2021/094112 priority patent/WO2021254061A1/en
Publication of CN113824579A publication Critical patent/CN113824579A/en
Application granted granted Critical
Publication of CN113824579B publication Critical patent/CN113824579B/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
    • H04L45/03Topology update or discovery by updating link state protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

An interface configuration method of a device in a campus network and a network device are provided, which relate to the technical field of communication. The method comprises the following steps: the network device firstly acquires the device roles of OSPF neighboring devices connected with each interface of the network device, and then the network device adds the interfaces of the network device to the appointed OSPF area according to the device roles of the OSPF neighboring devices. The method automatically configures the OSPF area to which the interface of the network device belongs according to the device role of the network device and the device role of the OSPF neighbor device, and can improve the configuration efficiency of the device interface compared with the method of manually configuring the OSPF area to which the interface of the network device belongs one by one.

Description

Interface configuration method of equipment in campus network and network equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to an interface configuration method for devices in a campus network and a network device.
Background
With the expansion of campus network scale, link state information stored in a Link State Data Base (LSDB) of a network device is also continuously increased, and the storage occupies a large amount of resource space of the network device, so that data processing burden of the network device is increased. In order to reduce the data processing burden of the network device, each interface of the network device is artificially added into different Open Shortest Path First (OSPF) areas, and the LSDB is separately configured in the different areas, so as to reduce the link state information stored in the LSDB of each device.
Although this method can reduce the pressure of a large amount of link state information carried by the network device, when configuring the area to which the network device belongs, a large amount of information needs to be configured, such as: however, as for the interfaces of the network device, there may be hundreds or thousands of interfaces, and the areas to which the interfaces of the network device belong are manually configured one by one, which not only increases the time cost, but also reduces the configuration efficiency.
Disclosure of Invention
Based on this, the application provides an interface configuration method for equipment in a campus network and network equipment, so as to improve configuration efficiency of equipment interfaces in the campus network.
In a first aspect, the present application provides an interface configuration method for a device in a campus network, where a device role obtains, for a network device of an aggregation device, a device role of an OSPF neighbor device connected to each interface of the network device, where the device role of the OSPF neighbor device includes: an access device or a core device; then, the network equipment adds an interface connected with OSPF neighboring equipment with the equipment role as core equipment into the first OSPF area; and adding an interface connected with the first OSPF neighbor device into the second OSPF area, wherein the device role of the first OSPF neighbor device is an access device.
In the application, the network device whose device role is the convergence device can add the interface connected with the OSPF neighbor device to different OSPF areas according to the device role of the OSPF neighbor device connected with the network device, by the method, not only can the isolation of information in the LSDB of each network device be realized, but also the interface of the network device can be automatically added to the appointed OSPF area according to the device role, and the method can improve the configuration efficiency of the device interface in the campus network.
In a possible implementation manner, the network device may further add an interface connected to a second OSPF neighbor device into the third OSPF area, where the device role of the second OSPF neighbor device is an access device.
By the method, the interfaces connected with OSPF neighbor devices with a plurality of device roles as access devices are respectively added to different OSPF areas, so that the link state information stored in the LSDB of the network device can be reduced.
In one possible implementation, the device role of the OSPF neighbor device further includes a sink device; the network device adds an interface connected with an OSPF neighbor device having a device role as an aggregation device to the first OSPF area.
The configuration efficiency of the device interface in the campus network can be improved by adding the interface connected with the OSPF neighbor device with the device role as the convergence device into the first OSPF area.
In a possible implementation manner, the acquiring, by the network device, the device role of the OSPF neighbor device of each interface connection of the network device may include: the network equipment acquires a message sent by OSPF neighbor equipment; wherein, the message is the message of OSPF protocol; the message of the OSPF protocol carries a field for indicating the device role of OSPF neighboring devices; and then the network device can acquire the device role of the OSPF neighbor device according to the field for indicating the device role of the OSPF neighbor device in the message.
By the method, the network equipment can acquire the equipment role of the OSPF neighbor equipment through the equipment role field in the message sent by the OSPF neighbor equipment, and after acquiring the equipment role of the OSPF neighbor equipment, the network equipment is convenient to accurately add the interface connected with the OSPF neighbor equipment into the designated area.
In a second aspect, the present application provides an interface configuration method for a device in a campus network, where a device role is a device role of a network device of a core device, where the device role of an OSPF neighbor device connected to each interface of the network device is obtained, where the device role of the OSPF neighbor device includes: a sink device or core device; then the network equipment adds an interface connected with OSPF neighbor equipment with the equipment role as core equipment into the first OSPF area; and adding an interface connected with the first OSPF neighbor device into the second OSPF area, wherein the device role of the first OSPF neighbor device is the convergence device.
In the application, the network device whose device role is the core device can add the interface connected with the OSPF neighbor device into different OSPF areas according to the device role of the OSPF neighbor device connected with the network device, by the method, not only can the isolation of information in the LSDB of each network device be realized, but also the interface of the network device can be automatically added into the appointed OSPF area according to the device role, and the method can improve the configuration efficiency of the device interface in the campus network.
In a possible implementation manner, the network device may further add an interface connected to a second OSPF neighbor device to the third OSPF area, where the device role of the second OSPF neighbor device is an aggregation device.
By adding the interface connected with the OSPF neighbor device with another device in the role of convergence device to the third OSPF region, the interfaces of each convergence device in the campus network can be configured in a partitioned manner, and the configuration efficiency of the device interfaces in the campus network is improved.
In a possible implementation manner, the network device acquiring the device role of the OSPF neighbor device connected to each interface of the network device may include the network device acquiring a message sent by the OSPF neighbor device; wherein, the message is the message of OSPF protocol; the message of the OSPF protocol carries a field for indicating the device role of OSPF neighbor devices; and then the network equipment acquires the equipment role of the OSPF neighbor equipment according to the field for indicating the equipment role of the OSPF neighbor equipment in the message.
By the method, the network equipment can acquire the equipment role of the OSPF neighbor equipment through the equipment role field in the message sent by the OSPF neighbor equipment, and after acquiring the equipment role of the OSPF neighbor equipment, the network equipment is convenient to accurately add the interface connected with the OSPF neighbor equipment into the designated area.
In the method, a device role obtains, for a network device of an access device, a device role of an OSPF neighbor device connected to each interface of the network device, where the device role of the OSPF neighbor device includes: access equipment and convergence equipment; if the OSPF neighboring devices of the network device comprise OSPF neighboring devices with the device role as access devices, the network device adds an interface connected with the OSPF neighboring devices with the device role as convergence devices into a first OSPF area, and adds an interface connected with the OSPF neighboring devices with the device role as access devices into a second OSPF area; if only OSPF neighbor devices with the device role as the aggregation device are included in the OSPF neighbor devices of the network device, the network device adds an interface connected with the OSPF neighbor devices with the device role as the aggregation device to the second OSPF area.
In the application, the network device with the device role as the access device can add the interface connected with the OSPF neighbor device into different OSPF areas according to the device role of the OSPF neighbor device connected with the network device, thereby not only realizing the isolation of information in the LSDB of each network device, but also automatically adding the interface of the network device into the appointed OSPF area according to the device role, and improving the configuration efficiency of the device interface in the campus network.
In a possible implementation manner, the network device acquiring the device role of the OSPF neighbor device connected to each interface of the network device may include the network device acquiring a message sent by the OSPF neighbor device; wherein, the message is the message of OSPF protocol; the message of the OSPF protocol carries a field for indicating the device role of OSPF neighbor devices; and then the network equipment acquires the equipment role of the OSPF neighbor equipment according to the field for indicating the equipment role of the OSPF neighbor equipment in the message.
By the method, the network equipment can acquire the equipment role of the OSPF neighbor equipment through the equipment role field in the message sent by the OSPF neighbor equipment, and after acquiring the equipment role of the OSPF neighbor equipment, the network equipment is convenient to accurately add the interface connected with the OSPF neighbor equipment into the designated area.
In a fourth aspect, the present application provides a network device, where a device role of the network device is a convergence device, including: a communication unit and a processing unit. The communication unit is configured to acquire a device role of an OSPF neighbor device connected to each interface of the network device, where the device role of the OSPF neighbor device includes: access equipment and core equipment; the processing unit is used for adding an interface connected with OSPF neighbor equipment with the equipment role as core equipment into a first OSPF area; and adding an interface connected with the first OSPF neighbor device into the second OSPF area, wherein the device role of the first OSPF neighbor device is an access device.
In the application, the network device whose device role is the convergence device can add the interface connected with the OSPF neighbor device to different OSPF areas according to the device role of the OSPF neighbor device connected with the network device, by the method, not only can the isolation of information in the LSDB of each network device be realized, but also the interface of the network device can be automatically added to the appointed OSPF area according to the device role, and the method improves the configuration efficiency of the device interface in the campus network.
In a fifth aspect, the present application provides a network device, where a device role of the network device is a core device, including: a communication unit and a processing unit. The communication unit is configured to acquire a device role of an OSPF neighbor device connected to each interface of the network device, where the device role of the OSPF neighbor device includes: a convergence device and a core device; the processing unit is used for adding an interface connected with OSPF neighbor equipment with the equipment role as core equipment into a first OSPF area; and adding an interface connected with the first OSPF neighbor device into the second OSPF area, wherein the device role of the first OSPF neighbor device is the convergence device.
In the application, the network device with the device role as the core device can add the interface connected with the OSPF neighbor device into different OSPF areas according to the device role of the OSPF neighbor device connected with the network device, by the method, not only can the isolation of information in the LSDB of each network device be realized, but also the interface of the network device can be automatically added into the appointed OSPF area according to the device role, and the method improves the configuration efficiency of the device interface in the campus network.
In a sixth aspect, the present application provides a network device, comprising: a communication unit and a processing unit. The communication unit is configured to acquire device roles of OSPF neighbor devices connected to interfaces of the network device, where the device roles of the OSPF neighbor devices include: access equipment and convergence equipment; a processing unit, configured to, if an OSPF neighbor device of a network device includes an OSPF neighbor device whose device role is an access device, add, by the network device, an interface connected to the OSPF neighbor device whose device role is an aggregation device to a first OSPF area, and add, by the network device, an interface connected to the OSPF neighbor device whose device role is an access device to a second OSPF area; and if only OSPF neighbor devices with the device role as the aggregation device are included in the OSPF neighbor devices of the network device, the network device adds an interface connected with the OSPF neighbor devices with the device role as the aggregation device into the second OSPF area.
In the application, the network device with the device role as the access device can add the interface connected with the OSPF neighbor device into different OSPF areas according to the device role of the OSPF neighbor device connected with the network device, the isolation of information in the LSDB of each network device can be realized through the mode, and the interface of the network device can be automatically added into the appointed OSPF area according to the device role, so that the configuration efficiency of the device interface in the campus network is improved.
In a seventh aspect, the present application provides a communication device comprising a processor and a memory; the memory stores a computer program; the processor is configured to execute the computer program stored in the memory, so as to execute the method described in any implementation manner of the first aspect to the third aspect.
In an eighth aspect, the present application provides a communication device comprising a processor and an interface circuit; the interface circuit is used for receiving code instructions and transmitting the code instructions to the processor; the processor is configured to execute the code instructions to perform the scheme according to any one of the implementation manners of the first aspect to the third aspect.
In a ninth aspect, the present application provides a computer-readable storage medium, in which computer-readable instructions are stored, and when the computer-readable instructions are read and executed by a computer, the computer is enabled to execute the solution described in any implementation manner of the first aspect to the third aspect.
In a tenth aspect, the present application provides a computer program product, which when read and executed by a computer, causes the computer to execute the solution according to any of the implementation manners of the first to third aspects.
For technical effects that can be achieved by the fourth aspect to the tenth aspect, please refer to technical effect descriptions that can be achieved by corresponding possible design schemes in the first aspect to the third aspect, and detailed descriptions are not repeated herein.
Drawings
Figure 1 shows a schematic diagram of the architecture of a campus network;
fig. 2 is a flowchart illustrating a method for configuring an interface of a device in a campus network according to an embodiment of the present application;
figure 3 shows a schematic diagram of an interface configuration of a device in a campus network according to an embodiment of the present application;
figure 4 shows a schematic diagram of an interface configuration of a device in a campus network according to an embodiment of the present application;
figure 5 shows a schematic diagram of an interface configuration of a device in a campus network according to an embodiment of the present application;
fig. 6 is a flowchart illustrating a method for configuring an interface of a device in a campus network according to an embodiment of the present application;
fig. 7 is a schematic diagram illustrating an interface configuration of a device in a campus network according to an embodiment of the present application;
figure 8 shows a schematic diagram of an interface configuration of a device in a campus network according to an embodiment of the present application;
fig. 9 is a flowchart illustrating a method for configuring an interface of a device in a campus network according to an embodiment of the present application;
fig. 10 is a schematic diagram illustrating an interface configuration of a device in a local area network according to an embodiment of the present application;
figure 11 shows a schematic diagram of an interface configuration of devices in a campus network according to an embodiment of the present application;
figure 12 shows a schematic diagram of an interface configuration of a device in a campus network according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of a network device provided in an embodiment of the present application;
fig. 14 shows a schematic structural diagram of a network device provided in an embodiment of the present application;
fig. 15 shows a schematic structural diagram of a network device provided in an embodiment of the present application;
fig. 16 is a schematic structural diagram of a communication device provided in an embodiment of the present application;
fig. 17 shows a schematic structural diagram of a communication device provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application clearer, the technical solutions in the embodiments of the present application will be described in detail below with reference to the drawings in the embodiments of the present application.
The campus network mainly includes a terminal layer, an access layer, a convergence layer, and a core layer, as shown in fig. 1, where the terminal layer includes a terminal device accessing the campus network, such as: smart terminals, cell phones, personal Computers (PCs), printers, and the like. The access layer provides a campus network access function for the terminal device, and is the boundary of the campus network. The access layer comprises access equipment which can be in communication connection with the terminal equipment. The access device is connected with the network device of the convergence layer through an interface. The convergence layer connects the access layer and the core layer, and includes a convergence device. The core layer is the backbone area of the campus network and may be connected to the aggregation layer and other components of the campus network (if any). Other components of the campus network such as the data center. The core layer may be an egress of the campus network, the core layer including a core device.
In addition, the network device of the core layer is connected to a network (Internet or wide area network, WAN)) outside the campus through the network device of the exit area, so as to implement interaction of data information, where the network device of each layer in the campus network may be a switch or a router, and is not limited specifically herein.
Usually, a network device in the campus network is configured with a link state protocol, and based on the link state protocol, a route can be found, a route forwarding table is determined, and forwarding of a packet is guided. In order to enable the devices in the campus network to forward message information, link status information of all the devices in the campus network is usually stored in the LSDB of each device. As described in the background, in order to reduce the link-state information stored in the LSDB of each device, the LSDB may be configured separately in different areas by adding each interface of the network device configured with the OSPF protocol to a designated OSPF area manually, but this approach is time-consuming and labor-consuming by adding each network device interface to the OSPF area manually. In addition, when people are tired, configuration errors are prone to occur when a large amount of interface information is configured, once the configuration errors occur, the area where the interfaces belong is reconfigured, and the manual work pressure is too large.
Based on this, the application provides an interface configuration method for equipment in a campus network, so as to improve the configuration efficiency of equipment interfaces in the campus network.
It should be understood that, in the embodiment of the present application, the device role is also an identity of the network device in the campus network, where the identity is used to indicate a location of the network device in a network topology of the campus network, and for the present application, the device role includes: the device comprises a convergence device, a core device and an access device. If the device role is the convergence device, the network device connected with the device role can comprise a core device, an access device and a convergence device; if the device role is a core device, the network devices connected with the device role can comprise the core device and the convergence device; if the device role is an access device, the network devices connected to the device role may include an access device and an aggregation device.
The OSPF neighboring device is also a network device connected with the network device and supporting the OSPF protocol, and can perform information interaction with the network device through an OSPF message.
The OSPF area is that each network device is divided into a plurality of areas on the basis that the network device supports the OSPF protocol, and the LSDB is independently generated in different areas.
Wherein "and/or" describes the association relationship of the associated object, indicating that there may be three relationships, for example, a and/or B, which may indicate: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple. The singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, such as "one or more", unless the context clearly indicates otherwise. And, unless stated to the contrary, the embodiments of the present application refer to the ordinal numbers "first", "second", etc., for distinguishing a plurality of objects, and do not limit the sequence, timing, priority, or importance of the plurality of objects.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The device roles of the network devices in the campus network include aggregation device, core device, and access device, and the following application will respectively stand in the view of different device roles to explain how each device configures the OSPF area to which the interface belongs.
Fig. 2 is a flow diagram schematically describing an interface configuration method of a device in a campus network, where the device role is a convergence device, and the convergence device may first perform step 201 to obtain device roles of OSPF neighbor devices connected to respective interfaces of a network device, where the device roles of the OSPF neighbor devices may include an access device or a core device.
Step 202 is then executed, in which the aggregation device adds an interface connected to an OSPF neighbor device having a device role as a core device to the first OSPF area.
Step 203, the convergence device adds an interface connected with the first OSPF neighboring device into the second OSPF area, and the device role of the first OSPF neighboring device is an access device.
In addition, step 202 and step 203 in fig. 2 may not be in a sequential order, may be executed simultaneously, or may be executed in sequence, where step 203 is executed first and then step 202 is executed, or step 202 is executed first and then step 203 is executed, and the execution order is not specifically limited in this application.
For example, as shown in fig. 3, the interfaces of the convergence device 1 include an interface 1 to an interface 12. The OSPF neighbor device includes: core device 1, core device 2, access device 1, and access device 2. The convergence device 1 is connected with the core device 1 through an interface 1 and an interface 2; the convergence device 1 is connected with the core device 2 through an interface 3 and an interface 4; the convergence device 1 is connected with the access device 1 through an interface 5 and an interface 6; the convergence device 1 is connected with the access device 2 through an interface 7 and an interface 8. According to the interface configuration method of the devices in the campus network illustrated in fig. 2, the aggregation device 1 may add an interface 1, an interface 2, an interface 3, and an interface 4 to the OSPF area 1, and may add an interface 5, an interface 6, an interface 7, and an interface 8 to the OSPF area 2.
The convergence device can automatically add the interfaces connected with the OSPF neighboring devices into the designated area according to the device roles of the OSPF neighboring devices without configuring the areas of the network devices to which the interfaces belong one by one, thereby realizing the isolation of the information in the LSDB of the network device and improving the configuration efficiency of the interfaces in the campus network.
In one embodiment, the network device may further add an interface to the third OSPF area to connect with a second OSPF neighbor device, whose device role may be an access device. The method can add the interfaces of the convergence device connected with different access devices to different OSPF areas respectively, and isolate the interfaces of the network device connected with each access device in different OSPF areas, thereby further reducing link state information in the LSDB of the network device.
The OSPF neighbor device based on the convergence device 1 in fig. 3 includes: core device 1, core device 2, access device 1, and access device 2. The convergence device 1 may further add an interface 5 and an interface 6, which are used by the convergence device 1 to connect with the access device 1, to the OSPF area 2, and add an interface 7 and an interface 8, which are used by the convergence device 1 to connect with the access device 2, to the OSPF area 3, as shown in fig. 4. In addition, if the aggregation device 1 further includes an interface 13 and an interface 14, and the aggregation device 1 is connected to the access device 3 through the interface 13 and the interface 14, the aggregation device 1 may add the interface 13 and the interface 14 to the OSPF area 4, that is, when the aggregation device is connected to a plurality of access devices, the interfaces of the aggregation device connected to each access device are respectively added to different OSPF areas.
In one embodiment, the device role of the OSPF neighbor device may further include a sink device; the network device may add an interface to connect with an OSPF neighbor device having a device role of a convergence device into the first OSPF area. As shown in fig. 5, which is only specifically illustrated on the basis of fig. 3, the OSPF neighbor devices of the aggregation device 1 may further include an aggregation device 2 and an aggregation device 3. The convergence device 1 is connected with the convergence device 2 through an interface 9 and an interface 10; the convergence device 1 is connected with the convergence device 3 through an interface 11 and an interface 12. The convergence device 1 may add interface 9, interface 10, interface 11, and interface 12 to the OSPF area 1. The configuration efficiency of the device interface in the campus network can be improved by adding the OSPF neighbor device with the device role as the aggregation device into the first OSPF area.
In one embodiment, the network device may determine the device role of the OSPF neighbor device of the network device by:
the convergence equipment firstly acquires a message sent by OSPF neighbor equipment; wherein, the message is the message of OSPF protocol; the message of the OSPF protocol carries a field for indicating the device role of OSPF neighbor devices; the convergence device may then obtain the device role of the OSPF neighbor device according to the field in the message used to indicate the device role of the OSPF neighbor device.
The network device in the campus network exchanges information with the OSPF neighbor device through a message of the OSPF protocol, the aggregation device may receive the message of the OSPF neighbor device, and may determine the device role of the OSPF neighbor device by parsing a field indicating the device role of the OSPF neighbor device in the message, for example: the convergence device 1 receives a message 1 sent by the OSPF neighbor device, the convergence device 1 learns that the device role of the OSPF neighbor device is an access device by analyzing a field used for indicating the device role of the OSPF neighbor device in the message 1, and the convergence device 1 adds an interface connected with the OSPF neighbor device to a specified OSPF area according to the device role of the OSPF neighbor device.
Compared with the scheme that thousands of interfaces of the network equipment need to be manually configured to the OSPF areas, the network equipment only needs to manually configure the equipment role information of the network equipment, and only needs to acquire the equipment role fields in the messages sent by the OSPF neighbor equipment, so that the interfaces of the network equipment can be automatically added to the corresponding OSPF areas according to the equipment role information of the OSPF neighbor equipment. Compared with the method and the device which need to manually configure the interface information one by one, the method and the device only need to manually configure the device role information of the network device. Compared with the OSPF areas to which the interfaces belong configured manually one by one, the OSPF areas to which the interfaces belong are automatically configured through the network equipment, and the configuration efficiency of the interfaces is obviously improved. In addition, because the possibility of errors is high when thousands of interface information is manually configured, the method and the device automatically configure the interface information through the network equipment, and the possibility of configuration errors of the interface information is reduced.
Fig. 6 is a flow diagram schematically describing an interface configuration method of a device in a campus network from the perspective that a device role is a core device, where the core device may first perform step 601 to obtain device roles of OSPF neighbor devices connected to interfaces of a network device, where the device roles of the OSPF neighbor devices may include: a sink device and a core device.
Then, step 602 is executed, the core device adds an interface connected to an OSPF neighbor device having a device role as the core device to the first OSPF area.
Step 603, the core device adds an interface connected with the first OSPF neighbor device to the second OSPF area, and the device role of the first OSPF neighbor device is an aggregation device.
In addition, step 602 and step 603 in fig. 6 do not distinguish a sequence, and may be executed simultaneously, or according to the sequence, step 603 is executed first and then step 602 is executed, or step 602 is executed first and then step 603 is executed, and then the execution sequence is not specifically limited in this application.
For example, as shown in fig. 7, the interface of the core device 1 includes: interface 1 to interface 8. In practical application, the core device includes not only 8 interfaces, but the figure is only an example and does not limit the number of interfaces of the core device. The OSPF neighbor device includes: core device 2, core device 3, aggregation device 1, and aggregation device 2. The core equipment 1 is connected with the core equipment 2 through an interface 1 and an interface 2; the core device 1 is connected with the core device 3 through an interface 3 and an interface 4; the core equipment 1 is connected with the convergence equipment 1 through an interface 5 and an interface 6; the core device 1 is connected with the convergence device 2 through an interface 7 and an interface 8. According to the interface configuration method of the devices in the campus network illustrated in fig. 6, the core device 1 may add an interface 1, an interface 2, an interface 3, and an interface 4 to the OSPF area 1, and may add an interface 5, an interface 6, an interface 7, and an interface 8 to the OSPF area 2.
By the method, the core device can add the interface connected with the OSPF neighbor device to the appointed area according to the device role of the OSPF neighbor device, add the interface connected with the core device to the first OSPF area, and add the interface connected with the access device to the second OSPF area, thereby improving the configuration efficiency of the interface in the campus network.
In one embodiment, the core device may further add an interface to the third OSPF area that is connected to a second OSPF neighbor device whose device role is an aggregation device. That is, the interface 5 and the interface 6 connected to the aggregation device 1 in fig. 7 may be added to the OSPF area 2, and the interface 7 and the interface 8 connected to the aggregation device 2 may be added to the OSPF area 3 as shown in fig. 8, that is, when the core device is connected to a plurality of aggregation devices, the interfaces connected to the core device and each aggregation device are respectively added to different OSPF areas. By the method, interfaces of the aggregation equipment connected with the access equipment can be isolated in different OSPF areas, and the link state information in the LSDB of the network equipment is further reduced.
In one embodiment, a network device may determine a device role of an OSPF neighbor of the network device by:
the method comprises the steps that core equipment firstly obtains a message sent by OSPF neighbor equipment; wherein, the message is the message of OSPF protocol; the message of the OSPF protocol carries a field for indicating the device role of OSPF neighbor devices; and then the core device acquires the device role of the OSPF neighbor device according to the field for indicating the device role of the OSPF neighbor device in the message.
The network device in the campus network exchanges information with the OSPF neighbor device through a message of an OSPF protocol, the aggregation device may receive the message of the OSPF neighbor device, and determine the device role of the OSPF neighbor device by parsing a field indicating the device role of the OSPF neighbor device in the message, such as: the core device 1 receives the message 2 sent by the OSPF neighboring device, the convergence device 1 analyzes the field used for indicating the device role of the OSPF neighboring device in the message 2 to learn that the device role of the OSPF neighboring device is the convergence device, and the core device 1 adds the interface connected with the OSPF neighboring device to the appointed OSPF area according to the device role of the OSPF neighboring device.
Compared with the scheme that thousands of interfaces of the network equipment need to be manually configured to the OSPF areas, the network equipment only needs to manually configure the equipment role information of the network equipment, and only needs to acquire the equipment role fields in the messages sent by the OSPF neighbor equipment, so that the interfaces of the network equipment can be automatically added to the corresponding OSPF areas according to the equipment role information of the OSPF neighbor equipment. Compared with the method and the device which need to manually configure the interface information one by one, the method and the device only need to manually configure the device role information of the network device. Compared with the OSPF areas to which the interfaces belong configured manually one by one, the OSPF areas to which the interfaces belong are automatically configured through the network equipment, and the configuration efficiency of the interfaces is obviously improved. In addition, because the possibility of errors is high when thousands of interface information is manually configured, the method and the device automatically configure the interface information through the network equipment, and the possibility of configuration errors of the interface information is reduced.
Fig. 9 schematically illustrates an interface configuration method of a device in a campus network from the perspective that a device role of a station is an access device, where the access device may first perform step 901 to obtain device roles of OSPF neighbor devices connected to interfaces of a network device, where the device roles of the OSPF neighbor devices may include: an access device and a convergence device.
Step 902, if the OSPF neighbor devices of the network device include OSPF neighbor devices whose device roles are access devices, the network device adds an interface connected to the OSPF neighbor devices whose device roles are aggregation devices to the first OSPF area, and adds an interface connected to the OSPF neighbor devices whose device roles are access devices to the second OSPF area.
Step 903, if only the OSPF neighbor devices with the device role as the aggregation device are included in the OSPF neighbor devices of the network device, the network device adds an interface connected with the OSPF neighbor devices with the device role as the aggregation device to the second OSPF area.
In addition, step 902 and step 903 in fig. 9 do not distinguish a sequence, and may be executed simultaneously, or according to a sequence, step 903 is executed first and then step 902 is executed, or step 902 is executed first and then step 903 is executed, and then the execution sequence is not specifically limited in this application.
For example, as shown in fig. 10, the OSPF neighbor device of the access device 1 only includes: a convergence device 1 and a convergence device 2. The access device 1 is connected with the convergence device 1 through the interface 1 and the interface 2; the access device 1 is connected with the convergence device 2 through an interface 3 and an interface 4. The convergence device 1 may add interface 1, interface 2, interface 3, and interface 4 to the OSPF area 2.
The access device can be connected with the access device after being connected with the aggregation device, and because the access device is connected with other access devices besides the aggregation device, an interface for connecting the access device with the aggregation device can be moved from the OSPF area 2 to the OSPF area 1, wherein the LSDB of the OSPF area 1 can store more link state information relative to the LSDB of the OSPF area 2. When the access device is connected with the convergence device and then is connected with the access device, the interface for connecting the access device with the convergence device is added to the OSPF area 1, instead of configuring the interfaces for connecting the interface with the access device and other access devices in the OSPF area 2, so that the link state information stored in each network device LSDB in the OSPF area 2 can be reduced.
For example, as shown in fig. 11, the interface of the access device 1 includes: interface 1 to interface 8. The actual access device includes not only 8 interfaces, but the figure is only an example and does not limit the number of interfaces of the access device. The OSPF neighbor device of the access device 1 comprises: aggregation device 1, aggregation device 2, access device 2, and access device 3. The access device 1 is connected with the convergence device 1 through the interface 1 and the interface 2; the access device 1 is connected with the convergence device 2 through an interface 3 and an interface 4; the access equipment 1 is connected with the access equipment 2 through an interface 5 and an interface 6; the access device 1 is connected with the access device 3 through an interface 7 and an interface 8. According to the interface configuration method of the devices in the campus network illustrated in fig. 9, the aggregation device 1 may add the interface 1, the interface 2, the interface 3, and the interface 4 to the OSPF area 1, and may add the interface 5, the interface 6, the interface 7, and the interface 8 to the OSPF area 2.
In addition, it is also possible to add the interfaces 5 and 6 for connecting the access device 1 and the access device 2 to the OSPF area 2, and add the interfaces 7 and 8 for connecting the access device 1 and the access device 3 to the OSPF area 3 as shown in fig. 12, that is, when the access device is connected to a plurality of access devices, the interfaces for connecting the access device and each access device are respectively added to different OSPF areas. In this way, interfaces of the network device connected with each access device are isolated in different OSPF areas, and link state information in the LSDB of the network device is further reduced.
In one embodiment, a network device may determine a device role of an OSPF neighbor of the network device by:
the access equipment firstly acquires a message sent by OSPF neighbor equipment; wherein, the message is the message of OSPF protocol; the message of the OSPF protocol carries a field for indicating the device role of OSPF neighbor devices; and then the access device acquires the device role of the OSPF neighbor device according to the field for indicating the device role of the OSPF neighbor device in the message.
The network device in the campus network exchanges information with the OSPF neighbor device through a message of an OSPF protocol, and the access device may receive the message of the OSPF neighbor device, and determine the device role of the OSPF neighbor device by parsing a field indicating the device role of the OSPF neighbor device in the message, such as: the core device 1 receives the message 3 sent by the OSPF neighbor device, the access device 1 learns that the device role of the OSPF neighbor device is the convergence device by analyzing the field for indicating the device role of the OSPF neighbor device in the message 2, and the access device 1 adds the interface connected with the OSPF neighbor device to the specified OSPF area according to the device role of the OSPF neighbor device.
Compared with the scheme that thousands of interfaces of the network equipment need to be manually configured to the OSPF areas, the network equipment only needs to manually configure the equipment role information of the network equipment, and only needs to acquire the equipment role fields in the messages sent by the OSPF neighbor equipment, so that the interfaces of the network equipment can be automatically added to the corresponding OSPF areas according to the equipment role information of the OSPF neighbor equipment. Compared with the method and the device which need to manually configure the interface information one by one, the method and the device only need to manually configure the device role information of the network device. Compared with the method that the OSPF areas to which the interfaces belong are configured manually one by one, the OSPF area to which the interfaces belong is automatically configured through the network equipment, and the configuration efficiency of the interfaces is obviously improved. In addition, because the possibility of errors is high when thousands of interface information is manually configured, the method and the device automatically configure the interface information through the network equipment, and the possibility of configuration errors of the interface information is reduced.
Based on the same technical concept, an embodiment of the present application further provides a network device, as shown in fig. 13, including: communication unit 131, processing unit 132.
The communication unit 131 is configured to acquire device roles of an open shortest path first OSPF neighbor device connected to each interface of a network device, where the device roles of the OSPF neighbor devices include: an access device or a core device; a processing unit 132, configured to add an interface connected to an OSPF neighbor device whose device role is a core device to the first OSPF area; and adding an interface connected with the first OSPF neighbor device into the second OSPF area, wherein the device role of the first OSPF neighbor device is an access device.
In the embodiment of the application, the network device with the device role as the convergence device can add the interface connected with the OSPF neighbor device into different OSPF areas according to the device role of the OSPF neighbor device connected with the network device, the isolation of information in the LSDB of each network device can be realized through the mode, and the interface of the network device can be automatically added into the appointed OSPF area according to the device role, so that the configuration efficiency of the device interface in the campus network is improved.
In a possible implementation manner, the network device adds an interface connected with a second OSPF neighbor device to the third OSPF area, and the device role of the second OSPF neighbor device is an access device.
By the method, the interfaces connected with OSPF neighbor devices with a plurality of device roles as access devices are respectively added to different OSPF areas, so that the link state information stored in the LSDB of the network device can be reduced.
In one possible implementation, the device role of the OSPF neighbor device further includes: a convergence device; the network device adds an interface connected with OSPF neighbor devices having a device role as a convergence device into the first OSPF area.
The configuration efficiency of the device interface in the campus network can be improved by adding the interface connected with the OSPF neighbor device with the device role as the aggregation device into the first OSPF area.
In a possible implementation manner, a network device acquires a message sent by an OSPF neighbor device; wherein, the message is the message of OSPF protocol; the message of the OSPF protocol carries a field for indicating the device role of OSPF neighbor devices; and then the network equipment acquires the equipment role of the OSPF neighbor equipment according to the field for indicating the equipment role of the OSPF neighbor equipment in the message.
By the method, the network equipment can acquire the equipment role of the OSPF neighbor equipment through the equipment role field in the message sent by the OSPF neighbor equipment, and after acquiring the equipment role of the OSPF neighbor equipment, the network equipment is convenient to accurately add the interface connected with the OSPF neighbor equipment into the designated area.
Based on the same technical concept, an embodiment of the present application further provides a network device, as shown in fig. 14, including: communication unit 141, processing unit 142.
The communication unit 141 is configured to acquire a device role of an OSPF neighbor device connected to each interface of the network device, where the device role of the OSPF neighbor device includes: a convergence device or core device; a processing unit 142, configured to add an interface connected to an OSPF neighbor device with a device role as a core device to the first OSPF area; and adding an interface connected with the first OSPF neighbor device into the second OSPF area, wherein the device role of the first OSPF neighbor device is a convergence device.
In the embodiment of the application, the network device with the device role as the core device can add the interface connected with the OSPF neighbor device into different OSPF areas according to the device role of the OSPF neighbor device connected with the network device, by the method, the isolation of information in the LSDB of each network device can be realized, and the interface of the network device can be automatically added into the appointed OSPF area according to the device role, so that the configuration efficiency of the device interface in the campus network is improved.
In one possible implementation, the network device adds an interface connected to the second OSPF neighbor device to the third OSPF area, and the device role of the second OSPF neighbor device is an aggregation device.
By adding the interface connected with the OSPF neighboring device with the other device as the convergence device into the third OSPF area, the interfaces of the convergence devices in the campus network can be configured in a partitioned manner, thereby improving the configuration efficiency of the device interfaces in the campus network. In a possible implementation manner, a network device acquires a message sent by an OSPF neighbor device; wherein, the message is the message of OSPF protocol; the message of the OSPF protocol carries a field for indicating the device role of OSPF neighbor devices; and then the network equipment acquires the equipment role of the OSPF neighbor equipment according to the field for indicating the equipment role of the OSPF neighbor equipment in the message.
By the method, the network equipment can acquire the equipment role of the OSPF neighbor equipment through the equipment role field in the message sent by the OSPF neighbor equipment, and after acquiring the equipment role of the OSPF neighbor equipment, the network equipment is convenient to accurately add the interface connected with the OSPF neighbor equipment into the designated area.
Based on the same technical concept, an embodiment of the present application further provides a network device, as shown in fig. 15, including: communication unit 151 and processing unit 152.
The communication unit 151 is configured to acquire device roles of OSPF neighbor devices connected to interfaces of a network device, where the device roles of the OSPF neighbor devices include: access equipment and convergence equipment; a processing unit 152, configured to, if an OSPF neighbor device whose device role is an access device is included in OSPF neighbor devices of a network device, add, by the network device, an interface connected to the OSPF neighbor device whose device role is an aggregation device into a first OSPF area, and add, by the network device, an interface connected to the OSPF neighbor device whose device role is an access device into a second OSPF area; and if only OSPF neighbor devices with the device role as the aggregation device are included in the OSPF neighbor devices of the network device, the network device adds an interface connected with the OSPF neighbor devices with the device role as the aggregation device into the second OSPF area.
In the embodiment of the application, the network device with the device role as the access device can add the interface connected with the OSPF neighbor device into different OSPF areas according to the device role of the OSPF neighbor device connected with the network device, the isolation of information in the LSDB of each network device can be realized through the mode, and the interface of the network device can be automatically added into the appointed OSPF area according to the device role, so that the configuration efficiency of the device interface in the campus network is improved.
In a possible implementation manner, a network device acquires a message sent by an OSPF neighbor device; wherein, the message is the message of OSPF protocol; the message of the OSPF protocol carries a field for indicating the device role of OSPF neighbor devices; and then the network equipment acquires the equipment role of the OSPF neighbor equipment according to the field for indicating the equipment role of the OSPF neighbor equipment in the message.
By the method, the network equipment can acquire the equipment role of the OSPF neighbor equipment through the equipment role field in the message sent by the OSPF neighbor equipment, and after acquiring the equipment role of the OSPF neighbor equipment, the network equipment is convenient to accurately add the interface connected with the OSPF neighbor equipment into the designated area.
Based on the same concept, as shown in fig. 16, a communication device 1600 provided by the present application is provided. Illustratively, the communication device 1600 may be a chip or a system of chips. Optionally, the chip system in the embodiment of the present application may be composed of a chip, and may also include a chip and other discrete devices.
The communication device 1600 may include at least one processor 1610, and the device 1600 may also include at least one memory 1620 for storing computer programs, program instructions, and/or data. A memory 1620 is coupled to the processor 1610. The coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units or modules, and may be in an electrical, mechanical or other form, which is used for information interaction between the devices, units or modules. The processor 1610 may operate in conjunction with the memory 1620. Processor 1610 may execute computer programs stored in memory 1620. Optionally, at least one of the at least one memory 1620 may be included in the processor 1610.
The communications apparatus 1600 may further include a transceiver 1630, and the communications apparatus 1600 may exchange information with other devices through the transceiver 1630. The transceiver 1630 may be a circuit, bus, transceiver, or any other device that may be used to exchange information.
In a possible implementation manner, the communication apparatus 1600 may be applied to the foregoing network device, and the specific communication apparatus 1600 may be the foregoing network device, and may also be an apparatus capable of supporting the foregoing network device to implement any of the foregoing embodiments. The memory 1620 stores the necessary computer programs, program instructions and/or data to implement the functionality of the network devices in any of the embodiments described above. The processor 1610 can execute the computer program stored in the memory 1620 to perform the method of any of the above embodiments.
The specific connection medium among the transceiver 1630, the processor 1610 and the memory 1620 is not limited in the embodiments of the present invention. In the embodiment of the present application, the memory 1620, the processor 1610 and the transceiver 1630 are connected by a bus in fig. 16, the bus is represented by a thick line in fig. 16, and the connection manner between other components is merely illustrative and not limited thereto. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 16, but this is not intended to represent only one bus or type of bus.
In the embodiments of the present application, the processor may be a general processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in a processor.
In the embodiment of the present application, the memory may be a nonvolatile memory, such as a Hard Disk Drive (HDD) or a solid-state drive (SSD), and may also be a volatile memory (RAM), for example. The memory can also be, but is not limited to, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory in the embodiments of the present application may also be circuitry or any other device capable of performing a storage function for storing computer programs, program instructions and/or data.
Based on the above embodiments, referring to fig. 17, an embodiment of the present application further provides another communication apparatus 1700, including: interface circuits 1710 and a processor 1720; interface circuits 1710 for receiving code instructions and transmitting them to the processor 1720; a processor 1720 for executing the code instructions to perform the method of any of the above embodiments.
Based on the foregoing embodiments, the present application further provides a readable storage medium, which stores instructions that, when executed, cause the method performed by the security detection apparatus in any of the foregoing embodiments to be implemented. The readable storage medium may include: u disk, removable hard disk, read only memory, random access memory, magnetic or optical disk, etc. for storing program codes.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, 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, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

Claims (21)

1. A method for interface configuration of a device in a campus network, comprising:
the device role is the device role of the network device of the convergence device for acquiring the open shortest path first OSPF neighbor devices connected to each interface of the network device, wherein the device role of the OSPF neighbor devices includes: an access device or a core device;
the network equipment adds an interface connected with OSPF neighbor equipment with the equipment role as core equipment into a first OSPF area;
and the network equipment adds an interface connected with a first OSPF neighbor equipment into a second OSPF area, wherein the equipment role of the first OSPF neighbor equipment is access equipment.
2. The method of claim 1, further comprising: and the network equipment adds an interface connected with a second OSPF neighbor equipment into a third OSPF area, wherein the equipment role of the second OSPF neighbor equipment is access equipment.
3. The method of claim 1 or 2, wherein the device role of the OSPF neighbor device further comprises: a convergence device; the method further comprises the following steps:
and the network equipment adds an interface connected with OSPF neighbor equipment with the equipment role as convergence equipment into the first OSPF area.
4. The method according to claim 1 or 2, wherein the acquiring, by the device role, the device role of the OSPF neighbor device of each interface connection of the network device for the network device of the aggregation device comprises:
the network equipment acquires a message sent by the OSPF neighbor equipment; wherein, the message is the message of OSPF protocol; the message of the OSPF protocol carries a field for indicating the device role of the OSPF neighbor device;
and the network equipment acquires the equipment role of the OSPF neighboring equipment according to the field which is used for indicating the equipment role of the OSPF neighboring equipment in the message.
5. A method for interface configuration of a device in a campus network, comprising:
the device role is that a network device of a core device acquires the device roles of OSPF neighboring devices connected to each interface of the network device, wherein the device roles of the OSPF neighboring devices include: a convergence device or core device;
the network equipment adds an interface connected with OSPF neighboring equipment with the equipment role as core equipment into a first OSPF area;
and the network equipment adds an interface connected with a first OSPF neighbor equipment into a second OSPF area, wherein the equipment role of the first OSPF neighbor equipment is convergence equipment.
6. The method of claim 5, further comprising: and the network equipment adds an interface connected with a second OSPF neighbor equipment into a third OSPF area, wherein the equipment role of the second OSPF neighbor equipment is convergence equipment.
7. The method according to claim 5 or 6, wherein the acquiring, by the network device of the core device, the device roles of the OSPF neighbor devices of the respective interface connections of the network device comprises:
the network equipment acquires a message sent by the OSPF neighbor equipment; wherein, the message is the message of OSPF protocol; the message of the OSPF protocol carries a field for indicating the device role of the OSPF neighboring device;
and the network equipment acquires the equipment role of the OSPF neighbor equipment according to the field which is used for indicating the equipment role of the OSPF neighbor equipment in the message.
8. A method for interface configuration of a device in a campus network, comprising:
the method comprises the following steps that a device role is obtained for a network device of an access device, wherein the device role of an OSPF neighbor device connected with each interface of the network device is the device role of the OSPF neighbor device, and the device role of the OSPF neighbor device comprises the following steps: access equipment and convergence equipment;
if the OSPF neighboring devices of the network device comprise OSPF neighboring devices with the device role as access devices, the network device adds an interface connected with the OSPF neighboring devices with the device role as convergence devices into a first OSPF area, and adds an interface connected with the OSPF neighboring devices with the device role as access devices into a second OSPF area;
if only OSPF neighbor devices with the device role as the convergence device are included in the OSPF neighbor devices of the network device, the network device adds an interface connected with the OSPF neighbor devices with the device role as the convergence device to the second OSPF area.
9. The method of claim 8, wherein the device role is a device role of a network device of an access device acquiring OSPF neighbor devices of respective interface connections of the network device, and comprises:
the network equipment acquires a message sent by the OSPF neighbor equipment; wherein, the message is the message of OSPF protocol; the message of the OSPF protocol carries a field for indicating the device role of the OSPF neighbor device;
and the network equipment acquires the equipment role of the OSPF neighbor equipment according to the field which is used for indicating the equipment role of the OSPF neighbor equipment in the message.
10. A network device, wherein a device role of the network device is a sink device, comprising:
a communication unit, configured to acquire device roles of open shortest path first OSPF neighbor devices connected to respective interfaces of the network device, where the device roles of the OSPF neighbor devices include: an access device or a core device;
the processing unit is used for adding an interface connected with OSPF neighbor equipment with the equipment role as core equipment into a first OSPF area; and adding an interface connected with a first OSPF neighbor device into the second OSPF area, wherein the device role of the first OSPF neighbor device is an access device.
11. The apparatus of claim 10, wherein the processing unit is further configured to add an interface to a third OSPF area that connects with a second OSPF neighbor device, the second OSPF neighbor device having a device role of an access device.
12. The device of claim 10 or 11, wherein the device role of the OSPF neighbor device further comprises a sink device;
the processing unit is further configured to add an interface connected to an OSPF neighbor device whose device role is an aggregation device to the first OSPF area.
13. The device according to claim 10 or 11, wherein the communication unit is specifically configured to:
acquiring a message sent by the OSPF neighbor equipment; wherein, the message is the message of OSPF protocol; the message of the OSPF protocol carries a field for indicating the device role of the OSPF neighboring device;
and acquiring the equipment role of the OSPF neighboring equipment according to the field which is used for indicating the equipment role of the OSPF neighboring equipment in the message.
14. A network device, wherein a device role of the network device is a core device, comprising:
a communication unit, configured to acquire device roles of OSPF neighbor devices connected to respective interfaces of the network device, where the device roles of the OSPF neighbor devices include: a convergence device or core device;
the processing unit is used for adding an interface connected with OSPF neighbor equipment with the equipment role as core equipment into a first OSPF area; and adding an interface connected with a first OSPF neighbor device into the second OSPF area, wherein the device role of the first OSPF neighbor device is a convergence device.
15. The apparatus of claim 14, wherein the processing unit is further configured to add an interface to a third OSPF area to which a second OSPF neighbor device has a device role of aggregation device.
16. The device according to claim 14 or 15, wherein the communication unit is specifically configured to:
acquiring a message sent by the OSPF neighbor device; wherein, the message is the message of OSPF protocol; the message of the OSPF protocol carries a field for indicating the device role of the OSPF neighbor device;
and acquiring the equipment role of the OSPF neighbor equipment according to the field which is used for indicating the equipment role of the OSPF neighbor equipment in the message.
17. A network device, wherein a device role of the network device is an access device, comprising:
a communication unit, configured to acquire a device role of an OSPF neighbor device connected to each interface of the network device, where the device role of the OSPF neighbor device includes: access equipment and convergence equipment;
a processing unit, configured to, if an OSPF neighbor device whose device role is an access device is included in the OSPF neighbor devices of the network device, add, by the network device, an interface connected to the OSPF neighbor device whose device role is an aggregation device to a first OSPF area, and add, by the network device, an interface connected to the OSPF neighbor device whose device role is an access device to a second OSPF area; and if only OSPF neighbor devices with the device role as the convergence device are included in the OSPF neighbor devices of the network device, the network device adds an interface connected with the OSPF neighbor devices with the device role as the convergence device to the second OSPF area.
18. The device according to claim 17, wherein the communication unit is specifically configured to:
acquiring a message sent by the OSPF neighbor equipment; wherein, the message is the message of OSPF protocol; the message of the OSPF protocol carries a field for indicating the device role of the OSPF neighbor device;
and acquiring the equipment role of the OSPF neighbor equipment according to the field which is used for indicating the equipment role of the OSPF neighbor equipment in the message.
19. A communications apparatus, comprising: a processor and a memory;
the memory stores a computer program;
the processor configured to execute the computer program stored in the memory to cause the method of any of claims 1-9 to be performed.
20. A communications apparatus, comprising: a processor and interface circuitry;
the interface circuit is used for receiving code instructions and transmitting the code instructions to the processor;
the processor is configured to execute the code instructions to perform the method of any one of claims 1-9.
21. A computer-readable storage medium having computer-readable instructions stored therein, which when read and executed by a computer, cause the computer to perform the method of any one of claims 1-9.
CN202010567176.0A 2020-06-19 2020-06-19 Interface configuration method of equipment in campus network and network equipment Active CN113824579B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010567176.0A CN113824579B (en) 2020-06-19 2020-06-19 Interface configuration method of equipment in campus network and network equipment
PCT/CN2021/094112 WO2021254061A1 (en) 2020-06-19 2021-05-17 Interface configuration method for device in campus network, and network device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010567176.0A CN113824579B (en) 2020-06-19 2020-06-19 Interface configuration method of equipment in campus network and network equipment

Publications (2)

Publication Number Publication Date
CN113824579A CN113824579A (en) 2021-12-21
CN113824579B true CN113824579B (en) 2022-12-06

Family

ID=78912056

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010567176.0A Active CN113824579B (en) 2020-06-19 2020-06-19 Interface configuration method of equipment in campus network and network equipment

Country Status (2)

Country Link
CN (1) CN113824579B (en)
WO (1) WO2021254061A1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110417665A (en) * 2019-08-05 2019-11-05 浪潮云信息技术有限公司 A kind of the EVPN group network system and method for the more Fabric scenes of data center

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100420225C (en) * 1999-08-06 2008-09-17 国际商业机器公司 Priority interface of open shortest path
US6681232B1 (en) * 2000-06-07 2004-01-20 Yipes Enterprise Services, Inc. Operations and provisioning systems for service level management in an extended-area data communications network
CN101159604B (en) * 2007-11-06 2010-09-29 中兴通讯股份有限公司 Method of setting priority interface region number of open shortest path
CN103178983A (en) * 2011-12-26 2013-06-26 中兴通讯股份有限公司 Method and device for configuring shortest path first protocol interface area identifications
CN103004147B (en) * 2012-09-25 2015-07-08 华为技术有限公司 Message forwarding path determining method, network device and control device
CN104301219B (en) * 2013-07-15 2019-11-05 南京中兴软件有限责任公司 A kind of method and system of network topology
CN203883860U (en) * 2014-05-16 2014-10-15 北京北控电信通科技发展有限公司 Network communication architecture of campus network
CN107995111B (en) * 2016-10-26 2021-08-06 中兴通讯股份有限公司 Service forwarding method, link change notification method, convergence device and access device
CN109391526B (en) * 2018-11-27 2020-12-18 锐捷网络股份有限公司 Network loop detection method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110417665A (en) * 2019-08-05 2019-11-05 浪潮云信息技术有限公司 A kind of the EVPN group network system and method for the more Fabric scenes of data center

Also Published As

Publication number Publication date
CN113824579A (en) 2021-12-21
WO2021254061A1 (en) 2021-12-23

Similar Documents

Publication Publication Date Title
CN106656801B (en) Reorientation method, device and the Business Stream repeater system of the forward-path of Business Stream
CN106664261B (en) A kind of methods, devices and systems configuring flow entry
US9660942B2 (en) Automatic buffer sizing for optimal network-on-chip design
CN106878194B (en) Message processing method and device
CN106254281B (en) A kind of message processing method and device based on 802.1BR
US10038623B2 (en) Reducing flooding of link state changes in networks
CN107547391A (en) A kind of message transmitting method and device
CN103338152A (en) Multicast message forwarding method and main control board
CN101924699A (en) Message forwarding method, system and provider edge equipment
CN105337865A (en) Method, apparatus and system for establishing forwarding table item
US20120287946A1 (en) Hash-Based Load Balancing with Flow Identifier Remapping
CN114640557A (en) Gateway and cloud network system
US20180183672A1 (en) System and method for grouping of network on chip (noc) elements
CN103535068A (en) Data transmission method, device, equipment, and base station
US20180198687A1 (en) Infrastructure to Apply Machine Learning for NoC Construction
CN113824579B (en) Interface configuration method of equipment in campus network and network equipment
CN104125150A (en) Protocol message processing method, device and system
EP3240251A1 (en) Line card determination, determination processing method and device, and line card determination system
US10025752B2 (en) Data processing method, processor, and data processing device
CN110061898B (en) Message forwarding method and device
US9762474B2 (en) Systems and methods for selecting a router to connect a bridge in the network on chip (NoC)
CN115514702A (en) Method and device for quickly switching link, electronic equipment and storage medium
CN104410588A (en) Method of implementing virtual switching on router equipment and router equipment
CN113824633B (en) Method for releasing route in campus network and network equipment
CN114268596A (en) Method for stack system damage protection based on exchange chip and application

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