Communication system for deep integration of virtual network and entity network
By leveraging the encrypted packaging and MAC address learning capabilities of controllers and secure gateway devices in virtual network and physical network communication systems, the problem of the inability to transmit layer two data frames and lack of encryption functions in the prior art is solved, and the virtual network and Deep convergence and secure data transmission of physical networks.
Patent Information
- Application Number
- CN202410962474.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-12-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The prior art cannot transmit layer two data frames and lacks encryption functions, so it cannot achieve the deep integration of virtual networks and physical networks.
By establishing a control plane connection between the controller and the security gateway device, configuring virtual network configuration information, and realizing encrypted and forwarding of data frames, the security gateway device has the ability to learn MAC address to generate a virtual network MAC address forwarding table, and supports virtual network Configuration and update of MAC address filter table.
It realizes the virtual network forwarding and encrypted packaging of layer two data frames, supports the secure gateway to independently learn the configuration of MAC forwarding tables and receive static MAC address forwarding entries, and provides secure, flexible and efficient data transmission and management capabilities.
Smart Images

Figure CN119071105A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network communication technology, and in particular to a communication system in which a virtual network and a physical network are deeply integrated. Background Art
[0002] The TCP / IP network reference model is the standard interconnection model used by the Internet. It designs the network in layers and is divided into five levels: application layer, transport layer, network layer, data link layer, and physical layer. The data link layer is located at the second layer of the network model. It can transmit data frames such as ARP, PPP, Ethernet, and VLAN. The network layer is located at the third layer and transmits IP data packets such as TCP / UDP. The data transmitted at the second and third layers are strictly distinguished. Based on virtual network technology, site-to-site virtual dedicated lines can be established between different sites across the Internet, forming a virtual local area network between different sites, and integrating the site physical network with this virtual network. This technology is widely used in scenarios such as interconnection between different office locations and interconnection between different data centers.
[0003] The site-to-site virtual network technologies include IPSEC, GRE, MPLS, VXLAN, etc. Among them, IPSEC is a secure virtual network framework defined by I ETF, which provides a secure virtual network architecture and is the most widely used technology in site-to-site virtual network scenarios; the generic routing encapsulation protocol GRE can encapsulate data packets of network layer protocols (such as IP and IPX) so that these encapsulated data packets can be transmitted in another network layer protocol (such as IP), thereby realizing virtual networks; MPLS is a layer 2 label switching technology, and there are two virtual network technologies based on MPLS: MPLS L2VPN and MPLS L3VPN; VXLAN is a virtual network technology defined by I ETF, which was originally an extension of the traditional VLAN protocol. VXLAN technology can encapsulate layer 2 Ethernet frames into UDP packets for transmission over IP networks.
[0004] Traditional virtual network technologies, such as IPSEC and GRE, are based on Layer 3 technologies and can only transmit IP data packets such as TCP / UDP, but not data frames below Layer 3. GRE itself has no security features and cannot encrypt transmitted data. Although VXLAN is a Layer 2 virtual network technology, VXLAN only defines how to encapsulate the data layer, but does not define the control plane protocol and security features, and cannot encrypt transmitted data. Although MPLS has the ability to support both Layer 2 and Layer 3 virtual networks, it relies on the MPLS backbone network and does not have the ability to establish a virtual network through the Internet. Summary of the invention
[0005] In view of the deficiencies in the prior art, the present invention provides a communication system with deep integration of a virtual network and a physical network, which solves the problem in the prior art that a second-layer data frame cannot be transmitted or an encryption function cannot be provided.
[0006] To achieve the above objectives, the present invention is implemented through the following technical solutions: A communication system with deep integration of virtual network and physical network, comprising:
[0007] Controller;
[0008] Multiple security gateway devices deployed at different sites.
[0009] Wherein, a control plane connection is established between the controller and the security gateway device, and the controller is configured to send virtual network configuration information to the security gateway device;
[0010] A data plane connection is established between the security gateway devices, and the data plane connection is configured to encrypt and re-encapsulate and forward the data frames to be sent to the other end;
[0011] The security gateway device also has MAC address learning capability, and generates a virtual network MAC address forwarding table based on the learning. The controller is also configured to update the virtual network MAC address forwarding table and issue a virtual network MAC address filtering table.
[0012] Preferably, the virtual network configuration information includes: the local security gateway IP address, the opposite security gateway IP address, the local security gateway public key, the opposite security gateway public key, and the virtual network ID.
[0013] Preferably, the security gateway device generates a public-private key pair based on an asymmetric encryption algorithm, and sends the public key to the controller. The security gateway device receives the virtual network configuration information issued by the controller. The security gateway device sends a virtual network establishment proposal to the peer security gateway based on the virtual network configuration information. The proposal message is encrypted using the public key of the peer security gateway. The proposal message includes a heartbeat period and the key that the peer expects to use to encrypt data frame transmission.
[0014] Preferably, the security gateway device is configured to receive a confirmation message sent by the opposite security gateway, the confirmation message is encrypted using the opposite public key, and completes the establishment of the virtual network. After the virtual network is established, the security gateway device periodically sends a heartbeat message at a heartbeat period proposed by the opposite end, the heartbeat message is encrypted using the opposite public key. The security gateway device is configured to receive and process data frames that are a fusion of the site physical network and the virtual network, extract the source MAC and target MAC in the data frame, and compare the target MAC with the virtual network MAC address forwarding table.
[0015] Preferably, after finding the matching forwarding information, the security gateway device further compares whether there is a MAC address filtering table in the virtual network. If there is no filtering action, the data frame is encapsulated in the virtual network and then forwarded. If there is corresponding filtering information, no forwarding is performed. When the security gateway device does not find the matching forwarding information in the MAC address forwarding table, it further searches the MAC address filtering table, finds the virtual network ID without filtering action, and encapsulates the data frame according to the virtual network information of the corresponding ID and then forwards it.
[0016] Preferably, the security gateway device is configured to search the virtual network MAC address filter table only according to the source MAC for data frames whose target MAC address is a broadcast. The security gateway device is configured to receive virtual network messages from the virtual network, extract encrypted data frames and decrypt them, extract source MAC, and record the source MAC and virtual network ID in the virtual network MAC address forwarding table. The security gateway device is configured to automatically delete the entry when the dynamic entry expiration time expires.
[0017] Preferably, the virtual network MAC address forwarding table includes dynamic entries and static entries. The dynamic entries are automatically learned and generated by the security gateway device and have a set life cycle. The static entries are issued by the controller and will not expire until a revocation message is received from the controller.
[0018] Preferably, the security gateway device is configured to process data frames based on the virtual network MAC address forwarding table and MAC address filtering table, encrypt and encapsulate data frames that meet transmission conditions, and transmit them through the virtual network.
[0019] Preferably, the controller is configured to send virtual network MAC address filter table information to the security gateway device, the MAC address filter table includes a virtual network ID, a source MAC address and a target MAC address, and when the source MAC or the target MAC is negligible, it is represented by 00:00:00:00:00:00.
[0020] Preferably, the encapsulation format of the virtual network layer 2 data frame is that the outermost layer is the IP header, the source IP is the local security gateway IP, and the target IP is the opposite security gateway IP; the middle layer is the UDP header and the virtual network ID; the inner layer is the encrypted source data frame, and the source data frame is a data frame containing the original layer 2 Ethernet header.
[0021] Working principle: This system consists of a controller and multiple security gateway devices deployed at different sites. First, the controller establishes a control plane connection with each security gateway device and sends virtual network configuration information to the security gateway device, including the local security gateway IP address, the peer security gateway IP address, the local security gateway public key, the peer security gateway public key and the virtual network ID. Subsequently, the security gateway device generates a public-private key pair based on an asymmetric encryption algorithm, sends the public key to the controller, and receives the virtual network configuration information sent by the controller.
[0022] After receiving the configuration information, the security gateway device sends a virtual network establishment proposal to the peer security gateway. The proposal message is encrypted with the peer public key and contains the heartbeat period and the encryption key expected to be used by the peer. After receiving the proposal message, the peer security gateway sends a confirmation message (encrypted with the public key) to complete the establishment of the virtual network. After the virtual network is established, the security gateway device periodically sends heartbeat messages (encrypted with the peer public key) to ensure the stability and effectiveness of the connection.
[0023] During the data transmission process, after the security gateway device receives the data frame that is the fusion of the site physical network and the virtual network, it first extracts the source MAC and destination MAC in the data frame, and then compares the destination MAC with the virtual network MAC address forwarding table. If matching forwarding information is found, it further compares whether there is a MAC address filter table; if there is no filtering action, the data frame is encapsulated in the virtual network and forwarded; if there is filtering information, it is not forwarded. If no matching forwarding information is found in the forwarding table, the MAC address filter table is searched, and the data frame is encapsulated and forwarded according to the virtual network ID without filtering action found. In addition, for data frames with a broadcast target MAC address, the security gateway device only needs to search the virtual network MAC address filter table according to the source MAC to determine whether forwarding is required.
[0024] While processing data frames, the security gateway device also has the ability to learn MAC addresses. After receiving the virtual network message from the virtual network, the encrypted data frame is extracted and decrypted, and the source MAC to virtual network MAC address forwarding table (dynamic entry) is recorded. The dynamic entry sets the life cycle and is automatically deleted after expiration; the static entry is issued by the controller and will not expire until the revocation message from the controller is received. At the same time, the controller sends the MAC address filter table information to the security gateway device. The filter table includes the virtual network ID, source MAC address and destination MAC address. When the source MAC or destination MAC can be ignored, it is represented by 00:00:00:00:00:00.
[0025] Finally, the encapsulation format of the data frame is: the outermost layer is the IP header, the source IP is the local security gateway IP, and the target IP is the peer security gateway IP; the middle layer is the UDP header and the virtual network ID; the inner layer is the encrypted source data frame, including the original Layer 2 Ethernet header. The security gateway device encrypts and encapsulates the data frames that meet the transmission conditions and transmits them through the virtual network to ensure data security. Through the above steps, this system realizes the deep integration of virtual networks and physical networks, and provides secure, flexible and efficient data transmission and management capabilities.
[0026] The present invention provides a communication system that deeply integrates virtual network and physical network.
[0027] Beneficial effects:
[0028] The present invention forwards data through a virtual network via a layer 2 data frame and supports encrypted encapsulated virtual network technology. In addition, the present invention can support the security gateway to autonomously learn the MAC forwarding table, receive the static MAC address forwarding entry configuration of the controller, and support the configuration of the MAC address filter table. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 It is a system diagram of the present invention. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0031] Example:
[0032] Please see attached Figure 1 The embodiment of the present invention provides a communication system for deep integration of a virtual network and a physical network, including:
[0033] Controllers and security gateway devices deployed between different sites. A control plane connection is established between the controller and the security gateway device, and the security gateway device receives the virtual network configuration information sent by the control plane. At the same time, a virtual network data plane connection is established between the security gateway devices, and the data frames that need to be sent to the other end are encrypted, re-encapsulated and forwarded. The security gateway device has the ability to learn MAC addresses and forwards according to the generated virtual network MAC address forwarding table. In addition, the controller can also update the virtual network MAC address forwarding table, and can send down the virtual network MAC address filter table, so that the security gateway can filter the data frames whose source addresses are in the filter table;
[0034] Controller and security gateway devices deployed between different sites. The specific implementation steps are as follows:
[0035] Control plane connection between controller and security gateway device
[0036] First, the controller establishes a control plane connection with each security gateway device. The control plane is responsible for the configuration management of the virtual network and the issuance of control commands. The steps to establish the control plane connection are as follows:
[0037] Controller initialization: After the controller is started, it is initialized first and loads the virtual network management module and the security gateway device management module.
[0038] Security gateway device registration: After each security gateway device is started, it sends a registration request to the controller, which contains its unique identification information and initial configuration.
[0039] Establishing a connection: After receiving the registration request, the controller verifies the identity of the security gateway device and establishes a control plane connection with it if successful.
[0040] Sending virtual network configuration information
[0041] After the control plane connection is established, the controller sends virtual network configuration information to the security gateway device. The virtual network configuration information includes:
[0042] Local security gateway IP address: used to identify the IP address of the current security gateway device.
[0043] Peer security gateway IP address: used to identify the IP address of the target security gateway device.
[0044] Local security gateway public key: the public key used to encrypt data frames.
[0045] Peer security gateway public key: The public key used to decrypt data frames from the target security gateway device.
[0046] Virtual Network ID: A unique identifier used to identify a virtual network.
[0047] Establishing data plane connection
[0048] The data plane connection of the virtual network is established between the security gateway devices. The specific steps are as follows:
[0049] Key generation: The security gateway device generates a public-private key pair based on an asymmetric encryption algorithm (such as the RSA algorithm). The formula for the RSA algorithm is as follows:
[0050] Public key (e,n)
[0051] Private key (d,n)
[0052] Encryption process: `C = M^e mod n`
[0053] Decryption process: `M = C^d mod n`
[0054] Among them, M is the plaintext, C is the ciphertext, e and d are the exponents in the public and private key pair, and n is the modulus.
[0055] Configuration information reception: The security gateway device receives the virtual network configuration information sent by the controller.
[0056] Establishment proposal: Based on the virtual network configuration information, the security gateway sends a virtual network establishment proposal to the peer security gateway. The proposal message is encrypted using the public key of the peer security gateway and contains the heartbeat period and the key that the peer is expected to use to encrypt data frame transmission.
[0057] Confirmation message: After receiving the proposal message, the peer security gateway sends a confirmation message (encrypted using the public key) to complete the establishment of the virtual network.
[0058] Heartbeat message: After the virtual network is established, the security gateway device periodically sends heartbeat messages (encrypted using the peer's public key) to ensure the stability and effectiveness of the connection.
[0059] Data frame encryption and forwarding
[0060] During the data transmission process, the security gateway device will encrypt the data frames that need to be sent to the other end, re-encapsulate and forward them. The specific steps are as follows:
[0061] Data frame reception: After receiving the data frame of the site physical network and virtual network fusion, the security gateway device extracts the source MAC and target MAC in the data frame.
[0062] Forwarding table match: Compare the destination MAC with the virtual network MAC address forwarding table:
[0063] If matching forwarding information is found, it is further compared to see if there is a MAC address filtering table. If there is no filtering action, the data frame is encapsulated in a virtual network and then forwarded; if there is corresponding filtering information, it is not forwarded.
[0064] If no matching forwarding information is found in the forwarding table, the MAC address filter table is searched to find the virtual network ID without filtering action, and the data frame is encapsulated and forwarded according to the corresponding ID information. There may be multiple virtual network IDs, and multiple encapsulation and forwarding are required according to multiple virtual network information.
[0065] Broadcast data frame processing: For data frames with a target MAC address of broadcast, there is no need to search the virtual network MAC address forwarding table, only the virtual network MAC address filter table needs to be searched according to the source MAC.
[0066] MAC address forwarding table update
[0067] The security gateway device has the ability to learn MAC addresses and forwards packets based on the generated virtual network MAC address forwarding table. The specific process is as follows:
[0068] Dynamic entry generation: The security gateway receives virtual network messages from the virtual network, extracts the encrypted data frame and decrypts it, extracts the source MAC, and records the source MAC and virtual network ID in the virtual network MAC address forwarding table. The source MAC is recorded in the destination MAC address field of the forwarding table and recorded as a dynamic entry, and the life cycle is set.
[0069] Item update: If a corresponding item already exists when recording a dynamic item, the life cycle duration will be reset.
[0070] Entry deletion: The security gateway sets an expiration time for each dynamic entry and automatically deletes the entry when the expiration time expires.
[0071] Static entries: The security gateway can receive static MAC address forwarding table information sent by the controller. This MAC address forwarding information will not expire and will not be deleted until the controller revokes the message.
[0072] Update of MAC address filter table
[0073] The controller can update the virtual network MAC address forwarding table and send down the virtual network MAC address filtering table, so that the security gateway can filter the data frames whose source addresses are in the filtering table. The specific process is as follows:
[0074] Filter table delivery: The controller delivers MAC address filter table information to the security gateway device. The filter table includes the virtual network ID, source MAC address, and destination MAC address. When the source MAC or destination MAC can be ignored, 00:00:00:00:00:00 is used.
[0075] Filter table application: During the data frame forwarding process, the security gateway device filters the data frames according to the MAC address filter table information to ensure that only the data frames that meet the conditions are forwarded.
[0076] Virtual network layer 2 data frame encapsulation format
[0077] The encapsulation format of the data frame is as follows:
[0078] Outermost layer: IP header, the source IP is the local security gateway IP, and the target IP is the peer security gateway IP.
[0079] Middle layer: UDP header, including virtual network ID.
[0080] Inner layer: Encrypted source data frame, including the data frame of the original Layer 2 Ethernet header.
[0081] The specific packaging format is:
[0082] IP header:
[0083] Source IP address: 10.1.1.1
[0084] Destination IP address: 10.1.1.2
[0085] Other fields such as version, header length, total length, etc. are filled in according to the standard IP header format.
[0086] UDP header:
[0087] Source port: 5000
[0088] Destination Port: 5001
[0089] Length: Calculate the length of the entire UDP data packet.
[0090] Checksum: Calculated according to the UDP checksum algorithm.
[0091] Virtual network ID: 1001
[0092] Encrypted source data frame:
[0093] Encryption algorithm: AES
[0094] Encrypted data: Layer 2 Ethernet header and actual data payload of the source data frame
[0095] AES encryption formula: `C=E(K,P)`, where C is the ciphertext, E is the encryption algorithm, K is the encryption key, and P is the plaintext data.
[0096] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A communication system with deep integration of virtual network and physical network, characterized in that: include: Controller; Multiple security gateway devices deployed at different sites. Wherein, a control plane connection is established between the controller and the security gateway device, and the controller is configured to send virtual network configuration information to the security gateway device; A data plane connection is established between the security gateway devices, and the data plane connection is configured to encrypt and re-encapsulate and forward the data frames to be sent to the other end; The security gateway device also has MAC address learning capability, and generates a virtual network MAC address forwarding table based on the learning. The controller is also configured to update the virtual network MAC address forwarding table and issue a virtual network MAC address filtering table.
2. A communication system with deep integration of virtual network and physical network according to claim 1, characterized in that: The virtual network configuration information includes: the local security gateway IP address, the opposite security gateway IP address, the local security gateway public key, the opposite security gateway public key, and the virtual network ID.
3. A communication system with deep integration of virtual network and physical network according to claim 1, characterized in that: The security gateway device generates a public-private key pair based on an asymmetric encryption algorithm and sends the public key to the controller. The security gateway device receives the virtual network configuration information issued by the controller. Based on the virtual network configuration information, the security gateway device sends a virtual network establishment proposal to the peer security gateway. The proposal message is encrypted using the public key of the peer security gateway. The proposal message includes a heartbeat period and the key used by the expected peer to encrypt data frame transmission.
4. A communication system with deep integration of virtual network and physical network according to claim 1, characterized in that: The security gateway device is configured to receive a confirmation message sent by the opposite security gateway, the confirmation message is encrypted using the opposite public key, and complete the establishment of the virtual network. After the virtual network is established, the security gateway device periodically sends a heartbeat message at a heartbeat period proposed by the opposite end, the heartbeat message is encrypted using the opposite public key. The security gateway device is configured to receive and process data frames that are integrated with the site physical network and the virtual network, extract the source MAC and target MAC in the data frame, and compare the target MAC with the virtual network MAC address forwarding table.
5. A communication system with deep integration of virtual network and physical network according to claim 1, characterized in that: After finding the matching forwarding information, the security gateway device further compares whether there is a MAC address filtering table in the virtual network. If there is no filtering action, the data frame is encapsulated in the virtual network and then forwarded. If there is corresponding filtering information, no forwarding is performed. When the security gateway device does not find the matching forwarding information in the MAC address forwarding table, it further searches the MAC address filtering table, finds the virtual network ID without filtering action, and encapsulates the data frame according to the virtual network information of the corresponding ID and then forwards it.
6. A communication system with deep integration of virtual network and physical network according to claim 1, characterized in that: The security gateway device is configured to search the virtual network MAC address filter table only according to the source MAC for data frames with a broadcast target MAC address. The security gateway device is configured to receive virtual network messages from the virtual network, extract encrypted data frames and decrypt them, extract source MAC, and record the source MAC and virtual network ID in the virtual network MAC address forwarding table. The security gateway device is configured to automatically delete the entry when the dynamic entry expiration time expires.
7. A communication system for deep integration of virtual network and physical network according to claim 1, characterized in that: The virtual network MAC address forwarding table includes dynamic entries and static entries. The dynamic entries are automatically learned and generated by the security gateway device and have a set life cycle. The static entries are issued by the controller and will not expire until a revocation message is received from the controller.
8. A communication system with deep integration of virtual network and physical network according to claim 1, characterized in that: The security gateway device is configured to process data frames based on the virtual network MAC address forwarding table and the MAC address filtering table, encrypt and encapsulate data frames that meet transmission conditions, and transmit them through the virtual network.
9. A communication system with deep integration of virtual network and physical network according to claim 1, characterized in that: The controller is configured to send virtual network MAC address filter table information to the security gateway device, wherein the MAC address filter table includes a virtual network ID, a source MAC address, and a target MAC address. When the source MAC or the target MAC is negligible, 00:00:00:00:00:00 is used to represent it.
10. A communication system with deep integration of virtual network and physical network according to claim 1, characterized in that: The encapsulation format of the virtual network layer 2 data frame is that the outermost layer is the IP header, the source IP is the local security gateway IP, and the target IP is the opposite security gateway IP; the middle layer is the UDP header and the virtual network ID; the inner layer is the encrypted source data frame, and the source data frame is a data frame containing the original layer 2 Ethernet header.
