(19)
(11)EP 3 573 303 A1

(12)EUROPEAN PATENT APPLICATION
published in accordance with Art. 153(4) EPC

(43)Date of publication:
27.11.2019 Bulletin 2019/48

(21)Application number: 17896035.7

(22)Date of filing:  08.02.2017
(51)Int. Cl.: 
H04L 29/06  (2006.01)
(86)International application number:
PCT/CN2017/073117
(87)International publication number:
WO 2018/145267 (16.08.2018 Gazette  2018/33)
(84)Designated Contracting States:
AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR
Designated Extension States:
BA ME
Designated Validation States:
MA MD

(71)Applicant: Huawei Technologies Co., Ltd.
Longgang District Shenzhen, Guangdong 518129 (CN)

(72)Inventors:
  • SHI, Shuguang
    Shenzhen Guangdong 518129 (CN)
  • ZHANG, Yanhua
    Shenzhen Guangdong 518129 (CN)
  • NING, Yilin
    Shenzhen Guangdong 518129 (CN)

(74)Representative: Gill Jennings & Every LLP 
The Broadgate Tower 20 Primrose Street
London EC2A 2ES
London EC2A 2ES (GB)

  


(54)FORWARDER NETWORK-ACCESS RECOGNITION METHOD, SDN CONTROLLER, AND FORWARDER


(57) Embodiments of the present invention relate to the communications field, and disclose an identification method for network access of a forwarder, an SDN controller, and a forwarder, to resolve problems of high network access costs and impact on an ongoing network service that are caused when a new forwarder accesses an existing SDN system. A specific solution is as follows: An SDN controller receives registration information from a first forwarder, where the registration information includes a device type and a device model of the first forwarder; the SDN controller determines, based on the device type and the device model of the first forwarder, that an SDN system does not support the first forwarder; the SDN controller sends a PnP data request to the first forwarder, where the PnP data request is used to request the first forwarder to report device capability information; and the SDN controller receives the device capability information from the first forwarder. The embodiments of the present invention are used in a network access process of a forwarder.




Description

TECHNICAL FIELD



[0001] Embodiments of the present invention relate to the communications field, and in particular, to an identification method for network access of a forwarder, an SDN controller, and a forwarder.

BACKGROUND



[0002] Software-defined networking (Software-Defined Network, SDN) is a new network architecture proposed by the Clean Slate research group of Stanford University in the United States, and a core technology of the SDN is OpenFlow (OpenFlow) in which a control plane and a data plane of a network device are separated to flexibly control network traffic and provide a good platform for innovation of a core network and an application. As shown in FIG. 1, a typical SDN architecture includes three layers: an application layer (Application layer), a control layer (Control layer), and an infrastructure layer (Infrastructure layer). An SDN application (SDN application) is deployed on the application layer. An SDN controller (SDN controller) is deployed on the control layer, and is mainly responsible for orchestrating resources of the infrastructure layer, maintaining a network topology, and the like. A network element (Network element) such as a switch or a router (collectively referred to as a forwarder below) is deployed on the infrastructure layer, and may perform data processing, data forwarding, and the like based on a flow table delivered by the SDN controller. In this network architecture, network control is separated from a physical network topology, so that a hardware limitation on the network topology is removed. In other words, if the network topology needs to be adjusted, expanded, or upgraded, only the control layer needs to be correspondingly modified, but the network element in the infrastructure layer does not need to be replaced. In this way, costs can be greatly reduced, and an iteration cycle of the network topology can be significantly shortened.

[0003] In an SDN scenario, to improve performance, new forwarders need to access an existing SDN system one after another. In addition, forwarders in the SDN scenario are characterized by a simple structure, a low production requirement, low costs, easy integration, and the like, and therefore may be produced by a plurality of suppliers. Forwarders produced by different suppliers may be configured differently. As a result, when a new forwarder accesses the existing SDN system, an SDN controller needs to be capable of identifying the newly accessing forwarder. Currently, in the existing SDN system, software of the SDN controller is released first. Therefore, when the new forwarder accesses the existing SDN system, the SDN controller may be incapable of learning of hardware information, specification information, or other information of the newly network-accessed forwarder. Consequently, the SDN controller cannot identify the newly network-accessed forwarder, and cannot manage the newly network-accessed forwarder. For example, a control interface cannot display the newly network-accessed forwarder, service data cannot be configured for the newly network-accessed forwarder, or offline addition, deletion, or other operations cannot be performed on the newly network-accessed forwarder. In a method in the prior art, the SDN controller is upgraded first before access of the new forwarder, so that the upgraded SDN controller can identify the newly accessing forwarder, and can manage the newly accessing forwarder.

[0004] The prior art has at least the following problem: In the SDN scenario, the SDN controller is usually deployed centrally, and manages a plurality of forwarders. As a result, when the SDN controller is being upgraded, a service of the SDN controller needs to be suspended. Consequently, an ongoing network service is affected. Especially in a scenario with intensive access of new forwarders, this problem is particularly severe, leading to poor user experience. In addition, upgrading the SDN controller to support a newly accessing forwarder increases network access costs of the new device.

SUMMARY



[0005] Embodiments of the present invention provide an identification method for network access of a forwarder, an SDN controller, and a forwarder, to resolve problems of high network access costs and impact on an ongoing network service that are caused when a new forwarder accesses an existing SDN system.

[0006] To achieve the foregoing objective, the following technical solutions are used in the embodiments of the present invention.

[0007] According to a first aspect of the embodiments of the present invention, an identification method for network access of a forwarder is provided, including:
receiving, by an SDN controller, registration information from a first forwarder, where the registration information may include a device type and a device model of the first forwarder; when determining that a hardware device capability information base does not include the device type or the device model of the first forwarder, sending, by the SDN controller, a plug and play (Plug and Play, PnP) data request to the first forwarder, where the PnP data request is used to request the first forwarder to report device capability information; and receiving, by the SDN controller, the device capability information from the first forwarder.

[0008] In the identification method for network access of a forwarder provided in the embodiments of the present invention, the SDN controller receives the registration information of the first forwarder; when determining that the hardware device capability information base does not include the device type or the device model of the first forwarder included in the registration information, sends, to the first forwarder, the PnP data request used to request the first forwarder to report the device capability information; and receives the device capability information from the first forwarder. In this way, if a new forwarder accesses an existing SDN system, when determining that the hardware device capability information base does not include a device type or a device model of the forwarder, the SDN controller can accurately learn of device capability information of the newly network-accessed forwarder by sending a PnP data request to the forwarder. In other words, for access of the new forwarder, the SDN controller can identify the newly network-accessed forwarder without being upgraded, thereby resolving problems of high network access costs and impact on an ongoing network service that are caused when the new forwarder accesses the existing SDN system.

