Data communication system, method, apparatus, device and storage medium

By distinguishing the processing responsibilities of core switches and access switches in the data communication system, and using multiple MCUs to determine message types and establish data transmission channels, the problem of insufficient functionality of unmanaged switches and high cost of managed switches is solved, and efficient network query and management functions are realized.

WO2026118414A1PCT designated stage Publication Date: 2026-06-11RUIJIE NETWORKS CO LTD

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
RUIJIE NETWORKS CO LTD
Filing Date
2025-06-17
Publication Date
2026-06-11

Smart Images

  • Figure CN2025101472_11062026_PF_FP_ABST
    Figure CN2025101472_11062026_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the embodiments of the present application are a data communication system, a method, an apparatus, a device, and a storage medium. The system comprises a core switch and an access switch. The access switch is configured to: receive a request message, forward the request message to the core switch when the message type of the request message is a first type, and process the request message when the message type of the request message is a second type, the first type being a network management type, and the second type being a network query type. The core switch is configured to: receive the request message forwarded by the access switch, and process the request message.
Need to check novelty before this filing date? Find Prior Art

Description

Data communication systems, methods, apparatus, equipment and storage media

[0001] Cross-reference to related applications

[0002] This application claims priority to Chinese Patent Application No. 202411754633.1, filed on December 2, 2024, entitled "Data Communication System, Method, Apparatus, Device and Storage Medium", the entire contents of which are incorporated herein by reference. Technical Field

[0003] This application relates to the field of communication technology, and in particular to a data communication system, method, apparatus, device and storage medium. Background Technology

[0004] Currently, in the field of communication technology, switches are divided into unmanaged switches and managed switches. Unmanaged switches only support data exchange and do not support network management and network query functions; while managed switches support not only data exchange but also network management and network query functions, such as broadcast message processing, port status viewing, and access control lists. Summary of the Invention

[0005] Exemplary embodiments of this application provide a data communication system, method, apparatus, device, and readable storage medium.

[0006] In a first aspect, embodiments of this application provide a data communication system, the system comprising a core switch and an access switch; the access switch is configured to receive request messages and, when the message type of the request message is a first type, forward it to the core switch; and, when the message type of the request message is a second type, process the request message; the first type is a network management type; the second type is a network query type; the core switch is configured to receive the request message forwarded by the access switch and process the request message.

[0007] The system provided in this application embodiment can handle different types of request messages by assigning them to different types of switches. The core switch is responsible for handling network management request messages, while the access switch is responsible for handling network viewing request messages. By separating request messages into network management and network viewing categories, the types of request messages that the access switch can handle are limited, thus enabling the access switch to have a certain message processing capability.

[0008] In one possible implementation, the access switch includes a first microcontroller unit (MCU), an optical module with a second MCU, and a switching chip with a third MCU; the first MCU is connected to the second MCU and the third MCU respectively; the first MCU is used to determine the message type of the request message, and when the message type of the request message is a second type, to obtain the data to be queried by the request message through the second MCU and / or the third MCU.

[0009] The system provided in this application embodiment can determine the message type of the request message by adding a first MCU. In this way, when the type of the request message is a network query, the data queried by the request message can be obtained through the second MCU and / or the third MCU.

[0010] In one possible implementation, a data transmission channel is established between the access switch and the management platform; specifically, the access switch is used to receive network query request messages sent by the management platform through the data transmission channel, and to send response messages to the management platform through the data transmission channel.

[0011] The system provided in this application establishes a data transmission channel between the access switch and the management platform, enabling timely acquisition of request messages sent by the management platform and timely return of data queried from the request messages to the management platform. This facilitates users or other staff to obtain relevant data from the access switch through the management platform.

[0012] In one possible implementation, the first MCU is configured to acquire preset query data through the second MCU and / or the third MCU at preset times, and send the preset query data to the management platform through the data transmission channel.

[0013] Using the system provided in this application embodiment, the first MCU can send preset query data to the management platform at a preset time without receiving a request for query data, so that users or other staff can obtain the latest query data from the access switch in a timely manner through the management platform.

[0014] In one possible implementation, the access switch includes an optical module with a second MCU and a switching chip with a third MCU; the second MCU is connected to the third MCU; the second MCU is used to determine the message type of the request message, and when the message type of the request message is a second type, it obtains the data to be queried by the request message through itself and / or the third MCU.

[0015] The system provided in this application embodiment determines the message type of the request message through the second MCU. When the type of the request message is a network query, the system obtains the data queried by the request message through itself and / or the third MCU.

[0016] In one possible implementation, the second MCU is used to determine the content of the request message after determining that the message type of the request message is the second type. If the request message is an information query for the optical module, the second MCU obtains the data to be queried by the request message itself. If the request message is an information query for the switching chip, the second MCU obtains the data to be queried by the request message through the third MCU.

