CN114157684A - Message processing method, device and storage medium - Google Patents

Message processing method, device and storage medium Download PDF

Info

Publication number
CN114157684A
CN114157684A CN202010830763.4A CN202010830763A CN114157684A CN 114157684 A CN114157684 A CN 114157684A CN 202010830763 A CN202010830763 A CN 202010830763A CN 114157684 A CN114157684 A CN 114157684A
Authority
CN
China
Prior art keywords
message
internet
things
packet
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010830763.4A
Other languages
Chinese (zh)
Other versions
CN114157684B (en
Inventor
崔高峰
赵安东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Device Co Ltd
Original Assignee
Huawei Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN202010830763.4A priority Critical patent/CN114157684B/en
Publication of CN114157684A publication Critical patent/CN114157684A/en
Application granted granted Critical
Publication of CN114157684B publication Critical patent/CN114157684B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2212/00Encapsulation of packets

Abstract

The embodiment of the application discloses a message processing method, message processing equipment and a message processing storage medium, which bypass a thick and heavy kernel TCP/IP protocol stack, effectively reduce the forwarding delay of messages among Internet of things equipment, reduce the consumption of CPU processing resources, provide more CPU processing resources for other applications and enable processing response to be more smoothly provided. The method comprises the following steps: the method comprises the steps that a first message is obtained by a first Internet of things device; when the first message is a direct message, the first Internet of things equipment packages the first message into a second message according to an Ethernet protocol, wherein the second message comprises a target MAC address and the first message; the first Internet of things device sends a second message to the network device, so that the network device forwards the second message to the second Internet of things device according to a target MAC address, the target MAC address corresponds to the second Internet of things device, and the first Internet of things device, the network device and the second Internet of things device are communicated through wireless communication.

Description

Message processing method, device and storage medium
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a method, equipment and a storage medium for processing a message.
Background
With the increasing abundance of terminal devices such as smartphones and tablets and Internet of things (IOT) devices, all the above mentioned devices can be accessed to the Internet in a wireless fidelity (Wi-Fi) router or the like.
At present, in order to implement a basic client/server (C/S) communication packet interaction process between internet of things devices through a Wi-Fi wireless router, after a data packet is encapsulated and decapsulated by a transmission control protocol/internet protocol (TCP/IP) protocol stack, the data packet can be forwarded to an internet of things device at an opposite end based on the Wi-Fi router.
Obviously, a data packet needs to be transferred between a first internet of things device and a second internet of things device, a core TCP/IP protocol stack needs to sequentially pass through a transmission layer protocol such as a TCP/UDP protocol, a network layer protocol such as an IP protocol, and a link layer protocol such as an ethernet protocol to perform encapsulation and decapsulation of a packet header of a multilayer protocol, and multiple scheduling, multiple memory replication, and caching of a data packet are performed in a user space, a core space, and a core protocol stack. And because the throughput rate of the core TCP/IP protocol stack is low, it is difficult to make full use of physical bandwidth resources for data transmission between the devices of the internet of things based on Wi-Fi communication in the current Local Area Network (LAN).
Disclosure of Invention
The embodiment of the application provides a message processing method, device and storage medium, which bypass a heavy core TCP/IP protocol stack, effectively reduce the forwarding delay of messages among Internet of things devices, reduce the consumption of CPU processing resources, provide more CPU processing resources for other applications, and enable the processing response to be smoother.
In a first aspect, an embodiment of the present application provides a method for message processing, where the method may include: the method comprises the steps that a first message is obtained by a first Internet of things device; when the first message is a direct message, the first internet of things equipment packages the first message into a second message according to an Ethernet protocol, wherein the second message comprises a target media storage control (MAC) address and the first message; the first internet of things device sends the second message to a network device, so that the network device forwards the second message to a second internet of things device according to the target MAC address, the target MAC address corresponds to the second internet of things device, and the first internet of things device, the network device and the second internet of things device are communicated through wireless communication. Through the method, when the first message is the direct message, the first internet of things device directly encapsulates the first message into the second message based on the ethernet protocol, and sends the second message to the network device through wireless communication. Therefore, the first internet of things device does not need to process the first message through a complex kernel TCP/IP protocol stack, processes of scheduling, queuing, caching, message copying and the like of each layer of protocol stack in the kernel TCP/IP protocol stack are avoided, transmission delay of the first message in the first internet of things device is reduced, and CPU processing resources are saved.
Optionally, with reference to the first aspect, in a first possible implementation manner, before the first internet of things device encapsulates the first packet into the second packet according to a direct connection protocol when the first packet is a direct connection packet, the method further includes: and the first Internet of things equipment determines that the first message is a direct message according to the protocol type field in the first message. By the mode, whether the first message is the direct message or not can be flexibly determined based on the protocol type field in the first message, so that the communication capability of a TCP/IP protocol stack can be bypassed when the first message is the direct message, the length of a TCP/IP message header is saved, and the utilization rate of physical bandwidth is improved.
Optionally, with reference to the first aspect or the first possible implementation manner, in a second possible implementation manner, the first internet of things device caches the first packet to a sending queue.
In a second aspect, an embodiment of the present application provides a method for message processing, where the method may include: the network equipment receives a second message sent by first Internet of things equipment, wherein the second message is obtained by packaging the first message by the first Internet of things equipment when the first message is a direct message; the network equipment analyzes the second message to obtain a target media storage control (MAC) address and the first message; and the network equipment sends the second message to second networking equipment based on the target MAC address, and the first networking equipment, the network equipment and the second networking equipment are communicated through wireless communication. Through the above manner, after the network device analyzes the second packet, the network device can directly forward the second packet to the second network device through wireless communication based on the target MAC address when the first packet is a direct packet, so that the network device does not need to process the first packet through a complex kernel TCP/IP protocol stack, processes of scheduling, queuing, caching, packet copying and the like of each layer of protocol stack in the kernel TCP/IP protocol stack are also avoided, and transmission delay of the first packet in the network device is reduced.
Optionally, with reference to the second aspect, in a first possible implementation manner, before the network device sends the second packet to the second network device based on the target MAC address, the method further includes: the network equipment judges whether the first message is a direct message or not based on a protocol type field in the first message; correspondingly, the network device sends the second packet to a second network device based on the target MAC address, including: and when the protocol type field in the first message reflects that the first message is a direct-through message, the network equipment sends the second message to second networking equipment based on the target MAC address. By the mode, the network equipment does not need to process the first message through a complex kernel TCP/IP protocol stack, processes of scheduling, queuing, caching, message copying and the like of each layer of protocol stack in the kernel TCP/IP protocol stack are avoided, and transmission delay of the first message in the network equipment is reduced.
Optionally, with reference to the second aspect or the first possible implementation manner, in a second possible implementation manner, the network device queries, from a preset MAC forwarding relation table, a second networking device corresponding to the target MAC address. By the mode, the second networking equipment corresponding to the target MAC address can be accurately found based on the preset MAC forwarding relation table, and the second message is prevented from being forwarded by mistake.
In a third aspect, an embodiment of the present application provides a method for message processing, where the method may include: the second networking equipment receives a second message sent by the network equipment; the second networking equipment analyzes the second message to obtain a first message; and when the first message is a direct message, the second networking equipment caches the first message in a receiving queue. Through the mode, the second networking equipment does not need to process the first message through a complex kernel TCP/IP protocol stack, the processes of scheduling, queuing, caching, message copying and the like of each layer of protocol stack in the kernel TCP/IP protocol stack are avoided, and the transmission delay of the first message in the second networking equipment is reduced.
Optionally, with reference to the third aspect, in a first possible implementation manner, before the second network device buffers the first packet in a receive queue, the method further includes: and the second networking equipment judges whether the first message is a direct message or not based on the protocol type field in the first message.
In a fourth aspect, an embodiment of the present application provides a first internet of things device, where the first internet of things device may include:
an obtaining unit, configured to obtain a first message;
the encapsulation unit is used for encapsulating the first message into a second message according to an Ethernet protocol when the first message is a direct connection message, wherein the second message comprises a target media storage control (MAC) address and the first message;
a sending unit, configured to send the second packet to a network device, so that the network device forwards the second packet to a second internet-of-things device according to the target MAC address, where the target MAC address corresponds to the second internet-of-things device, and the first internet-of-things device, the network device, and the second internet-of-things device communicate with each other through wireless communication.
Optionally, with reference to the fourth aspect, in a first possible implementation manner, the first internet of things device further includes:
a determining unit, configured to determine, when the first packet is a direct packet, that the first packet is a direct packet according to a protocol type field in the first packet before the first internet of things device encapsulates the first packet into a second packet according to a direct protocol.
Optionally, with reference to the fourth aspect or the first possible implementation manner, in a second possible implementation manner, the first internet of things device further includes:
and the buffer unit is used for buffering the first message to a sending queue.
In a fifth aspect, an embodiment of the present application provides a network device, where the network device may include:
the receiving module is used for receiving a second message sent by first internet of things equipment, and the second message is obtained by packaging the first message when the first message is a direct message by the first internet of things equipment;
the analysis module is used for analyzing the second message to obtain a target media storage control (MAC) address and the first message;
and the sending module is used for sending the second message to second networking equipment based on the target MAC address, and the first networking equipment, the network equipment and the second networking equipment are communicated through wireless communication.
Optionally, with reference to the fifth aspect, in a first possible implementation manner, the network device further includes:
the judging module is used for judging whether the first message is a direct connection message or not based on a protocol type field in the first message before sending the second message to a second networking device based on the target MAC address;
correspondingly, the sending module is further configured to: and when the protocol type field in the first message reflects that the first message is a direct-through message, sending the second message to second networking equipment based on the target MAC address.
Optionally, with reference to the first possible implementation manner of the fifth aspect, in a second possible implementation manner, the network device further includes: and the query module is used for querying the second networking equipment corresponding to the target MAC address from a preset MAC forwarding relation table.
In a sixth aspect, an embodiment of the present application provides a second networking device, where the second networking device may include:
a receiving unit, configured to receive a second message sent by a network device;
the analysis unit is used for analyzing the second message to obtain a first message;
and the cache unit is used for caching the first message into a receiving queue when the first message is a direct-connection message.
Optionally, with reference to the sixth aspect, in a first possible implementation manner, the second networking device further includes:
and the judging unit is used for judging whether the first message is a direct message or not based on a protocol type field in the first message before caching the first message into a receiving queue.
In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, which includes instructions that, when executed on a computer, cause the computer to perform the method according to the first aspect or any one of the possible implementation manners of the first aspect.
In an eighth aspect, embodiments of the present application provide a computer-readable storage medium, which includes instructions that, when executed on a computer, cause the computer to perform a method according to the second aspect or any one of the possible implementations of the second aspect.
In a ninth aspect, embodiments of the present application provide a computer-readable storage medium, which includes instructions that, when executed on a computer, cause the computer to perform a method according to any one of the possible implementation manners of the third aspect or the third aspect.
In a tenth aspect, embodiments of the present application provide a computer program product containing instructions that, when executed on a computer, cause the computer to perform the method according to the first aspect or any one of the first aspect, any one of the second aspect or the second aspect, and any one of the third aspect or any one of the possible implementations of the third aspect.
In an eleventh aspect, an embodiment of the present application provides a chip system, where the chip system includes a processor, and is configured to support a first internet of things device to implement the functions related to the first aspect or any one of the possible implementation manners of the first aspect. In one possible design, the system-on-chip further includes a memory for storing program instructions and data necessary for the information generating device. The chip system may be constituted by a chip, or may include a chip and other discrete devices.
In a twelfth aspect, an embodiment of the present application provides a chip system, where the chip system includes a processor, and is configured to support a network device to implement the functions in the second aspect or any one of the possible implementations of the second aspect. In one possible design, the system-on-chip further includes a memory for storing program instructions and data necessary for the information generating device. The chip system may be constituted by a chip, or may include a chip and other discrete devices.
In a thirteenth aspect, an embodiment of the present application provides a chip system, where the chip system includes a processor, and is configured to support a second networked device to implement the functions in the third aspect or any one of the possible implementations of the third aspect. In one possible design, the system-on-chip further includes a memory for storing program instructions and data necessary for the information generating device. The chip system may be constituted by a chip, or may include a chip and other discrete devices.
According to the technical scheme, the embodiment of the application has the following advantages:
in the embodiment of the application, the first internet of things device can directly encapsulate the first message into the second message based on the ethernet protocol when judging that the first message is the direct message by self-defining the direct message, and then send the second message to the network device through wireless communication, so that the network device can forward the second message to the second internet of things device according to the target MAC address. By the mode, the message is transmitted and received among the Internet of things devices without being processed by a complex kernel TCP/IP protocol stack, so that the processes of scheduling, queuing, caching, message copying and the like of each layer of protocol stack in the kernel TCP/IP protocol stack are avoided, the message forwarding delay can be effectively reduced, and the user experience is improved; and CPU resource consumption is reduced, more CPU processing resources are provided for other applications, and processing response is more smoothly provided. In addition, the communication capability of a thick and heavy inner core TCP/IP protocol stack is bypassed, the length of a TCP/IP message header is saved, and the utilization rate of physical bandwidth is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below, and it is apparent that the drawings in the following description are only some embodiments of the present application.
Fig. 1 is a communication flow diagram based on a kernel TCP/IP protocol stack provided in a conventional scheme;
FIG. 2 is a schematic diagram of a possible system framework for an embodiment of the present application;
fig. 3 is a schematic diagram of a custom direct message provided in an embodiment of the present application;
fig. 4 is a schematic diagram of an embodiment of a method for message processing according to an embodiment of the present application;
fig. 5 is a schematic diagram of adding a first pass-through module in a first internet of things device provided in an embodiment of the present application;
fig. 6 is a schematic diagram of adding a second pass-through module in a network device provided in an embodiment of the present application;
fig. 7 is a schematic hardware structure diagram of a communication device provided in an embodiment of the present application;
fig. 8 is a schematic structural diagram of a first internet of things device provided in an embodiment of the present application;
fig. 9 is a schematic structural diagram of a network device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a second physical network device according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides a message processing method, message processing equipment and a storage medium, which bypass a thick and heavy core TCP/IP protocol stack, effectively reduce the forwarding delay of messages among Internet of things equipment, reduce the consumption of CPU processing resources, provide more CPU processing resources for other applications and enable processing response to be provided more smoothly.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The technical solution in the present application will be described below with reference to the accompanying drawings.
At present, in an LAN, to implement an interaction flow of a C/S communication packet between one internet of things device and another internet of things device through a Wi-Fi router, a data packet may be forwarded to an opposite internet of things device based on the Wi-Fi router after operations such as encapsulation and decapsulation of the data packet are performed through a core TCP/IP protocol stack in the device and a core TCP/IP protocol stack in the router. For example, please refer to fig. 1, which is a communication flow chart based on a kernel TCP/IP protocol stack provided in the conventional scheme. As can be seen from fig. 1, if a first internet of things device wants to report a data packet to a second internet of things device in a different network segment, an application layer in the first internet of things device needs to send the data packet to a kernel TCP/IP protocol stack in the first internet of things device, so that the data packet can be encapsulated, and then the encapsulated data packet is sent to a router through a network card driver. After receiving the encapsulated data message sent by the first internet of things device, the router forwards the encapsulated data message to a kernel protocol stack of the router from the network card driver, so that the encapsulated data message is decapsulated and encapsulated into a data message which can be identified by the second internet of things device, and then the data message is forwarded to the corresponding network card driver through a routing forwarding rule and is forwarded to the second internet of things device by the network card driver. Therefore, when the network card driver in the second networking device receives the data message, the data message can be sent to the corresponding application layer only after passing through the kernel TCP/IP protocol stack in the second networking device. Obviously, the data message is transmitted, received and forwarded based on the core TCP/IP protocol stack, and due to more protocol layers and more complex interaction flows, the message forwarding use time delay is longer and a large amount of CPU processing resources are consumed; and the throughput rate of a core TCP/IP protocol stack is low, so that the physical bandwidth cannot be fully utilized to transmit large data among the Internet of things devices based on Wi-Fi transmission.
Therefore, in order to solve the above technical problem, an embodiment of the present application provides a message processing method, which can be applied in a scenario of an internet of things based on wireless communication in a LAN. For example: the intelligent household Internet of things scene comprises household Internet of things devices such as an intelligent refrigerator, a sweeper, an air conditioner, a sound box and/or a television, or comprises terminal devices such as a smart phone and a tablet. In practical application, other scenes of the internet of things can be provided, and specific description will not be limited in the embodiment of the present application. It should be understood that the above mentioned wireless communication may include but is not limited to Wi-Fi, bluetooth, etc., and the type of the above mentioned wireless communication is not limited in the embodiments of the present application. In the embodiments of the present application, Wi-Fi is used as an example for illustration.
It should be understood that the first and second internet-of-things devices described above may include, but are not limited to: the intelligent refrigerator, the sweeper, the air conditioner, the sound box, the television, the smart phone or the tablet and the like are not specifically limited.
Fig. 2 shows a schematic diagram of a possible system framework of an embodiment of the present application. As can be seen from fig. 2, in the embodiment of the present application, the flow of message processing does not need to pass through a core TCP/IP protocol stack, but a pass-through module is respectively added to the first internet of things device, the network device, and the second internet of things device, for example: the method comprises the steps of adding a first direct connection module in first Internet of things equipment, adding a second direct connection module in network equipment and adding a third direct connection module in second Internet of things equipment. Therefore, when the first message acquired from the application layer is a through message, the first internet of things device encapsulates the first message only through the ethernet protocol in the newly added first through module, and transmits the encapsulated second message to the network device through the network card driver. And after the network device receives the second message based on the network card driver corresponding to the first internet of things device and decapsulates the second message, when the first message included in the second message is determined to be a direct message, the network device only needs to forward the second message in the second direct module according to the MAC address, and forward the second message to the second internet of things device through the network card driver corresponding to the second internet of things device. When the second networking device receives the second message through the network card drive, the second message can also be uploaded to the corresponding application layer through the third direct-connection module.
It should be understood that the first internet of things device and the second internet of things device may include, but are not limited to, a smart refrigerator, an air conditioner, a sweeper, a smart phone, and the like. Network devices may include, but are not limited to, routers and the like. In addition, in practical applications, the system framework described in fig. 2 may also be applied to a scenario of internet of things including a plurality of internet of things devices such as a third internet of things device, a fourth internet of things device, and a plurality of corresponding network devices, and the number of the internet of things devices and the number of the network devices are not limited in this application. For ease of understanding, the embodiments of the present application are described only from the perspective of interaction of three devices, namely, a first internet of things device, a network device, and a second internet of things device.
It should be noted that the above-mentioned direct message may be obtained by a user through self-definition according to requirements, that is, the direct message may be identified by using a self-defined type such as an EtherType reserved type.
For example, please refer to fig. 3, which is a schematic diagram of a custom direct message provided in an embodiment of the present application. As shown in fig. 3, the pass-through message may include a target Media Access Control (MAC) address of 6 bytes, a source MAC address of 6 bytes, a protocol type of 2 bytes, and the like. The target MAC address is mainly used for identifying the Internet of things equipment for receiving the direct message, such as the second Internet of things equipment mentioned above; the 2-byte protocol type is mainly used for reflecting that the message to be transmitted, received or forwarded is a through message, namely a user-defined message. The field value in the protocol type may be defined according to IEEE802.3 protocol standard, as long as the field value does not conflict with the field value in the existing protocols such as the current IP protocol, TCP protocol, Address Resolution Protocol (ARP), etc., and the field value is less than 1536, which is not specifically described in this embodiment.
The following describes a method for message processing in the present application from an interaction perspective. Referring to fig. 4, a schematic diagram of an embodiment of a method for processing a message according to an embodiment of the present application is shown, where the method includes:
401. the first Internet of things equipment acquires the first message.
The first internet of things device can obtain the first message on the application layer.
402. And when the first message is a direct message, the first Internet of things equipment encapsulates the first message into a second message according to the Ethernet protocol, wherein the second message comprises the target MAC address and the first message.
In an embodiment, when obtaining the first message, the first internet of things device may first determine whether the first message is a user-defined direct message. If the first message is a direct message, the first internet of things device may directly package the first message into a second message according to an ethernet protocol. Specifically, the first internet of things device adds an ethernet header to a message header of the first message, so that the second message obtained after encapsulation can be sent to the network device through a corresponding network interface. It is understood that the second packet includes the destination MAC address and the first packet.
Illustratively, when the first message is a direct message, before the first internet of things device encapsulates the first message into the second message according to the ethernet protocol, the method may further include: and the first Internet of things equipment determines that the first message is a direct message according to the protocol type field in the first message.
Since the first packet carries the corresponding protocol type field, the first internet of things device may determine whether the first packet is a direct packet based on the protocol type field in the first packet. The direct connection message can be understood as a user-defined message, and the field value of the protocol type field in the direct connection message can be defined according to the IEEE802.3 protocol standard as long as the field value does not conflict with the field value in the existing protocols such as the current IP protocol, the TCP protocol, the ARP protocol, and the like, and the field value is less than 1536. For example: the first internet of things device may determine whether a field value of the protocol type field in the first message is a field value in an existing protocol, such as "0 × 0800 (field value of IP protocol)", "0 × 86DD (field value of internet protocol version 6 (IPv 6)) and the like. If the field value of the protocol type field in the first message is not the field value in the existing protocol, it can be determined that the first message is a through message.
Specifically, the flow of processing the packet by the first internet of things device is further described with reference to fig. 5. Fig. 5 is a schematic diagram of adding a first pass-through module to a first internet of things device provided in the embodiment of the present application. The first pass-through module mentioned above has at least the following functions: providing an Application Programming Interface (API) for an application program on an application layer; the method can support the receiving and sending queues of the through messages, configure the buffer size of the queues and support the receiving and sending scheduling of the receiving and sending queues; the encapsulation and the decapsulation of the direct message are supported; and supporting interaction with a network card driver and the like.
Therefore, on the basis of the corresponding function of the first pass-through module, as shown in fig. 5, the first packet is obtained from the application program on the application layer, and then when it is determined that the first packet is a pass-through packet, the first packet is cached to the sending queue in the newly added first pass-through module based on the API transceiving interface. And further, by utilizing the functions of message encapsulation, decapsulation and the like supported by the first pass-through module, the first pass-through module encapsulates the first message into a second message based on the Ethernet protocol. And finally, the first direct connection module sends the second message to the network card driver.
It should be noted that, the above-mentioned first internet of things device is mainly described from the perspective of sending a message, and in practical application, the first internet of things device may also receive a message from a second internet of things device. Thus, the flow of processing the received message from the second networked device through the first pass-through module (dotted line portion) is also shown in fig. 5. For example, suppose that the network card driver in the first internet of things device receives the encapsulated second message from the network device, and then sends the second message to the first pass-through module. In this way, the first direct module judges whether the first message included in the second message is the self-defined direct message after analyzing the second message. If the first message is a direct message, the first direct module directly caches the first message in the receiving queue, and sends the first message received from the second networking equipment to an application program of an application layer through the API receiving and sending interface, so that message circulation between the first networking equipment and the second networking equipment is completed.
It can be understood that, if the first direct module determines that the first packet is not a direct packet, the first direct module directly sends the first packet to the kernel TCP/IP protocol stack, and processes the first packet through the kernel TCP/IP protocol stack.
403. And the first Internet of things equipment sends a second message to the network equipment.
The first internet of things device can send the second message to the network device through Wi-Fi and other wireless communication.
404. And the network equipment analyzes the second message to obtain the target MAC address and the first message.
405. The network equipment judges whether the first message is a direct message or not based on the protocol type field in the first message.
In the embodiment, after parsing the first packet and the target MAC address included in the second packet, the network device may further determine whether the first packet is a direct packet based on a protocol type field in the first packet. For example: the network device may determine whether a field value of the protocol type field in the first packet is a field value in an existing protocol, such as "0 × 0806(a field value of ARP protocol)", "0 × 86DD (a field value of IPv6 protocol)". If the field value of the protocol type field in the first message is not the field value in the existing protocol, the network device may determine that the first message is a through message.
406. And when the protocol type field in the first message reflects that the first message is a direct message, the network equipment sends a second message to the second networking equipment based on the target MAC address.
When the network device determines that the first packet is a direct packet, the network device does not need to process the first packet through a complex kernel TCP/IP protocol stack, and forwards the second packet to the second network device based on the target MAC address.
In some embodiments, the method may further comprise: and the network equipment inquires second networking equipment corresponding to the target MAC address from the preset MAC forwarding relation table. It can be understood that the network device may record, in the MAC forwarding relationship table in advance, a MAC address corresponding to each accessed internet of things device in the LAN. Therefore, when the network device analyzes the MAC address in the second message, the corresponding second networking device can be determined based on the preset MAC forwarding relation table.
A process of processing a packet by a network device is further described with reference to fig. 6, and with reference to fig. 6, a schematic diagram of adding a second pass-through module in the network device provided in the embodiment of the present application is provided. The second pass-through module mentioned above may also be referred to as a router pass-through module, and has at least the following functions: recording MAC addresses of each access device in the LAN; the direct connection message is forwarded according to the MAC address; and supporting interaction with a network card driver and the like.
On the basis of the corresponding function of the second pass-through module, as shown in fig. 6, after receiving a second message sent from the first internet of things device from the network card driver of the input interface, the second pass-through module analyzes the second message, and determines that the first message is obtained through analysis. When the second direct connection module judges that the first message is a direct connection message, the second message can be forwarded to the network card driver of the output interface according to the target MAC address, and the network card driver of the output interface sends the second message to the second networking equipment corresponding to the target MAC address through Wi-Fi and other wireless communication.
It can be understood that, if the second pass-through module determines that the first packet is not a pass-through packet, the second pass-through module directly sends the first packet to the kernel TCP/IP protocol stack, and processes the first packet through the kernel TCP/IP protocol stack.
407. And the second networking equipment analyzes the second message to obtain the first message.
408. And the second networking equipment judges whether the first message is a direct message or not based on the protocol type field in the first message.
In the embodiment, after the second internet-of-things device receives the second message sent by the network device through wireless communication such as Wi-Fi, the second message is analyzed, so that the first message included in the second message can be obtained. At this time, the second networking device needs to further judge and process the first message, mainly to avoid that the straight-through message is processed by a complex kernel TCP/IP protocol stack, which results in longer message transmission delay, more CPU resources consumption, and the like. For example: the second network device may determine whether the field value of the protocol type field in the first packet is a field value in an existing protocol, such as "0 × 0806 (field value of ARP)", "0 × 0800 (field value of IP protocol)". If the field value of the protocol type field in the first message is not the field value in the existing protocol, the second network device may determine that the first message is a direct message.
409. And when the first message is a direct message, the second networking equipment caches the first message in the receiving queue.
In the embodiment, when the second network device determines that the first packet is a direct packet, the first packet may be directly cached in the receive queue without being processed by the core TCP/IP protocol stack, and may subsequently reach the application program on the application layer.
It should be noted that a third direct-connection module may also be added to the second networking device, and functions of the third direct-connection module may be understood with reference to the first direct-connection module described in fig. 5, which will not be described herein. Specifically, as will be understood with reference to the portion described by the dotted line in fig. 5, when the network card driver in the second networking device receives the second message, the network card driver sends the second message to the third pass-through module; and after the third direct connection module analyzes the second message, judging whether the first message included in the second message is a self-defined direct connection message. If the first message is a direct message, the third direct module directly caches the first message in the receiving queue, and sends the first message received from the second internet-of-things equipment to an application program of an application layer through the API receiving and sending interface, so that message circulation with the first internet-of-things equipment is completed.
It can be understood that, if the third direct connection module determines that the first packet is not a direct connection packet, the third direct connection module directly sends the first packet to the kernel TCP/IP protocol stack, and processes the first packet through the kernel TCP/IP protocol stack.
In the embodiment of the application, the first internet of things device can directly package the first message as the second message based on the ethernet protocol when judging that the first message is the direct message by self-defining the direct message, and then send the second message to the network device through wireless communication. After receiving the second message, the network device analyzes the corresponding target MAC address and the first message, and forwards the second message to the second networking device based on the target MAC address. And the second networking equipment analyzes the second message and judges whether the first packet included in the second message is a direct message or not, and when the first message is the direct message, the second networking equipment directly caches the first message to the receiving queue. By the mode, the message is transmitted and received among the Internet of things devices without being processed by a complex kernel TCP/IP protocol stack, so that the processes of scheduling, queuing, caching, message copying and the like of each layer of protocol stack in the kernel TCP/IP protocol stack are avoided, the message forwarding delay can be effectively reduced, and the user experience is improved; and CPU resource consumption is reduced, more CPU processing resources are provided for other applications, and processing response is more smoothly provided. In addition, the communication capability of a thick and heavy inner core TCP/IP protocol stack is bypassed, the length of a TCP/IP message header is saved, and the utilization rate of physical bandwidth is improved.
The scheme provided by the embodiment of the application is mainly introduced from the perspective of a method. It is understood that, in order to implement the functions, the first internet of things device, the network device, and the second internet of things device include hardware structures and/or software modules for performing the respective functions. Those skilled in the art will readily appreciate that the functions described in connection with the embodiments disclosed herein may be implemented as hardware or a combination of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
From the perspective of an entity device, the first internet of things device, the network device, and/or the second internet of things device may be implemented by one entity device, may also be implemented by multiple entity devices together, and may also be a logic function unit in one entity device, which is not specifically limited in this embodiment of the present application.
For example, the first internet of things device, the network device and/or the second internet of things device may be implemented by the communication device in fig. 7. Fig. 7 is a schematic hardware structure diagram of a communication device according to an embodiment of the present application. The communication device includes at least one processor 701, memory 702, communication lines 703 and a transceiver 704.
The processor 701 may be a general purpose central processing unit CPU, microprocessor, application-specific integrated circuit (server IC), or one or more ICs for controlling the execution of programs in accordance with the teachings of the present application.
The communication link 703 may include a path for transmitting information between the aforementioned components.
The transceiver 704 may be any device, such as a transceiver, for communicating with other devices or communication networks, such as an ethernet, a Radio Access Network (RAN), a Wireless Local Area Network (WLAN), a wired lan, a wired access network, etc. The transceiver 704 may also be a transceiving circuit or a transceiver. The communication device may also include a communication interface 706.
The memory 702 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device that may store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that may store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disk read-only memory (CD-ROM) or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be separate and coupled to the processor 701 via a communication link 703. The memory 702 may also be integrated with the processor 701.
The memory 702 is used for storing computer-executable instructions for executing the present invention, and is controlled by the processor 701 to execute. The processor 701 is configured to execute the computer-executable instructions stored in the memory 702, so as to implement the message processing method provided by the foregoing method embodiment of the present application.
In a possible implementation manner, the computer execution instruction in the embodiment of the present application may also be referred to as an application program code, which is not specifically limited in the embodiment of the present application.
In particular implementations, processor 701 may include one or more CPUs such as CPU0 and CPU1 of fig. 7 for one embodiment.
In particular implementations, a communication device may include multiple processors, such as processor 701 and processor 705 in fig. 7, for example, as an example. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer-executable instructions).
From the perspective of the functional unit, the functional unit may be divided according to the method embodiment, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one functional unit. The integrated functional unit can be realized in a form of hardware or a form of software functional unit.
For example, in a case that each functional unit is divided in an integrated manner, fig. 8 shows a schematic structural diagram of a first internet of things device provided in an embodiment of the present application. As shown in fig. 8, an embodiment of a first internet of things device of the present application may include:
an obtaining unit 801, configured to obtain a first packet;
an encapsulating unit 802, configured to encapsulate, according to an ethernet protocol, the first packet as a second packet when the first packet is a direct packet, where the second packet includes a target MAC address and the first packet;
a sending unit 803, configured to send the second packet to a network device, so that the network device forwards the second packet to a second internet-of-things device according to the target MAC address, where the target MAC address corresponds to the second internet-of-things device, and the first internet-of-things device, the network device, and the second internet-of-things device communicate with each other through wireless communication.
In some embodiments of the present application, the first internet of things device further includes: a determining unit, configured to determine, when the first packet is a direct packet, that the first packet is a direct packet according to a protocol type field in the first packet before the first internet of things device encapsulates the first packet into a second packet according to a direct protocol.
In some embodiments of the present application, the first internet of things device further includes: and the buffer unit is used for buffering the first message to a sending queue.
The first internet of things device is mainly introduced from the perspective of the function module, and the network device is introduced from the perspective of the function module. For example, in a case that each functional unit is divided in an integrated manner, fig. 9 shows a schematic structural diagram of a network device provided in an embodiment of the present application. As shown in fig. 9, an embodiment of a network device of the present application may include:
a receiving module 901, configured to receive a second message sent by a first internet of things device, where the second message is obtained by encapsulating, by the first internet of things device, the first message when the first message is a direct message;
an analyzing module 902, configured to analyze the second packet to obtain a target MAC address and the first packet;
a sending module 903, configured to send the second packet to a second internet of things device based on the target MAC address, where the first internet of things device, the network device, and the second internet of things device communicate with each other through wireless communication.
In some embodiments of the present application, the network device further comprises:
the judging module is used for judging whether the first message is a direct connection message or not based on a protocol type field in the first message before sending the second message to a second networking device based on the target MAC address;
correspondingly, the sending module 903 is further configured to: and when the protocol type field in the first message reflects that the first message is a direct-through message, sending the second message to second networking equipment based on the target MAC address.
In some embodiments of the present application, the network device further comprises: and the query module is used for querying the second networking equipment corresponding to the target MAC address from a preset MAC forwarding relation table.
The first internet of things device and the network device are mainly introduced from the perspective of the function module, and the second internet of things device is introduced from the perspective of the function module. For example, in a case where the functional units are divided in an integrated manner, fig. 10 shows a schematic structural diagram of a second networking device provided in the embodiment of the present application. As shown in fig. 10, one embodiment of a second networked device of the present application may include:
a receiving unit 1001, configured to receive a second packet sent by a network device;
an analyzing unit 1002, configured to analyze the second packet to obtain a first packet;
a caching unit 1003, configured to cache the first packet in a receiving queue when the first packet is a direct packet.
In some embodiments of the present application, the second networked device further comprises: and the judging unit is used for judging whether the first message is a direct message or not based on a protocol type field in the first message before caching the first message into a receiving queue.
The first internet of things device, the network device, and/or the second internet of things device provided in the embodiment of the present application are used to execute the method in the corresponding method embodiment in fig. 4, so that the embodiment of the present application can be understood with reference to relevant parts in the corresponding method embodiment in fig. 4.
In the embodiment of the application, the first internet of things device, the network device and/or the second internet of things device are presented in a form of dividing each functional unit in an integrated manner. "functional unit" herein may refer to an application-specific integrated circuit (ASIC), a processor and memory that execute one or more software or firmware programs, an integrated logic circuit, and/or other devices that may provide the described functionality. In a simple embodiment, one skilled in the art may recognize that the first internet of things device, the network device, and/or the second internet of things device may take the form shown in fig. 7.
For example, the processor 701 of fig. 7 may cause the first internet of things device, the network device, and/or the second internet of things device to perform the method performed by the first internet of things device, the network device, and/or the second internet of things device in the corresponding method embodiment of fig. 4 by invoking a computer stored in the memory 702 to execute the instructions.
Specifically, the functions/implementation processes of the encapsulating unit 802, the determining unit, the caching unit, the parsing module 902, the determining module, and the querying module in fig. 8, and the parsing unit 1002, the caching unit 1003, and the determining unit in fig. 10 may be implemented by the processor 701 in fig. 7 invoking a computer executing instruction stored in the memory 702.
The functions/implementation procedures of the acquiring unit 801, the transmitting unit 803 in fig. 8, the receiving module 901, the transmitting module 903 in fig. 9, and the receiving unit 1001 in fig. 10 may be implemented by the transceiver 704 in fig. 7.
In the device of fig. 7, the respective components are communicatively connected, i.e., the processing unit (or processor), the storage unit (or memory) and the transceiving unit (transceiver) communicate with each other via internal connection paths, and control and/or data signals are transmitted. The above method embodiments of the present application may be applied to a processor, or the processor may implement the steps of the above method embodiments. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method embodiments may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The processor may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of a CPU and an NP, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component. The various methods, steps, and logic blocks disclosed in this application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in this application may be directly implemented by a hardware decoding processor, or may be implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor. Although only one processor is shown in the figure, the apparatus may comprise a plurality of processors or a processor may comprise a plurality of processing units. Specifically, the processor may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor.
The memory is used for storing computer instructions executed by the processor. The memory may be a memory circuit or a memory. The memory may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be a read-only memory, a programmable read-only memory, an erasable programmable read-only memory, an electrically erasable programmable read-only memory, or a flash memory. Volatile memory may be random access memory, which acts as external cache memory. The memory may be independent of the processor, or may be a storage unit in the processor, which is not limited herein. Although only one memory is shown in the figure, the apparatus may comprise a plurality of memories or the memory may comprise a plurality of memory units.
The transceiver is used for enabling the processor to interact with the content of other elements or network elements. Specifically, the transceiver may be a communication interface of the apparatus, a transceiving circuit or a communication unit, and may also be a transceiver. The transceiver may also be a communication interface or transceiving circuitry of the processor. Alternatively, the transceiver may be a transceiver chip. The transceiver may also include a transmitting unit and/or a receiving unit. In one possible implementation, the transceiver may include at least one communication interface. In another possible implementation, the transceiver may also be a unit implemented in software. In embodiments of the application, the processor may interact with other elements or network elements via the transceiver. For example: the processor obtains or receives content from other network elements through the transceiver. If the processor and the transceiver are physically separate components, the processor may interact with other elements of the apparatus without going through the transceiver.
In one possible implementation, the processor, the memory, and the transceiver may be connected to each other by a bus. The bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the embodiments of the present application, various illustrations are made for the convenience of understanding. However, these examples are merely examples and are not meant to be the best mode of carrying out the present application.
The above-described embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof, and when implemented using software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. The processes or functions according to the embodiments of the present application are generated in whole or in part when the computer-executable instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, e.g., the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. A computer-readable storage medium may be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The technical solutions provided by the present application are introduced in detail, and the present application applies specific examples to explain the principles and embodiments of the present application, and the descriptions of the above examples are only used to help understand the method and the core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (15)

