WO2020001213A1 - Message transmission method, switching apparatus, wireless communication device and storage medium - Google Patents

Message transmission method, switching apparatus, wireless communication device and storage medium Download PDF

Info

Publication number
WO2020001213A1
WO2020001213A1 PCT/CN2019/088401 CN2019088401W WO2020001213A1 WO 2020001213 A1 WO2020001213 A1 WO 2020001213A1 CN 2019088401 W CN2019088401 W CN 2019088401W WO 2020001213 A1 WO2020001213 A1 WO 2020001213A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
clock
type
switching device
interface
Prior art date
Application number
PCT/CN2019/088401
Other languages
French (fr)
Chinese (zh)
Inventor
何兴诗
张泽建
吴永航
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2020001213A1 publication Critical patent/WO2020001213A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • H04J3/0667Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes

Abstract

Disclosed in the present application are a message transmission method, and a switching apparatus applied in a wireless communication device, wherein the switching apparatus is configured to transmit a message to a central processing unit in the wireless communication device; the method comprises: receiving at least one message; extracting at least one type of characterization information from the at least one message; determining a clock message the message type of which is a clock type from the at least one message according to the at least one type of characterization information, and acquiring receiving port information corresponding to the clock message; sending the clock message and the receiving port information to the central processing unit by means of a first interface, wherein the first interface is an interface configured to transmit a clock type message in the switching apparatus.

Description