[0009] With reference to the first aspect, in a possible implementation, after the receiving, by the SDN controller, the device capability information from the first forwarder, the identification method for network access of a forwarder may further include: adding, by the SDN controller, the device capability information to the hardware device capability information base.

[0010] With reference to the first aspect and the foregoing possible implementation, in another possible implementation, to configure a newly network-accessed forwarder offline, after the receiving, by the SDN controller, the device capability information from the first forwarder, the identification method for network access of a forwarder may further include: determining, by the SDN controller, a target command based on the device capability information, and adding a new command line to the target command based on the device capability information.

[0011] With reference to the first aspect and the foregoing possible implementations, in another possible implementation, the identification method for network access of a forwarder may further include: determining, by the SDN controller, that the hardware device capability information base includes the device type and the device model of the first forwarder; and delivering, by the SDN controller, service configuration data to the first forwarder.

[0012] With reference to the first aspect and the foregoing possible implementations, in another possible implementation, the identification method for network access of a forwarder may further include: sending, by the SDN controller, a registration success response to the first forwarder, and delivering service configuration data to the first forwarder.

[0013] With reference to the first aspect and the foregoing possible implementations, in another possible implementation, the identification method for network access of a forwarder may further include: receiving, by the SDN controller, a service request from an upper-layer application, and delivering service configuration data to a second forwarder according to the service request, where the second forwarder is a forwarder that has successfully accessed an SDN system before the first forwarder is completely powered on.

[0014] With reference to the first aspect and the foregoing possible implementations, in another possible implementation, the device capability information is an extensible markup language (Extensible Markup Language, XML) file using a YANG model, and the device capability information may include at least one of device information of the first forwarder and board information supported by the first forwarder.

[0015] With reference to the first aspect and the foregoing possible implementations, in another possible implementation, the device information may include at least one of the device type, the device model, a device description, a device capability set, a quantity of slots, and supported slot information; the slot information may include at least one of a slot identifier (Identifier, ID) and a slot type; the board information may include at least one of a board type, a board name, a board description, a board capability set, a quantity of ports of a board, and port information of the board; and the port information of the board may include at least one of a port ID, a port type, and a port description.

[0016] According to a second aspect of the embodiments of the present invention, an identification method for network access of a forwarder is provided, including:
sending, by a first forwarder, registration information to an SDN controller, where the registration information may include a device type and a device model of the first forwarder; receiving, by the first forwarder, a PnP data request from the SDN controller, where the PnP data request is used to request the first forwarder to report device capability information; and obtaining, by the first forwarder, the device capability information, and sending the device capability information to the SDN controller.

[0017] In the identification method for network access of a forwarder provided in the embodiments of the present invention, the first forwarder sends the registration information including the device type and the device model of the first forwarder to the SDN controller, and after receiving the PnP data request from the SDN controller, obtains the device capability information of the first forwarder, and sends the device capability information to the SDN controller. In this way, when a new forwarder accesses an existing SDN system, after receiving a PnP data request sent by the first forwarder, the newly network-accessed forwarder reports device capability information of the newly network-accessed forwarder to the SDN controller, so that the SDN controller can accurately learn of the device capability information of the newly network-accessed forwarder without being upgraded. In other words, the SDN controller can identify the newly network-accessed forwarder, thereby resolving problems of high network access costs and impact on an ongoing network service that are caused when the new forwarder accesses the existing SDN system.

[0018] With reference to the second aspect, in a possible implementation, the identification method for network access of a forwarder may further include: receiving, by the first forwarder, a registration success response from the SDN controller, and receiving service configuration data from the SDN controller.

[0019] With reference to the second aspect and the foregoing possible implementation, in another possible implementation, the device capability information is an XML file using a YANG model, and the device capability information may include at least one of device information of the first forwarder and board information supported by the first forwarder.

[0020] With reference to the second aspect and the foregoing possible implementations, in another possible implementation, the device information may include at least one of the device type, the device model, a device description, a device capability set, a quantity of slots, and supported slot information; the slot information may include at least one of a slot ID and a slot type; the board information may include at least one of a board type, a board name, a board description, a board capability set, a quantity of ports of a board, and port information of the board; and the port information of the board may include at least one of a port ID, a port type, and a port description.

[0021] According to a third aspect of the embodiments of the present invention, an SDN controller is provided, including a receiving unit, a determining unit, and a sending unit. The receiving unit is configured to receive registration information from a first forwarder, where the registration information includes a device type and a device model of the first forwarder. The determining unit is configured to determine that a hardware device capability information base does not include the device type or the device model of the first forwarder, where the device type and the device model are received by the receiving unit. The sending unit is configured to send a PnP data request to the first forwarder, where the PnP data request is used to request the first forwarder to report device capability information. The receiving unit is further configured to receive the device capability information from the first forwarder.

[0022] With reference to the third aspect, in a possible implementation, the SDN controller further includes an adding unit, configured to add the device capability information received by the receiving unit to the hardware device capability information base.

[0023] With reference to the third aspect and the foregoing possible implementation, in another possible implementation, the determining unit is further configured to determine a target command based on the device capability information received by the receiving unit; and the adding unit is further configured to add a new command line to the target command based on the device capability information determined by the determining unit.

[0024] With reference to the third aspect and the foregoing possible implementations, in another possible implementation, the determining unit is further configured to determine that the hardware device capability information base includes the device type and the device model of the first forwarder; and the sending unit is further configured to deliver service configuration data to the first forwarder.

[0025] With reference to the third aspect and the foregoing possible implementations, in another possible implementation, the sending unit is further configured to: send a registration success response to the first forwarder, and deliver service configuration data to the first forwarder.

[0026] With reference to the third aspect and the foregoing possible implementations, in another possible implementation, the receiving unit is further configured to receive a service request from an upper-layer application; and the sending unit is further configured to deliver service configuration data to a second forwarder according to the service request received by the receiving unit, where the second forwarder is a forwarder that has successfully accessed an SDN system before the first forwarder is completely powered on.

[0027] With reference to the third aspect and the foregoing possible implementations, in another possible implementation, the device capability information is an XML file using a YANG model, and the device capability information includes at least one of device information of the first forwarder and board information supported by the first forwarder.

[0028] With reference to the third aspect and the foregoing possible implementations, in another possible implementation, the device information may include at least one of the device type, the device model, a device description, a device capability set, a quantity of slots, and supported slot information; the slot information may include at least one of a slot ID and a slot type; the board information may include at least one of a board type, a board name, a board description, a board capability set, a quantity of ports of a board, and port information of the board; and the port information of the board may include at least one of a port ID, a port type, and a port description.

