CN110661588B - Message transmission method, switching device, wireless communication equipment and storage medium - Google Patents
Message transmission method, switching device, wireless communication equipment and storage medium Download PDFInfo
- Publication number
- CN110661588B CN110661588B CN201810690007.9A CN201810690007A CN110661588B CN 110661588 B CN110661588 B CN 110661588B CN 201810690007 A CN201810690007 A CN 201810690007A CN 110661588 B CN110661588 B CN 110661588B
- Authority
- CN
- China
- Prior art keywords
- message
- clock
- type
- packet
- interface
- 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.)
- Active
Links
- 238000004891 communication Methods 0.000 title claims abstract description 34
- 230000005540 biological transmission Effects 0.000 title claims abstract description 33
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000012545 processing Methods 0.000 claims abstract description 54
- 238000012512 characterization method Methods 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 19
- 239000000284 extract Substances 0.000 description 13
- 230000015654 memory Effects 0.000 description 11
- 238000004590 computer program Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0658—Clock or time synchronisation among packet nodes
- H04J3/0661—Clock or time synchronisation among packet nodes using timestamps
- H04J3/0667—Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation arrangements
- H04W56/001—Synchronization between nodes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention discloses a message transmission method, which is applied to a switching device in wireless communication equipment, wherein the switching device is used for transmitting a message to a central processing unit in the wireless communication equipment, and the method comprises the following steps: receiving at least one message; extracting at least one type representation information from at least one message; determining a clock message with a message type of a clock type from at least one message according to at least one type representation information, and acquiring receiving port information corresponding to the clock message; sending the clock message and the receiving port information to a central processing unit through a first interface; the first interface is an interface configured to transmit a clock type message in the switching apparatus.
Description
Technical Field
The present invention relates to the field of wireless communication technologies, and in particular, to a message transmission method and apparatus, an exchange apparatus, a wireless communication device, and a storage medium.
Background
With the continuous development of communication technology, wireless communication devices need to obtain high-precision time signals to support time-sensitive services.
At present, because the IEEE1588 protocol, that is, the precision clock synchronization protocol standard of a network measurement and control system, can implement strict clock synchronization through the ethernet, and the precision can reach the level of 100ns, the wireless communication device generally uses a 1588 message received from a transmission network as a clock synchronization signal. The switching device of the wireless communication equipment is usually provided with a plurality of network ports, which can be connected with a transmission network simultaneously, and each network port can run 1588 protocol to perform high-precision time synchronization.
In the prior art, when a wireless communication device selects an optimal clock source according to a 1588 message, a Central Processing Unit (CPU) needs to obtain source port information of the 1588 message, that is, port information of a network port that receives the 1588 message. The CPU of the wireless communication device must use the same number of network cards as the number of network ports on the switching device, and each network card receives a 1588 message received by one network port, so as to clearly receive the port information of the network port of the 1588 message, as shown in fig. 1. Therefore, the number of network ports of the panel of the wireless communication equipment is limited by the maximum number of network cards supported by the CPU, and the flexibility of transmitting 1588 messages is low.
Disclosure of Invention
In order to solve the existing technical problems, embodiments of the present invention desirably provide a message transmission method, an exchange device, a wireless communication device, and a storage medium, where the exchange device is configured with a specific interface, and transmits each clock message and corresponding receiving port information to a CPU through the specific interface at the same time in a specific channel, and the CPU does not need to set a large number of network cards, thereby improving flexibility of message transmission.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides a message transmission method, which is applied to a switching device in wireless communication equipment, wherein the switching device is used for transmitting a message to a central processing unit in the wireless communication equipment, and the method comprises the following steps:
receiving at least one message;
extracting at least one type representation information from the at least one message;
according to the at least one type representation information, determining a clock message with a message type of a clock type from the at least one message, and acquiring receiving port information corresponding to the clock message;
sending the clock message and the receiving port information to the central processing unit through a first interface; the first interface is an interface configured to transmit a clock type message in the switching device.
The embodiment of the invention provides a switching device, which is used for transmitting messages to a central processing unit in wireless communication equipment, and comprises: the device comprises a receiving module, an obtaining module, a determining module, a sending module and a first interface; wherein,
the receiving module is used for receiving at least one message;
the acquisition module is used for extracting at least one type representation information from the at least one message;
the determining module is configured to determine, according to the at least one type characterization information, a clock packet whose packet type is a clock type from the at least one packet, and acquire receiving port information corresponding to the clock packet;
the sending module is used for sending the clock message and the receiving port information to a central processing unit through the first interface; the first interface is an interface configured to transmit a clock type message in the switching device.
An embodiment of the present invention provides a wireless communication device, including:
the above-mentioned exchange device;
a central processing unit; the switching device is used for sending messages to the central processing unit.
An embodiment of the present invention further provides a computer-readable storage medium, where one or more programs are stored, and the one or more programs may be executed by one or more processors to implement the message transmission method.
Therefore, in the technical solution of the embodiment of the present invention, the present invention is applied to a switching device, where the switching device is configured to transmit a message to a central processing unit, and a wireless communication device includes: a switching device and a central processing unit. The switching device receives at least one message; extracting at least one type representation information from at least one message; determining a clock message with a message type of a clock type from at least one message according to at least one type representation information, and acquiring receiving port information corresponding to the clock message; sending the clock message and the receiving port information to a central processing unit through a first interface; the first interface is an interface configured to transmit a clock type message in the switching apparatus. In the technical scheme of the invention, the switching device is provided with a specific first interface, each clock message and the corresponding receiving port information can be simultaneously transmitted to the central processing unit through the first interface, and the central processing unit can transmit data without arranging a large number of network cards, thereby improving the flexibility of message transmission.
Drawings
FIG. 1 is a diagram illustrating message transmission in the prior art;
fig. 2 is a first schematic flow chart of a message transmission method according to an embodiment of the present invention;
fig. 3 is a second flowchart illustrating a message transmission method according to an embodiment of the present invention;
fig. 4 is a first schematic diagram illustrating an exemplary message transmission according to an embodiment of the present invention;
fig. 5 is a second schematic diagram of exemplary message transmission according to an embodiment of the present invention;
fig. 6 is a first schematic structural diagram of a switching apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a switching apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a wireless communication device according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
Example one
The embodiment of the invention provides a message transmission method, which is applied to a switching device in wireless communication equipment, wherein the switching device is used for transmitting a message to a central processing unit in the wireless communication equipment. Fig. 2 is a first flowchart of a message transmission method according to an embodiment of the present invention. As shown in fig. 2, the method mainly comprises the following steps:
s201, receiving at least one message.
In an embodiment of the invention, the switching device may receive at least one message.
It should be noted that, in the embodiment of the present invention, the switching device in the wireless communication device is provided with at least one external network port, and the switching device may receive at least one message through the at least one external network port. The specific number of external ports is not limited in the embodiments of the present invention.
It should be noted that, in the embodiment of the present invention, at least one message received by the switching device may be received from one external network port, or may be received from different external network ports. The embodiment of the present invention is not limited to a specific network port for receiving a message and a specific message.
It should be noted that, in the embodiment of the present invention, the wireless communication device may be a wireless base station device, and the embodiment of the present invention is not limited.
It should be noted that, in the embodiment of the present invention, at least one message received by the switching device originates from an external transmission network, and the switching device may receive, through an external network port, a message transmitted by the transmission network through the ethernet network.
It should be noted that, in the embodiment of the present invention, the wireless communication device may be deployed in a remote area, and therefore, a message received by the switch device through the external network port may be a layer two-broadcast message or a layer three User Datagram Protocol (UDP) unicast message, which is not limited in the embodiment of the present invention.
S202, extracting at least one type representation information from at least one message.
In the embodiment of the present invention, after receiving at least one message through the external network port, the switching apparatus may extract at least one type characterizing information from the at least one message.
It can be understood that, in the embodiment of the present invention, each of the at least one message received by the switching apparatus includes the type characterizing information, so that the switching apparatus may directly extract the corresponding type characterizing information from each message, that is, extract at least one type characterizing information from the at least one message. The specific type characterizing information is not limited in the embodiments of the present invention.
Optionally, in this embodiment of the present invention, the type characterizing information may be a Media Access Control (MAC) address, or an ethernet protocol type and source port information.
For example, in the embodiment of the present invention, the type characterizing information is a destination physical address, and the switching device may directly extract at least one destination physical address from at least one message, that is, the switching device extracts a destination physical address corresponding to each message from each message.
For example, in the embodiment of the present invention, the type characterizing information is an ethernet protocol type and source port information, and the switching device may directly extract at least one ethernet protocol type and at least one source port information from at least one packet, that is, the switching device extracts the ethernet protocol type and the source port information corresponding to each packet from each packet.
S203, according to the at least one type representation information, determining a clock message with the message type being the clock type from the at least one message, and acquiring receiving port information corresponding to the clock message.
In the embodiment of the present invention, after extracting at least one type characterizing information from at least one message, the switching apparatus may determine, according to the at least one type characterizing information, a clock message whose message type is a clock type from the at least one message, and obtain receiving port information corresponding to the clock message.
It can be understood that, in the embodiment of the present invention, the switching apparatus may extract different type representation information, and therefore, the clock packet whose packet type is the clock type may be determined from at least one packet according to different methods.
Specifically, in the embodiment of the present invention, the type characterizing information is a destination physical address, the switching device matches at least one destination physical address corresponding to at least one packet with a preset destination physical address from at least one packet to obtain at least one matching result, and then determines, as a clock packet, a packet corresponding to a destination physical address that is successfully matched from among the at least one matching result.
Illustratively, the switching device receives two messages, namely a first message and a second message, and then extracts a destination physical address corresponding to the first message, namely a first physical address, and extracts a destination physical address corresponding to the second message, namely a second physical address, and matches the first physical address and the second physical address with a preset physical address respectively to obtain a first matching result and a second matching result. And finally, if the first matching result is that the matching is successful, the first message corresponding to the first physical address is a clock message, and if the second matching result is that the matching is successful, the second message corresponding to the second physical address is a clock message.
Specifically, in the embodiment of the present invention, the switching apparatus may further determine, from at least one type characterizing information corresponding to at least one packet, that the ethernet protocol type is a preset type, and the source port information is first type characterizing information of preset source port information, and then determine a packet corresponding to the first type characterizing information as a clock packet.
It is to be understood that, in the embodiment of the present invention, the type characterizing information may include: the ethernet protocol type and the source port information, that is, the type characterizing information corresponding to a packet, may be the ethernet protocol type and the source port information corresponding to the packet, and when the ethernet protocol type is a preset type and the source port information is the preset source port information, that is, the type characterizing information corresponding to the packet is the first type characterizing information, therefore, the switching device determines that the packet is a clock packet.
For example, the switching device receives two messages, which are a first message and a second message, and then extracts an ethernet protocol type corresponding to the first message, that is, the first ethernet protocol type, and source port information corresponding to the first message, that is, first source port information, and extracts an ethernet protocol type corresponding to the second message, that is, the second ethernet protocol type, and source port information corresponding to the second message, that is, second source port information. If the first ethernet protocol type is a preset type and the first source port information is preset source port information, the switching device determines the first ethernet protocol type and the first source port information as first type characterization information, so as to determine the first message as a clock message. Similarly, if the second ethernet protocol type is the preset type and the second source port information is the preset source port information, the switching device determines the second ethernet protocol type and the second source port information as the first type characterizing information, thereby determining the second packet as the clock packet.
Illustratively, the default type is UDP and the default source port information is 319 and 320. The switching device receives the first message, and extracts an ethernet protocol type corresponding to the first message, that is, the first ethernet protocol type, and source port information corresponding to the first message, that is, the first source port information. When the first ethernet protocol type corresponding to the first packet is UDP and the first source port information corresponding to the first packet is 319 or 320, the switching apparatus determines that the packet type of the packet is a clock type and the packet is 1588.
It should be noted that, in the embodiment of the present invention, since the switching device may receive at least one packet, as long as the corresponding type characterization information can characterize that the packet type of the received packet is the clock type, it may be determined that the packet is the clock packet, that is, the number of clock packets may be multiple, as long as the type characterization information satisfies the relevant condition. The specific number of clock messages is not limited in the embodiments of the present invention.
In the embodiment of the present invention, after determining the clock packet, the switching apparatus may also directly obtain the receiving port information corresponding to the clock packet.
It is understood that, in the embodiment of the present invention, since at least one external network port is provided on the switching device, each external network port is configured with a corresponding port number. The switching device may directly obtain the port number of the external network port for receiving the clock packet, that is, the receiving port information corresponding to the clock packet. The embodiment of the present invention is not limited to a specific receiving port information corresponding to the clock packet.
Illustratively, the switching device is provided with 3 external ports, which are respectively a port 1, a port 2, and a port 3, where the port number corresponding to the port 1 is a, the port number corresponding to the port 2 is B, and the port number corresponding to the port 3 is C. The switching device receives the first message through the network port 1 and receives the second message through the network port 3. The first message is determined to be a clock message, and therefore the switching device can directly acquire that the receiving port information corresponding to the first message is a.
S204, sending the clock message and the receiving port information to a central processing unit through a first interface; the first interface is an interface configured to transmit a clock type message in the switching apparatus.
In the embodiment of the present invention, after determining the clock packet and acquiring the receiving port information corresponding to the clock packet, the switching apparatus may send the clock packet and the receiving port information corresponding to the clock packet to the CPU through the first interface.
It can be understood that, in the embodiment of the present invention, for the clock packet, attention needs to be paid to port information of the first port of the switching apparatus, which receives the clock packet. Therefore, after acquiring the receiving port information corresponding to the clock message, the switching device sends the clock message to the CPU and sends the receiving port information corresponding to the clock message to the CPU.
It should be noted that, in the embodiment of the present invention, the switching device is provided with a first interface, and the first interface is an interface configured to transmit the clock type packet in the switching device.
It should be noted that, in the embodiment of the present invention, since an extended Peripheral Component Interconnect (PCIE) interface can simultaneously transmit a message and related information, the first interface may be a (PCIE) interface. The switching device can send the clock message and the receiving port information corresponding to the clock message to the CPU through the PCIE interface.
Specifically, in the embodiment of the present invention, the switching device may generate additional information corresponding to the clock packet according to the clock packet, then write the receiving port information corresponding to the clock packet into the additional information corresponding to the clock packet, and finally send the clock packet and the additional information corresponding to the clock packet to the CPU through the first interface.
It should be noted that, in the embodiment of the present invention, the additional information corresponding to the clock message may be basic information of the clock message, that is, summary information of the clock message. The embodiment of the present invention is not limited to specific additional information of the clock packet.
It can be understood that, in the embodiment of the present invention, the switching device sends the additional information corresponding to the clock packet and the clock packet to the CPU through the first interface, and the CPU can know which external network port receives the clock packet in the switching device is specifically the external network port according to the additional information corresponding to the clock packet, so as to perform subsequent clock protocol processing, for example, select an optimal clock source.
It should be noted that, in the embodiment of the present invention, before the switching device sends the receiving port information and the clock packet corresponding to the clock packet to the CPU through the first interface, since the clock packet is determined to be the clock packet, a clock counter inside the switching device may also be read to obtain the residence time of the clock packet, and then, the residence time of the clock packet is written into a Configuration Field (CF) Field of the clock packet.
It should be noted that, in the embodiment of the present invention, the residence time of the clock packet is actually the time length from when the switching device receives the clock packet to when the switching device sends the clock packet, and the specific residence time of the clock packet is not limited in the embodiment of the present invention.
It can be understood that, in the embodiment of the present invention, the switching device writes the residence time of the clock packet into the configuration field of the clock packet, and when the CPU receives the first packet, the CPU can obtain the residence time of the clock packet by reading the configuration field of the clock packet, so as to perform subsequent clock protocol processing.
It should be noted that, in the embodiment of the present invention, after determining the clock message from at least one message, the switching device also needs to send the message of the non-clock message to the CPU in other manners to perform transmission, and the CPU may perform data transmission without setting a large number of network cards, thereby improving the flexibility of message transmission.
Fig. 3 is a second flowchart of a message transmission method according to an embodiment of the present invention. As shown in fig. 3, after step S203, steps S301 to S302 may be further included, and the specific steps are as follows:
s301, determining a message of a non-clock message in at least one message as a data message with a message type of a data type.
In the embodiment of the present invention, after determining a clock packet from at least one packet, the switching device determines a packet that is not a clock packet in the at least one packet as a data packet whose packet type is a data type.
Illustratively, the switching device receives two messages, which are a first message and a second message, respectively, wherein the first message is determined to be a clock message from the two messages, and therefore, the second message can be directly determined to be a data message.
It should be noted that, in the embodiment of the present invention, since the switching device may receive at least one packet, there may be a plurality of data packets. The specific number of data messages is not limited in the embodiments of the present invention.
S302, sending the data message to a central processing unit through a second interface; the second interface is an interface configured to transmit the data type packet in the switching apparatus.
In an embodiment of the invention, the switching device sends the data packet to the CPU via the second interface after determining the data packet.
It should be noted that, in the embodiment of the present invention, the switching device is provided with a second interface, and the second interface is an interface configured to transmit the data type packet in the switching device. Specific second interface embodiments of the present invention are not limited.
It can be understood that, in the embodiment of the present invention, for the data packet, there is no need to pay attention to the receiving port information corresponding to the receiving data packet in the switching device. The switching device can therefore send data messages to the CPU via the ethernet directly via the second interface. After receiving the data message, the CPU can process the subsequent data message according to the data message.
It should be noted that, in the embodiment of the present invention, the wireless communication device may include a plurality of CPUs. The number of CPUs is not limited in the embodiments of the present invention.
Fig. 4 is a first schematic diagram of exemplary message transmission according to an embodiment of the present invention. As shown in fig. 4, if the wireless communication device only includes one CPU, when a message received by the switch device through the external network interface is a clock message, the switch device may send, to the CPU, receiving port information and the clock message corresponding to the clock message through the first interface, and specifically send the receiving port information and the clock message to a module in the CPU for processing the clock message, where the first interface is a PCIE interface and the channel is a PCIE channel. When the switching device receives the data packet through the external network port, the switching device may send the data packet to the CPU through the second interface, and specifically to a module in the CPU for processing the data packet.
Fig. 5 is a second schematic diagram of exemplary message transmission according to an embodiment of the present invention. As shown in fig. 5, if the CPU includes two CPUs, the two CPUs are a first CPU and a second CPU, respectively, where the first CPU includes a module for processing a clock packet, and the second CPU includes a module for processing a data packet. When the packet received by the switch device through the external network interface is a clock packet, the switch device may specifically send the receiving port information and the clock packet corresponding to the clock packet to the module for processing the clock packet in the first CPU through the first interface, where the first interface is a PCIE interface and the channel is a PCIE channel. When the switching device receives the data packet through the external network port, the switching device may send the data packet to the second CPU through the second interface, and specifically to a module in the second CPU for processing the data packet.
The embodiment of the invention provides a message transmission method, which is applied to a switching device, wherein the switching device is used for transmitting messages to a central processing unit, and wireless communication equipment comprises: a switching device and a central processing unit. The switching device receives at least one message; extracting at least one type representation information from at least one message; determining a clock message with a message type of a clock type from at least one message according to at least one type representation information, and acquiring receiving port information corresponding to the clock message; sending the clock message and the receiving port information to a central processing unit through a first interface; the first interface is an interface configured to transmit a clock type message in the switching apparatus. That is, in the prior art, in order to make the CPU know the port information of the network port in the switching device for receiving the clock message, a corresponding network card must be configured in the CPU for each network port in the switching device to receive the clock message received by the corresponding network port, and the message transmission is not flexible enough. In the technical scheme of the invention, the switching device is provided with a specific first interface, each clock message and the corresponding receiving port information can be simultaneously transmitted to the central processing unit through the first interface, and the central processing unit can transmit data without arranging a large number of network cards, thereby improving the flexibility of message transmission.
Example two
Fig. 6 is a schematic structural diagram of a switching device according to an embodiment of the present invention. As shown in fig. 6, the switching apparatus 1 is configured to transmit a message to a central processing unit in a wireless communication device, and includes: a receiving module 601, an obtaining module 602, a determining module 603, a sending module 604 and a first interface 605; wherein,
the receiving module 601 is configured to receive at least one message;
the obtaining module 602 is configured to extract at least one type representation information from the at least one message;
the determining module 603 is configured to determine, according to the at least one type representation information, a clock packet whose packet type is a clock type from the at least one packet, and obtain receiving port information corresponding to the clock packet;
the sending module 604 is configured to send the clock packet and the receiving port information to a central processing unit through a first interface 605; the first interface 605 is an interface configured to transmit a clock type packet in the switching apparatus.
Optionally, the at least one type characterizing information is at least one destination physical address, and the determining module 603 is specifically configured to match, from the at least one message, the at least one destination physical address corresponding to the at least one message with a preset destination physical address, so as to obtain at least one matching result; and determining the message corresponding to the successfully matched destination physical address in the at least one matching result as the clock message.
The determining module 603 is further specifically configured to determine, from the at least one type characterizing information corresponding to the at least one packet, that the ethernet protocol type is a preset type, and the source port information is first type characterizing information of preset source port information; and determining the message corresponding to the first type representation information as the clock message.
Optionally, the sending module 604 is specifically configured to generate additional information corresponding to the clock packet according to the clock packet; writing the receiving port information into the additional information; the clock message and the additional information are sent to the central processor via the first interface 605.
Optionally, the switching device 1 further includes: a write module 606; wherein,
the write-in module 606 is configured to obtain the residence time of the clock packet before the clock packet and the receiving port information are sent to the central processing unit through the first interface 605; and writing the residence time of the clock message into a configuration field of the clock message.
Optionally, fig. 7 is a schematic structural diagram of an exchange device according to an embodiment of the present invention, and as shown in fig. 7, the exchange device 1 further includes: a second interface 607;
the determining module 603 is further configured to determine, after the clock packet with the packet type determined as the clock type, a packet other than the clock packet in the at least one packet as a data packet with the packet type determined as the data type;
the sending module 604 is further configured to send a data packet to the central processing unit through the second interface 607; the second interface 607 is an interface configured to transmit a data type packet in the switching apparatus.
An embodiment of the present invention provides an exchange device, where the exchange device includes: the device comprises a receiving module, an obtaining module, a determining module, a sending module and a first interface; the receiving module 601 is configured to receive at least one message; the acquisition module is used for extracting at least one type representation information from at least one message; the determining module is used for determining a clock message with a message type of a clock type from at least one message according to at least one type representation information, and acquiring receiving port information corresponding to the clock message; a sending module, configured to send the clock packet and the receiving port information to the central processing unit through the first interface 605; the first interface is an interface configured to transmit a clock type message in the switching apparatus. That is, in the prior art, in order to make the CPU know the port information of the network port in the switching device for receiving the clock message, a corresponding network card must be configured in the CPU for each network port in the switching device to receive the clock message received by the corresponding network port, and the message transmission is not flexible enough. In the technical scheme of the invention, the switching device is provided with a specific first interface, each clock message and the corresponding receiving port information can be simultaneously transmitted to the central processing unit through the first interface, and the central processing unit can transmit data without arranging a large number of network cards, thereby improving the flexibility of message transmission.
Fig. 8 is a schematic structural diagram of a wireless communication device according to an embodiment of the present invention. As shown in fig. 8, the apparatus includes:
the above-described exchange device 1;
a central processing unit 2; the switching device 1 is configured to send a message to the central processing unit 2.
An embodiment of the present invention further provides a computer-readable storage medium, where one or more programs are stored, and the one or more programs may be executed by one or more processors to implement the message transmission method. The computer-readable storage medium may be a volatile Memory (volatile Memory), such as a Random-Access Memory (RAM); or a non-volatile Memory (non-volatile Memory), such as a Read-Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk (Hard Disk Drive, HDD) or a Solid-State Drive (SSD); or may be a respective device, such as a mobile phone, computer, tablet device, personal digital assistant, etc., that includes one or any combination of the above-mentioned memories.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable signal processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable signal processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable signal processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable signal 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 the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.
Claims (13)
1. A message transmission method is applied to a switching device in wireless communication equipment, wherein the switching device is used for transmitting a message to a central processing unit in the wireless communication equipment, and the method comprises the following steps:
receiving at least one message;
extracting at least one type representation information from the at least one message;
according to the at least one type representation information, determining a clock message with a message type of a clock type from the at least one message, and acquiring receiving port information corresponding to the clock message;
sending the clock message and the receiving port information to the central processing unit through a first interface; the first interface is an interface configured to transmit a clock type message in the switching device.
2. The method according to claim 1, wherein the at least one type characterizing information is at least one destination physical address, and the determining, from the at least one packet, a clock packet whose packet type is a clock type includes:
matching the at least one destination physical address corresponding to the at least one message with a preset destination physical address from the at least one message to obtain at least one matching result;
and determining the message corresponding to the successfully matched destination physical address in the at least one matching result as the clock message.
3. The method of claim 1, wherein said determining from said at least one message a clock message of which the message type is clock type comprises:
determining that the type of the Ethernet protocol is a preset type from the at least one type of characterization information corresponding to the at least one message, and the source port information is first type of characterization information of the preset source port information;
and determining the message corresponding to the first type representation information as the clock message.
4. The method of claim 1, wherein said sending the clock message and the receive port information to the central processor via the first interface comprises:
generating additional information corresponding to the clock message according to the clock message;
writing the receiving port information into the additional information;
and sending the clock message and the additional information to the central processing unit through the first interface.
5. The method of claim 1, wherein before sending the clock message and the receive port information to the central processor over the first interface, the method further comprises:
acquiring the residence time of the clock message;
and writing the residence time of the clock message into a configuration field of the clock message.
6. The method of claim 1, wherein after determining that the packet type is a clock packet of a clock type, the method further comprises:
determining a message other than the clock message in the at least one message as a data message with a message type of a data type;
sending the data message to the central processing unit through a second interface; the second interface is an interface configured to transmit a data type packet in the switching device.
7. A switch for transmitting messages to a central processing unit in a wireless communication device, the switch comprising: the device comprises a receiving module, an obtaining module, a determining module, a sending module and a first interface; wherein,
the receiving module is used for receiving at least one message;
the acquisition module is used for extracting at least one type representation information from the at least one message;
the determining module is configured to determine, according to the at least one type characterization information, a clock packet whose packet type is a clock type from the at least one packet, and acquire receiving port information corresponding to the clock packet;
the sending module is used for sending the clock message and the receiving port information to a central processing unit through the first interface; the first interface is an interface configured to transmit a clock type message in the switching device.
8. The switching device according to claim 7,
the determining module is specifically configured to match, from the at least one message, the at least one destination physical address corresponding to the at least one message with a preset destination physical address to obtain at least one matching result; determining a message corresponding to a successfully matched destination physical address in the at least one matching result as the clock message;
the determining module is further specifically configured to determine, from the at least one type of characterization information corresponding to the at least one packet, that the type of the ethernet protocol is a preset type, and the source port information is first type of characterization information of preset source port information; and determining the message corresponding to the first type representation information as the clock message.
9. The switching apparatus according to claim 7, wherein the sending module is specifically configured to generate additional information corresponding to the clock packet according to the clock packet; writing the receiving port information into the additional information; and sending the clock message and the additional information to the central processing unit through the first interface.
10. The switching device of claim 7, further comprising: a write module; wherein,
the write-in module is configured to obtain a residence time of the clock packet before the clock packet and the receiving port information are sent to the central processing unit through the first interface; and writing the residence time of the clock message into a configuration field of the clock message.
11. The switching device of claim 7, further comprising: a second interface;
the determining module is further configured to determine, after the clock packet whose packet type is determined as the clock packet of the clock type, a packet other than the clock packet in the at least one packet as a data packet whose packet type is the data type;
the sending module is further configured to send a data packet to the central processing unit through the second interface; the second interface is an interface configured to transmit a data type packet in the switching device.
12. A wireless communication device, the device comprising:
the switching apparatus of any one of claims 7-11;
a central processing unit; the switching device is used for sending messages to the central processing unit.
13. A computer-readable storage medium, characterized in that the computer-readable storage medium stores one or more programs which are executable by one or more processors to implement the method of any one of claims 1-6.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810690007.9A CN110661588B (en) | 2018-06-28 | 2018-06-28 | Message transmission method, switching device, wireless communication equipment and storage medium |
PCT/CN2019/088401 WO2020001213A1 (en) | 2018-06-28 | 2019-05-24 | Message transmission method, switching apparatus, wireless communication device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810690007.9A CN110661588B (en) | 2018-06-28 | 2018-06-28 | Message transmission method, switching device, wireless communication equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110661588A CN110661588A (en) | 2020-01-07 |
CN110661588B true CN110661588B (en) | 2022-04-22 |
Family
ID=68985416
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810690007.9A Active CN110661588B (en) | 2018-06-28 | 2018-06-28 | Message transmission method, switching device, wireless communication equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110661588B (en) |
WO (1) | WO2020001213A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111585642B (en) * | 2020-05-11 | 2021-08-13 | 中电科航空电子有限公司 | Airborne short message communication method, device, equipment, system and readable storage medium |
CN114039622B (en) * | 2021-11-06 | 2023-07-28 | 四川恒湾科技有限公司 | Method for realizing switching of synchronous surface between network ports on radio frequency unit |
CN114245411A (en) * | 2021-11-08 | 2022-03-25 | 深圳震有科技股份有限公司 | Method and device for testing message delay time, terminal equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106953814A (en) * | 2017-03-07 | 2017-07-14 | 国电南瑞科技股份有限公司 | A kind of Substation process-level network exchanging chip system and its message forwarding method, time measurement labeling method |
CN107948157A (en) * | 2017-11-24 | 2018-04-20 | 锐捷网络股份有限公司 | A kind of message processing method and device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101739011B (en) * | 2009-12-08 | 2012-09-05 | 中国科学院声学研究所 | CPCI bus-based high-accuracy clock synchronization method and system thereof |
US8873588B2 (en) * | 2011-05-11 | 2014-10-28 | Vitesse Semiconductor Corporation | Network distributed packet-based synchronization |
CN105281932A (en) * | 2014-06-23 | 2016-01-27 | 中兴通讯股份有限公司 | A clock time source selection method and device and network elements |
JP6566205B2 (en) * | 2015-10-30 | 2019-08-28 | パナソニックIpマネジメント株式会社 | Communication apparatus and communication system |
-
2018
- 2018-06-28 CN CN201810690007.9A patent/CN110661588B/en active Active
-
2019
- 2019-05-24 WO PCT/CN2019/088401 patent/WO2020001213A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106953814A (en) * | 2017-03-07 | 2017-07-14 | 国电南瑞科技股份有限公司 | A kind of Substation process-level network exchanging chip system and its message forwarding method, time measurement labeling method |
CN107948157A (en) * | 2017-11-24 | 2018-04-20 | 锐捷网络股份有限公司 | A kind of message processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN110661588A (en) | 2020-01-07 |
WO2020001213A1 (en) | 2020-01-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110661588B (en) | Message transmission method, switching device, wireless communication equipment and storage medium | |
CN101937253B (en) | Method, device and system for clock synchronization | |
US11323154B2 (en) | Data transmission method and system, mobile terminal, and data device | |
WO2019052532A1 (en) | Information interaction method, apparatus and device for internet of things device | |
US8984590B2 (en) | Enabling access to key lifetimes for wireless link setup | |
CN111327758B (en) | Camera sharing method and device | |
CN109150677B (en) | Cross-domain access processing method and device and electronic equipment | |
WO2018103405A1 (en) | Method for identifying access point and hotspot, and related product | |
US10033521B2 (en) | Method for training time slot synchronization of nodes in optical burst transport network, node device and network | |
WO2017028651A1 (en) | Method, apparatus and system for performing configuration setting between devices | |
CN108513361B (en) | Channel access method, device and storage medium | |
ES2953712T3 (en) | Slot format indication procedure and apparatus | |
CN111224903B (en) | Data transmission method, data transmission equipment and computer readable storage medium | |
CN111294416A (en) | Method for obtaining IP address and related product | |
JP2021519009A (en) | Transmission method, device, and storage medium for synchronous signal blocks | |
CN108289232B (en) | Control method of playing device, terminal device and storage medium | |
CN112422485B (en) | Communication method and device of transmission control protocol | |
WO2022089313A1 (en) | Communication processing method and apparatus, storage medium, chip and related device | |
CN108199809A (en) | A kind of method for transmitting information, base station and user equipment | |
US20170310634A1 (en) | Network access method, system and terminal device, and computer storage medium | |
US10212215B2 (en) | Apparatus and method for providing metadata with network traffic | |
CN105323373A (en) | Mobile terminal, and method and device for initializing subscriber identity module card of mobile terminal | |
WO2016026291A1 (en) | Wireless data card, communication system, data synchronization method and computer storage medium | |
KR101633924B1 (en) | System and method for wireless communications using MAC address authentication | |
CN107835508B (en) | Method and device for displaying operator name and computer readable storage medium |
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 |