1. A method for message processing, comprising:
the method comprises the steps that a first message is obtained by a first Internet of things device;
when the first message is a direct message, the first internet of things equipment packages the first message into a second message according to an Ethernet protocol, wherein the second message comprises a target Media Access Control (MAC) address and the first message;
the first internet of things device sends the second message to a network device, so that the network device forwards the second message to a second internet of things device according to the target MAC address, the target MAC address corresponds to the second internet of things device, and the first internet of things device, the network device and the second internet of things device are communicated through wireless communication.
2. The method according to claim 1, wherein when the first packet is a direct packet, before the first internet of things device encapsulates the first packet into a second packet according to a direct protocol, the method further comprises:
and the first Internet of things equipment determines that the first message is a direct message according to the protocol type field in the first message.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and the first Internet of things equipment caches the first message to a sending queue.
4. A method for message processing, comprising:
the network equipment receives a second message sent by first Internet of things equipment, wherein the second message is obtained by packaging the first message by the first Internet of things equipment when the first message is a direct message;
the network equipment analyzes the second message to obtain a target Media Access Control (MAC) address and the first message;
and the network equipment sends the second message to second networking equipment based on the target MAC address, and the first networking equipment, the network equipment and the second networking equipment are communicated through wireless communication.
5. The method of claim 4, wherein before the network device sends the second packet to a second networked device based on the target MAC address, the method further comprises:
the network equipment judges whether the first message is a direct message or not based on a protocol type field in the first message;
correspondingly, the network device sends the second packet to a second network device based on the target MAC address, including:
and when the protocol type field in the first message reflects that the first message is a direct-through message, the network equipment sends the second message to second networking equipment based on the target MAC address.
6. The method according to claim 4 or 5, characterized in that the method further comprises:
and the network equipment inquires second networking equipment corresponding to the target MAC address from a preset MAC forwarding relation table.
7. A method for message processing, comprising:
the second networking equipment receives a second message sent by the network equipment;
the second networking equipment analyzes the second message to obtain a first message;
and when the first message is a direct message, the second networking equipment caches the first message in a receiving queue.
8. The method according to claim 7, wherein before the second networked device buffers the first packet in a receive queue, the method further comprises:
and the second networking equipment judges whether the first message is a direct message or not based on the protocol type field in the first message.
9. A first Internet of things device, the first Internet of things device comprising:
an obtaining unit, configured to obtain a first message;
an encapsulating unit, configured to encapsulate the first packet into a second packet according to an ethernet protocol when the first packet is a direct packet, where the second packet includes a target MAC address and the first packet;
a sending unit, configured to send the second packet to a network device, so that the network device forwards the second packet to a second internet-of-things device according to the target MAC address, where the target MAC address corresponds to the second internet-of-things device, and the first internet-of-things device, the network device, and the second internet-of-things device communicate with each other through wireless communication.
10. A network device, comprising:
the receiving module is used for receiving a second message sent by first internet of things equipment, and the second message is obtained by packaging the first message when the first message is a direct message by the first internet of things equipment;
the analysis module is used for analyzing the second message to obtain a target Media Access Control (MAC) address and the first message;
and the sending module is used for sending the second message to second networking equipment based on the target MAC address, and the first networking equipment, the network equipment and the second networking equipment are communicated through wireless communication.
11. A second networked device, comprising:
a receiving unit, configured to receive a second message sent by a network device;
the analysis unit is used for analyzing the second message to obtain a first message;
and the cache unit is used for caching the first message into a receiving queue when the first message is a direct-connection message.
12. A first Internet of things device, comprising:
a processor, a memory; the processor and the memory are communicated with each other;
the memory is to store instructions;
the processor is configured to execute the instructions in the memory to perform the method of any of claims 1 to 3.
13. A network device, comprising:
a processor, a memory; the processor and the memory are communicated with each other;
the memory is to store instructions;
the processor is configured to execute the instructions in the memory to perform the method of any of claims 4 to 6.
14. A second networked device, comprising:
a processor, a memory; the processor and the memory are communicated with each other;
the memory is to store instructions;
the processor is configured to execute the instructions in the memory to perform the method of claim 7 or 8.
15. A computer-readable storage medium comprising instructions that, when executed on a computer, cause the computer to perform the method of any of claims 1-3, 4-6, or 7-8.
CN202010830763.4A 2020-08-18 2020-08-18 Message processing method, device and storage medium Active CN114157684B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010830763.4A CN114157684B (en) 2020-08-18 2020-08-18 Message processing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010830763.4A CN114157684B (en) 2020-08-18 2020-08-18 Message processing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN114157684A true CN114157684A (en) 2022-03-08
CN114157684B CN114157684B (en) 2024-01-02