[0029] According to a fourth aspect of the embodiments of the present invention, a forwarder is provided, including a sending unit, a receiving unit, and an obtaining unit. The sending unit is configured to send registration information to an SDN controller, where the registration information includes a device type and a device model of the first forwarder. The receiving unit is configured to receive a PnP data request from the SDN controller, where the PnP data request is used to request the first forwarder to report device capability information. The obtaining unit is configured to obtain the device capability information. The sending unit is further configured to send the device capability information obtained by the obtaining unit to the SDN controller.

[0030] With reference to the fourth aspect, in a possible implementation, the receiving unit is further configured to: receive a registration success response from the SDN controller, and receive service configuration data from the SDN controller.

[0031] With reference to the fourth aspect and the foregoing possible implementation, in another possible implementation, the device capability information is an XML file using a YANG model, and the device capability information includes at least one of device information of the first forwarder and board information supported by the first forwarder.

[0032] With reference to the fourth aspect and the foregoing possible implementations, in another possible implementation, the device information may include at least one of the device type, the device model, a device description, a device capability set, a quantity of slots, and supported slot information; the slot information may include at least one of a slot ID and a slot type; the board information may include at least one of a board type, a board name, a board description, a board capability set, a quantity of ports of a board, and port information of the board; and the port information of the board may include at least one of a port ID, a port type, and a port description.

[0033] According to a fifth aspect of the embodiments of the present invention, an SDN controller is provided, including at least one processor, a memory, a communications interface, and a communications bus.

[0034] The at least one processor is connected to the memory and the communications interface through the communications bus. The memory is configured to store a computer executable instruction. When the SDN controller runs, the processor executes the computer executable instruction stored in the memory, so that the SDN controller performs the identification method for network access of a forwarder in any one of the first aspect or the possible implementations of the first aspect.

[0035] According to a sixth aspect of the embodiments of the present invention, a forwarder is provided, including at least one processor, a memory, a communications interface, and a communications bus.

[0036] The at least one processor is connected to the memory and the communications interface through the communications bus. The memory is configured to store a computer executable instruction. When the forwarder runs, the processor executes the computer executable instruction stored in the memory, so that the forwarder performs the identification method for network access of a forwarder in any one of the second aspect or the possible implementations of the second aspect.

[0037] According to a seventh aspect of the embodiments of the present invention, a computer storage medium is provided, configured to store a computer software instruction to be used by the foregoing SDN controller. The computer software instruction includes a program designed to perform the foregoing identification method for network access of a forwarder.

[0038] According to an eighth aspect of the embodiments of the present invention, a computer storage medium is provided, configured to store a computer software instruction to be used by the foregoing forwarder. The computer software instruction includes a program designed to perform the foregoing identification method for network access of a forwarder.

BRIEF DESCRIPTION OF DRAWINGS



[0039] 

FIG. 1 is a schematic diagram of a typical SDN architecture in the prior art;

FIG. 2 is a simplified schematic diagram of an SDN system to which an embodiment of the present invention is applied according to embodiments of the present invention;

FIG. 3 is a schematic composition diagram of an SDN controller according to an embodiment of the present invention;

FIG. 4 is a schematic composition diagram of a forwarder according to an embodiment of the present invention;

FIG. 5 is a flowchart of an identification method for network access of a forwarder according to an embodiment of the present invention;

FIG. 6 is a flowchart of another identification method for network access of a forwarder according to an embodiment of the present invention;

FIG. 7 is a schematic composition diagram of an SDN controller according to an embodiment of the present invention;

FIG. 8 is a schematic composition diagram of another SDN controller according to an embodiment of the present invention;

FIG. 9 is a schematic composition diagram of a forwarder according to an embodiment of the present invention; and

FIG. 10 is a schematic composition diagram of another forwarder according to an embodiment of the present invention.


DESCRIPTION OF EMBODIMENTS



[0040] To resolve problems of high network access costs and impact on an ongoing network service that are caused when a new forwarder accesses an existing SDN system, embodiments of the present invention provide an identification method for network access of a forwarder. A basic principle of the method is as follows: An SDN controller receives registration information from a first forwarder, where the registration information may include a device type and a device model of the first forwarder; when determining that a hardware device capability information base does not include the device type or the device model of the first forwarder, the SDN controller sends a PnP data request to the first forwarder, where the PnP data request is used to request the first forwarder to report device capability information; and the SDN controller receives the device capability information from the first forwarder. In this way, if the new forwarder accesses the existing SDN system, when determining that the hardware device capability information base does not include a device type or a device model of the forwarder, the SDN controller can accurately learn of device capability information of the newly network-accessed forwarder by sending a PnP data request to the forwarder. In other words, for access of the new forwarder, the SDN controller can identify the newly network-accessed forwarder without being upgraded, thereby resolving the problems of high network access costs and impact on an ongoing network service that are caused when the new forwarder accesses the existing SDN system.

[0041] The following describes implementations of the embodiments of the present invention in detail with reference to the accompanying drawings.

[0042] FIG. 2 is a simplified schematic diagram of an SDN system to which an embodiment of the present invention can be applied. As shown in FIG. 2, the SDN system may include an SDN controller 11 and a forwarder 12.

[0043] In addition, it is assumed that in the SDN system, there are n+1 forwarders 12. An (n+1)th forwarder 12 is a new forwarder accessing the SDN system, and a first forwarder 12 to an nth forwarder 12 are forwarders that have accessed the SDN system before the (n+1)th forwarder 12 accesses the SDN system. Certainly, this embodiment of the present invention is also applicable to a scenario in which no forwarder has accessed the SDN system before the (n+1)th forwarder 12 accesses the SDN system. It should be noted that, in this embodiment of the present invention, the new forwarder accessing the SDN system may be a forwarder that accesses the SDN system for the first time, or may be a forwarder that is reset and restarted.

[0044] The SDN controller 11 is deployed centrally, and is mainly responsible for orchestrating resources of an infrastructure layer and maintaining a network topology. Specifically, the SDN controller 11 is mainly configured to manage the forwarder 12, for example, configure service data for the forwarder 12, or perform offline addition, deletion, or other management operations on the forwarder 12.

[0045] The forwarder 12 may be specifically a network element such as a switch or a router. The forwarder 12 may perform an operation such as data processing or data forwarding based on a flow table delivered by the SDN controller 11.

