IP Library Granted Patent US 12,088,487
Granted Patent B2
US 12,088,487 · App. 18/270,417 · Granted Sep 10, 2024

Traffic monitoring method and apparatus for open stack tenant network

Inventors: Xifa Sun (Shandong, CN); Yashuai Lei (Shandong, CN)
Assignee: INSPUR SUZHOU INTELLIGENT TECHNOLOGY CO., LTD.
H04L43/0888H04L43/026H04L43/0817
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,088,487
App. No.
18/270,417
Granted
Sep 10, 2024
Kind
B2
Abstract

A traffic monitoring method for an Open Stack tenant network, including: detecting a traffic in/out state of a first virtual machine by using a callback function; when it is detected that the virtual machine transmits first traffic to a second virtual machine in the same host, matching a first data flow corresponding to the first traffic by using target flow table entries in an integrated bridge, and transmitting a copied first data flow to a traffic monitoring platform; when it is detected that the first virtual machine transmits second traffic to a third virtual machine in a remote host, matching a second data flow corresponding to the second traffic by using the target flow table entries, and transmitting a copied second data flow to a physical bridge; and when the integrated bridge receives the third data flow, transmitting the third data flow to the traffic monitoring platform.

Claims (50)

1. A traffic monitoring method for an Open Stack tenant network, comprising:

detecting a traffic in or out state of a first virtual machine in a first Open Stack host by using a callback function, the callback function being a function pre-registered in a Linux bridge in the first Open Stack host;

when it is detected that the first virtual machine transmits first traffic of the traffic to a second virtual machine in the first Open Stack host, matching a first data flow corresponding to the first traffic by using target flow table entries stored in an integrated bridge in the first Open Stack host, and transmitting a copied first data flow to a traffic monitoring platform, so as to monitor the first traffic;

when it is detected that the first virtual machine transmits second traffic of the traffic to a third virtual machine in a second Open Stack host, matching a second data flow corresponding to the second traffic by using the target flow table entries, and transmitting a copied second data flow to a physical bridge of the first Open Stack host;

when the physical bridge receives the copied second data flow, reflecting the copied second data flow to a target receiving port of the physical bridge according to the target flow table entries;

when the target receiving port receives the copied second data flow, performing L2 learning on the copied second data flow to obtain a third data flow, and transmitting the third data flow to the integrated bridge; and

when the integrated bridge receives the third data flow, transmitting the third data flow to the traffic monitoring platform, so as to monitor the second traffic.

2. The traffic monitoring method according to claim 1 , further comprising:

checking an integrity of at least one of the copied first data flow or the third data flow by using the traffic monitoring platform.

3. The traffic monitoring method according to claim 1 , further comprising:

transmitting the first traffic to the second virtual machine according to the first data flow; and

transmitting the second traffic to the third virtual machine according to the second data flow.

4. The traffic monitoring method according to claim 1 , wherein the when the integrated bridge receives the third data flow, transmitting the third data flow to the traffic monitoring platform, so as to monitor the second traffic comprises:

when the integrated bridge receives the third data flow, modifying a vlan in the third data flow into a target vlan corresponding to the traffic monitoring platform, and transmitting the third data flow to the traffic monitoring platform through the target vlan, so as to monitor the second traffic.

5. The traffic monitoring method according to claim 1 , further comprising:

when an abnormality of the first traffic or the second traffic is monitored by using the traffic monitoring platform, prompting warning information.

6. The traffic monitoring method according to claim 1 , further comprising:

when an abnormality of at least one of an Internet protocol (IP) address, a media access control (MAC) address, or a target port of at least one of the first virtual machine, or the second virtual machine, or the third virtual machine is monitored by the traffic monitoring platform, disabling the at least one of the IP address, the MAC address, or the target port.

7. A traffic monitoring device for an Open Stack tenant network, comprising:

a memory, storing a computer program; and

a processor, configured to execute the computer program, and upon execution of the computer program, the processor is configured to:

detect a traffic in or out state of a first virtual machine in a first Open Stack host by using a callback function, the callback function being a function pre-registered in a Linux bridge in the first Open Stack host;

when it is detected that the first virtual machine transmits first traffic of the traffic to a second virtual machine in the first Open Stack host, match a first data flow corresponding to the first traffic by using target flow table entries stored in an integrated bridge in the first Open Stack host, and transmit a copied first data flow to a traffic monitoring platform, so as to monitor the first traffic;

when it is detected that the first virtual machine transmits second traffic of the traffic to a third virtual machine in a second Open Stack host, match a second data flow corresponding to the second traffic by using the target flow table entries, and transmit a copied second data flow to a physical bridge of the first Open Stack host;