Family

ID=80460488

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010830763.4A Active CN114157684B (en) 2020-08-18 2020-08-18 Message processing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN114157684B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5799171A (en) * 1995-05-23 1998-08-25 Kabushiki Kaisha Toshiba IC card reader/writer for allowing communication with a plurality of kinds of IC cards of different protocol types
US5802065A (en) * 1995-10-23 1998-09-01 Kawasaki Steel Corporation Data receiving device
US20030039260A1 (en) * 2001-08-21 2003-02-27 Kenji Fujisawa Communication device, communication method and program
JP2008252192A (en) * 2007-03-29 2008-10-16 Fujitsu Ltd Frame repeating device and communication network system
CN102694734A (en) * 2012-06-11 2012-09-26 烽火通信科技股份有限公司 Multicasting method of double-layer switching equipment based on Linux kernel bridge
US20120246702A1 (en) * 2011-03-21 2012-09-27 Webcetera, L.P. System, method and computer program product for access authentication
CN103078720A (en) * 2012-12-28 2013-05-01 华为技术有限公司 Message processing method and message processing device
CN104915308A (en) * 2015-05-15 2015-09-16 深圳市双翼科技有限公司 Method and device for supporting serial port and interface communication protocol stacks of TCP and UDP at same time
CN105245456A (en) * 2015-10-20 2016-01-13 浪潮(北京)电子信息产业有限公司 Method and system for unloading SDN virtual network function in cloud server
CN105391634A (en) * 2015-12-08 2016-03-09 福建星网锐捷网络有限公司 Message processing method, device and switch
CN106330776A (en) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 Message processing method and device
WO2017181757A1 (en) * 2016-04-18 2017-10-26 中兴通讯股份有限公司 Packet forwarding method and device
CN107547430A (en) * 2017-08-30 2018-01-05 新华三信息安全技术有限公司 A kind of file transmitting method and device
WO2019227891A1 (en) * 2018-05-31 2019-12-05 杭州海康威视数字技术股份有限公司 Method and apparatus for implementing communication between nodes, and electronic device
CN111131541A (en) * 2019-12-25 2020-05-08 深圳市共进电子股份有限公司 Network communication method, device, electronic equipment and storage medium

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5799171A (en) * 1995-05-23 1998-08-25 Kabushiki Kaisha Toshiba IC card reader/writer for allowing communication with a plurality of kinds of IC cards of different protocol types
US5802065A (en) * 1995-10-23 1998-09-01 Kawasaki Steel Corporation Data receiving device
US20030039260A1 (en) * 2001-08-21 2003-02-27 Kenji Fujisawa Communication device, communication method and program
JP2008252192A (en) * 2007-03-29 2008-10-16 Fujitsu Ltd Frame repeating device and communication network system
US20120246702A1 (en) * 2011-03-21 2012-09-27 Webcetera, L.P. System, method and computer program product for access authentication
CN102694734A (en) * 2012-06-11 2012-09-26 烽火通信科技股份有限公司 Multicasting method of double-layer switching equipment based on Linux kernel bridge
CN103078720A (en) * 2012-12-28 2013-05-01 华为技术有限公司 Message processing method and message processing device
CN104915308A (en) * 2015-05-15 2015-09-16 深圳市双翼科技有限公司 Method and device for supporting serial port and interface communication protocol stacks of TCP and UDP at same time
CN106330776A (en) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 Message processing method and device
CN105245456A (en) * 2015-10-20 2016-01-13 浪潮(北京)电子信息产业有限公司 Method and system for unloading SDN virtual network function in cloud server
CN105391634A (en) * 2015-12-08 2016-03-09 福建星网锐捷网络有限公司 Message processing method, device and switch
WO2017181757A1 (en) * 2016-04-18 2017-10-26 中兴通讯股份有限公司 Packet forwarding method and device
CN107547430A (en) * 2017-08-30 2018-01-05 新华三信息安全技术有限公司 A kind of file transmitting method and device
WO2019227891A1 (en) * 2018-05-31 2019-12-05 杭州海康威视数字技术股份有限公司 Method and apparatus for implementing communication between nodes, and electronic device
CN111131541A (en) * 2019-12-25 2020-05-08 深圳市共进电子股份有限公司 Network communication method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114157684B (en) 2024-01-02

