Method for obtaining port path and apparatus
First Claim
1. A method for obtaining a port path, comprising:
- receiving, by a controller, a request message from a first server, wherein the request message comprises an identifier of the first server and an identifier of a second server, wherein the request message requests port path information from the controller, and wherein the port path information comprises a port that a logical link from the first server to the second server passes through;
obtaining, by the controller, a first absolute port path (APP) and a second APP according to network topology information, the identifier of the first server, and the identifier of the second server, wherein the network topology information comprises information about a port connection between the first server and a first forwarding device configured to communicate with the first server, wherein the network topology information further comprises information about a port connection between the second server and a second forwarding device configured to communicate with the second server, wherein the first APP comprises a port that a logical link from a root node to the first server passes through, and wherein the second APP comprises a port that a logical link from the root node to the second server passes through;
obtaining, by the controller, the port path information according to the first APP and the second APP; and
sending, by the controller, the port path information to the first server.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for obtaining a port path and an apparatus to improve a network capacity, where the method includes receiving, by a controller, a request message from a first server, where the request message requests port path information, and the port path information includes a port that a logical link from the first server to a second server passes through, obtaining, by the controller, a first absolute port path (APP) and a second APP according to network topology information, where the first APP includes a port that a logical link from a root node to the first server passes through, and the second APP includes a port that a logical link from the root node to the second server passes through, obtaining, by the controller, the port path information according to the first APP and the second APP, and sending the port path information to the first server.
7 Citations
34 Claims
-
1. A method for obtaining a port path, comprising:
-
receiving, by a controller, a request message from a first server, wherein the request message comprises an identifier of the first server and an identifier of a second server, wherein the request message requests port path information from the controller, and wherein the port path information comprises a port that a logical link from the first server to the second server passes through; obtaining, by the controller, a first absolute port path (APP) and a second APP according to network topology information, the identifier of the first server, and the identifier of the second server, wherein the network topology information comprises information about a port connection between the first server and a first forwarding device configured to communicate with the first server, wherein the network topology information further comprises information about a port connection between the second server and a second forwarding device configured to communicate with the second server, wherein the first APP comprises a port that a logical link from a root node to the first server passes through, and wherein the second APP comprises a port that a logical link from the root node to the second server passes through; obtaining, by the controller, the port path information according to the first APP and the second APP; and sending, by the controller, the port path information to the first server. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14)
-
-
15. A method for obtaining a port path, the method comprising:
-
sending, by a first server, a request message to a controller, wherein the request message comprises an identifier of the first server and an identifier of a second server, wherein the request message requests port path information from the controller, and wherein the port path information comprises a port that a logical link from the first server to the second server passes through; receiving, by the first server, the port path information from the controller; and obtaining, by the first server, a packet transport port path (PTPP) according to the port path information, wherein the PTPP is a port sequence that the logical link from the first server to the second server passes through, wherein the port path information comprises a first absolute port path (APP) and a second APP, wherein the first APP comprises a port that a logical link from a root node to the first server passes through, wherein the second APP comprises a port that a logical link from the root node to the second server passes through, wherein obtaining the PTPP comprises; removing, by the first server, a redundant portion of the first APP to obtain a third APP, wherein the redundant portion of the first APP is a portion of the first APP other than a port sequence of the first APP, and wherein the port sequence of the first APP comprises the port that the logical link from the root node to the first server passes through; and removing, by the first server, a redundant portion of the second APP to obtain a fourth APP, wherein the redundant portion of the second APP is a portion of the second APP other than a port sequence of the second APP, and wherein the port sequence of the second APP comprises the port that the logical link from the root node to the second server passes through, wherein the root node is a physical node, and wherein obtaining the PTPP further comprises; reversing, by the first server, the third APP to obtain a reversed third APP; and splicing, by the first server, the reversed third APP and the fourth APP to obtain the PTPP, or, wherein the root node is a physical node or a virtual node, and wherein obtaining the PTPP comprises; removing, by the first server, a same prefix in the third APP and the fourth APP to obtain a fifth APP and a sixth APP, wherein the same prefix is a same port sequence comprised in the third APP and the fourth APP, wherein the fifth APP is a port sequence obtained after the same prefix is removed from the third APP, and wherein the sixth APP is a port sequence obtained after the same prefix is removed from the fourth APP; reversing, by the first server, the fifth APP to obtain a reversed fifth APP; and splicing, by the first server, the reversed fifth APP and the sixth APP to obtain the PTPP. - View Dependent Claims (16, 17, 18, 19)
-
-
20. A controller, comprising:
-
a processor; and a non-transitory computer readable medium coupled to the processor and configured to store computer-executable instructions, wherein when executed, the computer-executable instructions cause the processor to be configured to; receive a request message from a first server, wherein the request message comprises an identifier of the first server and an identifier of a second server, wherein the request message requests port path information from the controller, and wherein the port path information comprises a port that a logical link from the first server to the second server passes through; obtain a first absolute port path (APP) and a second APP according to network topology information, the identifier of the first server, and the identifier of the second server, wherein the network topology information comprises information about a port connection between the first server and a first forwarding device and information about a port connection between the second server and a second forwarding device, wherein the first forwarding device communicates with the first server, wherein the second forwarding device communicates with the second server, wherein the first APP comprises a port that a logical link from a root node to the first server passes through, and wherein the second APP comprises a port that a logical link from the root node to the second server passes through; obtain the port path information according to the first APP and the second APP; and send the port path information to the first server. - View Dependent Claims (21, 22, 23, 24, 25, 26, 27, 28, 29)
-
-
30. A first server, comprising:
-
a processor; and a non-transitory computer readable medium coupled to the processor and configured to store computer-executable instructions, wherein when executed, the computer-executable instructions cause the processor to be configured to; send a request message to a controller, wherein the request message comprises an identifier of the first server and an identifier of a second server, wherein the request message requests port path information from the controller, and wherein the port path information comprises a port that a logical link from the first server to the second server passes through; receive the port path information from the controller; and obtain a packet transport port path (PTPP) according to the port path information, and wherein the PTPP is a port sequence that the logical link from the first server to the second server passes through, wherein the port path information comprises a first absolute port path (APP) and a second APP, wherein the first APP comprises a port that a logical link from a root node to the first server passes through, wherein the second APP comprises a port that a logical link from the root node to the second server passes through, and wherein when obtaining the PTPP, the computer-executable instructions further cause the processor to be configured to; remove a redundant portion of the first APP to obtain a third APP, wherein the redundant portion of the first APP is a portion of the first APP other than a port sequence of the first APP, and wherein the port sequence of the first APP comprises the port that the logical link from the root node to the first server passes through; and remove a redundant portion of the second APP to obtain a fourth APP, wherein the redundant portion of the second APP is a portion of the second APP other than a port sequence of the second APP, and wherein the port sequence of the second APP comprises the port that the logical link from the root node to the second server passes through, wherein the root node is a physical node, and wherein when obtaining the PTPP, the computer-executable instructions further cause the processor to be configured to; reverse the third APP to obtain a reversed third APP; and splice the reversed third APP and the fourth APP to obtain the PTPP, or, wherein the root node is a physical node or a virtual node, and wherein when obtaining the PTPP, the computer-executable instructions further cause the processor to be configured to; remove a same prefix in the third APP and the fourth APP to obtain a fifth APP and a sixth APP, wherein the same prefix is a same port sequence comprised in the third APP and the fourth APP, wherein the fifth APP is a port sequence obtained after the same prefix is removed from the third APP, and wherein the sixth APP is a port sequence obtained after the same prefix is removed from the fourth APP; reverse the fifth APP to obtain a reversed fifth APP; and splice the reversed fifth APP and the sixth APP to obtain the PTPP. - View Dependent Claims (31, 32, 33, 34)
-
Specification