Data processing method based on bypass interface, electronic equipment and readable storage medium
By identifying and processing management packets and bypass packets on the bypass interface of network security devices, the problems of functional limitations and topological complexity in the prior art are solved, and the functional enhancement and topological simplification of the bypass interface are achieved.
Patent Information
- Application Number
- CN202411163070.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-11-26
AI Technical Summary
Existing network security devices have functional limitations when configuring bypass interfaces, and cannot support audit and management functions at the same time, increasing the complexity of network topology.
By identifying and extracting management packets and bypass packets on the bypass interface, and performing parsing and auditing respectively, the bypass interface supports audit and management functions and reduces the complexity of the network topology.
It enhances the functionality of the bypass interface, realizes the unity of audit and management functions, simplifies the network topology, and improves ease of use and practicality.
Smart Images

Figure CN119030771A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network security technology, and in particular to a data processing method based on a bypass interface, an electronic device, and a readable storage medium. Background Art
[0002] Firewalls and other network security devices generally support three deployment modes: transparent mode, routing mode, and bypass mode. Among them, bypass mode is connected to the network switch through the bypass interface, which will not affect the current network performance and is an important deployment mode for network security devices.
[0003] However, when a network security device configures a bypass interface, the network configuration is usually cleared, or the bypass interface is configured in black hole mode, so that the bypass interface can only receive data and only supports bypass audit functions, which has functional limitations; and when new business functions need to be added, new configuration interfaces need to be added, which increases the complexity of the network topology. Summary of the invention
[0004] According to various embodiments of the present application, a data processing method, an electronic device, and a readable storage medium based on a bypass interface are provided, which can enhance the functionality of the bypass interface and simplify the network topology.
[0005] In a first aspect, the present application provides a data processing method based on a bypass interface, the method comprising:
[0006] Based on the bypass interface, the data packets sent by the switch are obtained; the data packets are identified and the management data packets and bypass data packets are extracted from the data packets; the management data packets are parsed and processed, and the business management operations corresponding to the parsing results are executed; the bypass data packets are audited and the audit information of the bypass data packets is obtained.
[0007] Through the above method, when all data packets sent by the switch are received through the bypass interface, the data packets are identified, the management data packets and the bypass data packets are extracted, and the management data packets and the bypass data packets are processed separately, so that the bypass interface supports both the audit function and the management function, thereby enhancing the functionality of the bypass interface; based on the interaction between a single bypass interface and the switch, the complexity of the network topology is reduced; and it has strong ease of use and practicality.
[0008] In a possible implementation manner of the first aspect, the data packet includes a unicast data packet; and the identifying the data packet and extracting the management data packet from the data packet includes:
[0009] identifying a destination address of the data packet;
[0010] The unicast data packet whose destination address is the bypass interface address is used as the management data packet.
[0011] In a possible implementation manner of the first aspect, the method further includes:
[0012] The unicast data packet whose destination address is the bypass interface address is deduplicated to obtain the management data packet.
[0013] In a possible implementation manner of the first aspect, the data packet includes a multicast data packet and / or a broadcast data packet; and the identifying the data packet and extracting the management data packet from the data packet includes:
[0014] Identifying the payload content of the multicast data packet and / or the broadcast data packet;
[0015] The data packet that associates the payload content with the management service is used as the management data packet.
[0016] In a possible implementation manner of the first aspect, the method further includes:
[0017] An active data packet is sent to the switch through the bypass interface; or a response data packet is sent to the switch through the bypass interface based on the parsing result.
[0018] In a possible implementation manner of the first aspect, the auditing the bypass data packet to obtain the audit information of the bypass data packet includes:
[0019] The bypass data packet is stored, analyzed and security-checked to obtain audit information of the bypass data packet.
[0020] In a possible implementation manner of the first aspect, the method further includes:
[0021] In response to the configuration instruction for the bypass interface, the management service of the bypass interface is configured.
[0022] In a second aspect, the present application provides a data processing device based on a bypass interface, the device comprising:
[0023] An acquisition unit, configured to acquire a data packet sent by the switch based on the bypass interface;
[0024] An extraction unit, used to identify the data packet and extract a management data packet and a bypass data packet from the data packet;
[0025] A first processing unit, configured to parse the management data packet and execute a service management operation corresponding to the parsing result;
[0026] The second processing unit is used to perform audit processing on the bypass data packet to obtain audit information of the bypass data packet.
[0027] In a third aspect, the present application provides an electronic device, comprising at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute any one of the methods described in the first aspect.
[0028] In a fourth aspect, the present application provides a chip system, which is applied to an electronic device, and the chip system includes one or more processors, and the one or more processors are used to call computer instructions so that the electronic device executes the method described in the first aspect.
[0029] In a fifth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method described in the first aspect is implemented.
[0030] In a sixth aspect, the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device executes the method described in the first aspect above.
[0031] It can be understood that the beneficial effects of the second to sixth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0033] Figure 1 A schematic diagram of a network architecture applicable to the bypass interface provided in the embodiment of the present application;
[0034] Figure 2 A schematic diagram of the network architecture of the improved bypass interface provided in the embodiment of the present application;
[0035] Figure 3 A schematic diagram of a flow chart of a data processing method based on a bypass interface provided in an embodiment of the present application;
[0036] Figure 4 A schematic diagram of the interaction between the modules provided in the embodiment of the present application;
[0037] Figure 5 A schematic diagram of an interface for configuring a bypass interface management function provided in an embodiment of the present application;
[0038] Figure 6 A schematic diagram of an interface for sending prompt information during the configuration process provided in an embodiment of the present application;
[0039] Figure 7 A schematic diagram of the structure of a data processing device based on a bypass interface provided in an embodiment of the present application;
[0040] Figure 8 A structural schematic diagram of an electronic device is provided for an embodiment of the present application. DETAILED DESCRIPTION
[0041] The following embodiments of the technical solution of the present application will be described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.
[0042] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.
[0043] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.
[0044] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0045] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0046] The firewall deployed based on bypass mode is connected to the switch through the bypass interface, and the switch actively mirrors the traffic to the bypass interface. After the storage, analysis, and detection processes, the audit and security detection of the traffic are completed; because the bypass mode is not connected in series in the network, even if the device is abnormal or the performance is insufficient, it will not affect the current network. It is an important deployment method for network security equipment.
[0047] At present, there are several significant limitations in the process of configuring bypass detection interfaces on firewalls: first, when configuring the bypass detection interface, the existing network configuration is often cleared, and key parameters such as the Internet Protocol (IP) of the bypass detection interface are not allowed to be directly set; second, if the network configuration is kept unchanged, the system puts the bypass detection interface in black hole mode to implement bypass mirroring, further limiting its communication function; third, even if a virtual local area network (VLAN) interface and its sub-interfaces are built or configured on the bypass detection interface, effective management operations cannot be performed through the interface, which restricts the functionality of the bypass detection interface and makes the current bypass detection interface have obvious limitations in application.
[0048] like Figure 1 As shown in the figure, the Internet terminal accesses the Internet through the switch and the gateway; the switch and the gateway cooperate to divide and manage the virtual LAN; the gateway performs network address translation to realize the Internet access function of the Internet terminal; the switch can obtain the flow data of the Internet terminal accessing the network and mirror the flow data to the side-mounted device; the side-mounted device receives the flow data based on the side-mounted audit interface, and audits and analyzes the flow data. If the management function is to be realized, the side-mounted device needs to set up a separate management interface and interact with the switch through a separate management interface to realize effective management operations; the complexity of the network topology is increased; and the side-mounted device and the switch need to process the data flow of the two interfaces, which also increases the complexity of data processing.
[0049] In view of the above problems, the present application embodiment proposes a data processing method based on a bypass interface. Figure 2As shown, a schematic diagram of the application scenario architecture corresponding to the bypass interface-based data processing method; the bypass device is configured with a bypass interface, and the bypass interface has the performance of a bypass audit interface and a management interface, so that the bypass device can realize the audit and management of traffic data based on the same bypass interface, so that the administrator can configure and manage the bypass device through the LAN management terminal, and the bypass device feeds back management information through the management interface; the functionality of the bypass interface is enhanced, so that the bypass interface can support more network services besides auditing; at the same time, the network topology is made more streamlined, and the switch and the bypass device only need to process the data flow of a single network interface, and the data processing is also more concise.
[0050] Based on the above architecture, the specific implementation process of data processing based on the bypass interface in the architecture is further introduced below through embodiments.
[0051] See also Figure 3 , Figure 3 The following is a flow chart of a data processing method based on a bypass interface provided in an embodiment of the present application. Figure 3 As shown, the execution subject of this method can be Figure 2 The side-mounted device shown in , the side-mounted device can be a network security device such as a firewall. Figure 3 As shown, the method may include the following steps:
[0052] S301, based on the bypass interface, obtain a data packet sent by the switch.
[0053] In the embodiment of the present application, the bypass device receives all data packets sent by the switch through the bypass interface, including the data packets to be audited mirrored by the switch and the management data packets forwarded normally. For all data packets, the network card driver receives the data packets in sequence.
[0054] For example, Figure 4As shown, the bypass device receives all data packets sent by the switch through the bypass interface packet receiving module. Since the switch does not forward the mirrored data packets according to the Media Access Control (MAC) address / Virtual Local Area Network Identifier (VLAN ID) / IP address, etc., the MAC / VLAN ID / IP of the mirrored data packets to be audited have no characteristics. Therefore, when receiving the data packets, the bypass interface packet receiving module does not check the source MAC, destination MAC, VLAN ID, source IP, destination IP, etc., and does not drop packets and receives all data packets in order to ensure the continuity, consistency and integrity of the data, so that subsequent storage, analysis, auditing and security detection operations can be performed based on accurate time sequence and context information to avoid misjudgment or omission due to disordered message sequence.
[0055] When receiving a data packet, the timestamp, sequence number or other synchronization mechanism of the data packet can be recorded to ensure that the message sequence of the data packet is not disrupted, thereby achieving order-preserving reception of the data packet.
[0056] S302, identifying the data packets, and extracting the management data packets and the bypass data packets from the data packets.
[0057] In the embodiment of the present application, the received data packets are initially identified and classified to extract the management data packets and the mirror data in the data packets. The management data packets are data packets whose destination address is the address of the bypass interface, which can be data packets forwarded by the LAN management terminal through the switch; the bypass data packets are the traffic data of the Internet terminal accessing the network mirrored and forwarded by the switch.
[0058] For example, Figure 4 As shown, the bypass device also includes a management packet extraction module; the bypass device identifies the received data packet through the management packet extraction module and extracts the management data packet therein. The bypass device analyzes the destination MAC or destination IP in the data packet, and if the destination MAC of the data packet matches the bypass interface MAC, or the destination IP of the data packet matches the data packet of the bypass interface IP, or meets other preset management data packet identification rules (such as protocol type, port number, etc.), the data packet is regarded as a management data packet.
[0059] Exemplarily, a data packet may include header information, a data portion, and accompanying verification information. The bypass device may perform preliminary screening and analysis based on the header information of the data packet (such as the destination address, protocol type, etc.) to extract the management data packet; accordingly, the data in the data packet except the management data packet is used as a bypass data packet.
[0060] In some embodiments, the data packet includes a unicast data packet; identifying the data packet and extracting a management data packet from the data packet includes:
[0061] Identify the destination address of the data packet; treat the unicast data packet whose destination address is the bypass interface address as a management data packet.
[0062] Exemplarily, a unicast data packet is a data message communicated between a single sender and a receiver through a network, and each data packet has only one specific destination; for example, a management data packet sent directly from a LAN management terminal to a bypass device through a switch. By identifying the destination address of the header information, a unicast data packet with a destination address of the bypass interface address is regarded as a management data packet.
[0063] In some embodiments, the method further comprises:
[0064] The unicast data packet whose destination address is the bypass interface address is deduplicated to obtain a management data packet.
[0065] Exemplarily, when the destination address of a data packet matches the bypass interface address, the bypass device will receive a unicast data packet normally forwarded by the switch, and a unicast data packet in the mirrored data packet forwarded by the switch. The contents of the two unicast data packets are the same, so it is necessary to deduplicate and preserve the order of the unicast data packet determined to be a management data packet, and only retain one management data packet; to avoid sending it to a subsequent management packet processing module, which may cause an exception when the management packet processing module processes the data.
[0066] In some embodiments, the data packet includes a multicast data packet and / or a broadcast data packet; identifying the data packet and extracting the management data packet from the data packet includes:
[0067] Identify the payload content of the multicast data packet and / or the broadcast data packet; and associate the payload content with the management service as a data packet, as a management data packet.
[0068] Exemplarily, a multicast data packet is a data packet sent by a sender to multiple receivers at the same time; a broadcast packet is a data packet sent by a sender to all hosts in the network segment. When a multicast data packet is transmitted in the network, the switch can forward the multicast data packet according to the multicast forwarding table entry; for example, if the bypass interface address of the bypass device is within the range of its multicast forwarding table entry, the multicast data packet forwarded by the switch can be received. When a broadcast data packet is transmitted in the network, the switch can forward it to all hosts connected to the switch, including the bypass device, so that the bypass device can receive the broadcast data packet forwarded by the switch.
[0069] Exemplarily, multicast data packets and broadcast data packets may contain data related to management operations, and it is necessary to further determine whether they are management data packets that need to be processed based on the payload content of the data packet (ie, the actual data content except the header information).
[0070] When identifying the payload content of a multicast data packet and / or a broadcast data packet, the payload content can be parsed using a corresponding protocol parser according to the protocol used by the payload content (such as TCP, UDP, etc.). According to specific fields or tags (data format, identifier or metadata, etc.) of the payload content, it is matched and associated with the data of the management service to extract the management data packet.
[0071] For example, for different types of data packets and different application scenarios, the payload content is different, and the corresponding identification method is also different. For example, in an Address Resolution Protocol (ARP) ARP request, the message payload may include information such as the IP address to be resolved and the MAC address of the sender; in a HyperText Transfer Protocol (HTTP) request, the message payload may include a Uniform Resource Locator (URL), a request method, a request header, and other HTTP protocol-related data.
[0072] For example, the request broadcast message for Address Resolution Protocol (ARP) resolution contains the IP to be resolved. If the IP is consistent with the IP of the bypass interface, it is a broadcast message of the external resolution management IP and needs to be sent to the management packet processing module for processing. Therefore, it is determined as a management data packet; if the resolved IP is not the bypass interface IP, it is directly discarded.
[0073] For another example, a device connected to a switch sends a Link Layer Discovery Protocol (LLDP) message to the switch that contains neighbor information and only needs to be parsed by the switch. When mirrored to a bypass interface, for an LLDP multicast data packet, if its payload does not contain relevant information about the bypass interface IP and bypass interface MAC, and it is impossible to determine whether it is a message forwarded normally to the bypass interface or a message from the upstream and downstream interfaces of the mirrored switch, it cannot be sent to the LLDP service of the management packet processing module for processing, i.e., it is not processed as a management data packet. Otherwise, the bypass device may parse the LLDP messages of other devices connected to the switch, which may lead to abnormal LLDP neighbor information of the bypass device.
[0074] S303, parse and process the management data packet, and execute a service management operation corresponding to the parsing result.
[0075] In some embodiments, the parsing and processing of the data packet by the side-hook device and the execution of the corresponding service management operation may include parsing, processing and responding to the application layer protocol of the management data packet. The side-hook device performs detailed parsing and processing on the management data packet to extract specific management instructions or requests, and executes corresponding service management operations according to the parsed instructions or requests.
[0076] For example, Figure 4 As shown, the side-mounted device also includes a management packet processing module, which can perform in-depth analysis based on the protocol of the management data packet (such as HTTP, HTTPS, etc.), including authentication, authorization, instruction parsing and other steps, and finally execute corresponding business management operations, such as configuration update, status query, log recording, etc.
[0077] Exemplarily, the process of parsing and processing the management data packet may include: ARP resolution request, Internet Control Message Protocol (ICMP), Transmission Control Protocol (TCP), User Datagram Protocol (UDP), application layer processing of management services, Domain Name System (DNS), HTTP\HTTPS, Secure Shell Protocol (SSH), Telecommunication Network Protocol (TELNET), etc.
[0078] Among them, ARP is a network protocol used to map IP addresses to corresponding physical hardware addresses (such as MAC addresses). When an external device only knows the IP address of the target device but not its MAC address, it will send an ARP request to request the device with the target IP address to respond with its MAC address; for example, when the bypass device receives an ARP request forwarded by the switch, it recognizes that the IP address in the ARP request is the IP address of the bypass interface, and then performs corresponding business management operations, such as obtaining the MAC address of the bypass interface and returning it to the switch, which can be forwarded to external devices such as LAN management terminals through the switch. ICMP is used to report transmission errors of IP data packets and commands for network detection and diagnosis. It is parsed by the management data packet processing module and reports errors to the source device of the data packet. Management data packets are parsed based on the TCP / UDP protocol to respond to data transmission quality, such as reliable transmission and unreliable transmission. The application layer processing of management services is the parsing and processing of network management protocols (such as HTTP / HTTPS, SSH, TELNET, etc.), including receiving management requests, executing management operations, generating management responses, etc.
[0079] In some embodiments, the method further comprises:
[0080] Based on the parsing results, a response data packet is sent to the switch through the bypass interface.
[0081] Exemplarily, the management packet processing module can send a response data packet to the outside based on the parsed instructions or requests to complete more network services beyond auditing, for example, it can also process local messages (such as locally received localin / locally sent localout messages).
[0082] For example, the cloud management module is one of the sub-modules of the management data packet processing module. By listening to the TCP port number, the corresponding management data packet can be transmitted to the cloud management module. The cloud management module parses the management data packet to obtain a request for querying the device software version, then reads the system software version number, encapsulates the reply message in a predetermined format, and then sends it out through the bypass interface packet sending module; accordingly, the request for querying the device software version is an exemplary description of a management signaling, and the cloud management module can also support other signaling.
[0083] In some embodiments, the method further comprises:
[0084] Sends unsolicited packets to the switch through the bypass interface.
[0085] Exemplarily, the bypass device may also send active data packets to the switch through the bypass interface, that is, data packets that may be actively sent to the switch; for example, data packets for management, monitoring, configuration or data communication purposes.
[0086] Exemplarily, the active data packet may include a simple network management protocol (SNMP) data packet; the bypass device sends management information to the switch based on the simple network management protocol through the bypass interface, such as sending an SNMP GET request to the switch to obtain the device status, performance data, etc. of the switch, such as obtaining information such as the switch address table and routing table. The active data packet may also include a secure shell protocol data packet; the bypass device establishes a secure management session with the switch based on the SSH protocol through the bypass interface, such as the bypass device sends an SSH connection request data packet to the switch through the bypass interface to securely log in to the switch for configuration or management operations. The active data packet may also include an ICMP data packet; the bypass device may use the ICMP data packet to test the connection status with the switch or perform network diagnosis, such as the bypass device sends an ICMP Echo request (i.e., ping) data packet to the switch through the bypass interface to check the reachability of the network connection. The active data packet may also include a system log data packet (syslog), and the bypass device sends an audit log to the outside through the bypass interface.
[0087] Exemplarily, the management data packet is screened by the management packet extraction module and sent to the management packet processing module for processing. Compared with direct auditing by the bypass data packet processing module, the processing of the management data packet is generated by the management process, and the results are more detailed. Even for encrypted management traffic, the specific operator, operation object, operation parameters, operation status, operation results and other information can be detected.
[0088] Accordingly, the bypass interface packet sending module is used to send management data packets, such as ARP, ICMP, DNS, cloud management messages, HTTP\HTTPS management messages, SSH, TELNET and other messages, including returned response packets and actively sent data packets, such as cloud management heartbeat messages, etc. Among them, the bypass interface does not participate in the protocol stack message forwarding, and needs to discard the message whose source MAC is not the management MAC, otherwise it will cause the switch to learn abnormal MAC addresses.
[0089] S304, audit the bypass data packet to obtain audit information of the bypass data packet.
[0090] In some embodiments, auditing the bypass data packets to obtain audit information of the bypass data packets includes: storing, analyzing and performing security inspection on the bypass data packets to obtain audit information of the bypass data packets.
[0091] In some embodiments, the processing of bypass data packets by the bypass device may include storage, analysis, auditing, and security detection, etc. All Internet data packets of users at the Internet terminal will be stored in the memory or hard disk, and the traffic of different users will be classified and reorganized according to the source IP to restore the Internet data packets of each user, and the users and the parts of their Internet data packets that need to be audited will be screened and recorded. At the same time, malicious domain name checks, anti-virus, intrusion behavior and other security detections will be performed on the domain names visited, the content and files transmitted, etc.
[0092] For example, Figure 4 As shown, the bypass device may also include a bypass data packet processing module to perform audit processing on the bypass data packets. Among the data packets received by the bypass device, in addition to the broadcast data packets and multicast data packets belonging to the management data packets, other broadcast data packets and multicast data packets are also included. These are LAN traffic, not Internet traffic. They can be filtered in advance according to the load content of the data packets, so that no audit processing is performed, which reduces the burden of the bypass data packet processing module and can achieve a higher bypass audit throughput.
[0093] In some embodiments, the method further includes: configuring a management service of the bypass interface in response to a configuration instruction for the bypass interface.
[0094] For example, Figure 4 As shown, the bypass device also includes a bypass interface management service configuration module, which provides configuration functions for management services supported by the bypass interface. Figure 5 As shown, under the interface device options, the service is configured by selecting a physical interface (such as interface 1); for example, by clicking the management interface enable control and confirming that the management interface enable function is selected, the services that the management interface can support are configured. Among them, whether the management service data packet contains broadcast data packets and multicast data packets, and whether the corresponding broadcast data packets and multicast data packets can be distinguished from the mirror message, determines whether the management service can be supported on the bypass interface.
[0095] For example, cloud management / WEB management only rely on ARP broadcast packets, and their ARP broadcast packets can be distinguished from other mirrored ARP broadcast packets, so they can be supported; LLDP and Multi-Service Transport Platform (MSTP) interact through multicast packets, and their multicast packets cannot be distinguished from other mirrored multicast packets, so the bypass interface does not support LLDP and MSTP services. The management services that the bypass interface can currently support include ARP, ICMP, DNS, HTTP\HTTPS, SSH, TELNET, etc. When the interface bypass audit function is enabled, check whether the unsupported management service has been enabled. If it has been enabled, it will prompt that the interface has enabled the service, such as Figure 6 As shown in Figure (a) in the figure, a prompt message is issued, such as "This interface has enabled management services that are not supported by the bypass audit interface", and a page is provided to view the management services enabled by the interface; when a click confirmation instruction is received, such as Figure 6 As shown in Figure (b), it shows that interface 1 does not support services such as LLDP and MSTP.
[0096] In the embodiment of the present application, the bypass interface can be configured with parameters such as IP address, gateway address, DNS, etc. The bypass interface can send management messages such as ARP, ICMP, DNS, HTTP\HTTPS, SSH, TELNET, etc., and no additional independent management interface is required. The configured bypass interface can audit all traffic (including switch bypass data packets and management data packets) normally, including the above-mentioned management data packets, and generate more detailed operation audit logs for management data packets, including operators, operation objects, detailed operation parameters, operation status, operation results, etc.; it also supports logging into the device management page, resolving DNS, connecting to the external network, and connecting to cloud management; it supports the analysis and processing of services such as SSH, TELNET, ICMP, etc., to achieve the coexistence of mirrored traffic and normal forwarding traffic.
[0097] In the embodiment of the present application, the bypass interface allows sending messages, that is, it allows sending messages whose source MAC is the management MAC; the bypass interface distinguishes bypass data packets from normally forwarded management data packets through message identification, that is, distinguishes according to the destination MAC, destination IP, broadcast packet payload, multicast packet payload, etc.; deduplication processing of unicast messages can be realized; it supports the judgment of whether the management service can be supported on the bypass interface, that is, whether the data packet of the management service contains broadcast data packets and multicast data packets, and whether the corresponding broadcast data packets and multicast data packets can be distinguished from the bypass data packets; for management services that are not supported by the bypass interface, the corresponding configuration can be cleared when the bypass audit function is enabled; the broadcast data packets and multicast data packets received by the bypass interface are only used for the local area network, not the user Internet traffic, and are not audited. They are analyzed, filtered, and discarded in advance, and these messages do not need to be stored, analyzed, audited, etc.; the management data packets of the bypass interface can be transmitted to the management service module for processing, and an audit log is generated in the management service module. It can also process encrypted traffic, management service status, etc. The audit log is more detailed and can audit the operator, operation object, operation parameters, operation status, operation results, etc.
[0098] Through the embodiments of the present application, when all data packets sent by the switch are received through the bypass interface, the data packets are identified, management data packets and bypass data packets are extracted, and the management data packets and bypass data packets are processed separately, so that the bypass interface supports both audit functions and management functions, thereby enhancing the functionality of the bypass interface; based on the interaction between a single bypass interface and the switch, the complexity of the network topology is reduced.
[0099] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0100] Corresponding to the data processing method based on the bypass interface provided in the above embodiment, Figure 7 A schematic diagram of the structure of a data processing device based on a bypass interface provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0101] Reference Figure 7 , the device comprises:
[0102] An acquisition unit 71, configured to acquire a data packet sent by the switch based on the bypass interface;
[0103] An extraction unit 72, configured to identify the data packet and extract a management data packet and a bypass data packet from the data packet;
[0104] A first processing unit 73, configured to parse the management data packet and execute a service management operation corresponding to the parsing result;
[0105] The second processing unit 74 is used to perform audit processing on the bypass data packet to obtain audit information of the bypass data packet.
[0106] In a possible implementation, the data packet includes a unicast data packet; the extraction unit 72 is used to identify the destination address of the data packet; and the unicast data packet whose destination address is the bypass interface address is used as the management data packet.
[0107] In a possible implementation, the extraction unit 72 is further configured to perform deduplication processing on the unicast data packet whose destination address is the bypass interface address to obtain the management data packet.
[0108] In one possible implementation, the data packet includes a multicast data packet and / or a broadcast data packet; the extraction unit 72 is also used to identify the load content of the multicast data packet and / or the broadcast data packet; and the data packet that associates the load content with the management service is used as the management data packet.
[0109] In a possible implementation manner, the device further includes a sending unit, configured to send a response data packet to the switch through the bypass interface based on the parsing result.
[0110] In a possible implementation manner, the sending unit is further configured to send an active data packet to the switch through the bypass interface.
[0111] In a possible implementation, the second processing unit 74 is further configured to store, analyze, and perform security detection processing on the bypass data packet to obtain audit information of the bypass data packet.
[0112] In a possible implementation manner, the device further includes a configuration unit, configured to configure a management service of the bypass interface in response to a configuration instruction for the bypass interface.
[0113] Through the embodiments of the present application, when all data packets sent by the switch are received through the bypass interface, the data packets are identified, management data packets and bypass data packets are extracted, and the management data packets and bypass data packets are processed separately, so that the bypass interface supports both audit functions and management functions, thereby enhancing the functionality of the bypass interface; based on the interaction between a single bypass interface and the switch, the complexity of the network topology is reduced.
[0114] Figure 8 A schematic diagram of the hardware structure of the electronic device 8 is shown.
[0115] like Figure 8 As shown, the electronic device 8 of this embodiment includes: at least one processor 80 ( Figure 8 Only one is shown), a memory 81, wherein the memory 81 stores a computer program 82 that can be run on the processor 80. When the processor 80 executes the computer program 82, the steps in the above method embodiment are implemented, such as Figure 3 Alternatively, when the processor 80 executes the computer program 82, the functions of the modules / units in the above-mentioned device embodiments are realized.
[0116] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 8. In other embodiments of the present application, the electronic device 8 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0117] The electronic device 8 may include, but is not limited to, a processor 80 and a memory 81. Those skilled in the art will appreciate that Figure 8 It is only an example of the electronic device 8 and does not constitute a limitation of the electronic device 8. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include an input sending device, a network access device, a bus, etc.
[0118] The processor 80 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0119] The processor 80 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 80 is a cache memory. The memory may store instructions or data that the processor 80 has just used or cyclically used. If the processor 80 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 80, and thus improves the efficiency of the system.
[0120] In some embodiments, the memory 81 may be an internal storage unit of the electronic device 8, such as a hard disk or memory of the electronic device 8. The memory 81 may also be an external storage device of the electronic device 8, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 8. Further, the memory 81 may also include both an internal storage unit of the electronic device 8 and an external storage device. The memory 81 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as program codes of computer programs, etc. The memory 81 may also be used to temporarily store data that has been sent or is to be sent.
[0121] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0122] It should be noted that the structure of the above-mentioned electronic device is only illustrative, and based on different application scenarios, it may also include other physical structures, and the physical structure of the electronic device is not limited here.
[0123] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0124] An embodiment of the present application also provides a chip system, which is applied to an electronic device. The chip system includes one or more processors, and the one or more processors are used to call computer instructions so that the electronic device implements the steps in the above-mentioned method embodiments.
[0125] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0126] An embodiment of the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0127] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the process in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. Computer-readable media may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0128] The devices, electronic devices, chip systems, computer storage media, and computer program products provided in the above-mentioned embodiments of the present application are all used to execute the methods provided above. Therefore, the beneficial effects that can be achieved can refer to the corresponding beneficial effects of the methods provided above, and will not be repeated here.
[0129] It should be understood that the above is only to help those skilled in the art to better understand the embodiments of the present application, rather than to limit the scope of the embodiments of the present application. According to the above examples given, those skilled in the art can obviously make various equivalent modifications or changes. For example, some steps in each embodiment of the above detection method may be unnecessary, or some steps may be newly added. Or a combination of any two or any multiple embodiments of the above. Such modifications, changes or combined schemes also fall within the scope of the embodiments of the present application.
[0130] It should also be understood that the division of the methods, situations, categories and embodiments in the embodiments of the present application is only for the convenience of description and should not constitute a special limitation. The features of various methods, categories, situations and embodiments can be combined without contradiction.
[0131] It should also be understood that in the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their internal logical relationships.
[0132] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0133] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0134] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0135] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
[0136] Finally, it should be noted that the above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A data processing method based on a bypass interface, characterized in that: The method comprises: Based on the bypass interface, obtaining a data packet sent by the switch; Identifying the data packet, and extracting a management data packet and a bypass data packet from the data packet; Parsing the management data packet and executing a service management operation corresponding to the parsing result; Audit processing is performed on the bypass data packet to obtain audit information of the bypass data packet.
2. The method according to claim 1, characterized in that The data packet includes a unicast data packet; the step of identifying the data packet and extracting a management data packet from the data packet includes: identifying a destination address of the data packet; The unicast data packet whose destination address is the bypass interface address is used as the management data packet.
3. The method according to claim 2, characterized in that The method further comprises: The unicast data packet whose destination address is the bypass interface address is deduplicated to obtain the management data packet.
4. The method according to claim 1, characterized in that: The data packet includes a multicast data packet and / or a broadcast data packet; the step of identifying the data packet and extracting a management data packet from the data packet includes: Identifying the payload content of the multicast data packet and / or the broadcast data packet; The data packet that associates the payload content with the management service is used as the management data packet.
5. The method according to claim 1, characterized in that The method further comprises: Sending an active data packet to the switch via the bypass interface; or, Based on the analysis result, a response data packet is sent to the switch through the bypass interface.
6. The method according to claim 1, characterized in that The auditing of the bypass data packet to obtain the audit information of the bypass data packet includes: The bypass data packet is stored, analyzed and security-checked to obtain audit information of the bypass data packet.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: In response to the configuration instruction for the bypass interface, the management service of the bypass interface is configured.
8. An electronic device, characterized in that: The electronic device includes at least one processor, and a memory communicatively connected to the at least one processor; The memory stores a computer program executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method according to any one of claims 1 to 7.
9. A chip system, characterized in that: The chip system is applied to an electronic device, and the chip system includes one or more processors, and the one or more processors are used to call computer instructions so that the electronic device executes the method as described in any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Network problem positioning method and device, electronic equipment and computer program product
CN119906628A
Network problem positioning method and apparatus, electronic device, and computer program product
CN119906628B