[0046] The SDN controller 11 may communicate with the forwarder 12 by using the OpenFlow protocol and the NETCONF protocol.

[0047] FIG. 3 is a schematic composition diagram of an SDN controller according to an embodiment of the present invention. As shown in FIG. 3, the SDN controller may include at least one processor 21, a memory 22, a communications interface 23, and a communications bus 24.

[0048] The following specifically describes the components of the SDN controller with reference to FIG. 3.

[0049] The processor 21 is a control center of the SDN controller, and may be one processor or may be a collective name of a plurality of processing elements. For example, the processor 21 is a central processing unit (Central Processing Unit, CPU), or may be an application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC), or is configured as one or more integrated circuits for implementing this embodiment of the present invention, for example, one or more microprocessors (Digital Signal Processor, DSP), or one or more field programmable gate arrays (Field Programmable Gate Array, FPGA).

[0050] The processor 21 may perform various functions of the SDN controller by running or executing a software program stored in the memory 22 and invoking data stored in the memory 22.

[0051] During specific implementation, in an embodiment, the processor 21 may include one or more CPUs, for example, a CPU 0 and a CPU 1 shown in FIG. 3.

[0052] During specific implementation, in an embodiment, the SDN controller may include a plurality of processors, for example, the processor 21 and a processor 25 shown in FIG. 3. Each of these processors may be a single-core (single-CPU) processor or may be a multi-core (multi-CPU) processor. The processor herein may be one or more devices, circuits, and/or processing cores for processing data (for example, a computer program instruction).

[0053] The memory 22 may be, but is not limited to, a read-only memory (Read-Only Memory, ROM) or another type of static storage device capable of storing static information and instructions, a random access memory (Random Access Memory, RAM) or another type of dynamic storage device capable of storing information and instructions, an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM) or another compact disc storage, an optical disc storage (including a compact disc, a laser disc, an optical disc, a digital versatile disc, and a Blu-ray disc, or the like), a magnetic disk storage medium or another magnetic storage device, or any other medium that can be used to carry or store expected program code in an instruction or data structure form and can be accessed by a computer. The memory 22 may exist independently, and is connected to the processor 21 through the communications bus 24. Alternatively, the memory 22 may be integrated with the processor 21.

[0054] The memory 22 is configured to store a software program for executing the solutions in the present invention under control of the processor 21.

[0055] The communications interface 23 is any apparatus such as a transceiver, and configured to communicate with another device or a communications network such as the Ethernet, a radio access network (Radio Access Network, RAN), or a wireless local area network (Wireless Local Area Network, WLAN). The communications interface 23 may include a receiving unit for implementing a receiving function and a sending unit for implementing a sending function.

[0056] The communications bus 24 may be an industry standard architecture (Industry Standard Architecture, ISA) bus, a peripheral component interconnect (Peripheral Component Interconnect, PCI) bus, an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, or the like. The bus may be classified into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is used to represent the bus in FIG. 3, but this does not mean that there is only one bus or only one type of bus.

[0057] The device structure shown in FIG. 3 does not constitute a limitation on the SDN controller. The SDN controller may include more or fewer components than those shown in the figure, or may combine some components, or have different component arrangements.

[0058] FIG. 4 is a schematic composition diagram of a forwarder according to an embodiment of the present invention. As shown in FIG. 4, the forwarder may include at least one processor 31, a memory 32, a communications interface 33, and a communications bus 34.

[0059] The following specifically describes the components of the forwarder with reference to FIG. 4.

[0060] The processor 31 is a control center of the forwarder, and may be one processor or may be a collective name of a plurality of processing elements. For example, the processor 31 is a CPU, or may be an ASIC, or is configured as one or more integrated circuits for implementing this embodiment of the present invention, for example, one or more DSPs or one or more FPGAs.

[0061] The processor 31 may perform various functions of the forwarder by running or executing a software program stored in the memory 32 and invoking data stored in the memory 32.

[0062] During specific implementation, in an embodiment, the processor 31 may include one or more CPUs, for example, a CPU 0 and a CPU 1 shown in FIG. 4.

[0063] During specific implementation, in an embodiment, the forwarder may include a plurality of processors, for example, the processor 31 and a processor 35 shown in FIG. 4. Each of these processors may be a single-CPU processor or may be a multi-CPU processor. The processor herein may be one or more devices, circuits, and/or processing cores for processing data (for example, a computer program instruction).

[0064] The memory 32 may be, but is not limited to, a ROM or another type of static storage device capable of storing static information and instructions, a RAM or another type of dynamic storage device capable of storing information and instructions, an EEPROM, a CD-ROM or another compact disc storage, an optical disc storage (including a compact disc, a laser disc, an optical disc, a digital versatile disc, and a Blu-ray disc, or the like), a magnetic disk storage medium or another magnetic storage device, or any other medium that can be used to carry or store expected program code in an instruction or data structure form and can be accessed by a computer. The memory 32 may exist independently, and is connected to the processor 31 through the communications bus 34. Alternatively, the memory 32 may be integrated with the processor 31.

[0065] The memory 32 is configured to store a software program for executing the solutions in the present invention under control of the processor 31.

[0066] The communications interface 33 is any apparatus such as a transceiver, and configured to communicate with another device or a communications network such as the Ethernet, a RAN, or a WLAN. The communications interface 33 may include a receiving unit for implementing a receiving function and a sending unit for implementing a sending function.

[0067] The communications bus 34 may be an ISA bus, a PCI bus, an EISA bus, or the like. The bus may be classified into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is used to represent the bus in FIG. 4, but this does not mean that there is only one bus or only one type of bus.

[0068] The device structure shown in FIG. 4 does not constitute a limitation on the forwarder. The forwarder may include more or fewer components than those shown in the figure, or may combine some components, or have different component arrangements.

[0069] FIG. 5 is a flowchart of an identification method for network access of a forwarder according to an embodiment of the present invention. As shown in FIG. 5, the method may include the following steps.

[0070] 401. A first forwarder sends registration information to an SDN controller.

[0071] The registration information includes a device type and a device model of the first forwarder. For example, the first forwarder may send the registration information to the SDN controller after being completely powered on.

[0072] 402. The SDN controller receives the registration information from the first forwarder.

[0073] 403. The SDN controller determines that a hardware device capability information base does not include a device type or a device model of the first forwarder.

[0074] 404. The SDN controller sends a PnP data request to the first forwarder.

[0075] The PnP data request is used to request the first forwarder to report device capability information.

[0076] 405. The first forwarder receives the PnP data request from the SDN controller.

[0077] 406. The first forwarder obtains device capability information, and sends the device capability information to the SDN controller.

[0078] 407. The SDN controller receives the device capability information from the first forwarder.

[0079] In the identification method for network access of a forwarder provided in this embodiment of the present invention, the SDN controller receives the registration information of the first forwarder; when determining that the hardware device capability information base does not include the device type or the device model of the first forwarder included in the registration information, sends, to the first forwarder, the PnP data request used to request the first forwarder to report the device capability information; and receives the device capability information from the first forwarder. In this way, if a new forwarder accesses an existing SDN system, when determining that the hardware device capability information base does not include a device type or a device model of the forwarder, the SDN controller can accurately learn of device capability information of the newly network-accessed forwarder by sending a PnP data request to the forwarder. In other words, for access of the new forwarder, the SDN controller can identify the newly network-accessed forwarder without being upgraded, thereby resolving problems of high network access costs and impact on an ongoing network service that are caused when the new forwarder accesses the existing SDN system.

[0080] FIG. 6 is a flowchart of another identification method for network access of a forwarder according to an embodiment of the present invention. As shown in FIG. 6, the method may include the following steps.

[0081] 501. A first forwarder sends registration information to an SDN controller.

[0082] The registration information includes a device type and a device model of the first forwarder. The first forwarder is a new forwarder accessing an SDN system. For example, after being completely powered on, the first forwarder may send the registration information including the device type and the device model of the first forwarder to the SDN controller through an OpenFlow channel.

[0083] For example, it is assumed that a new forwarder needs to be introduced into the existing SDN system. In this case, after the new forwarder accesses the SDN system and is completely powered on, the new forwarder may send registration information to the SDN controller through an OpenFlow channel. Alternatively, when a forwarder in the existing SDN system is powered off and needs to be re-powered on, after being completely powered on, the forwarder may send registration information to the SDN controller through an OpenFlow channel.

[0084] For example, the registration information may be sent to the SDN controller in a form of an Internet Protocol (Internet Protocol, IP) packet.

[0085] 502. The SDN controller receives the registration information from the first forwarder.

[0086] The SDN controller may receive the registration information from the first forwarder through the OpenFlow channel.

[0087] 503. The SDN controller determines that a hardware device capability information base does not include a device type or a device model of the first forwarder.

[0088] After the SDN controller receives the registration information from the first forwarder, the SDN controller may perform comparison and analysis on the registration information reported by the first forwarder, to determine, by determining whether the hardware device capability information base includes the device type and the device model of the first forwarder, whether the SDN system supports the first forwarder.

[0089] For example, during specific implementation, the hardware device capability information base of the SDN controller prestores device types and device models of all supported forwarders. The SDN controller may determine, by determining whether the hardware device capability information base includes the device type and the device model of the first forwarder, whether the SDN system supports the first forwarder. When the SDN controller determines that the hardware device capability information base includes the device type and the device model of the first forwarder, the SDN controller may determine that the SDN system supports the first forwarder. In this case, the SDN controller may deliver service configuration data to the first forwarder. When the SDN controller determines that the hardware device capability information base does not include the device type or the device model of the first forwarder, the SDN controller may determine that the SDN system does not support the first forwarder. In this case, the following step 504 may be performed.

[0090] 504. The SDN controller sends a PnP data request to the first forwarder.

[0091] The PnP data request is used to request the first forwarder to report device capability information. When the SDN controller determines that the hardware device capability information base does not include the device type or the device model of the first forwarder, the SDN controller may send, to the first forwarder, the PnP data request used to request the device capability information of the first forwarder.

[0092] For example, the PnP data request may be sent to the first forwarder in a form of an IP packet.

[0093] 505. The first forwarder receives the PnP data request from the SDN controller.

[0094] 506. The first forwarder obtains device capability information, and sends the device capability information to the SDN controller.

[0095] After the first forwarder receives the PnP data request from the SDN controller, the first forwarder may collect device data of the first forwarder to obtain the device capability information, and send the obtained device capability information to the SDN controller.

[0096] For example, the device capability information may be an XML file using a YANG model. In other words, after obtaining the device capability information of the first forwarder, the first forwarder may generate an XML file based on the device capability information of the first forwarder by using the YANG model, and report the XML file to the SDN controller.

[0097] The device capability information may include at least one of device information of the first forwarder and board information supported by the first forwarder. The device information may include at least one of the device type, the device model, a device description, a device capability set, a quantity of slots, and supported slot information. The slot information may include at least one of a slot ID and a slot type. The board information may include at least one of a board type, a board name, a board description, a board capability set, a quantity of ports of a board, and port information of the board. The port information of the board may include at least one of a port ID, a port type, and a port description. In addition, for descriptions of device data included in the device capability information, refer to Table 1.
Table 1
CategoryData itemData description
Device information Device type It describes a type of a device, for example, a frame type or a box type.
Device model It describes a model of the device, for example, an OLT.
Device description It is an alias defined for ease of management, for example, OLT_123.
Device capability set It describes a list of a set of capabilities supported by the device.
Slot quantity It describes a quantity of slots of the device.
Supported slot information (list) Supported slot ID It describes a number of a slot supported by the device.
Supported slot type It describes a list of board types supported by the slot.
Supported board information (because the device may support a plurality of types of boards, the board information may be displayed in a form of a list) Board type It describes a type of a board, for example, a main control board, an Ethernet access board (Ethernet Access Board, ETH board), or a passive optical network access board (Passive Optical Network Access Board, PON board).
Board name It describes a name of the board.
Board description It describes description information of the board.
Board capability set It describes a list of a set of capabilities supported by the board.
Quantity of ports of the board It describes the quantity of ports of the board.
Port information of the board (list) Port ID It describes a number of a port of the device.
Port type It describes a service type provided by the port, for example, an Ethernet port (Ethernet port, ETH) or a passive optical network (Passive Optical Network, PON) access port (Access port).
Port description It is an alias defined for ease of management.


[0098] 507. The SDN controller receives the device capability information from the first forwarder.

[0099] After the SDN controller receives the device capability information from the first forwarder, the SDN controller may parse the device capability information of the first forwarder, and refresh a system rule and a northbound configuration interface based on a parsing result. Specifically, the following step 508 and step 509 may be performed.

[0100] 508. The SDN controller adds the device capability information to the hardware device capability information base.

[0101] The SDN controller may refresh related basic data based on the device capability information of the first forwarder, in other words, add the device capability information of the first forwarder to the hardware device capability information base, so that the SDN system can support the first forwarder.

[0102] 509. The SDN controller determines a target command based on the device capability information, and adds a new command line to the target command based on the device capability information.

