Patent ID: 11863439
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Digital communication (Electrical engineering)
Classification: CPC H | IPC H

Claim 2:
3. The method according to claim 2, wherein the determining the port with the loop according to the flow table comprises:
obtaining, for each port in the flow table, a same-side IP address set and a peer-side IP address set according to the flow table;
determining an intersection between the same-side IP address set and the peer-side IP address set to obtain a plurality of IP addresses;
determining, according to the flow table, a total flow quantity of data flows that correspond to the plurality of IP addresses and that are in all data flows passing through the port, and using the determined total flow quantity as a first total flow quantity;
if the first total flow quantity is greater than a first threshold, determining a total flow quantity of all data flows passing through the port, and using the determined total flow quantity as a second total flow quantity; and
if a ratio of the first total flow quantity to the second total flow quantity is greater than a second threshold, determining that the port is the port with the loop.