Patent ID: 9614754
Date: 2017-04-04
CPC Classifications: H04L

Claim:
1. A method for packet routing in a network, comprising: obtaining, by a controller, identifiers of two servers in the network and network connection information of the two servers; determining, by the controller, whether the two servers are in two different subnets of the network and whether the two different subnets are configured on a same router according to the identifiers of the two servers and the network connection information of the two servers; when it is determined that the two servers are in two different subnets of the network and the two different subnets are configured on a same router, instructing, by the controller, a first switch to: modify a packet header of a packet sent by a first server to a second server and forward the modified packet to the second server; wherein the network comprises the controller, the two servers, and the first switch, and wherein the two servers comprise the first server and the second server, the controller is connected to the first switch, the first server is directly connected to the first switch, the first server belongs to a first subnet of the network, and the second server belongs to a second subnet of the network.