[0103] The SDN controller may refresh the northbound interface based on the device capability information of the first forwarder. Specifically, the SDN controller may determine the target command based on the device capability information of the first forwarder, and add the new command line to the target command based on the device capability information of the first forwarder. For example, the target command determined based on the device capability information of the first forwarder is add-device-board deviceld frameid/slotid {HS901GPBA|HS901GPBC}. If it is determined, based on the device capability information, that a slot supports HS901GPBF, a new command is set to add-device-board deviceld frameid/slotid {HS901GPBA|HS901GPBC|HS901GPBF}. In this way, the SDN controller can configure, offline based on the device capability information of the first forwarder, a forwarder that has the same device capability information as the first forwarder.

[0104] For example, the northbound interface may include at least one of a web interface, a Representational State Transfer (Representational State Transfer, REST) interface, a Transaction Language 1 (Transaction Language 1, TL1) interface, an American Standard Code for Information Interchange (American Standard Code for Information Interchange, ASCII) interface, and a command-line interface (Command-line Interface, CLI).

[0105] It should be noted that, in this embodiment of the present invention, step 508 and step 509 are not necessarily performed in a particular order. In other words, step 508 may be performed before step 509, or step 509 may be performed before step 508, or step 508 and step 509 may be performed at the same time. In this embodiment of the present invention, an order for performing step 508 and step 509 is not specifically limited herein.

[0106] 510. The SDN controller sends a registration success response to the first forwarder, and delivers service configuration data to the first forwarder.

[0107] 511. The first forwarder receives the registration success response from the SDN controller, and receives the service configuration data from the SDN controller.

[0108] In a process of performing the foregoing steps 501 to 511, an existing forwarder in the SDN system can still work normally, and the following steps 512 and step 513 are performed.

[0109] 512. The SDN controller receives a service request from an upper-layer application.

[0110] 513. The SDN controller delivers service configuration data to a second forwarder according to the service request.

[0111] The second forwarder is a forwarder that has successfully accessed the SDN system before the first forwarder is completely powered on.

[0112] In the identification method for network access of a forwarder provided in this embodiment of the present invention, the SDN controller receives the registration information of the first forwarder; when determining that the hardware device capability information base does not include the device type or the device model of the first forwarder included in the registration information, sends, to the first forwarder, the PnP data request used to request the first forwarder to report the device capability information; and receives the device capability information from the first forwarder. In this way, if a new forwarder accesses the existing SDN system, when determining that the hardware device capability information base does not include a device type or a device model of the forwarder, the SDN controller can accurately learn of device capability information of the newly network-accessed forwarder by sending a PnP data request to the forwarder. In other words, for access of the new forwarder, the SDN controller can identify the newly network-accessed forwarder without being upgraded, thereby resolving problems of high network access costs and impact on an ongoing network service that are caused when the new forwarder accesses the existing SDN system.

[0113] The solutions provided in the embodiments of the present invention are mainly described above from the perspective of interaction between network elements. It may be understood that, to implement the foregoing functions, the network elements such as the SDN controller and the forwarder include corresponding hardware structures and/or software modules for performing the functions. A person skilled in the art should easily be aware that, with reference to algorithms and steps in the examples described in the embodiments disclosed in this specification, the present invention can be implemented by hardware or a combination of hardware and computer software. Whether a function is performed by hardware or hardware driven by computer software depends on particular applications and design constraints of the technical solutions. A person skilled in the art may use different methods to implement the described functions for each particular application, but it should not be considered that the implementation goes beyond the scope of the present invention.

[0114] In the embodiments of the present invention, the SDN controller and the forwarder may be divided into function modules based on the foregoing method example. For example, each function module may be obtained through division for each corresponding function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software function module. It should be noted that the module division in the embodiments of the present invention is an example, and is merely logical function division. There may be another division manner in actual implementation.

[0115] When each function module is obtained through division for each corresponding function, FIG. 7 is a possible schematic composition diagram of the SDN controller in the foregoing embodiment. As shown in FIG. 7, the SDN controller may include a receiving unit 61, a determining unit 62, and a sending unit 63.

[0116] The receiving unit 61 is configured to support the SDN controller in performing step 402 and step 407 in the identification method for network access of a forwarder shown in FIG. 5, and step 502, step 507, and step 512 in the identification method for network access of a forwarder shown in FIG. 6.

[0117] The determining unit 62 is configured to support the SDN controller in performing step 403 in the identification method for network access of a forwarder shown in FIG. 5, and step 503 and the determining a target command based on the device capability information in step 509 in the identification method for network access of a forwarder shown in FIG. 6.

[0118] The sending unit 63 is configured to support the SDN controller in performing step 404 in the identification method for network access of a forwarder shown in FIG. 5, and step 504, step 510, and step 513 in the identification method for network access of a forwarder shown in FIG. 6.

[0119] In this embodiment of the present invention, further, as shown in FIG. 7, the SDN controller may further include an adding unit 64.

[0120] The adding unit 64 is configured to support the SDN controller in performing step 508 and the adding a new command line to the target command based on the device capability information in step 509 in the identification method for network access of a forwarder shown in FIG. 6.

[0121] It should be noted that, all related content of steps in the foregoing method embodiment may be cited in function descriptions of corresponding function modules, and details are not described herein again.

[0122] The SDN controller provided in this embodiment of the present invention is configured to perform the foregoing identification method for network access of a forwarder, and therefore can achieve a same effect as the foregoing identification method for network access of a forwarder.

[0123] When an integrated unit is used, FIG. 8 is another possible schematic composition diagram of the SDN controller in the foregoing embodiment. As shown in FIG. 8, the SDN controller includes a processing module 71 and a communications module 72.

[0124] The processing module 71 is configured to control and manage actions of the SDN controller. For example, the processing module 71 is configured to support the SDN controller in performing step 403 in FIG. 5, step 503, step 508, and step 509 in FIG. 6, and/or another process of the technology described in this specification. The communications module 72 is configured to support the SDN controller in communicating with another network entity, for example, communicating with a function module or a network entity shown in FIG. 2, FIG. 4, FIG. 9, or FIG. 10. Specifically, for example, the communications module 72 is configured to support the SDN controller in performing step 402, step 404, and step 407 in FIG. 5, and step 502, step 504, step 507, step 510, step 512, and step 513 in FIG. 6. The SDN controller may further include a storage module 73, configured to store program code and data of the SDN controller.

[0125] The processing module 71 may be a processor or a controller. The processing module 71 may implement or execute various example logical blocks, modules, and circuits described with reference to content disclosed in the present invention. Alternatively, the processor may be a combination for implementing a computing function, for example, a combination of one or more microprocessors, or a combination of a DSP and a microprocessor. The communications module 72 may be a transceiver, a transceiver circuit, a communications interface, or the like. The storage module 73 may be a memory.

[0126] When the processing module 71 is a processor, the communications module 72 is a communications interface, and the storage module 73 is a memory, the SDN controller in this embodiment of the present invention may be the SDN controller shown in FIG. 3.

[0127] When each function module is obtained through division for each corresponding function, FIG. 9 is a possible schematic composition diagram of the forwarder in the foregoing embodiment. As shown in FIG. 9, the forwarder may include a sending unit 81, a receiving unit 82, and an obtaining unit 83.

[0128] The sending unit 81 is configured to support the forwarder in performing step 401 and the sending the device capability information to the SDN controller in step 406 in the identification method for network access of a forwarder shown in FIG. 5, and step 501 and the sending the device capability information to the SDN controller in step 506 in the identification method for network access of a forwarder shown in FIG. 6.

[0129] The receiving unit 82 is configured to support the forwarder in performing step 405 in the identification method for network access of a forwarder shown in FIG. 5, and step 505 and step 511 in the identification method for network access of a forwarder shown in FIG. 6.

[0130] The obtaining unit 83 is configured to support the forwarder in performing the obtaining device capability information in step 406 in the identification method for network access of a forwarder shown in FIG. 5, and the obtaining device capability information in step 506 in the identification method for network access of a forwarder shown in FIG. 6.

[0131] It should be noted that, all related content of steps in the foregoing method embodiment may be cited in function descriptions of corresponding function modules, and details are not described herein again.

[0132] The forwarder provided in this embodiment of the present invention is configured to perform the foregoing identification method for network access of a forwarder, and therefore can achieve a same effect as the foregoing identification method for network access of a forwarder.

[0133] When an integrated unit is used, FIG. 10 is another possible schematic composition diagram of the forwarder in the foregoing embodiment. As shown in FIG. 10, the forwarder includes a processing module 91 and a communications module 92.

[0134] The processing module 91 is configured to control and manage actions of the forwarder. For example, the processing module 91 is configured to support the forwarder in performing the obtaining device capability information in step 406 in FIG. 5, the obtaining device capability information in step 506 in FIG. 6, and/or another process of the technology described in this specification. The communications module 92 is configured to support the forwarder in communicating with another network entity, for example, communicating with a function module or a network entity shown in FIG. 2, FIG. 3, FIG. 7, or FIG. 8. Specifically, for example, the communications module 92 is configured to support the forwarder in performing step 401, step 405, and the sending the device capability information to the SDN controller in step 406 in FIG. 5, and step 501, step 505, the sending the device capability information to the SDN controller in step 506, and step 511 in FIG. 6. The forwarder may further include a storage module 93, configured to store program code and data of the forwarder.

[0135] The processing module 91 may be a processor or a controller. The processing module 91 may implement or execute various example logical blocks, modules, and circuits described with reference to content disclosed in the present invention. Alternatively, the processor may be a combination for implementing a computing function, for example, a combination of one or more microprocessors, or a combination of a DSP and a microprocessor. The communications module 92 may be a transceiver, a transceiver circuit, a communications interface, or the like. The storage module 93 may be a memory.

[0136] When the processing module 91 is a processor, the communications module 92 is a communications interface, and the storage module 93 is a memory, the forwarder in this embodiment of the present invention may be the forwarder shown in FIG. 4.

[0137] From the foregoing descriptions about implementations, a person skilled in the art can clearly understand that, for the purpose of convenient and brief description, only division of the foregoing function modules is used as an example for illustration. In actual application, the foregoing functions can be allocated to different modules and implemented as required. In other words, an internal structure of an apparatus is divided into different function modules to implement all or some of the functions described above.

[0138] In the embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the described apparatus embodiment is merely an example. For example, the module or unit division is merely logical function division and may be other division in actual implementation. For example, a plurality of units or components may be combined or integrated into another apparatus, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented by using some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electronic, mechanical, or other forms.

[0139] The units described as separate parts may or may not be physically separate, and parts displayed as units may be one or more physical units, may be located in one place, or may be distributed on different places. Some or all of the units may be selected based on actual requirements to achieve the objectives of the solutions of the embodiments.

[0140] In addition, function units in the embodiments of the present invention may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in a form of hardware, or may be implemented in a form of a software function unit.

[0141] When the integrated unit is implemented by a software function unit and sold or used as an independent product, the integrated unit may be stored in a readable storage medium. Based on such an understanding, the technical solutions in the embodiments of the present invention essentially, or the part contributing to the prior art, or all or some of the technical solutions may be implemented in a form of a software product. The software product is stored in a storage medium and includes several instructions for instructing a device (which may be a single-chip microcomputer, a chip, or the like) or a processor (processor) to perform all or some of the steps of the methods described in the embodiments of the present invention. The foregoing storage medium includes various media that can store program code, such as a USB flash drive, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disc.

[0142] The foregoing descriptions are merely specific implementations of the present invention, but are not intended to limit the protection scope of the present invention. Any variation or replacement within the technical scope disclosed in the present invention shall fall within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.


Claims

1. An identification method for network access of a forwarder, comprising:

receiving, by a software-defined networking SDN controller, registration information from a first forwarder, wherein the registration information comprises a device type and a device model of the first forwarder;

determining, by the SDN controller, that a hardware device capability information base does not comprise the device type or the device model of the first forwarder;

sending, by the SDN controller, a plug and play PnP data request to the first forwarder, wherein the PnP data request is used to request the first forwarder to report device capability information; and

receiving, by the SDN controller, the device capability information from the first forwarder.


 
2. The method according to claim 1, wherein after the receiving, by the SDN controller, the device capability information from the first forwarder, the method further comprises:
adding, by the SDN controller, the device capability information to the hardware device capability information base.
 
3. The method according to claim 1 or 2, wherein after the receiving, by the SDN controller, the device capability information from the first forwarder, the method further comprises:

determining, by the SDN controller, a target command based on the device capability information; and

adding, by the SDN controller, a new command line to the target command based on the device capability information.


 
4. The method according to any one of claims 1 to 3, wherein the method further comprises:

determining, by the SDN controller, that the hardware device capability information base comprises the device type and the device model of the first forwarder; and

delivering, by the SDN controller, service configuration data to the first forwarder.


 
5. The method according to any one of claims 1 to 3, wherein the method further comprises:
sending, by the SDN controller, a registration success response to the first forwarder, and delivering service configuration data to the first forwarder.
 
6. The method according to any one of claims 1 to 5, wherein the method further comprises:

receiving, by the SDN controller, a service request from an upper-layer application; and

delivering, by the SDN controller, service configuration data to a second forwarder according to the service request, wherein the second forwarder is a forwarder that has successfully accessed an SDN system before the first forwarder is completely powered on.


 
7. The method according to any one of claims 1 to 6, wherein the device capability information is an extensible markup Language language XML file using a YANG model; and
the device capability information comprises at least one of device information of the first forwarder and board information supported by the first forwarder.
 
8. The method according to claim 7, wherein
the device information comprises at least one of the device type, the device model, a device description, a device capability set, a quantity of slots, and supported slot information; and the slot information comprises at least one of a slot identifier ID and a slot type; and
the board information comprises at least one of a board type, a board name, a board description, a board capability set, a quantity of ports of a board, and port information of the board; and the port information of the board comprises at least one of a port ID, a port type, and a port description.
 
9. An identification method for network access of a forwarder, comprising:

sending, by a first forwarder, registration information to a software-defined networking SDN controller, wherein the registration information comprises a device type and a device model of the first forwarder;

receiving, by the first forwarder, a plug and play PnP data request from the SDN controller, wherein the PnP data request is used to request the first forwarder to report device capability information; and

obtaining, by the first forwarder, the device capability information, and sending the device capability information to the SDN controller.


 
10. The method according to claim 9, further comprising:

receiving, by the first forwarder, a registration success response from the SDN controller; and

receiving, by the first forwarder, service configuration data from the SDN controller.


 
11. The method according to claim 9 or 10, wherein the device capability information is an extensible markup language XML file using a YANG model; and
the device capability information comprises at least one of device information of the first forwarder and board information supported by the first forwarder.
 
12. The method according to claim 11, wherein
the device information comprises at least one of the device type, the device model, a device description, a device capability set, a quantity of slots, and supported slot information; and the slot information comprises at least one of a slot identifier ID and a slot type; and
the board information comprises at least one of a board type, a board name, a board description, a board capability set, a quantity of ports of a board, and port information of the board; and the port information of the board comprises at least one of a port ID, a port type, and a port description.
 
13. A software-defined networking SDN controller, comprising a receiving unit, a determining unit, and a sending unit, wherein
the receiving unit is configured to receive registration information from a first forwarder, wherein the registration information comprises a device type and a device model of the first forwarder;
the determining unit is configured to determine that a hardware device capability information base does not comprise the device type or the device model of the first forwarder, wherein the device type and the device model are received by the receiving unit;
the sending unit is configured to send a plug and play PnP data request to the first forwarder, wherein the PnP data request is used to request the first forwarder to report device capability information; and
the receiving unit is further configured to receive the device capability information from the first forwarder.
 
14. The SDN controller according to claim 13, further comprising an adding unit, wherein
the adding unit is configured to add the device capability information received by the receiving unit to the hardware device capability information base.
 
15. The SDN controller according to claim 14, wherein
the determining unit is further configured to determine a target command based on the device capability information received by the receiving unit; and
the adding unit is further configured to add a new command line to the target command based on the device capability information determined by the determining unit.
 
16. The SDN controller according to any one of claims 13 to 15, wherein
the determining unit is further configured to determine that the hardware device capability information base comprises the device type and the device model of the first forwarder; and
the sending unit is further configured to deliver service configuration data to the first forwarder.
 
17. The SDN controller according to any one of claims 13 to 15, wherein
the sending unit is further configured to: send a registration success response to the first forwarder, and deliver service configuration data to the first forwarder.
 
18. The SDN controller according to any one of claims 13 to 17, wherein
the receiving unit is further configured to receive a service request from an upper-layer application; and
the sending unit is further configured to deliver service configuration data to a second forwarder according to the service request received by the receiving unit, wherein the second forwarder is a forwarder that has successfully accessed an SDN system before the first forwarder is completely powered on.
 
19. The SDN controller according to any one of claims 13 to 18, wherein the device capability information is an extensible markup language XML file using a YANG model; and
the device capability information comprises at least one of device information of the first forwarder and board information supported by the first forwarder.
 
20. The SDN controller according to claim 19, wherein
the device information comprises at least one of the device type, the device model, a device description, a device capability set, a quantity of slots, and supported slot information; and the slot information comprises at least one of a slot identifier ID and a slot type; and
the board information comprises at least one of a board type, a board name, a board description, a board capability set, a quantity of ports of a board, and port information of the board; and the port information of the board comprises at least one of a port ID, a port type, and a port description.
 
21. A forwarder, comprising a sending unit, a receiving unit, and an obtaining unit, wherein
the sending unit is configured to send registration information to a software-defined networking SDN controller, wherein the registration information comprises a device type and a device model of the first forwarder;
the receiving unit is configured to receive a plug and play PnP data request from the SDN controller, wherein the PnP data request is used to request the first forwarder to report device capability information;
the obtaining unit is configured to obtain the device capability information; and the sending unit is further configured to send the device capability information obtained by the obtaining unit to the SDN controller.
 
22. The forwarder according to claim 21, wherein
the receiving unit is further configured to: receive a registration success response from the SDN controller, and receive service configuration data from the SDN controller.
 
23. The forwarder according to claim 21 or 22, wherein the device capability information is an extensible markup language XML file using a YANG model; and
the device capability information comprises at least one of device information of the first forwarder and board information supported by the first forwarder.
 
24. The forwarder according to claim 23, wherein
the device information comprises at least one of the device type, the device model, a device description, a device capability set, a quantity of slots, and supported slot information; and the slot information comprises at least one of a slot identifier ID and a slot type; and
the board information comprises at least one of a board type, a board name, a board description, a board capability set, a quantity of ports of a board, and port information of the board; and the port information of the board comprises at least one of a port ID, a port type, and a port description.
 
25. A software-defined networking SDN controller, comprising at least one processor, a memory, a communications interface, and a communications bus, wherein
the at least one processor is connected to the memory and the communications interface through the communications bus, the memory is configured to store a computer executable instruction, and when the SDN controller runs, the processor executes the computer executable instruction stored in the memory, so that the SDN controller performs the identification method for network access of a forwarder according to any one of claims 1 to 8.
 
26. A forwarder, comprising at least one processor, a memory, a communications interface, and a communications bus, wherein
the at least one processor is connected to the memory and the communications interface through the communications bus, the memory is configured to store a computer executable instruction, and when the forwarder runs, the processor executes the computer executable instruction stored in the memory, so that the forwarder performs the identification method for network access of a forwarder according to any one of claims 9 to 12.
 




Drawing