when the physical bridge receives the copied second data flow, reflect the copied second data flow to a target receiving port of the physical bridge according to the target flow table entries;

when the target receiving port receives the copied second data flow, perform L2 learning on the copied second data flow to obtain a third data flow, and transmitting the third data flow to the integrated bridge; and

when the integrated bridge receives the third data flow, transmit the third data flow to the traffic monitoring platform, so as to monitor the second traffic.

8. A non-transitory computer-readable storage medium, storing a computer program executable by a processor, wherein upon execution by the processor, the computer program is configured to cause the processor to:

detect a traffic in or out state of a first virtual machine in a first Open Stack host by using a callback function, the callback function being a function pre-registered in a Linux bridge in the first Open Stack host;

when it is detected that the first virtual machine transmits first traffic of the traffic to a second virtual machine in the first Open Stack host, match a first data flow corresponding to the first traffic by using target flow table entries stored in an integrated bridge in the first Open Stack host, and transmit a copied first data flow to a traffic monitoring platform, so as to monitor the first traffic;

when it is detected that the first virtual machine transmits second traffic of the traffic to a third virtual machine in a second Open Stack host, match a second data flow corresponding to the second traffic by using the target flow table entries, and transmit a copied second data flow to a physical bridge of the first Open Stack host;

when the physical bridge receives the copied second data flow, reflect the copied second data flow to a target receiving port of the physical bridge according to the target flow table entries;

when the target receiving port receives the copied second data flow, perform L2 learning on the copied second data flow to obtain a third data flow, and transmitting the third data flow to the integrated bridge; and

when the integrated bridge receives the third data flow, transmit the third data flow to the traffic monitoring platform, so as to monitor the second traffic.

9. The traffic monitoring method according to claim 1 , wherein the detecting a traffic in or out state of a first virtual machine in a first Open Stack host by using a callback function comprises:

in response to the first virtual machine receiving the traffic or transmitting the traffic to other devices, reporting, by the first virtual machine, heartbeat information to the callback function, so as to detect the traffic in or out state of the first virtual machine in the first Open Stack host.

10. The traffic monitoring method according to claim 1 , further comprising:

displaying monitored information in a taskbar or a floating window on a desktop in real time.

11. The traffic monitoring method according to claim 2 , wherein the checking an integrity of at least one of the copied first data flow or the third data flow by using the traffic monitoring platform comprises:

checking the integrity of the at least one of the copied first data flow or the third data flow through parity check, block check character (BCC), or cyclic redundancy check (CRC) by using the traffic monitoring platform.

12. The traffic monitoring method according to claim 1 , wherein the first data flow comprises a first transmission path of the first traffic from the first virtual machine to the second virtual machine.

13. The traffic monitoring method according to claim 1 , wherein the second data flow comprises a second transmission path and a transmission rule of the second traffic from the first virtual machine to the third virtual machine.

14. The traffic monitoring method according to claim 5 , wherein the when an abnormality of the first traffic or the second traffic is monitored by using the traffic monitoring platform, prompting warning information comprises:

in response to retransmission data, invalid data, or error data occurring in the first traffic or the second traffic, prompting the warning information.

15. The traffic monitoring device for an Open Stack tenant network according to claim 7 , wherein the processor, upon execution of the computer program, is further configured to:

check an integrity of at least one of the copied first data flow or the third data flow by using the traffic monitoring platform.

16. The traffic monitoring device for an Open Stack tenant network according to claim 7 , wherein the processor, upon execution of the computer program, is further configured to:

when the integrated bridge receives the third data flow, modify a vlan in the third data flow into a target vlan corresponding to the traffic monitoring platform, and transmit the third data flow to the traffic monitoring platform through the target vlan, so as to monitor the second traffic.

17. The non-transitory computer-readable storage medium according to claim 8 , wherein the computer program is further configured to cause the processor to:

check an integrity of at least one of the copied first data flow or the third data flow by using the traffic monitoring platform.

Assignments (2)
LICENSE Recorded Jun 30, 2026
From: IEIT SYSTEMS CO., LTD
To: AIVRES SYSTEMS INC.
Reel/Frame 075857/0939 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 29, 2023
From: SUN, XIFA; LEI, YASHUAI
To: INSPUR SUZHOU INTELLIGENT TECHNOLOGY CO., LTD.
Reel/Frame 064176/0827 →
Priority Claims (1)
CN 202110848075.5 · Jul 27, 2021 · national
Continuity (1)
Related Publication 20240048468A1 · Feb 8, 2024