一种报文传输方法、交换装置、无线通讯设备及存储介质Message transmission method, switching device, wireless communication equipment and storage medium
相关申请的交叉引用Cross-reference to related applications
本申请基于申请号为201810690007.9、申请日为2018年06月28日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on a Chinese patent application with an application number of 201810690007.9 and an application date of June 28, 2018, and claims the priority of the Chinese patent application. The entire contents of the Chinese patent application are incorporated herein by reference.
技术领域Technical field
本申请涉及但不限于无线通信技术领域,尤其涉及一种报文传输方法装置、交换装置、无线通讯设备及存储介质。The present application relates to, but is not limited to, the field of wireless communication technologies, and in particular, to a message transmission method device, a switching device, a wireless communication device, and a storage medium.
背景技术Background technique
通信技术的不断发展,无线通讯设备需要获得高精度的时间信号,以支持对时间敏感的业务。With the continuous development of communication technology, wireless communication equipment needs to obtain high-precision time signals to support time-sensitive services.
由于IEEE1588协议,即网络测量和控制系统的精密时钟同步协议标准,能够通过以太网实现严格的时钟同步,精度可达100ns级别,因此,无线通讯设备普遍将从传输网接收的1588报文作为时钟同步信号。无线通讯设备的交换装置上通常对外有多个网口,可以同时连接传输网,每个网口上都会运行1588协议来进行高精度时间同步。Due to the IEEE1588 protocol, which is a precision clock synchronization protocol standard for network measurement and control systems, strict clock synchronization can be achieved through Ethernet with an accuracy of 100ns. Therefore, wireless communication devices generally use 1588 packets received from the transmission network as clocks. Sync signal. There are usually multiple external network ports on the switching device of wireless communication equipment, which can be connected to the transmission network at the same time. Each network port will run the 1588 protocol for high-precision time synchronization.
在相关技术中,无线通讯设备根据1588报文选择最优时钟源时,其中央处理器(Central Processing Unit,CPU)需要获取1588报文的来源端口信息,即接收1588报文的网口的端口信息。无线通讯设备的CPU必须使用与交换装置上的网口数量相同的网卡,每一个网卡接收一个网口收到的1588报文,从而明确接收1588报文的网口的端口信息,如图1所示。因此,无线通讯设备面板的网口数目受CPU支持的最大网卡数量限制,传输1588报文的灵活性较低。In related technologies, when a wireless communication device selects an optimal clock source according to a 1588 message, its Central Processing Unit (CPU) needs to obtain the source port information of the 1588 message, that is, the port of the network port that receives the 1588 message. information. The CPU of the wireless communication device must use the same number of network cards as the network ports on the switching device. Each network card receives the 1588 packets received by one network port, so the port information of the network port that receives the 1588 packets is clearly shown in Figure 1. Show. Therefore, the number of network ports on the wireless communication device panel is limited by the maximum number of network cards supported by the CPU, and the flexibility of transmitting 1588 packets is low.
发明内容Summary of the invention
有鉴于此,本申请实施例期望提供一种报文传输方法、交换装置、无线通讯设备及存储介质,交换装置配置有一个特定接口,通过该特定接口,以特定通道将每一个时钟报文和对应的接收端口信息同时传输给CPU,CPU也就不需要设置大量网卡,从而提高了报文传输的灵活性。In view of this, the embodiments of the present application are expected to provide a message transmission method, a switching device, a wireless communication device, and a storage medium. The switching device is configured with a specific interface through which each clock message and The corresponding receiving port information is transmitted to the CPU at the same time, and the CPU does not need to set a large number of network cards, thereby improving the flexibility of message transmission.
本申请实施例的技术方案是这样实现的:The technical solution of the embodiment of the present application is implemented as follows:
本申请实施例提供了一种报文传输方法,应用于无线通讯设备中的交换装置,所述交换装置配置为向所述无线通讯设备中的中央处理器传输报文,所述方法包括:An embodiment of the present application provides a message transmission method applied to a switching device in a wireless communication device. The switching device is configured to transmit a message to a central processor in the wireless communication device. The method includes:
接收至少一个报文;Receiving at least one message;
从所述至少一个报文中提取出至少一个类型表征信息;Extracting at least one type of characterization information from the at least one message;
根据所述至少一个类型表征信息,从所述至少一个报文中,确定出报文类型为时钟类型的时钟报文,并获取所述时钟报文对应的接收端口信息;Determining, from the at least one message, a clock message whose message type is a clock type according to the at least one type characterization information, and obtaining receiving port information corresponding to the clock message;
通过第一接口将所述时钟报文和所述接收端口信息发送给所述中央处理器;其中,所述第一接口为所述交换装置中配置为传输时钟类型报文的接口。Sending the clock message and the receiving port information to the central processor through a first interface; wherein the first interface is an interface in the switching device configured to transmit a clock type message.
本申请实施例提供了一种交换装置,所述交换装置配置为向无线通讯设备中的中央处理器传输报文,所述交换装置包括:接收模块、获取模块、确定模块、发送模块和第一接口;其中,An embodiment of the present application provides a switching device configured to transmit a message to a central processing unit in a wireless communication device. The switching device includes a receiving module, an obtaining module, a determining module, a sending module, and a first Interface; where,
所述接收模块,配置为接收至少一个报文;The receiving module is configured to receive at least one message;
所述获取模块,配置为从所述至少一个报文中提取出至少一个类型表征信息;The acquisition module is configured to extract at least one type of characterization information from the at least one message;
所述确定模块,配置为根据所述至少一个类型表征信息,从所述至少一个报文中,确定出报文类型为时钟类型的时钟报文,并获取所述时钟报文对应的接收端口信息;The determining module is configured to determine, from the at least one message, a clock message whose message type is a clock type according to the at least one type characterization information, and obtain receiving port information corresponding to the clock message. ;
所述发送模块,配置为通过所述第一接口将所述时钟报文和所述接收端口信息发送给中央处理器;其中,所述第一接口为所述交换装置中配置为传输时钟类型报文的接口。The sending module is configured to send the clock message and the receiving port information to a central processor through the first interface; wherein the first interface is configured to transmit a clock type message in the switching device. Text interface.
本申请实施例提供了一种交换装置,所述交换装置配置为向无线通讯设备中的中央处理器传输报文,所述交换装置包括:An embodiment of the present application provides a switching device configured to transmit a message to a central processing unit in a wireless communication device. The switching device includes:
存储器,配置为保存报文传输的程序;Memory, configured to save programs for message transmission;
处理器,配置为运行所述程序,其中,所述程序运行时执行本申请实施例提供的上述报文传输方法。The processor is configured to run the program, and when the program runs, the foregoing message transmission method provided in the embodiment of the present application is executed.
本申请实施例提供了一种无线通讯设备,所述设备包括:An embodiment of the present application provides a wireless communication device, and the device includes:
上述交换装置;The above exchange device;
中央处理器;其中,所述交换装置配置为向所述中央处理器发送报文。A central processing unit; wherein the switching device is configured to send a message to the central processing unit.
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有一个或者多个程序,所述一个或者多个程序可以被一个或者多个处理器执行,以实现上述报文传输方法。An embodiment of the present application further provides a computer-readable storage medium. The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the foregoing. Message transmission method.
由此可见,在本申请实施例中,交换装置配置为向中央处理器传输报文,无线通讯设备包括:交换装置和中央处理器。交换装置接收至少一个报文;从至少一个报文中提取出至少一个类型表征信息;根据至少一个类型表征信息,从至少一个报文中,确定出报文类型为时钟类型的时钟报文,并获取时钟报文对应的接收端口信息;通过第一接口将时钟报文和接收端口信息发送给中央处理器;其中,第一接口为交换装置中配置为传输时钟类型报文的接口。在本申请实施例中,交换装置配置有一个特定的第一接口,通过该第一接口,可以将每一个时钟报文和对应的接收端口信息同时传输给中央处理器,中央处理器也就不需要设置大量网卡就可以进行数据的传输,从而提高了报文传输的灵活性。It can be seen that, in the embodiment of the present application, the switching device is configured to transmit a message to the central processing unit, and the wireless communication device includes the switching device and the central processing unit. The switching device receives at least one message; extracts at least one type of characterization information from the at least one message; determines, based on the at least one type of characterization information, at least one message from the at least one message, a clock message of a clock type, and Acquire the receiving port information corresponding to the clock message; send the clock message and the receiving port information to the central processor through the first interface; wherein the first interface is an interface in the switching device configured to transmit a clock type message. In the embodiment of the present application, the switching device is configured with a specific first interface, and through this first interface, each clock packet and corresponding receiving port information can be transmitted to the central processor at the same time, and the central processor does not A large number of network cards need to be set for data transmission, which improves the flexibility of message transmission.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为相关技术中的报文传输的示意图;FIG. 1 is a schematic diagram of message transmission in the related art;
图2为本申请实施例提供的一种报文传输方法的流程示意图一;FIG. 2 is a first flowchart of a message transmission method according to an embodiment of the present application; FIG.
图3为本申请实施例提供的一种报文传输方法的流程示意图二;FIG. 3 is a second flowchart of a message transmission method according to an embodiment of the present application; FIG.
图4为本申请实施例提供的一种示例性的报文传输的示意图一;FIG. 4 is a first schematic diagram of exemplary packet transmission according to an embodiment of the present application; FIG.
图5为本申请实施例提供的一种示例性的报文传输的示意图二;FIG. 5 is a second schematic diagram of an exemplary message transmission according to an embodiment of the present application; FIG.
图6为本申请实施例提供的一种交换装置的结构示意图一;FIG. 6 is a first schematic structural diagram of a switching device according to an embodiment of the present application; FIG.
图7为本申请实施例提供的一种交换装置的结构示意图二;7 is a second schematic structural diagram of a switching device according to an embodiment of the present application;
图8为本申请实施例提供的一种无线通讯设备的结构示意图。FIG. 8 is a schematic structural diagram of a wireless communication device according to an embodiment of the present application.
具体实施方式detailed description
以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。The present application is further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the application, and are not used to limit the application.
本申请实施例提供了一种报文传输方法,应用于无线通讯设备中的交换装置,该交换装置配置为向无线通讯设备中的中央处理器传输报文。图2为本申请实施例提供的一种报文传输方法的流程示意图一。如图2所示,主要包括以下步骤:An embodiment of the present application provides a message transmission method, which is applied to a switching device in a wireless communication device, and the switching device is configured to transmit a message to a central processing unit in the wireless communication device. FIG. 2 is a first flowchart of a message transmission method according to an embodiment of the present application. As shown in Figure 2, it mainly includes the following steps:
S201、接收至少一个报文。S201. Receive at least one message.
在一些实施例中,交换装置可以接收到至少一个报文。In some embodiments, the switching device may receive at least one message.
需要说明的是,在一些实施例中,无线通讯设备中的交换装置上设置有至少一个对外网口,交换装置可以通过至少一个对外网口接收至少一个报文。对外网口数量本申请实施例不作限定。It should be noted that, in some embodiments, the switching device in the wireless communication device is provided with at least one external network port, and the switching device can receive at least one message through the at least one external network port. The number of external network ports is not limited in the embodiment of the present application.
在一些实施例中,交换装置接收到的至少一个报文可以为是从一个对外网口接收到的,也可以是从不同对外网口接收到的。接收报文的网口和报文本申请实施例不作限定。In some embodiments, the at least one message received by the switching device may be received from one external network port, or may be received from a different external network port. The embodiment of the network port and message application for receiving the message is not limited.
在一些实施例中,无线通讯设备可以为无线基站设备,具体的无线通 讯设备本申请实施例不作限定。In some embodiments, the wireless communication device may be a wireless base station device, and the specific wireless communication device is not limited in this embodiment of the present application.
在一些实施例中,交换装置接收到的至少一个报文来源于外界传输网,交换装置即通过对外网口可以接收到传输网通过以太网传输的报文。In some embodiments, at least one message received by the switching device originates from an external transmission network, and the switching device can receive a message transmitted by the transmission network through the Ethernet through an external network port.
在一些实施例中,无线通讯设备可能部署于边远地区,因此,交换装置通过对外网口接收到的报文可能是层二组播报文,或者层三用户数据报协议(User Datagram Protocol,UDP)单播报文,本申请实施例不作限定。In some embodiments, the wireless communication device may be deployed in a remote area. Therefore, the message received by the switching device through the external network port may be a layer two multicast message or a layer three user datagram protocol (User Datagram Protocol, UDP). ) Unicast message, which is not limited in the embodiment of the present application.
S202、从至少一个报文中提取出至少一个类型表征信息。S202. Extract at least one type of characterization information from at least one message.
在一些实施例中,交换装置在通过对外网口接收到至少一个报文之后,可以从至少一个报文中提取出至少一个类型表征信息。In some embodiments, after the switching device receives at least one message through the external network port, it can extract at least one type of characterization information from the at least one message.
可以理解的是,在一些实施例中,交换装置接收到的至少一个报文中,每一个报文内都包含类型表征信息,因此,交换装置可以直接从每一个报文中提取相对应的类型表征信息,即从至少一个报文中提取出至少一个类型表征信息。具体类型表征信息本申请实施例不作限定。It can be understood that in some embodiments, in at least one message received by the switching device, each message contains type characterization information, so the switching device can directly extract a corresponding type from each message. Characterization information, that is, at least one type of characterization information is extracted from at least one message. Specific types of characterization information are not limited in the embodiments of the present application.
在一些实施例中,类型表征信息可以为目的物理(Media Access Control,MAC)地址,或者,以太网协议类型和源端口信息。In some embodiments, the type characterization information may be a destination physical (Media Access Control, MAC) address, or Ethernet protocol type and source port information.
在一些实施例中,类型表征信息为目的物理地址,交换装置可以直接从至少一个报文中提取出至少一个目的物理地址,即交换装置从每一个报文中提取出该报文相对应的目的物理地址。In some embodiments, the type characterization 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 the corresponding destination of the message from each message. Physical address.
在一些实施例中,类型表征信息为以太网协议类型和源端口信息,交换装置可以直接从至少一个报文中提取出至少一个以太网协议类型和至少一个源端口信息,即交换装置从每一个报文中提取出该报文相对应的以太网协议类型和源端口信息。In some embodiments, the type characterization information is Ethernet protocol type and source port information, and the switching device can directly extract at least one Ethernet protocol type and at least one source port information from the at least one message, that is, the switching device The packet extracts the Ethernet protocol type and source port information corresponding to the packet.
S203、根据至少一个类型表征信息,从至少一个报文中,确定出报文类型为时钟类型的时钟报文,并获取时钟报文对应的接收端口信息。S203. According to at least one type characterization information, from at least one message, determine a clock message whose message type is a clock type, and obtain receiving port information corresponding to the clock message.
在一些实施例中,交换装置在从至少一个报文中提取出至少一个类型表征信息之后,可以根据至少一个类型表征信息,从至少一个报文中,确 定出报文类型为时钟类型的时钟报文,并获取时钟报文对应的接收端口信息。In some embodiments, after the switching device extracts at least one type of characterization information from the at least one message, it may determine, based on the at least one type of characterization information, from at least one message, a clock message with a message type of clock type. And obtain the receiving port information corresponding to the clock message.
在一些实施例中,交换装置由于可以提取不同的类型表征信息,因此,可以按照不同的方法从至少一个报文中,确定出报文类型为时钟类型的时钟报文。In some embodiments, since the switching device can extract different types of characterization information, a clock message with a message type of clock type can be determined from at least one message according to different methods.
在一些实施例中,类型表征信息为目的物理地址,交换装置从至少一个报文中,将与至少一个报文对应的至少一个目的物理地址与预设目的物理地址进行匹配,获得至少一个匹配结果,再将至少一个匹配结果中,匹配成功的目的物理地址对应的报文确定为时钟报文。In some embodiments, the type characterization information is a destination physical address, and the switching device matches at least one destination physical address corresponding to the at least one message with a preset destination physical address from at least one message to obtain at least one matching result. Then, in the at least one matching result, the packet corresponding to the successfully matched destination physical address is determined as a clock packet.
示例性的,交换装置接收到两个报文,分别为第一报文和第二报文,之后,交换装置提取第一报文对应的目的物理地址,即第一物理地址,并提取第二报文对应的目的物理地址,即第二物理地址,将第一物理地址和第二物理地址分别与预设物理地址进行匹配,获得第一匹配结果和第二匹配结果。最后,如果第一匹配结果为匹配成功,则第一物理地址对应的第一报文为时钟报文,如果第二匹配结果为匹配成功,则第二物理地址对应的第二报文为时钟报文。Exemplarily, the switching device receives two messages, namely a first message and a second message. After that, the switching device extracts the destination physical address corresponding to the first message, that is, the first physical address, and extracts the second message. The destination physical address corresponding to the message, that is, the second physical address, 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. Finally, if the first matching result is a successful match, the first message corresponding to the first physical address is a clock message, and if the second matching result is a successful match, the second message corresponding to the second physical address is a clock message. Text.
在一些实施例中,交换装置还可以从与至少一个报文对应的至少一个类型表征信息中,确定出以太网协议类型为预设类型,且源端口信息为预设源端口信息的第一类型表征信息,再将第一类型表征信息对应的报文确定为时钟报文。In some embodiments, the switching device may further determine, from at least one type characterization information corresponding to the at least one message, that the Ethernet protocol type is a preset type, and the source port information is a first type of the preset source port information. Characterization information, and then determine the message corresponding to the first type of characterization information as a clock message.
在一些实施例中,类型表征信息可以包括:以太网协议类型和源端口信息,也就是说,一个报文对应的类型表征信息,可以为该报文对应的以太网协议类型和源端口信息,当该报文对应的类型表征信息中,以太网协议类型为预设类型,且源端口信息为预设源端口信息时,即该报文对应的类型表征信息为第一类型表征信息,因此,交换装置确定该报文为时钟报文。In some embodiments, the type characterization information may include: Ethernet protocol type and source port information, that is, the type characterization information corresponding to a message may be the Ethernet protocol type and source port information corresponding to the message, When the type characterization information corresponding to the message is the preset type and the source port information is the preset source port information, that is, the type characterization information corresponding to the message is the first type characterization information. Therefore, The switching device determines that the message is a clock message.
示例性的,交换装置接收到两个报文,分别为第一报文和第二报文,之后,交换装置提取第一报文对应的以太网协议类型,即第一以太网协议类型,以及第一报文对应的源端口信息,即第一源端口信息,并提取第二报文对应的以太网协议类型,即第二以太网协议类型,以及第二报文对应的源端口信息,即第二源端口信息。如果第一以太网协议类型为预设类型,且第一源端口信息为预设源端口信息,交换装置将第一以太网协议类型和第一源端口信息确定为第一类型表征信息,从而将第一报文确定为时钟报文。同样,如果第二以太网协议类型为预设类型,且第二源端口信息为预设源端口信息,交换装置将第二以太网协议类型和第二源端口信息确定为第一类型表征信息,从而将第二报文确定为时钟报文。Exemplarily, the switching device receives two messages, namely a first message and a second message, and thereafter, the switching device extracts the Ethernet protocol type corresponding to the first message, that is, the first Ethernet protocol type, and The source port information corresponding to the first packet, that is, the first source port information, and the Ethernet protocol type corresponding to the second packet, that is, the second Ethernet protocol type, and the source port information corresponding to the second packet, 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 the first type characterization information, thereby The first message is determined as a clock message. Similarly, if the second Ethernet protocol type is a preset type and the second source port information is preset source port information, the switching device determines the second Ethernet protocol type and the second source port information as the first type characterization information, Thereby, the second message is determined as a clock message.
示例性的,预设类型为UDP,预设源端口信息为319和320。交换装置接收到第一报文,提取第一报文对应的以太网协议类型,即第一以太网协议类型,以及第一报文对应的源端口信息,即第一源端口信息。当第一报文对应的第一以太网协议类型为UDP,且第一报文对应的第一源端口信息为319,或者320时,交换装置确定报文的报文类型为时钟类型,报文为1588报文。Exemplarily, the preset type is UDP, and the preset source port information is 319 and 320. After receiving the first packet, the switching device extracts the Ethernet protocol type corresponding to the first packet, that is, the first Ethernet protocol type, and the source port information corresponding to the first packet, 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 device determines that the packet type of the packet is a clock type, and the packet It is a 1588 message.
需要说明的是,在一些实施例中,由于交换装置可以接收到至少一个报文,因此,对于接收到的报文,只要对应的类型表征信息可以表征出其报文类型为时钟类型,即可确定该报文为时钟报文,也就是说,时钟报文可以为多个,只要类型表征信息满足相关条件即可。时钟报文数量本申请实施例不作限定。It should be noted that, in some embodiments, since the switching device can receive at least one message, as for the received message, as long as the corresponding type characterization information can indicate that the message type is a clock type, It is determined that the message is a clock message, that is, there can be multiple clock messages, as long as the type characterization information satisfies relevant conditions. The number of clock messages is not limited in the embodiment of the present application.
在一些实施例中,交换装置在确定出时钟报文之后,还可以直接获取时钟报文对应的接收端口信息。In some embodiments, after determining the clock message, the switching device may directly obtain the receiving port information corresponding to the clock message.
可以理解的是,在一些实施例中,由于交换装置上设置有至少一个对外网口,因此,每一个对外网口都配置有相对应的端口号。交换装置可以直接获取到接收时钟报文的对外网口的端口号,即为该时钟报文对应的接 收端口信息。时钟报文对应的接收端口信息本申请实施例不作限定。It can be understood that, in some embodiments, since the switching device is provided with at least one external network port, each external network port is configured with a corresponding port number. The switching device can directly obtain the port number of the external network port that receives the clock message, that is, the receiving port information corresponding to the clock message. The receiving port information corresponding to the clock message is not limited in this embodiment of the present application.
示例性的,交换装置中设置有3个对外网口,分别为网口1、网口2和网口3,网口1对应的端口号为A,网口2对应的端口号为B,网口3对应的端口号为C。交换装置通过网口1接收到第一报文,通过网口3接收到第二报文。其中,第一报文确定为时钟报文,因此,交换装置可以直接获取到第一报文对应的接收端口信息为A。Exemplarily, three external network ports are provided in the switching device, which are network port 1, network port 2, and network port 3. The port number corresponding to network port 1 is A, and the port number corresponding to network port 2 is B. The network The port number corresponding to port 3 is C. The switching device receives a first message through network port 1 and a second message through network port 3. The first message is determined as a clock message. Therefore, the switching device can directly obtain the receiving port information corresponding to the first message as A.
S204、通过第一接口将时钟报文和接收端口信息发送给中央处理器;其中,第一接口为交换装置中配置为传输时钟类型报文的接口。S204. Send the clock message and the receiving port information to the central processor through the first interface. The first interface is an interface in the switching device configured to transmit a clock type message.
在一些实施例中,交换装置在确定时钟报文,并获取时钟报文对应的接收端口信息之后,可以通过第一接口将时钟报文和时钟报文对应的接收端口信息发送给CPU。In some embodiments, after determining the clock message and obtaining the receiving port information corresponding to the clock message, the switching device may send the clock message and the receiving port information corresponding to the clock message to the CPU through the first interface.
可以理解的是,在一些实施例中,对于时钟报文,需要关注交换装置接收时钟报文的第一网口的端口信息。因此,交换装置在获取时钟报文对应的接收端口信息之后,在发送时钟报文给CPU的同时将时钟报文对应的接收端口信息发送给CPU。It can be understood that, in some embodiments, for the clock message, it is necessary to pay attention to the port information of the first network port on which the switching device receives the clock message. Therefore, after acquiring the receiving port information corresponding to the clock message, the switching device sends the receiving port information corresponding to the clock message to the CPU while sending the clock message to the CPU.
需要说明的是,在一些实施例中,交换装置上设置有第一接口,第一接口为交换装置中配置为传输时钟类型报文的接口。It should be noted that, in some embodiments, the switching device is provided with a first interface, and the first interface is an interface configured in the switching device to transmit a clock-type message.
需要说明的是,在一些实施例中,由于扩展外围组件互联(Extend Peripheral Component Interconnect,PCIE)接口可以同时传输报文和相关信息,因此,第一接口可以为(Extend Peripheral Component Interconnect,PCIE)接口。交换装置可以通过PCIE接口将时钟报文和时钟报文对应的接收端口信息发送给CPU。It should be noted that, in some embodiments, since the Extend Peripheral Component Interconnect (PCIE) interface can transmit messages and related information at the same time, the first interface may be the Extend Peripheral Component Interconnect (PCIE) interface . The switching device may send the clock message and the receiving port information corresponding to the clock message to the CPU through the PCIE interface.
在一些实施例中,交换装置可以根据时钟报文,生成时钟报文对应的附加信息,之后将时钟报文对应的接收端口信息写入时钟报文对应的附加信息,最后,通过第一接口将时钟报文和时钟报文对应的附加信息发送给CPU。In some embodiments, the switching device may generate additional information corresponding to the clock message according to the clock message, and then write the receiving port information corresponding to the clock message to the additional information corresponding to the clock message. Finally, the first interface The clock message and additional information corresponding to the clock message are sent to the CPU.
需要说明的是,在一些实施例中,时钟报文对应的附加信息,可以为时钟报文的基本信息,即时钟报文的一个概述信息。具体的时钟报文的附加信息本申请实施例不作限定。It should be noted that, in some embodiments, the additional information corresponding to the clock message may be basic information of the clock message, that is, an overview information of the clock message. The specific additional information of the clock message is not limited in the embodiment of the present application.
可以理解的是,在一些实施例中,交换装置通过第一接口将时钟报文对应的附加信息和时钟报文发送给CPU,CPU就可以根据时钟报文对应的附加信息,获知交换装置中接收时钟报文的对外网口具体是哪一个,从而进行后续时钟协议处理,例如选择最优时钟源。It can be understood that, in some embodiments, the switching device sends the additional information corresponding to the clock message and the clock message to the CPU through the first interface, and the CPU can obtain the receiving information in the switching device according to the additional information corresponding to the clock message. Which is the external network port of the clock packet to perform subsequent clock protocol processing, such as selecting the optimal clock source.
需要说明的是,在一些实施例中,交换装置通过第一接口将时钟报文对应的接收端口信息和时钟报文发送给CPU之前,由于已经确定为时钟报文,因此,还可以读取交换装置内部的时钟计数器,获取时钟报文的驻留时间,之后,将时钟报文的驻留时间写入时钟报文的配置(Config Field,CF)字段。It should be noted that, in some embodiments, before the switching device sends the receiving port information and the clock message corresponding to the clock message to the CPU through the first interface, since it has been determined as a clock message, the exchange can also read The clock counter inside the device acquires the dwell time of the clock message, and then writes the dwell time of the clock message into the Config (Field) (CF) field of the clock message.
需要说明的是,在一些实施例中,时钟报文的驻留时间,实际上就是交换装置接收到时钟报文至发出时钟报文的时长,具体的时钟报文的驻留时间本申请实施例不作限定。It should be noted that, in some embodiments, the dwell time of the clock message is actually the length of time from when the switching device receives the clock message to when it sends the clock message. The specific dwell time of the clock message is an embodiment of the present application. Not limited.
在一些实施例中,交换装置将时钟报文的驻留时间写入时钟报文的配置字段,CPU在接收到第一报文时,通过读取时钟报文的配置字段,即可获知时钟报文的驻留时间,从而可以进行后续时钟协议处理。In some embodiments, the switching device writes the dwell time of the clock message into the configuration field of the clock message. When the CPU receives the first message, the clock message can be obtained by reading the configuration field of the clock message. The dwell time of the text can be used for subsequent clock protocol processing.
在一些实施例中,交换装置在从至少一个报文中确定出时钟报文之后,对于非时钟报文的报文也需要按照其它方式来发送到CPU,进行传输,中央处理器也就不需要设置大量网卡就可以进行数据的传输,从而提高了报文传输的灵活性。In some embodiments, after the switching device determines the clock message from at least one message, the non-clock message also needs to be sent to the CPU in other ways for transmission, and the central processor does not need to A large number of network cards can be set for data transmission, which improves the flexibility of message transmission.
图3为本申请实施例提供的一种报文传输方法的流程示意图二。如图3所示,步骤S203之后,还可包括步骤S301~S302,如下:FIG. 3 is a second flowchart of a message transmission method according to an embodiment of the present application. As shown in FIG. 3, after step S203, steps S301 to S302 can also be included, as follows:
S301、将至少一个报文中,非时钟报文的报文确定为报文类型为数据类型的数据报文。S301. Determine, among at least one message, a non-clock message as a data message with a message type of a data type.
在一些实施例中,交换装置在从至少一个报文中确定出时钟报文之后,将至少一个报文中,非时钟报文的报文确定为报文类型为数据类型的数据报文。In some embodiments, after the switching device determines the clock message from the at least one message, the switching device determines, from the at least one message, a non-clock message to be a data message with a message type of a data type.
示例性的,交换装置接收到两个报文,分别为第一报文和第二报文,其中,从这两个报文中,确定出第一报文为时钟报文,因此,直接可以将第二报文确定为数据报文。Exemplarily, the switching device receives two messages, namely a first message and a second message, and from these two messages, it is determined that the first message is a clock message. Therefore, it is possible to directly The second message is determined as a data message.
需要说明的是,在一些实施例中,由于交换装置可以接收到至少一个报文,因此,数据报文可能为多个。数据报文数量本申请实施例不作限定。It should be noted that, in some embodiments, since the switching device can receive at least one message, there may be multiple data messages. The number of data packets is not limited in the embodiment of the present application.
S302、通过第二接口将数据报文发送给中央处理器;其中,第二接口为交换装置中配置为传输数据类型报文的接口。S302. The data packet is sent to the central processing unit through a second interface. The second interface is an interface in the switching device configured to transmit a data type packet.
在一些实施例中,交换装置在确定数据报文之后,通过第二接口将数据报文发送给CPU。In some embodiments, after determining the data packet, the switching device sends the data packet to the CPU through the second interface.
在一些实施例中,交换装置上设置有第二接口,第二接口为交换装置中配置为传输数据类型报文的接口。具体的第二接口本申请实施例不作限定。In some embodiments, the switching device is provided with a second interface, and the second interface is an interface in the switching device configured to transmit data type packets. The specific second interface is not limited in the embodiment of the present application.
在一些实施例中,对于数据报文,不需要关注交换装置中接收数据报文对应的接收端口信息。因此,交换装置可以直接通过第二接口,以以太网将数据报文发送给CPU。CPU在接收到数据报文之后,即可根据数据报文,进行后续数据报文处理。In some embodiments, for the data message, there is no need to pay attention to the receiving port information corresponding to the received data message in the switching device. Therefore, the switching device can directly send the data message to the CPU through the second interface through Ethernet. After receiving the data message, the CPU can perform subsequent data message processing according to the data message.
在一些实施例中,无线通讯设备可以包括多个CPU。CPU个数本申请实施例不作限定。In some embodiments, the wireless communication device may include multiple CPUs. The number of CPUs is not limited in the embodiment of the present application.
图4为本申请实施例提供的一种示例性的报文传输的示意图一。如图4所示,若无线通讯设备仅包括一个CPU,当交换装置通过对外网口接收到的报文为时钟报文时,交换装置可以通过第一接口将时钟报文对应的接收端口信息和时钟报文,发送给该CPU,如发送给该CPU中配置为处理时钟报文的模块,第一接口为PCIE接口,该通道为PCIE通道。当交换装置通 过对外网口接收到的为数据报文时,交换装置可以将数据报文通过第二接口发送给CPU,如发送给该CPU中配置为处理数据报文的模块。FIG. 4 is a first schematic diagram of an exemplary message transmission according to an embodiment of the present application. As shown in Figure 4, if the wireless communication device includes only one CPU, when the message received by the switching device through the external network port is a clock message, the switching device may use the first interface to receive the receiving port information corresponding to the clock message and The clock message is sent to the CPU. For example, the clock message is sent to a module configured to process the clock message in the CPU. The first interface is a PCIE interface, and the channel is a PCIE channel. When the switching device receives the data message through the external network port, the switching device may send the data message to the CPU through the second interface, for example, to a module in the CPU configured to process the data message.
图5为本申请实施例提供的一种示例性的报文传输的示意图二。如图5所示,若CPU包括两个CPU,分别为第一CPU和第二CPU,其中第一CPU包括配置为处理时钟报文的模块,第二CPU包括配置为处理数据报文的模块。当交换装置通过对外网口接收到的报文为时钟报文时,交换装置可以通过第一接口将时钟报文对应的接收端口信息和时钟报文,发送给第一CPU中配置为处理时钟报文的模块,第一接口为PCIE接口,该通道为PCIE通道。当交换装置通过对外网口接收到的为数据报文时,交换装置可以将数据报文通过第二接口发送给第二CPU,如发送给第二CPU中配置为处理数据报文的模块。FIG. 5 is a second schematic diagram of an exemplary message transmission according to an embodiment of the present application. As shown in FIG. 5, if the CPU includes two CPUs, namely a first CPU and a second CPU, the first CPU includes a module configured to process a clock message, and the second CPU includes a module configured to process a data message. When the message received by the switching device through the external network port is a clock message, the switching device may send the receiving port information and the clock message corresponding to the clock message to the first CPU and configured to process the clock message through the first interface. Module, the first interface is a PCIE interface, and the channel is a PCIE channel. When the switching device receives the data message through the external network port, the switching device may send the data message to the second CPU through the second interface, for example, to the module configured to process the data message in the second CPU.
本申请实施例提供了一种报文传输方法,应用于交换装置,交换装置配置为向中央处理器传输报文,无线通讯设备包括:交换装置和中央处理器。交换装置接收至少一个报文;从至少一个报文中提取出至少一个类型表征信息;根据至少一个类型表征信息,从至少一个报文中,确定出报文类型为时钟类型的时钟报文,并获取时钟报文对应的接收端口信息;通过第一接口将时钟报文和接收端口信息发送给中央处理器;其中,第一接口为交换装置中配置为传输时钟类型报文的接口。也就是说,在相关技术中,为了使CPU获知交换装置中接收时钟报文的网口的端口信息,必须在CPU中为交换装置中的每一个网口配置相对应的网卡,来接收相对应网口接收到的时钟报文,报文传输不够灵活。在本申请实施例中,交换装置配置有一个特定的第一接口,通过该第一接口,可以将每一个时钟报文和对应的接收端口信息同时传输给中央处理器,中央处理器也就不需要设置大量网卡就可以进行数据的传输,从而提高了报文传输的灵活性。An embodiment of the present application provides a message transmission method, which is applied to a switching device. The switching device is configured to transmit a message to a central processing unit. The wireless communication device includes a switching unit and a central processing unit. The switching device receives at least one message; extracts at least one type of characterization information from the at least one message; determines, based on the at least one type of characterization information, at least one message from the at least one message, a clock message of a clock type, and Acquire the receiving port information corresponding to the clock message; send the clock message and the receiving port information to the central processor through the first interface; wherein the first interface is an interface in the switching device configured to transmit a clock type message. That is, in the related art, in order for the CPU to know the port information of the network port in the switching device that receives the clock message, a corresponding network card must be configured in the CPU for each network port in the switching device to receive the corresponding The clock packets received by the network port are not flexible enough to transmit. In the embodiment of the present application, the switching device is configured with a specific first interface, and through this first interface, each clock packet and corresponding receiving port information can be transmitted to the central processor at the same time, and the central processor does not A large number of network cards need to be set for data transmission, which improves the flexibility of message transmission.
图6为本申请实施例提供的一种交换装置的结构示意图。如图6所示,所述交换装置1,所述交换装置1配置为向无线通讯设备中的中央处理器传 输报文,包括:接收模块601、获取模块602、确定模块603、发送模块604和第一接口605;其中,FIG. 6 is a schematic structural diagram of a switching device according to an embodiment of the present application. As shown in FIG. 6, the switching device 1 configured to transmit a message to a central processing unit in a wireless communication device includes a receiving module 601, an obtaining module 602, a determining module 603, a sending module 604, and First interface 605;
所述接收模块601,配置为接收至少一个报文;The receiving module 601 is configured to receive at least one message;
所述获取模块602,配置为从所述至少一个报文中提取出至少一个类型表征信息;The obtaining module 602 is configured to extract at least one type characterization information from the at least one message;
所述确定模块603,配置为根据所述至少一个类型表征信息,从所述至少一个报文中,确定出报文类型为时钟类型的时钟报文,并获取所述时钟报文对应的接收端口信息;The determining module 603 is configured to determine, from the at least one message, a clock message whose message type is a clock type according to the at least one type characterization information, and obtain a receiving port corresponding to the clock message. information;
所述发送模块604,配置为通过第一接口605将所述时钟报文和所述接收端口信息发送给中央处理器;其中,所述第一接口605为所述交换装置中配置为传输时钟类型报文的接口。The sending module 604 is configured to send the clock packet and the receiving port information to a central processor through a first interface 605; wherein the first interface 605 is configured as a transmission clock type in the switching device The interface of the message.
在一些实施例中,所述至少一个类型表征信息为至少一个目的物理地址,所述确定模块603,配置为从所述至少一个报文中,将与所述至少一个报文对应的所述至少一个目的物理地址与预设目的物理地址进行匹配,获得至少一个匹配结果;将所述至少一个匹配结果中,匹配成功的目的物理地址对应的报文确定为所述时钟报文。In some embodiments, the at least one type characterization information is at least one destination physical address, and the determining module 603 is configured to, from the at least one message, match the at least one message corresponding to the at least one message. A destination physical address is matched with a preset destination physical address to obtain at least one matching result; and a message corresponding to the successfully matched destination physical address in the at least one matching result is determined as the clock message.
所述确定模块603,还配置为从与所述至少一个报文对应的所述至少一个类型表征信息中,确定出以太网协议类型为预设类型,且源端口信息为预设源端口信息的第一类型表征信息;将所述第一类型表征信息对应的报文确定为所述时钟报文。The determining module 603 is further configured to determine, from the at least one type characterization information corresponding to the at least one message, that the Ethernet protocol type is a preset type and the source port information is preset source port information. The first type of characterization information; determining a message corresponding to the first type of characterization information as the clock message.
在一些实施例中,所述发送模块604,配置为根据所述时钟报文,生成所述时钟报文对应的附加信息;将所述接收端口信息写入所述附加信息;通过所述第一接口605将所述时钟报文和所述附加信息发送给所述中央处理器。In some embodiments, the sending module 604 is configured to generate additional information corresponding to the clock message according to the clock message; write the receiving port information into the additional information; and pass the first The interface 605 sends the clock message and the additional information to the central processing unit.
在一些实施例中,所述交换装置1还包括:写入模块;其中,In some embodiments, the switching device 1 further includes: a writing module; wherein,
所述写入模块,配置为在所述通过第一接口605将所述时钟报文和所 述接收端口信息发送给所述中央处理器之前,获取所述时钟报文的驻留时间;将所述时钟报文的驻留时间写入所述时钟报文的配置字段。The writing module is configured to obtain a dwell time of the clock message before sending the clock message and the receiving port information to the central processor through the first interface 605; The dwell time of the clock message is written into a configuration field of the clock message.
在一些实施例中,图7为本申请实施例提供的一种交换装置的结构示意图,如图7所示,所述交换装置1还包括:第二接口607;In some embodiments, FIG. 7 is a schematic structural diagram of a switching device according to an embodiment of the present application. As shown in FIG. 7, the switching device 1 further includes: a second interface 607;
所述确定模块603,还配置为在所述确定出报文类型为时钟类型的时钟报文之后,将所述至少一个报文中,非所述时钟报文的报文确定为报文类型为数据类型的数据报文;The determining module 603 is further configured to determine, after the clock message whose message type is a clock type is determined, among the at least one message, a message which is not the clock message is a message type of Data message of data type;
所述发送模块604,还配置为通过所述第二接口607将数据报文发送给所述中央处理器;其中,所述第二接口607为所述交换装置中配置为传输数据类型报文的接口。The sending module 604 is further configured to send a data packet to the central processor through the second interface 607; wherein the second interface 607 is configured in the switching device to transmit a data type packet. interface.
本申请实施例提供了一种交换装置,该交换装置包括:接收模块、获取模块、确定模块、发送模块和第一接口;其中,接收模块601,配置为接收至少一个报文;获取模块,配置为从至少一个报文中提取出至少一个类型表征信息;确定模块,配置为根据至少一个类型表征信息,从至少一个报文中,确定出报文类型为时钟类型的时钟报文,并获取时钟报文对应的接收端口信息;发送模块,配置为通过第一接口605将时钟报文和接收端口信息发送给中央处理器;其中,第一接口为交换装置中配置为传输时钟类型报文的接口。也就是说,在相关技术中,为了使CPU获知交换装置中接收时钟报文的网口的端口信息,必须在CPU中为交换装置中的每一个网口配置相对应的网卡,来接收相对应网口接收到的时钟报文,报文传输不够灵活。在本申请实施例中,交换装置配置有一个特定的第一接口,通过该第一接口,可以将每一个时钟报文和对应的接收端口信息同时传输给中央处理器,中央处理器也就不需要设置大量网卡就可以进行数据的传输,从而提高了报文传输的灵活性。An embodiment of the present application provides a switching device. The switching device includes a receiving module, an acquiring module, a determining module, a transmitting module, and a first interface. The receiving module 601 is configured to receive at least one message. The acquiring module is configured. In order to extract at least one type of characterization information from at least one message, the determining module is configured to determine, based on the at least one type of characterization information, from at least one message, a clock message of a clock type and obtain a clock. The receiving port information corresponding to the message; the sending module is configured to send the clock message and the receiving port information to the central processor through the first interface 605; wherein the first interface is an interface in the switching device configured to transmit a clock type message . That is, in the related art, in order for the CPU to know the port information of the network port in the switching device that receives the clock message, a corresponding network card must be configured in the CPU for each network port in the switching device to receive the corresponding The clock packets received by the network port are not flexible enough to transmit. In the embodiment of the present application, the switching device is configured with a specific first interface, and through this first interface, each clock packet and corresponding receiving port information can be transmitted to the central processor at the same time, and the central processor does not A large number of network cards need to be set for data transmission, which improves the flexibility of message transmission.
本申请实施例提供了一种无线通讯设备,图8为本申请实施例提供的一种无线通讯设备的结构示意图。如图8所示,所述设备包括:An embodiment of the present application provides a wireless communication device. FIG. 8 is a schematic structural diagram of a wireless communication device according to an embodiment of the present application. As shown in FIG. 8, the device includes:
上述交换装置1;The above-mentioned exchange device 1;
中央处理器2;其中,所述交换装置1配置为向所述中央处理器2发送报文。A central processing unit 2; wherein the switching device 1 is configured to send a message to the central processing unit 2.
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有一个或者多个程序,所述一个或者多个程序可以被一个或者多个处理器执行,以实现上述报文传输方法。计算机可读存储介质可以是是易失性存储器(volatile memory),例如随机存取存储器(Random-Access Memory,RAM);或者非易失性存储器(non-volatile memory),例如只读存储器(Read-Only Memory,ROM),快闪存储器(flash memory),硬盘(Hard Disk Drive,HDD)或固态硬盘(Solid-State Drive,SSD);也可以是包括上述存储器之一或任意组合的各自设备,如移动电话、计算机、平板设备、个人数字助理等。An embodiment of the present application further provides a computer-readable storage medium. The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the foregoing. Message transmission method. The computer-readable storage medium may be a volatile memory (for example, Random-Access Memory (RAM); or a non-volatile memory (for example, Read-only memory). -Only Memory (ROM), flash memory (Hard Disk Drive (HDD) or Solid-State Drive (SSD); it can also be a respective device including one or any combination of the above memories, Such as mobile phones, computers, tablet devices, personal digital assistants, etc.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as a method, a system, or a computer program product. Therefore, this application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Moreover, this application may take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, magnetic disk storage, optical storage, and the like) containing computer-usable program code.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程信号处理设备的处理器以产生一个机器,使得通过计算机或其他可编程信号处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。This application is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present application. It should be understood that each process and / or block in the flowcharts and / or block diagrams, and combinations of processes and / or blocks in the flowcharts 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 device to produce a machine such that the instructions generated by the processor of the computer or other programmable signal processing device are used to generate instructions Means for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.
这些计算机程序指令也可存储在能引导计算机或其他可编程信号处理 设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable signal processing device to work in a particular manner such that the instructions stored in the computer-readable memory produce a manufactured article including an instruction device, the instructions The device implements the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程信号处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable signal processing device, so that a series of steps can be performed on the computer or other programmable device to produce a computer-implemented process, which can be executed on the computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.
以上所述,仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。The above descriptions are merely preferred embodiments of the present application, and are not intended to limit the protection scope of the present application.

Claims (14)

  1. 一种报文传输方法,应用于无线通讯设备中的交换装置,所述交换装置配置为向所述无线通讯设备中的中央处理器传输报文,所述方法包括:A message transmission method is applied to a switching device in a wireless communication device. The switching device is configured to transmit a message to a central processing unit in the wireless communication device. The method includes:
    接收至少一个报文;Receiving at least one message;
    从所述至少一个报文中提取出至少一个类型表征信息;Extracting at least one type of characterization information from the at least one message;
    根据所述至少一个类型表征信息,从所述至少一个报文中,确定出报文类型为时钟类型的时钟报文,并获取所述时钟报文对应的接收端口信息;Determining, from the at least one message, a clock message whose message type is a clock type according to the at least one type characterization information, and obtaining receiving port information corresponding to the clock message;
    通过第一接口将所述时钟报文和所述接收端口信息发送给所述中央处理器;其中,所述第一接口为所述交换装置中配置为传输时钟类型报文的接口。Sending the clock message and the receiving port information to the central processor through a first interface; wherein the first interface is an interface in the switching device configured to transmit a clock type message.
  2. 根据权利要求1所述的方法,其中,所述至少一个类型表征信息为至少一个目的物理地址,所述从所述至少一个报文中,确定出报文类型为时钟类型的时钟报文,包括:The method according to claim 1, wherein the at least one type characterization information is at least one destination physical address, and determining, from the at least one message, a clock message whose message type is a clock type, comprising: :
    从所述至少一个报文中,将与所述至少一个报文对应的所述至少一个目的物理地址与预设目的物理地址进行匹配,获得至少一个匹配结果;Matching 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;
    将所述至少一个匹配结果中,匹配成功的目的物理地址对应的报文确定为所述时钟报文。A message corresponding to the successfully matched destination physical address in the at least one matching result is determined as the clock message.
  3. 根据权利要求1所述的方法,其中,所述从所述至少一个报文中,确定出报文类型为时钟类型的时钟报文,包括:The method according to claim 1, wherein the determining, from the at least one message, a clock message with a message type of a clock type comprises:
    从与所述至少一个报文对应的所述至少一个类型表征信息中,确定出以太网协议类型为预设类型,且源端口信息为预设源端口信息的第一类型表征信息;Determining, from the at least one type characterization information corresponding to the at least one message, that the Ethernet protocol type is a preset type, and the source port information is first type characterization information of the preset source port information;
    将所述第一类型表征信息对应的报文确定为所述时钟报文。Determining a message corresponding to the first type of characterization information as the clock message.
  4. 根据权利要求1所述的方法,其中,所述通过第一接口将所述时钟报文和所述接收端口信息发送给所述中央处理器,包括:The method according to claim 1, wherein the sending the clock packet and the receiving port information to the central processor through a 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;
    通过所述第一接口将所述时钟报文和所述附加信息发送给所述中央处理器。Sending the clock message and the additional information to the central processing unit through the first interface.
  5. 根据权利要求1所述的方法,其中,所述通过第一接口将所述时钟报文和所述接收端口信息发送给所述中央处理器之前,所述方法还包括:The method according to claim 1, wherein before the sending the clock packet and the receiving port information to the central processor through a first interface, the method further comprises:
    获取所述时钟报文的驻留时间;Obtaining a dwell time of the clock message;
    将所述时钟报文的驻留时间写入所述时钟报文的配置字段。Write the dwell time of the clock message into a configuration field of the clock message.
  6. 根据权利要求1所述的方法,其中,所述确定出报文类型为时钟类型的时钟报文之后,所述方法还包括:The method according to claim 1, wherein after determining that a clock message whose message type is a clock type, the method further comprises:
    将所述至少一个报文中,非所述时钟报文的报文确定为报文类型为数据类型的数据报文;Determining, from the at least one message, a message other than the clock message as a data message with a message type of a data type;
    通过第二接口将数据报文发送给所述中央处理器;其中,所述第二接口为所述交换装置中配置为传输数据类型报文的接口。Sending a data packet to the central processor through a second interface; wherein the second interface is an interface in the switching device configured to transmit a data type packet.
  7. 一种交换装置,所述交换装置配置为向无线通讯设备中的中央处理器传输报文,所述交换装置包括:接收模块、获取模块、确定模块、发送模块和第一接口;其中,A switching device configured to transmit a message to a central processing unit in a wireless communication device. The switching device includes a receiving module, an acquiring module, a determining module, a sending module, and a first interface. Among them,
    所述接收模块,配置为接收至少一个报文;The receiving module is configured to receive at least one message;
    所述获取模块,配置为从所述至少一个报文中提取出至少一个类型表征信息;The acquisition module is configured to extract at least one type of characterization information from the at least one message;
    所述确定模块,配置为根据所述至少一个类型表征信息,从所述至少一个报文中,确定出报文类型为时钟类型的时钟报文,并获取所述时钟报文对应的接收端口信息;The determining module is configured to determine, from the at least one message, a clock message whose message type is a clock type according to the at least one type characterization information, and obtain receiving port information corresponding to the clock message. ;
    所述发送模块,配置为通过所述第一接口将所述时钟报文和所述接收端口信息发送给中央处理器;其中,所述第一接口为所述交换装置中配置为传输时钟类型报文的接口。The sending module is configured to send the clock message and the receiving port information to a central processor through the first interface; wherein the first interface is configured to transmit a clock type message in the switching device. Text interface.
  8. 根据权利要求7所述的交换装置,其中,The exchange device according to claim 7, wherein:
    所述至少一个类型表征信息为至少一个目的物理地址,所述确定模块,配置为从所述至少一个报文中,将与所述至少一个报文对应的所述至少一个目的物理地址与预设目的物理地址进行匹配,获得至少一个匹配结果;将所述至少一个匹配结果中,匹配成功的目的物理地址对应的报文确定为所述时钟报文。The at least one type characterization information is at least one destination physical address, and the determining module is configured to, from the at least one message, associate the at least one destination physical address corresponding to the at least one message with a preset The destination physical address is matched to obtain at least one matching result; and a message corresponding to the successfully matched destination physical address in the at least one matching result is determined as the clock message.
    所述确定模块,还配置为从与所述至少一个报文对应的所述至少一个类型表征信息中,确定出以太网协议类型为预设类型,且源端口信息为预设源端口信息的第一类型表征信息;将所述第一类型表征信息对应的报文确定为所述时钟报文。The determining module is further configured to determine, from the at least one type characterization information corresponding to the at least one message, that an Ethernet protocol type is a preset type and source port information is a first A type of characterization information; determining a message corresponding to the first type of characterization information as the clock message.
  9. 根据权利要求7所述的交换装置,其中,所述发送模块,配置为根据所述时钟报文,生成所述时钟报文对应的附加信息;将所述接收端口信息写入所述附加信息;通过所述第一接口将所述时钟报文和所述附加信息发送给所述中央处理器。The switching device according to claim 7, wherein the sending module is configured to generate additional information corresponding to the clock message according to the clock message; and write the receiving port information into the additional information; Sending the clock message and the additional information to the central processing unit through the first interface.
  10. 根据权利要求7所述的交换装置,其中,所述交换装置还包括:写入模块;其中,The switching device according to claim 7, wherein the switching device further comprises: a writing module; wherein,
    所述写入模块,配置为在所述通过第一接口将所述时钟报文和所述接收端口信息发送给所述中央处理器之前,获取所述时钟报文的驻留时间;将所述时钟报文的驻留时间写入所述时钟报文的配置字段。The writing module is configured to obtain a dwell time of the clock message before sending the clock message and the receiving port information to the central processor through the first interface; The dwell time of the clock message is written into the configuration field of the clock message.
  11. 根据权利要求7所述的交换装置,其中,所述交换装置还包括:第二接口;The switching device according to claim 7, wherein the switching device further comprises: a second interface;
    所述确定模块,还配置为在所述确定出报文类型为时钟类型的时钟报文之后,将所述至少一个报文中,非所述时钟报文的报文确定为报文类型为数据类型的数据报文;The determining module is further configured to, after determining the clock message whose message type is a clock type, determine, among the at least one message, a message other than the clock message as a message type as data Type of data message;
    所述发送模块,还配置为通过所述第二接口将数据报文发送给所述中央处理器;其中,所述第二接口为所述交换装置中配置为传输数据类型报 文的接口。The sending module is further configured to send a data message to the central processor through the second interface; wherein the second interface is an interface in the switching device configured to transmit a data type message.
  12. 一种无线通讯设备,所述设备包括:A wireless communication device includes:
    如权利要求7-11任一项所述的交换装置;The exchange device according to any one of claims 7-11;
    中央处理器;其中,所述交换装置配置为向所述中央处理器发送报文。A central processing unit; wherein the switching device is configured to send a message to the central processing unit.
  13. 一种计算机可读存储介质,所述计算机可读存储介质存储有一个或者多个程序,所述一个或者多个程序可以被一个或者多个处理器执行,以实现权利要求1-6任一项所述的报文传输方法。A computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement any one of claims 1-6 The message transmission method.
  14. 一种交换装置,所述交换装置配置为向无线通讯设备中的中央处理器传输报文,所述交换装置包括:A switching device configured to transmit a message to a central processing unit in a wireless communication device. The switching device includes:
    存储器,配置为保存报文传输的程序;Memory, configured to save programs for message transmission;
    处理器,配置为运行所述程序,其中,所述程序运行时执行权利要求1至6中任一项所述的报文传输方法。A processor configured to run the program, wherein when the program runs, the message transmission method according to any one of claims 1 to 6 is executed.
PCT/CN2019/088401 2018-06-28 2019-05-24 Message transmission method, switching apparatus, wireless communication device and storage medium WO2020001213A1 (en)

Applications Claiming Priority (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
CN201810690007.9 2018-06-28

Publications (1)

Publication Number Publication Date
WO2020001213A1 true WO2020001213A1 (en) 2020-01-02

Family

ID=68985416

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/088401 WO2020001213A1 (en) 2018-06-28 2019-05-24 Message transmission method, switching apparatus, wireless communication device and storage medium

Country Status (2)

Country Link
CN (1) CN110661588B (en)
WO (1) WO2020001213A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114039622A (en) * 2021-11-06 2022-02-11 四川恒湾科技有限公司 Method for realizing switching of synchronization plane 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

Families Citing this family (1)

* Cited by examiner, † Cited by third party
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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739011A (en) * 2009-12-08 2010-06-16 中国科学院声学研究所 CPCI bus-based high-accuracy clock synchronization method and system thereof
US20120300795A1 (en) * 2011-05-11 2012-11-29 Thomas Kirkegaard Joergensen Network distributed packet-based synchronization
CN105281932A (en) * 2014-06-23 2016-01-27 中兴通讯股份有限公司 A clock time source selection method and device and network elements

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6566205B2 (en) * 2015-10-30 2019-08-28 パナソニックIpマネジメント株式会社 Communication apparatus and communication system
CN106953814B (en) * 2017-03-07 2020-06-05 国电南瑞科技股份有限公司 Transformer substation process layer network switching chip system, message forwarding processing method thereof and time measurement marking method
CN107948157A (en) * 2017-11-24 2018-04-20 锐捷网络股份有限公司 A kind of message processing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739011A (en) * 2009-12-08 2010-06-16 中国科学院声学研究所 CPCI bus-based high-accuracy clock synchronization method and system thereof
US20120300795A1 (en) * 2011-05-11 2012-11-29 Thomas Kirkegaard Joergensen Network distributed packet-based synchronization
CN105281932A (en) * 2014-06-23 2016-01-27 中兴通讯股份有限公司 A clock time source selection method and device and network elements

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114039622A (en) * 2021-11-06 2022-02-11 四川恒湾科技有限公司 Method for realizing switching of synchronization plane 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

Also Published As

Publication number Publication date
CN110661588A (en) 2020-01-07
CN110661588B (en) 2022-04-22

Similar Documents

Publication Publication Date Title
CN101937253B (en) Method, device and system for clock synchronization
WO2019052532A1 (en) Information interaction method, apparatus and device for internet of things device
WO2020001213A1 (en) Message transmission method, switching apparatus, wireless communication device and storage medium
EP2695327B1 (en) Systems and methods for implementing multicasting using personal area network (pan) wireless technology
CN107750466A (en) Use equipment near synchronized cue pairing
US11079481B2 (en) Apparatus and method for measuring distance and location
ES2638212T3 (en) USB frame count synchronization based on media time for Wi-Fi serial bus
US11323154B2 (en) Data transmission method and system, mobile terminal, and data device
US10785630B2 (en) Method and apparatus for low energy discovery
WO2015139470A1 (en) Data write/read method and apparatus in rdma and network system
US20160006526A1 (en) Systems and methods of network clock comparison
TWI582609B (en) Method and apparatus for performing remote memory access(rma) data transfers between a remote node and a local node
EP3442250A2 (en) Data transmission
CN106155468B (en) Alarm display method and terminal
WO2016206195A1 (en) Method, terminal, system for information processing and computer storage medium thereof
WO2016058344A1 (en) Method, apparatus, communication equipment and storage media for determining link delay
US20160063964A1 (en) Streaming video data in the graphics domain
WO2020015107A1 (en) Short message distribution processing method and apparatus, computer device and storage medium
US20240039652A1 (en) Synchronizing communication channels between digital front-end processors
WO2021208807A1 (en) Reference signal resource configuration method and apparatus, device, and storage medium
JP2019149702A (en) Transmission device, reception device, transmission method, and reception method
US11252266B2 (en) Network traffic marking and measurement methods and node
WO2024027746A1 (en) Information transmission method and apparatus, and receiving end and sending end
WO2018099365A1 (en) Message processing
JP6079458B2 (en) Shared memory device and memory access method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19827305

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: RECODE ADWI ACC. PUNO DATE

122 Ep: pct application non-entry in european phase

Ref document number: 19827305

Country of ref document: EP

Kind code of ref document: A1