[0017] Using the system provided in this application embodiment, the second MCU can also determine the content of the request message, and based on the determined content of the request message, determine whether to obtain the data queried by the request message itself or to send the request message to the third MCU so that the third MCU obtains the data queried by the request message.

[0018] In one possible implementation, the network query class includes information queries for optical modules and / or information queries for switching chips; the network management class includes access security control and / or data transmission control.

[0019] Using the system provided in this application embodiment, network query request messages processed by the access switch may include information queries for optical modules and / or information queries for switching chips; network management request messages processed by the core switch may include access security control and data transmission control.

[0020] Secondly, embodiments of this application provide a data communication method applicable to an access switch in a data communication system; the access switch receives a request message and determines the message type of the request message; when the message type of the request message is a first type, it forwards it to the core switch; when the message type of the request message is a second type, it processes the request message; the first type is a network management type; the second type is a network query type.

[0021] The data communication method in this application embodiment can be used to forward the request message to the core switch or process it locally after determining the message type of the request message. This allows the core switch and access switch to process the request message more specifically. By limiting the message type of the request message processed by the access switch, the cost of the access switch can be reduced.

[0022] In one possible implementation, before the access switch receives the request message, the method further includes: establishing a data transmission channel between the access switch and the management platform; the access switch receiving the request message includes: receiving a network query request message sent by the management platform through the data transmission channel;

[0023] After processing the request message, the method further includes: sending a response message to the management platform through the data transmission channel.

[0024] The data communication method in this application embodiment can establish a data transmission channel between the access switch and the management platform, promptly receive request messages sent by the management platform, and promptly return the data queried by the request messages to the management platform.

[0025] In one possible implementation, the access switch receives request messages, including receiving network management request messages sent by terminal devices.

[0026] In one possible implementation, the access switch includes a first microcontroller unit (MCU), an optical module with a second MCU, and a switching chip with a third MCU; before receiving a request message, the access switch further includes: the first MCU establishing connections with the second MCU and the third MCU respectively; processing the request message includes: the first MCU obtaining the data required by the request message through the second MCU and / or the third MCU.

[0027] By using the data communication method in this application embodiment, the addition of a first MCU can enable the first MCU to determine the message type of the request message. In this way, when the type of the request message is a network query, the second MCU and the third MCU can obtain the data queried by the request message.

[0028] In one possible implementation, the access switch includes an optical module with a second MCU and a switching chip with a third MCU; before receiving a request message, the access switch further includes: the second MCU establishing a connection with the third MCU; processing the request message includes: the second MCU obtaining the data required by the request message through itself and / or the third MCU.

[0029] Using the data communication method in this application embodiment, the message type of the request message is determined by the second MCU. When the type of the request message is a network query, the data queried by the request message is obtained by itself and the third MCU.

[0030] Thirdly, embodiments of this application provide a data communication method applicable to a core switch of a data communication system; the core switch receives a request message sent by an access switch, the request message being sent by the access switch after determining that the message type of the request message is a first type; the access switch is used to process a second type of request message; the first type is a network management type; the second type is a network query type; the core switch processes the request message.

[0031] By employing the data communication method in this application embodiment, the core switch can receive and process network management request messages forwarded by the access switch. By processing network management request messages through the core switch, the number of message types that the access switch needs to process is reduced, thereby lowering the cost of the access switch.

[0032] Fourthly, embodiments of this application provide a data communication device, which is applicable to an access switch in a data communication system; the device includes a receiving module for receiving request messages; a determining module for determining the message type of the request message; and a processing module for forwarding the request message to the core switch when the message type of the request message is a first type; and processing the request message when the message type of the request message is a second type; wherein the first type is a network management type; and the second type is a network query type.

[0033] In one possible implementation, the apparatus further includes an establishment module for establishing a data transmission channel with the management platform; the receiving module is specifically used to receive network query request messages sent by the management platform through the data transmission channel; the apparatus further includes a sending module for sending response messages to the management platform through the data transmission channel.

[0034] In one possible implementation, the receiving module is further configured to receive network management request messages sent by the terminal device.

[0035] In one possible implementation, the device includes a first microcontroller unit (MCU), an optical module with a second MCU, and a switching chip with a third MCU; the first MCU establishes connections with the second MCU and the third MCU respectively; the processing module is further configured to have the first MCU obtain the data required to be queried by the request message through the second MCU and / or the third MCU.

[0036] In one possible implementation, the device includes an optical module with a second MCU and a switching chip with a third MCU; the second MCU establishes a connection with the third MCU; the processing module is further configured to allow the second MCU to obtain the data required by the request message through itself and / or the third MCU.

[0037] Fifthly, embodiments of this application also provide another data communication device, which is applicable to the core switch of a data communication system; the device includes a receiving module for receiving a request message sent by an access switch, wherein the request message is sent by the access switch after determining that the message type of the request message is a first type; the access switch is used to process a second type of request message; the first type is a network management type; the second type is a network query type; and a processing module for the core switch to process the request message.

[0038] In a sixth aspect, embodiments of this application provide a data communication device, which includes a memory and a processor. The memory is used to store computer programs or instructions; the processor is used to invoke the computer programs or instructions stored in the memory to execute a method as described in any of the possible implementations of the second and third aspects.

[0039] In a seventh aspect, embodiments of this application provide a computer-readable storage medium storing instructions that, when read and executed by a computer, cause the computer to perform a method as described in any of the possible implementations of the second and third aspects.

[0040] Eighthly, embodiments of this application provide a computer program product storing instructions that, when read and executed by a computer, cause the computer to perform a method as described in any of the possible implementations of the second and third aspects.

[0041] Ninthly, embodiments of this application provide a data communication system, the data communication system including a core switch and at least one access switch, wherein the core switch is used to perform the method described in the third aspect, and the access switch is used to perform the method in any possible implementation of the second aspect. Attached Figure Description

[0042] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0043] Figure 1 is a schematic diagram of the internal chip of an unmanaged switch provided in an embodiment of this application;

[0044] Figure 2 is a schematic diagram of the internal chip of a managed switch provided in an embodiment of this application;

[0045] Figure 3 is a schematic diagram of a switch network architecture provided in an embodiment of this application;

[0046] Figure 4 is a schematic diagram of the internal structure of an unmanaged switch provided in an embodiment of this application;

[0047] Figure 5 is a schematic diagram of the internal structure of a managed switch provided in an embodiment of this application;

[0048] Figure 6 is a schematic diagram of a data communication system provided in an embodiment of this application;

[0049] Figure 7 is a schematic diagram of the internal structure of an access switch provided in an embodiment of this application;

[0050] Figure 8 is a flowchart illustrating a data communication method provided in an embodiment of this application.

[0051] Figure 9 is a schematic diagram of the internal modules of a data communication device 9000 provided in an embodiment of this application;

[0052] Figure 10 is a schematic diagram of the internal modules of another data communication device 10000 provided in an embodiment of this application;

[0053] Figure 11 is a schematic diagram of a data communication device 11000 provided in an embodiment of this application. Detailed Implementation

[0054] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0055] In everyday applications, for scenarios with high network requirements, such as those requiring Virtual Local Area Network (VLAN) segmentation and loop management, managed switches are necessary. Due to the complexity of their internal chips, managed switches are often quite expensive. If only port monitoring is needed, using a managed switch will only utilize the port monitoring function, while most other functions of the managed switch are not used in such scenarios, resulting in high costs and wasted resources. Conversely, using an unmanaged switch cannot meet the query requirements.

[0056] A switch is a network device used for forwarding electrical (or optical) signals, providing an electrical signal path between any two network nodes. Switches are categorized into managed and unmanaged switches based on whether they allow configuration and management by network administrators. Managed switches typically have more features and stronger management capabilities, such as support for VLAN isolation, traffic control and viewing, monitoring of device port status and topology display, support for Access Control Lists (ACLs), and loop prevention. Unmanaged switches do not support VLAN isolation and ACLs; they only have data switching capabilities and are typically used in homes or small offices.

[0057] Figure 1 is a schematic diagram of the internal chip of an unmanaged switch provided in an embodiment of this application. As shown in Figure 1, the on-chip random access memory (RAM) is the internal memory that directly exchanges data with the microcontroller unit (MCU). It can be read and written at any time and at a very high speed. The MCU, also known as a single-chip microcomputer or microcontroller, is a chip that integrates a central processing unit (CPU) with a reduced frequency and specifications, and peripheral interfaces such as memory, timer, universal serial bus (USB), analog-to-digital converter (A / D), universal asynchronous receiver / transmitter (UART), programmable logic controller (PLC), and liquid crystal display (LCD) driver circuitry onto a single chip, forming a chip-level computer. The memory controller is an important component that controls the memory and is responsible for data exchange between the memory and the MCU. The serial peripheral interface (Serial Peripheral Interface) is an important component that controls the memory and is responsible for data exchange between the memory and the MCU. The Interface Controller (SPI) is a hardware module responsible for managing SPI communication; the Inter-Integrated Circuit (I2C) controller is a serial communication bus used to connect the MCU and its peripheral devices; the General-Purpose Input / Output (GPIO) controller is a hardware interface used to control and manage input / output pins on the MCU or other processors; the queue buffer is used to buffer data packets, data streams, and control information to be forwarded; the queue management module is mainly responsible for managing and controlling the storage and forwarding of data packets within the switch; the address table module, usually called the Media Access Control Address (MAC) address table, is a key data structure used by the switch to determine how to forward data packets; the message statistics module is used to collect relevant data, such as byte count, message length statistics, and traffic statistics; the MAC layer is part of the data link layer and is responsible for frame assembly and disassembly; the physical layer (PHY) is responsible for converting the logical signals from the data link layer into a signal form suitable for transmission over the physical medium.Specifically, a switch has multiple ports for connecting network devices, such as routers, printers, and computers. Each port can have corresponding PHY and MAC layers. Therefore, a switch can include multiple PHY and MAC layers. Figure 1 illustrates this with 4 PHY and 4 MAC layers, but the embodiments of this application do not limit the number of PHY and MAC layers.

[0058] Figure 2 is a schematic diagram of the internal chip of a managed switch provided in an embodiment of this application. As shown in Figure 2, the internal chip of the managed switch has additional modules compared to the internal chip of a non-managed switch, which are used to provide network management functions. For example, a link aggregation module is used to bundle multiple physical links into a single logical link; a Quality of Service (QoS) module manages and optimizes network resources; a VLAN table defines which ports belong to the same VLAN and is used to store and manage virtual LAN information; VLAN decapsulation removes VLAN tags from the header of data frames; 8021x management is a port-based network access control protocol that enhances network security by controlling user network access permissions and preventing unauthorized users from transmitting and receiving data; a traffic management module monitors network traffic in real time and assigns different priorities to different types of traffic; an Access Control List (ACL) is a list of rules that defines the criteria for allowing or denying data packets and is used to control network traffic; a transmit bandwidth management module controls and optimizes the traffic sent out of the switch; and a Spanning Tree Protocol (STP) is used. STP (Standard Protocol for Networking) management is a network protocol used to prevent loops in switched networks while maintaining network redundancy. Flooding management modules prevent loop-induced transmission cycles, maintaining network efficiency, stability, and security. QinQ tables effectively isolate and differentiate network traffic, providing a flexible way to expand VLAN space to meet the needs of large-scale network deployments. QinQ is short for 802.1Q-in-802.1Q, defined by the IEEE 802.1ad standard. It's a technology for expanding VLAN space by adding an additional 802.1Q tag layer to 802.1Q tag packets. The receive bandwidth management module controls and optimizes traffic entering the switch.

[0059] In practical applications, both managed and unmanaged switches can connect to a core switch. Figure 3 is a schematic diagram of a switch network architecture provided in an embodiment of this application. As shown in Figure 3, the core switch connects to managed or unmanaged switches, and a core switch can connect to one or more managed or unmanaged switches. Figure 3 only shows one core switch as an example; this embodiment does not limit the number of managed and unmanaged switches connected to a single core switch. Managed and unmanaged switches can also connect to multiple terminal devices; Figure 3 shows an example with three terminal devices. The core switch is mainly used for routing and data forwarding, providing an optimized and reliable transmission structure with higher reliability and throughput. The managed or unmanaged switches connected to the core switch are access switches, responsible for the access of terminal devices. The internal components of managed and unmanaged switches can include optical modules, which are not shown in Figure 3. Terminal devices are various types of user equipment, such as personal computers, tablets, printers, and other smart devices.

[0060] Figure 4 is a schematic diagram of the internal structure of an unmanaged switch according to an embodiment of this application. As shown in Figure 4, the internal structure of the unmanaged switch includes an optical module and a switching chip. The optical module is used for photoelectric conversion, responsible for converting electrical signals into optical signals and vice versa, and includes a photoelectric conversion circuit, a PHY chip, and a built-in MCU. The switching chip includes a simple MAC switching circuit, a PHY chip (represented by PHY in the figure), and a built-in MCU. The simple MAC switching circuit is the internal switching circuit of the unmanaged switch and can be used for data switching, but not for network querying or network management. Because the switching chip of the unmanaged switch only needs to complete the data switching function, the switching circuit in the switching chip is a simple MAC switching circuit, and it also has a built-in MCU to realize the information acquisition function.

[0061] Figure 5 is a schematic diagram of the internal structure of a managed switch provided in an embodiment of this application. As shown in Figure 5, in addition to the data switching function of an unmanaged switch, the managed switch also needs to have complex network management functions. Therefore, the switching circuit inside the managed switch is a complex MAC switching circuit, which can be used for data switching, network querying, and network management functions. Meanwhile, to achieve network management functions, the MCU is no longer sufficient to meet the processing requirements, and a CPU is often needed. The difference between the processor and the switching circuit leads to the cost difference between managed and unmanaged switches.

[0062] Because some network management needs do not require obtaining complex network information, using a managed switch would be a waste of resources, while using an unmanaged switch would not meet normal requirements, such as checking the data transmission rate of each port of the switch and the network topology of each port. Therefore, this application provides a new data communication system for implementing a micro-managed switch as an access switch to process network query request messages, and a core switch to process network management request messages.

[0063] Figure 6 is a schematic diagram of a data communication system provided in an embodiment of this application. As shown in Figure 6, the data communication system includes a core switch, access switch 1, and access switch 2. The access switch is a micro-managed switch provided in this embodiment of the application. The access switch can connect multiple terminal devices, and the access switch and the core switch transmit information through a transmission network. The micro-managed switch not only supports data exchange but also communication with the management platform and processing of network query request messages. In contrast, traditional unmanaged switches only support data exchange and do not support communication with the management platform or processing of network query and network management request messages; traditional managed switches not only support data exchange but also communication with the management platform and processing of network query and network management request messages.

[0064] Access switches receive request packets and forward them to the core switch when the packet type is type 1. They process the request packets when the packet type is type 2 (network management or network query). Core switches receive request packets forwarded by access switches and process them.

[0065] Specifically, the access switch receives request messages and determines their type based on their content. Request messages can be categorized into two types: Type 1 (network management) and Type 2 (network query). When a request message is Type 1, the access switch forwards it to the core switch via the transmission network. When a request message is Type 2, the access switch processes it.

[0066] For example, Figure 7 is a schematic diagram of the internal structure of an access switch provided in an embodiment of this application. As shown in Figure 7, the access switch includes a first microcontroller unit (MCU), an optical module with a second MCU, and a switching chip with a third MCU. The first MCU is connected to the second MCU and the third MCU, respectively. The first MCU is used to determine the message type of the request message, and when the message type of the request message is the second type, it obtains the data required by the request message through the second MCU and / or the third MCU.

[0067] Specifically, when the first MCU in the access switch receives a request message, it determines that the request message is a network query and then classifies the specific type of the network query request. The network query type can include information query types targeting optical modules and / or information query types targeting switching chips.

[0068] If the request message is an information query for the optical module, it is sent to the second MCU. The second MCU determines the query data for the information query for the optical module through the photoelectric conversion circuit in the optical module. Specifically, the second MCU transmits data from the photoelectric conversion circuit through the PHY chip. The query data for the information query for the optical module can include checking the packet loss rate of the optical module, the manufacturer of the optical module, and the strength of the optical signal received by the optical module.

[0069] If the request is for information about the switching chip, the request message is sent to the third MCU. The third MCU determines the data queried by the request message through interaction with the simple MAC switching circuit. The query data for information about the switching chip can include viewing the network topology, viewing port status, etc. Viewing the network topology refers to viewing the layout of devices connected to each port of the access switch, while viewing port status refers to viewing the status of each port of the access switch, such as the port's data transmission rate, packet loss rate, and whether the port is open or closed. This simple MAC switching circuit represents a circuit capable of performing simple query functions.

[0070] After the second MCU and / or the third MCU obtains the query data of the request message, they send the query data to the first MCU.

[0071] Optionally, the access switch connects to a management platform, which can be a cloud-based platform. A data transmission channel is established between the access switch and the management platform, following common protocols such as the CPE WAN Management Protocol (CWMP) or Message Queuing Telemetry Transport (MQTT). Specifically, the access switch receives network query request messages from the management platform via the data transmission channel and then sends the retrieved data back to the management platform via the same channel.

[0072] Optionally, since there is a data transmission channel between the management platform and the access switch, after a user logs into the management platform, they operate the platform and generate a network query request message. The management platform sends this request message to the access switch, which receives the request message through the data transmission channel. After obtaining the data queried by the request message, the access switch sends the queried data back to the management platform through the same data transmission channel. Thus, the user can obtain the queried data through the management platform.

[0073] Optionally, the first MCU can also periodically obtain preset query data through the second MCU and / or the third MCU according to the management needs of the management platform, and send the query data to the management platform through the data channel established with the management platform.

[0074] Optionally, the functions of the first MCU can be integrated into the second or third MCU. Specifically, the functions of the first MCU can be integrated into the second MCU; the access switch includes an optical module with the second MCU and a switching chip with the third MCU, and the second MCU is connected to the third MCU. In this case, the access switch does not have the first MCU. The second MCU is used to determine the message type of the request message, and when the message type of the request message is the second type, it obtains the data queried by the request message through itself and / or the third MCU. That is, since the second MCU is in the optical module, if the request message is an information query for the optical module, the second MCU obtains the data queried by the request message through its interaction with the photoelectric conversion circuit; if the request message is an information query for the switching chip, the second MCU sends the request to the third MCU, and obtains the data queried by the request message through the interaction of the third MCU with the simple MAC switching circuit.

[0075] Optionally, the functions of the first MCU can be integrated into the third MCU. In this case, the third MCU of the access switch is used to determine the message type of the request message, and when the message type of the request message is the second type, it obtains the data to be queried by the request message through itself and / or the second MCU.

[0076] When the access switch determines that the request packet type is Type 1, it sends the request packet to the core switch. Network management includes access security control and / or data transmission control. Access security control is VLAN management and ACL management. The VLAN table defines which ports belong to the same VLAN and is used to store and manage virtual LAN information. The ACL table is a list of rules that defines the criteria for allowing or denying data packets and is used to control network traffic. Data transmission control includes broadcast packet processing and flooding processing.

[0077] Table 1 shows the differences in functionality among unmanaged switches, managed switches, and micro-managed switches in terms of communication with the management platform, network query requests, and network management requests. (See Table 1.)

[0078] As shown in Table 1, network management requests include access security control and data transmission control. Traditional unmanaged switches do not support communication with the management platform, nor do they support processing network query and network management requests. Traditional managed switches support communication with the management platform and network query requests, and network management requests can also be processed locally. The micro-managed switch, which is a type of switch provided in this application embodiment, can support communication with the management platform and process network query requests (i.e., the second type of request). For network management requests (i.e., the first type of request), the request message needs to be sent to the core switch for centralized processing.

[0079] Referring to the data communication system diagram in Figure 6, taking the broadcast message processing in the data transmission control class as an example, the broadcast message typically includes a destination address. When access switch 1 receives a broadcast message sent by a user on a terminal device, it determines that the broadcast message request is a first-type request and sends the broadcast message to the core switch. The core switch processes the broadcast message according to the destination address in the broadcast message sent by the user. If the destination address in the broadcast message is a terminal device connected to access switch 1, the core switch sends the broadcast message to access switch 1, and access switch 1 sends the broadcast message to the corresponding destination address. If the destination address in the broadcast message is a terminal device connected to access switch 2, the core switch sends the broadcast message to access switch 2, and access switch 2 sends the broadcast message to the corresponding destination address.

[0080] Figure 8 is a flowchart illustrating a data communication method provided in an embodiment of this application. This method is applicable to the access switch of a data communication system and includes:

[0081] Step 801: The access switch receives the request message and determines the message type of the request message.

[0082] Specifically, the access switch receives the request message and determines its message type: a first type is network management, and a second type is network query. Optionally, before receiving the request message, the access switch establishes a data transmission channel with the management platform. The access switch receives network query request messages sent by the management platform through this data transmission channel. This request message is triggered after a user logs into the management platform, and the management platform sends the request message to the access switch through the data transmission channel. The access switch can also directly receive network management request messages sent by terminal devices.

[0083] Optionally, the access switch includes a first MCU, an optical module with a second MCU, and a switching chip with a third MCU. Before the access switch receives a request message, the first MCU establishes a connection with the second MCU and the third MCU respectively.

[0084] Step 802: When the message type of the request message is type 1, the access switch forwards it to the core switch; when the message type of the request message is type 2, the access switch processes the request message.

[0085] Specifically, after determining that the request message type is type 1, the access switch forwards the request message to the core switch. After determining that the request message type is type 2, the access switch processes the request message. Upon receiving a type 2 request message, the first MCU in the access switch obtains the data required by the request message through the second MCU and / or the third MCU. Specifically, when the request message is a query for information about an optical module, the first MCU obtains the data required by the request message through the second MCU; when the request message is a query for information about a switching chip, the first MCU obtains the data required by the request message through the third MCU.

[0086] After the first MCU obtains the data required by the second type of request message, it sends the corresponding response message to the management platform through the data transmission channel. The response message includes the data required by the request message.

[0087] Optionally, the first MCU can also periodically obtain preset query data through the second MCU and / or the third MCU according to the management needs of the management platform, and send the query data to the management platform through the data channel established with the management platform.

[0088] In one possible implementation, the access switch does not include a first MCU, but includes an optical module with a second MCU and a switching chip with a third MCU. In this access switch, the second MCU establishes a connection with the third MCU. The second MCU can also establish a data transmission channel with the management platform. After receiving a request message from the management platform, the second MCU obtains the data required by the request message through itself and / or the third MCU. Optionally, the third MCU can also establish a data transmission channel with the management platform. After receiving a request message from the management platform, the third MCU obtains the data required by the request message through itself and / or the second MCU.

[0089] This application also provides a data communication method applicable to the core switch of a data communication system. The core switch receives request messages sent by access switches. These request messages are sent by the access switches after determining that the message type is a first type. The access switches then process request messages of a second type, where the first type is a network management type and the second type is a network query type. Further, the core switch processes the request messages.

[0090] Specifically, after receiving a request message, the access switch determines whether the request message is a first type message or a second type message. If it is a first type message, it sends the first type message to the core switch, which processes the request message. If it is a second type message, the access switch processes the request message.

[0091] Based on the above description of the data communication method applicable to access switches, this application provides a data communication device, which can be an access switch. Figure 9 is a schematic diagram of the internal modules of a data communication device 9000 provided in this application embodiment. As shown in Figure 9, the device includes: a receiving module 901, a determining module 902, a processing module 903, an establishing module 904, and a sending module 905. Optionally, it also includes a storage module, which is used to store computer instructions or programs. The processing module 903 can call the computer instructions or programs stored in the storage module.

[0092] The receiving module 901 is used to receive request messages; the determining module 902 is used to determine the message type of the request message; and the processing module 903 is used to forward the request message to the core switch when the message type of the request message is a first type, and to process the request message when the message type of the request message is a second type; wherein the first type is a network management type and the second type is a network query type.

[0093] In one possible implementation, the apparatus further includes an establishment module 904 for establishing a data transmission channel with the management platform; the receiving module 901 is specifically used to receive network query request messages sent by the management platform through the data transmission channel; the apparatus further includes a sending module 905 for sending response messages to the management platform through the data transmission channel.

[0094] In one possible implementation, the receiving module 901 is further configured to receive a network management request message sent by the terminal device.

[0095] In one possible implementation, the device includes a first microcontroller unit (MCU), an optical module with a second MCU, and a switching chip with a third MCU; the first MCU establishes connections with the second MCU and the third MCU respectively; the processing module 903 is further configured to have the first MCU obtain the data required to be queried by the request message through the second MCU and / or the third MCU.

[0096] In one possible implementation, the device includes an optical module with a second MCU and a switching chip with a third MCU; the second MCU establishes a connection with the third MCU; the processing module 903 is further configured to have the second MCU obtain the data required to be queried by the request message through itself and / or the third MCU.

[0097] Based on the above description of the data communication method applicable to core switches, this application provides another data communication device, which can be a core switch. Figure 10 is a schematic diagram of the internal modules of a data communication device 10000 provided in this application embodiment. As shown in Figure 10, the device includes: a receiving module 1001, a processing module 1002, and optionally, a storage module. The storage module is used to store computer instructions or programs, and the processing module 1002 can call the computer instructions or programs in the storage module.

[0098] The receiving module 1001 is used to receive a request message sent by the access switch, wherein the access switch sends the request message after determining that the message type of the request message is a first type; the access switch is used to process a second type of request message; the first type is a network management type; the second type is a network query type; and the processing module 1002 is used by the core switch to process the request message.

[0099] Figure 11 is a schematic diagram of a data communication device 11000 provided in an embodiment of this application. As shown in Figure 11, it includes at least one processor 1101 and a memory 1102 connected to at least one processor 1101. In this embodiment, the specific connection medium between the processor 1101 and the memory 1102 is not limited. The example in Figure 11 shows the processor 1101 and the memory 1102 connected via a bus. The bus can be divided into address bus, data bus, control bus, etc.

[0100] In this embodiment of the application, the memory 1102 stores instructions that can be executed by at least one processor 1101. By executing the instructions stored in the memory 1102, the at least one processor 1101 can implement the steps of the above-described data communication method.

[0101] The processor 1101 is the control center of the computer device, capable of connecting various parts of the computer device via various interfaces and lines. It performs resource configuration by running or executing instructions stored in the memory 1102 and accessing data stored in the memory 1102. Optionally, the processor 1101 may include one or more processing units. The processor 1101 may integrate an application processor and a modem processor. The application processor primarily handles the operating system, user interface, and applications, while the modem processor primarily handles wireless communication. It is understood that the modem processor may not be integrated into the processor 1101. In some embodiments, the processor 1101 and the memory 1102 may be implemented on the same chip; in other embodiments, they may be implemented on separate chips.

[0102] Processor 1101 can be a general-purpose processor, such as a central processing unit (CPU), digital signal processor, application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.

[0103] Memory 1102, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. Memory 1102 may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (RAM), static random access memory (SRAM), programmable read-only memory (PROM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), magnetic storage, magnetic disk, optical disk, etc. Memory 1102 can be any other medium capable of carrying or storing desired program code in the form of instructions or data structures that can be accessed by a computer, but is not limited thereto. In the embodiments of this application, memory 1102 can also be a circuit or any other device capable of implementing storage functions for storing program instructions and / or data.

[0104] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0105] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in one or more blocks of the flowchart illustrations and / or one or more blocks of the block diagrams.

[0106] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means that implement the functions specified in one or more flowcharts and / or one or more block diagrams.

[0107] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, such that the instructions, which execute on the computer or other programmable apparatus, provide steps for implementing the functions specified in one or more flowcharts and / or one or more block diagrams.