Similar Documents

Publication Publication Date Title
US10057387B2 (en) Communication traffic processing architectures and methods
US9654406B2 (en) Communication traffic processing architectures and methods
CN110022264B (en) Method for controlling network congestion, access device and computer readable storage medium
JP6982104B2 (en) BRAS system-based packet encapsulation methods and equipment
CN110505244B (en) Remote tunnel access technology gateway and server
CN107948077B (en) Method and device for forwarding data message
US11444874B2 (en) Packet transmission method, and communications apparatus and system
US11799827B2 (en) Intelligently routing a response packet along a same connection as a request packet
WO2019033964A1 (en) Method for transmitting packet, forwarding device, controller, and system
KR20210049335A (en) Method of translating ip packet for tethering service and communication system performing the same
WO2022068744A1 (en) Method for obtaining message header information and generating message, device, and storage medium
EP3598720B1 (en) Method and device for generating forwarding information
CN108737239B (en) Message forwarding method and device
WO2023179457A1 (en) Method, apparatus and system for identifying service connection, and storage medium
CN114697387A (en) Data packet transmission method, device and storage medium
CN111698274B (en) Data processing method and device
WO2023173876A1 (en) Data communication method and apparatus, device and medium
WO2015055008A1 (en) Storage controller chip and disk packet transmission method
CN114157684A (en) Message processing method, device and storage medium
JP2024506089A (en) Packet forwarding methods, devices, and systems
CN113497767A (en) Method and device for transmitting data, computing equipment and storage medium
CN114205172A (en) Table item issuing method and message forwarding method
CN113676544A (en) Cloud storage network and method for realizing service isolation in entity server
CN113709015A (en) Data transmission method, electronic device and storage medium
US11431525B2 (en) Method and system for processing encapsulated wireless traffic

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant