# US 2017/0302562 A1 · Topological Learning Method and Apparatus for OPENFLOW Network Cross Conventional IP Network

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0302562 A1
- Document ID: US20170302562A1
- Status: Published application
- Kind: A1
- Application number: 15/639,791
- Filed: 2017-06-30
- Published: 2017-10-19
- Earliest claimed: 2014-12-31
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Ke Lin; Chenji Li
- Web page: https://patentgrep.com/patent/US20170302562A1

## CPC

- H04L 45/08: {Learning-based routing, e.g. using neural networks or artificial intelligence}
- H04L 9/40: Network security protocols
- H04L 45/02: Topology update or discovery
- H04L 49/60: Software-defined switches
- H04L 45/64: using an overlay routing layer
- Y02D 30/00: Reducing energy consumption in communication networks
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

A topological learning method and apparatus for an OPENFLOW network cross a conventional Internet Protocol (IP) network. The method includes obtaining, by a controller, M OPENFLOW switch (OFS) ports connected to a same conventional IP network, determining whether there is a logical switch corresponding to the conventional IP network, if the controller determines that there is no logical switch corresponding to the conventional IP network, creating and storing the information about the logical switch, where the information about the logical switch includes related information of the M OFS ports, and related information of each OFS port includes link information in a direction from the port to the logical switch and/or link information in a direction from the logical switch to the port, and managing, by the controller, the logical switch as a common OPENFLOW switch of an OPENFLOW network.

## Claims

### Claim 1

A topological learning method, comprising:
obtaining, by a controller, M OPENFLOW switch (OFS) ports connected to a common conventional Internet Protocol (IP) network, wherein M is an integer greater than or equal to 2, wherein the conventional IP network comprises a non-OFS, and wherein the conventional IP network does not comprise an OFS; and
storing information about a logical switch when there is no logical switch corresponding to the conventional IP network, wherein the information about the logical switch comprises related information of the M OFS ports, and wherein the related information of the M OFS ports is obtained according to the M OFS ports and the common conventional IP network, and wherein the related information of each of the M OFS ports comprises link information between the logical switch and a relative one of the M OFS ports.

### Claim 2 (depends on 1)

The topological learning method according to claim 1, further comprising updating the information about the logical switch when there is the logical switch corresponding to the common conventional IP network, wherein the updated information about the logical switch comprises the related information of the M OFS ports.

### Claim 3 (depends on 1)

The topological learning method according to claim 1, wherein storing the information about the logical switch comprises creating, by the controller, link information between the M OFS ports and the logical switch according to sending directions and receiving directions of the M OFS ports.

### Claim 4 (depends on 1)

The topological learning method according to claim 1, wherein obtaining, by the controller, the M OFS ports connected to the common conventional IP network comprises:
controlling, by the controller, each OFS port in the OPENFLOW network to send an Link Layer Discovery Protocol (LLDP) message and a Broadcast Domain Discovery Protocol (BDDP) message, wherein the BDDP message and the LLDP message each carry an identifier of a sending port, and wherein the identifier of the sending port uniquely identifies the sending port in the OPENFLOW network; and
obtaining, by the controller, the M OFS ports connected to the common conventional IP network according to the identifier of the sending port that is carried in the BDDP message and the identifier of the sending port that is carried in the LLDP message, wherein the M OFS ports comprise a first port and M−1 second ports, wherein the first port receives BDDP messages sent by the second ports but does not receive LLDP messages sent by the second ports.

### Claim 5 (depends on 1)

The topological learning method according to claim 1, wherein obtaining, by the controller, the M OFS ports connected to the common conventional IP network comprises:
controlling, by the controller, each OFS port in the OPENFLOW network to send an Link Layer Discovery Protocol (LLDP) message and a Broadcast Domain Discovery Protocol (BDDP) message, wherein the BDDP message and the LLDP message each carry an identifier of a sending port, and wherein the identifier of the sending port uniquely identifies the sending port in the OPENFLOW network; and
obtaining, by the controller, the M OFS ports connected to the common conventional IP network according to the identifier of the sending port that is carried in the BDDP message and the identifier of the sending port that is carried in the LLDP message, wherein the M OFS ports comprise a first port and M−1 second ports, wherein the M−1 second ports receive a BDDP message sent by the first port but do not receive an LLDP message sent by the first port.

### Claim 6 (depends on 1)

The topological learning method according to claim 1, wherein the obtaining, by the controller, the M OFS ports connected to the common conventional IP network comprises:
enabling, by the controller, a routing protocol on a third port connected to an IP router;
storing, by the controller, a correspondence between the third port and an IP address;
learning, by the controller using the routing protocol, routing information of the IP router connected to the third port;
obtaining, by the controller from the routing information, network segment information of routers connected to the IP router;
determining, by the controller according to the correspondence between the third port and the IP address, a fourth port belonging to the network segment information;
sending, by the controller, a User Datagram Protocol (UDP) message to the fourth port through the third port, wherein the UDP message comprises a data path identifier and a port identifier of a switch that sends the UDP message; and
determining that the third port and the fourth port are ports in the M OFS ports connected to the common conventional IP network when the controller determines that the fourth port receives the UDP message sent by the third port.

### Claim 7 (depends on 1)

The topological learning method according to claim 1, wherein after storing, by the controller, the information about the logical switch, the method further comprises deleting link information between a down port and the logical switch when the controller determines the down port among the M OFS ports.

### Claim 8 (depends on 7)

The topological learning method according to claim 7, wherein the method further comprises deleting the information about the logical switch when the controller determines that all of the M OFS ports are down.

### Claim 9 (depends on 1)

The topological learning method according to claim 1, wherein after storing, by the controller, the information about the logical switch, the method further comprises calculating, by the controller, a forwarding path according to link information between the M OFS ports and the logical switch.

### Claim 10 (depends on 1)

The topological learning method according to claim 1, wherein the link information comprises link information in a direction from one of the M OFS ports to the logical switch and link information in a direction from the logical switch to the one of the M OFS ports.

### Claim 11

A controller, comprising:
a memory configured to store instructions; and
a processor coupled to the memory and configured to execute the instructions to:
obtain M OPENFLOW switch (OFS) ports connected to a common conventional Internet Protocol (IP) network, wherein M is an integer greater than or equal to 2, wherein the common conventional IP network comprises a non-OFS, and wherein the common conventional IP network does not comprise an OFS; and
create information about a logical switch when there is no logical switch corresponding to the common conventional IP network, wherein the information about the logical switch comprises related information of the M OFS ports, and wherein the related information of the M OFS ports is obtained according to the M OFS ports and the common conventional IP network, and the related information of each of the M OFS ports comprises link information between the logical switch and a relative one of the M OFS ports.

### Claim 12 (depends on 11)

The controller according to claim 11, wherein the processor is further configured to update the information about the logical switch when there is the logical switch corresponding to the common conventional IP network, and wherein the updated information about the logical switch comprises the related information of the M OFS ports.

### Claim 13 (depends on 11)

The controller according to claim 11, wherein the processor is configured to create link information between the M OFS ports and the logical switch according to sending directions and receiving directions of the M OFS ports.

### Claim 14 (depends on 11)

The controller according to claim 11, wherein the processor is configured to:
control each OFS port in the OPENFLOW network to send an Link Layer Discovery Protocol (LLDP) message and a Broadcast Domain Discovery Protocol (BDDP) message, wherein the BDDP message and the LLDP message each carry an identifier of a sending port, and wherein the identifier of the sending port uniquely identifies the sending port in the OPENFLOW network; and
obtain the M OFS ports connected to the common conventional IP network according to the identifier of the sending port that is carried in the BDDP message and the identifier of the sending port that is carried in the LLDP message, wherein the M OFS ports comprise a first port and M−1 second ports, wherein the first port receives BDDP messages sent by the second ports but does not receive LLDP messages sent by the second ports.

### Claim 15 (depends on 11)

The controller according to claim 11, wherein the processor is configured to:
control each OFS port in the OPENFLOW network to send an Link Layer Discovery Protocol (LLDP) message and a Broadcast Domain Discovery Protocol (BDDP) message, wherein the BDDP message and the LLDP message each carry an identifier of a sending port, and wherein the identifier of the sending port uniquely identifies the sending port in the OPENFLOW network; and
obtain the M OFS ports connected to the common conventional IP network according to the identifier of the sending port that is carried in the BDDP message and the identifier of the sending port that is carried in the LLDP message, wherein the M OFS ports comprise a first port and M−1 second ports, wherein the M−1 second ports receive the BDDP message sent by the first port but do not receive the LLDP message sent by the first port.

### Claim 16 (depends on 11)

The controller according to claim 11, wherein the processor is configured to:
enable a routing protocol on a third port connected to an IP router, and storing a correspondence between the third port and an IP address;
learn using the routing protocol, routing information of the IP router connected to the third port;
obtain from the routing information, network segment information of routers connected to the IP router;
determine according to the correspondence between the third port and the IP address, a fourth port belonging to the network segment information;
send a User Datagram Protocol (UDP) message to the fourth port through the third port, wherein the UDP message comprises a data path identifier and a port identifier of a switch that sends the UDP message; and
determine that the third port and the fourth port are ports in the M OFS ports connected to the common conventional IP network when the controller determines that the fourth port receives the UDP message sent by the third port.

### Claim 17 (depends on 11)

The controller according to claim 11, wherein the processor is further configured to delete link information between a down port and the logical switch when the processor determines the down port among the M OFS ports.

### Claim 18 (depends on 17)

The controller according to claim 17, wherein the processor is further configured to delete the information about the logical switch when the processor determines that all of the M OFS ports are down.

### Claim 19 (depends on 11)

The controller according to claim 11, wherein the processor is further configured to calculate a forwarding path according to the link information between the M OFS ports and the logical switch.

### Claim 20 (depends on 11)

The controller according to claim 11, wherein the link information comprises link information in a direction from one of the M OFS ports to the logical switch and link information in a direction from the logical switch to the one of the M OFS ports.