[0108] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A data communication system, comprising: The access switch is configured to receive request messages and forward them to the core switch when the message type of the request message is a first type. When the message type of the request message is the second type, the request message is processed; the first type is network management type; the second type is network query type. as well as The core switch is configured to receive the request message forwarded by the access switch and process the request message.

2. The system according to claim 1, wherein, The access switch includes a first microcontroller unit (MCU), an optical module with a second MCU, and a switching chip with a third MCU; the first MCU is connected to the second MCU and the third MCU respectively; and The first MCU is configured to determine the message type of the request message, and when the message type of the request message is the second type, to obtain the data to be queried by the request message through the second MCU and / or the third MCU.

3. The system according to claim 2, wherein, The access switch is configured to establish a data transmission channel with the management platform; and The access switch is also configured to receive a second type of request message sent by the management platform through the data transmission channel.

4. The system according to claim 3, wherein, The access switch is also configured to send response messages to the management platform through the data transmission channel.

5. The system according to claim 3, wherein, The first MCU is configured to acquire preset query data through the second MCU and / or the third MCU at preset times, and send the preset query data to the management platform through the data transmission channel.

6. The system according to claim 1, wherein, The access switch includes an optical module with a second MCU and a switching chip with a third MCU; the second MCU is connected to the third MCU; and The second MCU is configured to determine the message type of the request message, and when the message type of the request message is the second type, to obtain the data to be queried by the request message through the second MCU and / or the third MCU.

7. The system according to claim 6, wherein, The second MCU is configured to determine the content of the request message after determining that the message type of the request message is the second type; When the request message is a request message for information query of the optical module, the data to be queried in the request message is obtained through the second MCU; when the request message is a request message for information query of the switching chip, the data to be queried in the request message is obtained through the third MCU.

8. The system according to any one of claims 1 to 7, wherein, The network query categories include information queries targeting optical modules and / or information queries targeting switching chips; and / or The network management class includes access security control and / or data transmission control.

9. A data communication method, applicable to an access switch in a data communication system; comprising: The access switch receives the request message and determines the message type of the request message; When the message type of the request message is the first type, it is forwarded to the core switch; as well as When the message type of the request message is the second type, the request message is processed; The first type is network management; the second type is network query.

10. The method according to claim 9, wherein, Before the access switch receives the request message, the method further includes: The access switch establishes a data transmission channel with the management platform; The access switch receives a request message, including: The second type of request message sent by the management platform is received through the data transmission channel.

11. The method according to claim 10, wherein, After processing the request message, the method further includes: The response message is sent to the management platform through the data transmission channel.

12. The method according to claim 9, wherein, The access switch receives request messages, including receiving a first type of request message sent by a terminal device.

13. The method according to claim 9, wherein, The access switch includes a first microcontroller unit (MCU), an optical module with a second MCU, and a switching chip with a third MCU. Before the access switch receives the request message, the method further includes: The first MCU establishes connections with the second MCU and the third MCU respectively; The processing of the request message includes: The first MCU determines the message type of the request message, and when the message type of the request message is the second type, it obtains the data to be queried by the request message through the second MCU and / or the third MCU.

14. The method according to claim 13, wherein, When the message type of the request message is the second type, after obtaining the data required to be queried by the request message through the second MCU and / or the third MCU, the method further includes: The first MCU obtains preset query data through the second MCU and / or the third MCU at preset times, and sends the preset query data to the management platform through the data transmission channel.

15. The method according to claim 9, wherein, The access switch includes an optical module with a second MCU and a switching chip with a third MCU; Before the access switch receives the request message, the method further includes: The second MCU establishes a connection with the third MCU; The processing of the request message includes: When the second MCU determines that the message type of the request message is the second type, it obtains the data to be queried by the request message through the second MCU and / or the third MCU.

16. A data communication device, comprising: The receiving module is used to receive request messages; A determination module is used to determine the message type of the request message; The processing module is used to forward the request message to the core switch when the message type is the first type. When the message type of the request message is the second type, the request message is processed; the first type is network management type; the second type is network query type.

17. A data communication device, comprising: The receiving module is configured to receive request messages sent by the access switch, wherein the access switch sends the request message after determining that the message type of the request message is a first type; the access switch is used to process request messages of a second type; the first type is network management type; the second type is network query type. The processing module is configured to process the request message.

18. A data communication device, comprising: Memory is used to store computer programs or instructions; A processor is configured to invoke a computer program or instructions stored in the memory to perform the method as described in any one of claims 9 to 15.

19. A computer-readable storage medium storing instructions that, when read and executed by a computer, cause the computer to perform the method as described in any one of claims 9 to 15.

20. A computer program product storing instructions that, when read and executed by a computer, cause the computer to perform the method as described in any one of claims 9 to 15.