[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN113438606B - Message transmission method, device, related equipment and storage medium - Google Patents

Message transmission method, device, related equipment and storage medium Download PDF

Info

Publication number
CN113438606B
CN113438606B CN202010209016.9A CN202010209016A CN113438606B CN 113438606 B CN113438606 B CN 113438606B CN 202010209016 A CN202010209016 A CN 202010209016A CN 113438606 B CN113438606 B CN 113438606B
Authority
CN
China
Prior art keywords
information
spn
output
channel
service message
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
Application number
CN202010209016.9A
Other languages
Chinese (zh)
Other versions
CN113438606A (en
Inventor
蔡谦
李晗
张德朝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Research Institute of China Mobile Communication Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
Research Institute of China Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, Research Institute of China Mobile Communication Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202010209016.9A priority Critical patent/CN113438606B/en
Publication of CN113438606A publication Critical patent/CN113438606A/en
Application granted granted Critical
Publication of CN113438606B publication Critical patent/CN113438606B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • H04W4/08User group management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0252Traffic management, e.g. flow control or congestion control per individual bearer or channel
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种报文传输方法、装置、相关设备及存储介质。其中,所述方法包括:发送第一信息给切片分组网(SPN)设备;其中,所述第一信息至少表征所述SPN设备的输入通道与输出通道的对应关系;所述第一信息用于供所述SPN设备对业务报文进行组播发送。

Figure 202010209016

The invention discloses a message transmission method, device, related equipment and storage medium. Wherein, the method includes: sending first information to a slice packet network (SPN) device; wherein the first information at least represents the correspondence between the input channel and the output channel of the SPN device; the first information is used for The SPN device is used for multicast sending of service packets.

Figure 202010209016

Description

报文传输方法、装置、相关设备及存储介质Message transmission method, device, related equipment and storage medium

技术领域technical field

本发明涉及无线通信领域,尤其涉及一种报文传输方法、装置、相关设备及存储介质。The present invention relates to the field of wireless communication, and in particular, to a message transmission method, device, related equipment and storage medium.

背景技术Background technique

在第五代移动通信系统(5G,5th Generation)中,为了满足大带宽、低时延、硬隔离、灵活连接等网络需求,可以基于切片分组网(SPN,Slicing Packet Network)机制,通过多个SPN设备之间的通道对不同类型的业务报文进行传输。由于SPN设备的通道的利用率不高,因此业务报文的传输效率较低。In the fifth generation mobile communication system (5G, 5th Generation), in order to meet the network requirements such as large bandwidth, low delay, hard isolation, and flexible connection, it can be based on the Slicing Packet Network (SPN, Slicing Packet Network) mechanism through multiple Channels between SPN devices transmit different types of service packets. Since the utilization rate of the channel of the SPN device is not high, the transmission efficiency of service packets is low.

发明内容SUMMARY OF THE INVENTION

为解决现有存在的技术问题,本发明实施例提供一种报文传输方法、装置、相关设备及存储介质,至少解决SPN设备的通道的利用率不高的问题。In order to solve the existing technical problems, the embodiments of the present invention provide a message transmission method, device, related equipment and storage medium, at least to solve the problem of low utilization rate of the channel of the SPN equipment.

本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is realized as follows:

本发明的至少一个实施例提供了一种报文传输方法,应用于软件定义网络(SDN,Software Defined Network)设备,包括:At least one embodiment of the present invention provides a packet transmission method, applied to a Software Defined Network (SDN, Software Defined Network) device, including:

发送第一信息给SPN设备;sending the first information to the SPN device;

其中,所述第一信息至少表征所述SPN设备的输入通道与输出通道的对应关系;所述第一信息用于供所述SPN设备对业务报文进行组播发送。Wherein, the first information at least represents the corresponding relationship between the input channel and the output channel of the SPN device; the first information is used for the SPN device to perform multicast sending of service packets.

此外,根据本发明的至少一个实施例,所述方法还包括:Furthermore, according to at least one embodiment of the present invention, the method further includes:

为所述SPN设备配置组播组。Configure a multicast group for the SPN device.

此外,根据本发明的至少一个实施例,所述方法还包括:Furthermore, according to at least one embodiment of the present invention, the method further includes:

为所述SPN设备配置组播组对应的输入通道和输出通道。An input channel and an output channel corresponding to the multicast group are configured for the SPN device.

此外,根据本发明的至少一个实施例,所述方法还包括:Furthermore, according to at least one embodiment of the present invention, the method further includes:

建立SPN设备的组播组、输入通道和输出通道的对应关系;Establish the correspondence between the multicast group, input channel and output channel of the SPN device;

将建立的组播组、输入通道和输出通道的对应关系携带于所述第一信息中。The established correspondence between the multicast group, the input channel and the output channel is carried in the first information.

此外,根据本发明的至少一个实施例,所述方法还包括:Furthermore, according to at least one embodiment of the present invention, the method further includes:

为所述SPN设备配置组播组对应的输入端口和输出端口;所述输入端口与输入通道对应;所述输出端口与输出通道对应。An input port and an output port corresponding to a multicast group are configured for the SPN device; the input port corresponds to an input channel; and the output port corresponds to an output channel.

此外,根据本发明的至少一个实施例,所述方法还包括:Furthermore, according to at least one embodiment of the present invention, the method further includes:

建立SPN设备的组播组、输入端口和输出端口的对应关系;Establish the correspondence between the multicast group, input port and output port of the SPN device;

将建立的组播组、输入端口和输出端口的对应关系携带于所述第一信息中。The established correspondence between the multicast group, the input port and the output port is carried in the first information.

本发明的至少一个实施例提供一种报文传输方法,应用于SPN设备,所述方法包括:At least one embodiment of the present invention provides a packet transmission method, applied to an SPN device, the method includes:

接收SDN设备发送的第一信息;所述第一信息至少表征所述SPN设备的输入通道与输出通道的对应关系;receiving the first information sent by the SDN device; the first information at least represents the correspondence between the input channel and the output channel of the SPN device;

在获取业务报文后,根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道;After acquiring the service message, determine at least two output channels corresponding to the input channel of the service message according to the first information;

将所述业务报文发送给与所述至少两个输出通道分别对应的接收设备。The service message is sent to the receiving devices corresponding to the at least two output channels respectively.

此外,根据本发明的至少一个实施例,所述根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道,包括:In addition, according to at least one embodiment of the present invention, the determining, according to the first information, at least two output channels corresponding to the input channels of the service packet, includes:

获取业务报文的标识信息;Obtain the identification information of the service message;

根据报文标识与报文类型的对应关系,确定与所述业务报文的标识信息对应的类型;determining the type corresponding to the identification information of the service message according to the correspondence between the message identifier and the message type;

判断确定的类型是否与预设类型匹配;Determine whether the determined type matches the preset type;

当确定的类型与预设类型匹配时,根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道。When the determined type matches the preset type, at least two output channels corresponding to the input channel of the service message are determined according to the first information.

此外,根据本发明的至少一个实施例,所述当确定的类型与预设类型匹配时,根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道,包括:In addition, according to at least one embodiment of the present invention, when the determined type matches a preset type, according to the first information, at least two output channels corresponding to the input channel of the service packet are determined, including :

当确定的类型与预设类型匹配时,开启组播功能;When the determined type matches the preset type, the multicast function is enabled;

根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道。According to the first information, at least two output channels corresponding to the input channels of the service message are determined.

此外,根据本发明的至少一个实施例,所述第一信息还表征SPN设备的组播组、输入通道和输出通道的对应关系;所述根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道,包括:In addition, according to at least one embodiment of the present invention, the first information also represents the correspondence between the multicast group, input channel and output channel of the SPN device; the first information is used to determine the corresponding relationship with the service packet. at least two output channels corresponding to the input channels, including:

确定当前SPN设备对应的第一组播组;Determine the first multicast group corresponding to the current SPN device;

根据所述第一信息,确定与所述第一组播组对应的至少两个输出通道;determining at least two output channels corresponding to the first multicast group according to the first information;

将确定的至少两个输出通道作为与所述业务报文的输入通道对应的至少两个输出通道。The determined at least two output channels are used as at least two output channels corresponding to the input channels of the service message.

此外,根据本发明的至少一个实施例,所述第一信息还表征SPN设备的组播组与输入端口、输出端口的对应关系;所述将所述业务报文发送给与所述至少两个输出通道分别对应的接收设备,包括:In addition, according to at least one embodiment of the present invention, the first information also represents the correspondence between the multicast group of the SPN device and the input port and the output port; the sending the service message to the at least two The corresponding receiving devices of the output channels, including:

对所述业务报文进行复制,得到复制后的业务报文;Duplicating the service message to obtain the duplicated service message;

确定当前SPN设备对应的第一组播组;Determine the first multicast group corresponding to the current SPN device;

根据第一信息,确定与所述第一组播组对应的至少两个输出端口;determining at least two output ports corresponding to the first multicast group according to the first information;

通过所述至少两个输出端口,将复制后的业务报文按照时分复用方式传输给与所述至少两个输出通道,并通过至少两个输出通道发送给对应的接收设备。Through the at least two output ports, the duplicated service message is transmitted to the at least two output channels in a time-division multiplexing manner, and sent to the corresponding receiving device through the at least two output channels.

本发明的至少一个实施例提供一种报文传输装置,包括:At least one embodiment of the present invention provides a message transmission device, including:

发送单元,用于发送第一信息给SPN设备;其中,所述第一信息至少表征所述SPN设备的输入通道与输出通道的对应关系;所述第一信息用于供所述SPN设备对业务报文进行组播发送。a sending unit, configured to send the first information to the SPN device; wherein, the first information at least represents the corresponding relationship between the input channel and the output channel of the SPN device; the first information is used for the SPN device to compare the service The message is sent by multicast.

本发明的至少一个实施例提供一种报文传输装置,包括:At least one embodiment of the present invention provides a message transmission device, including:

接收单元,接收SDN设备发送的第一信息;所述第一信息至少表征所述SPN设备的输入通道与输出通道的对应关系;a receiving unit, receiving the first information sent by the SDN device; the first information at least represents the correspondence between the input channel and the output channel of the SPN device;

处理单元,用于在获取业务报文后,根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道;a processing unit, configured to, after acquiring the service message, determine at least two output channels corresponding to the input channel of the service message according to the first information;

发送单元,用于将所述业务报文发送给与所述至少两个输出通道分别对应的接收设备。A sending unit, configured to send the service message to the receiving devices corresponding to the at least two output channels respectively.

本发明的至少一个实施例提供一种SDN设备,包括:At least one embodiment of the present invention provides an SDN device, including:

第一通信接口,用于发送第一信息给SPN设备;其中,所述第一信息至少表征所述SPN设备的输入通道与输出通道的对应关系;所述第一信息用于供所述SPN设备对业务报文进行组播发送。The first communication interface is used to send first information to the SPN device; wherein, the first information at least represents the corresponding relationship between the input channel and the output channel of the SPN device; the first information is used for the SPN device Multicast transmission of service packets.

本发明的至少一个实施例提供一种SPN设备,包括:At least one embodiment of the present invention provides an SPN device, including:

第二通信接口,接收SDN设备发送的第一信息;所述第一信息至少表征所述SPN设备的输入通道与输出通道的对应关系;The second communication interface receives the first information sent by the SDN device; the first information at least represents the correspondence between the input channel and the output channel of the SPN device;

处理器,用于在获取业务报文后,根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道;a processor, configured to, after acquiring the service message, determine at least two output channels corresponding to the input channel of the service message according to the first information;

所述第二通信接口,还用于将所述业务报文发送给与所述至少两个输出通道分别对应的接收设备。The second communication interface is further configured to send the service message to the receiving devices respectively corresponding to the at least two output channels.

本发明实施例提供一种SDN设备,包括第一处理器和用于存储能够在处理器上运行的计算机程序的第一存储器,An embodiment of the present invention provides an SDN device, including a first processor and a first memory for storing a computer program that can be executed on the processor,

其中,所述处理器用于运行所述计算机程序时,执行上述SDN设备侧任一方法的步骤。Wherein, the processor is configured to execute the steps of any method on the SDN device side when running the computer program.

本发明实施例提供一种SPN设备,包括第二处理器和用于存储能够在处理器上运行的计算机程序的第二存储器,An embodiment of the present invention provides an SPN device, including a second processor and a second memory for storing a computer program that can be executed on the processor,

其中,所述处理器用于运行所述计算机程序时,执行上述SPN设备侧任一方法的步骤。Wherein, the processor is configured to execute the steps of any method on the SPN device side when running the computer program.

本发明实施例提供一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任一所述方法的步骤,或者执行时实现上述任一所述方法的步骤。An embodiment of the present invention provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps of any of the above-mentioned methods, or implements the steps of any of the above-mentioned methods when executed.

本发明实施例中,SDN设备发送第一信息给SPN设备;其中,所述第一信息至少表征所述SPN设备的输入通道与输出通道的对应关系;所述第一信息用于供所述SPN设备对业务报文进行组播发送。采用本发明实施例的方案,SPN设备的输入通道与输出通道之间存在明确的对应关系,如此,SDN设备将第一信息发送给SPN设备后,在通过SPN设备对业务报文进行组播传输的过程中,当两个SPN设备之间的通道上传输相同类型的业务报文时,无需占用多个独立的输入通道,如此,解决了SPN设备的通道的利用率不高的问题,避免了资源浪费。In this embodiment of the present invention, the SDN device sends first information to the SPN device; wherein the first information at least represents the correspondence between the input channel and the output channel of the SPN device; the first information is used for the SPN device The device sends service packets through multicast. With the solution of the embodiment of the present invention, there is a clear correspondence between the input channel and the output channel of the SPN device. In this way, after the SDN device sends the first information to the SPN device, the SPN device performs multicast transmission on the service message. In the process, when the same type of service packets are transmitted on the channel between two SPN devices, there is no need to occupy multiple independent input channels. In this way, the problem of the low utilization rate of the channel of the SPN device is solved, and the Waste of resources.

附图说明Description of drawings

图1为相关技术中SPN设备利用通道实现数据转发的示意图;Fig. 1 is the schematic diagram that SPN equipment utilizes channel to realize data forwarding in the related art;

图2为本发明实施例SDN设备侧报文传输的方法流程示意图;FIG. 2 is a schematic flowchart of a method for packet transmission on an SDN device side according to an embodiment of the present invention;

图3为本发明实施例SPN设备的示意图;3 is a schematic diagram of an SPN device according to an embodiment of the present invention;

图4是本发明实施例SPN设备侧报文传输的方法流程示意图;4 is a schematic flowchart of a method for packet transmission on the SPN device side according to an embodiment of the present invention;

图5是本发明实施例SPN设备通过NNI接口将业务报文转发给其他SPN设备的示意图;5 is a schematic diagram of an SPN device forwarding a service message to other SPN devices through an NNI interface according to an embodiment of the present invention;

图6是本发明实施例NNI接口的示意图;6 is a schematic diagram of an NNI interface according to an embodiment of the present invention;

图7是本发明实施例SPN设备对业务报文进行组播转发的示意图;7 is a schematic diagram of multicast forwarding of service packets by an SPN device according to an embodiment of the present invention;

图8是本发明实施例报文传输的方法流程示意图;8 is a schematic flowchart of a method for message transmission according to an embodiment of the present invention;

图9为本发明实施例一种报文传输装置结构示意图;FIG. 9 is a schematic structural diagram of a message transmission apparatus according to an embodiment of the present invention;

图10为本发明实施例另一种报文传输装置结构示意图;10 is a schematic structural diagram of another message transmission apparatus according to an embodiment of the present invention;

图11为本发明实施例SDN设备结构示意图;11 is a schematic structural diagram of an SDN device according to an embodiment of the present invention;

图12为本发明实施例SPN设备结构示意图;12 is a schematic structural diagram of an SPN device according to an embodiment of the present invention;

图13本发明实施例报文传输系统结构示意图。FIG. 13 is a schematic structural diagram of a message transmission system according to an embodiment of the present invention.

具体实施方式Detailed ways

在对本发明实施例的技术方案进行介绍之前,先对相关技术进行说明。Before introducing the technical solutions of the embodiments of the present invention, related technologies are first described.

相关技术中,5G系统需要支持多种业务,例如:具有更高带宽、更低时延的增强移动宽带(eMBB,Enhanced Mobile Broadband)业务,支持海量用户连接的物联网(mMTC,Massive Machine-Type Communication)业务,以及超高可靠性、超低时延的(uRLLC,ultraReliable&Low Latency Communication)等。5G系统还需要支持多种应用场景,例如:密集城区无处不在的高清/超高清甚至三维(3D)全息影片和视频、任何地方100Mbps的高速用户体验、大于350km/h的高速移动应用、传感网、触觉互联网、E-Health、自然灾害监测等。5G系统中,还需要支持不同业务类型的报文传输,为了满足大带宽、低时延、硬隔离、灵活连接、统一管控和高精度时间同步等网络需求,可以基于切片分组网机制,通过多个SPN设备之间的通道对不同类型的业务报文进行传输,具体地,SPN设备通过输入端口即UNI接口获取业务报文,对业务报文进行转换处理,如64B/66B的编解码处理,通过SPN设备的输出端口即NNI接口,将业务报文传输到该SPN设备与其他SPN设备连接的通道上,并最终发送给其他SPN设备。In related technologies, 5G systems need to support a variety of services, such as: Enhanced Mobile Broadband (eMBB, Enhanced Mobile Broadband) services with higher bandwidth and lower latency, Internet of Things (mMTC, Massive Machine-Type) services that support massive user connections. Communication) services, as well as ultra-reliable, ultra-low latency (uRLLC, ultraReliable & Low Latency Communication), etc. 5G systems also need to support a variety of application scenarios, such as: ubiquitous HD/UHD or even three-dimensional (3D) holographic films and videos in dense urban areas, high-speed user experience of 100Mbps anywhere, high-speed mobile applications greater than 350km/h, transmission Sensor network, tactile Internet, E-Health, natural disaster monitoring, etc. In the 5G system, it is also necessary to support packet transmission of different service types. In order to meet network requirements such as large bandwidth, low latency, hard isolation, flexible connection, unified management and control, and high-precision time synchronization, it can be based on the slicing and packet network mechanism. The channels between the SPN devices transmit different types of service packets. Specifically, the SPN device obtains the service packets through the input port, that is, the UNI interface, and performs conversion processing on the service packets, such as 64B/66B encoding and decoding processing. Through the output port of the SPN device, that is, the NNI interface, the service packet is transmitted to the channel connecting the SPN device and other SPN devices, and finally sent to other SPN devices.

图1是相关技术中SPN设备利用通道实现数据转发的示意图,如图1所示,业务报文A的传输路径为SPN0-SPN1-SPN2-SPN3;业务报文B的传输路径为SPN0-SPN1-SPN2-SPN4,假设业务报文A与业务报文B的类型相同,则在SPN0与SPN1之间传输相同业务报文时,需要建立两条独立的通道,两条通道是不能共享的。可看出,SPN设备的通道的利用率不高,因此业务报文的传输效率较低。Fig. 1 is a schematic diagram of SPN equipment using channels to realize data forwarding in the related art. As shown in Fig. 1, the transmission path of service packet A is SPN0-SPN1-SPN2-SPN3; the transmission path of service packet B is SPN0-SPN1- SPN2-SPN4, assuming that service packet A and service packet B are of the same type, when the same service packet is transmitted between SPN0 and SPN1, two independent channels need to be established, and the two channels cannot be shared. It can be seen that the utilization rate of the channel of the SPN device is not high, so the transmission efficiency of service packets is low.

基于此,在本发明的各种实施例中,发送第一信息给SPN设备;其中,所述第一信息至少表征所述SPN设备的输入通道与输出通道的对应关系;所述第一信息用于供所述SPN设备对业务报文进行组播发送。Based on this, in various embodiments of the present invention, the first information is sent to the SPN device; wherein, the first information at least represents the correspondence between the input channel and the output channel of the SPN device; the first information uses It is used for the SPN device to multicast and send the service message.

采用本发明实施例的方案,SPN设备的输入通道与输出通道之间存在明确的对应关系,如此,通过多个SPN设备对业务报文进行组播传输(一对多传输)时,在两个SPN设备之间的通道上传输相同类型的业务报文时,无需占用多个独立的输入通道,如此,解决了SPN设备的通道的利用率不高的问题,避免了资源浪费。With the solution of the embodiment of the present invention, there is a clear correspondence between the input channel and the output channel of the SPN device. In this way, when multiple SPN devices perform multicast transmission (one-to-many transmission) on service packets, the two When the same type of service packets are transmitted on the channel between SPN devices, there is no need to occupy multiple independent input channels. In this way, the problem of low utilization rate of the channel of the SPN device is solved, and the waste of resources is avoided.

下面结合附图及实施例对本发明再作进一步详细的描述。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.

本发明实施例提供了一种报文传输方法,应用于SDN设备,如图2所示,该方法包括:An embodiment of the present invention provides a packet transmission method, which is applied to an SDN device. As shown in FIG. 2 , the method includes:

步骤201:发送第一信息给SPN设备;Step 201: Send the first information to the SPN device;

其中,所述第一信息至少表征所述SPN设备的输入通道与输出通道的对应关系;所述第一信息用于供所述SPN设备对业务报文进行组播发送。Wherein, the first information at least represents the corresponding relationship between the input channel and the output channel of the SPN device; the first information is used for the SPN device to perform multicast sending of service packets.

这里,实际应用时,在步骤201中,所述供所述SPN设备对业务报文进行组播发送可以是指所述SPN设备在接收到业务报文后,将业务报文发送给多个接收设备;接收设备可以是指SPN设备外的其他SPN设备。Here, in practical application, in step 201, the SPN device for multicast sending the service packet may mean that the SPN device sends the service packet to multiple receivers after receiving the service packet device; the receiving device may refer to other SPN devices other than the SPN device.

这里,当两个SPN设备之间的通道用于输入业务报文时,可以称为输入通道,当两个SPN设备之间的通道用于输出业务报文时,可以称为输出通道。Here, when a channel between two SPN devices is used for inputting service packets, it may be called an input channel, and when a channel between two SPN devices is used for outputting service packets, it may be called an output channel.

这里,所述SPN设备的输入通道与输出通道的对应关系可以是指SPN设备的一个输入通道与多个输出通道对应。在SPN设备的输入通道与输出通道的对应关系为一对多的情况下,每两个SPN设备之间无需建立多个独立的通道。换句话说,每两个SPN设备之间传输相同的业务报文时,无需占用多个独立通道,如此,在对业务报文进行组播传输时,无需占用多个独立的输入通道,如此,提高SPN设备的通道的利用率,避免了资源浪费。Here, the correspondence between the input channel and the output channel of the SPN device may refer to that one input channel of the SPN device corresponds to multiple output channels. In the case where the correspondence between the input channels and the output channels of the SPN devices is one-to-many, there is no need to establish multiple independent channels between every two SPN devices. In other words, when the same service packet is transmitted between every two SPN devices, there is no need to occupy multiple independent channels. In this way, when multicast transmission of service packets is performed, there is no need to occupy multiple independent input channels. In this way, The utilization rate of the channel of the SPN device is improved, and the waste of resources is avoided.

本发明实施例中,SDN设备具体可以是指SDN管控平台,也可以是指EMS网管设备。In the embodiment of the present invention, the SDN device may specifically refer to an SDN management and control platform, or may refer to an EMS network management device.

实际应用时,若SDN设备为SPN设备配置了组播功能,则SPN设备具备了支持组播的功能,如此,后续能够对业务报文进行组播传输。若SDN设备没有为SPN设备配置组播功能,则SPN设备不具备支持组播的功能,如此,后续可以对业务报文进行单播传输。In practical application, if the SDN device is configured with the multicast function for the SPN device, the SPN device has the function of supporting multicast, so that the service packet can be subsequently multicast transmitted. If the SDN device is not configured with the multicast function for the SPN device, the SPN device does not have the function of supporting multicast, so that the service packet can be unicast transmitted subsequently.

基于此,在一实施例中,所述方法还包括:Based on this, in one embodiment, the method further includes:

为所述SPN设备配置组播组。Configure a multicast group for the SPN device.

这里,为所述SPN设备配置组播组可以是指为SPN设备配置对应的组播组标识。若SPN设备配置了组播组标识,则SPN设备具备支持组播的功能;若SPN设备未配置组播组播组标识,则SPN设备不具备支持组播的功能。Here, configuring a multicast group for the SPN device may refer to configuring a corresponding multicast group identifier for the SPN device. If the SPN device is configured with a multicast group identifier, the SPN device has the function of supporting multicast; if the SPN device is not configured with a multicast group identifier, the SPN device does not have the function of supporting multicast.

举例来说,如图3所示,SPN0未配置组播组标识,则SPN0不具备支持组播的功能;SPN1配置了组播组标识,如组播组1,则SPN1具备支持组播的功能;SPN2配置了组播组标识,如组播组2,则SPN2具备支持组播的功能;SPN3配置了组播组标识,如组播组3,则SPN3具备支持组播的功能,如表1所示。For example, as shown in Figure 3, if SPN0 is not configured with a multicast group ID, SPN0 does not have the function of supporting multicast; SPN1 is configured with a multicast group ID, such as multicast group 1, then SPN1 has the function of supporting multicast ; SPN2 is configured with a multicast group ID, such as multicast group 2, SPN2 has the function of supporting multicast; SPN3 is configured with a multicast group ID, such as multicast group 3, then SPN3 has the function of supporting multicast, as shown in Table 1 shown.

SPN设备SPN equipment 组播组标识multicast group ID 是否支持组播功能Whether to support multicast function SPN0SPN0 none no SPN1SPN1 组播组1multicast group 1 Yes SPN2SPN2 组播组2multicast group 2 Yes SPN3SPN3 组播组3multicast group 3 Yes

表1Table 1

这里,SDN设备为SPN设备配置组播组,具备以下优点:Here, the SDN device configures a multicast group for the SPN device, which has the following advantages:

能够标识SDN设备是否具备支持组播的功能,如此,若SPN设备具备支持组播的功能,后续SPN设备在传输组播报文时,可以开启组播功能,并对组播报文进行组播传输;若SPN设备不具备支持组播的功能,后续SPN设备在传输单播报文时,无需开启组播功能,对单播报文进行广播传输即可。从而能够实现SPN设备的组播、广播功能,以及实现不同类型的业务报文的灵活传输。It can identify whether the SDN device has the function of supporting multicast. In this way, if the SPN device has the function of supporting multicast, the subsequent SPN device can enable the multicast function when transmitting multicast packets, and multicast the multicast packets. Transmission; if the SPN device does not have the function of supporting multicast, the subsequent SPN device does not need to enable the multicast function when transmitting unicast packets, and only needs to broadcast the unicast packets. Thus, the multicast and broadcast functions of the SPN device can be realized, and the flexible transmission of different types of service packets can be realized.

实际应用时,为了在SPN设备之间传输业务报文,可以为SPN设备配置用于传输业务报文的通道。In practical applications, in order to transmit service packets between SPN devices, a channel for transmitting service packets may be configured for the SPN devices.

基于此,在一实施例中,所述方法还包括:Based on this, in one embodiment, the method further includes:

为SPN设备配置通道。Configure the channel for the SPN device.

其中,每两个SPN设备之间只有一条通道,该通道可以称为SE通道,或者SE L1通道。Among them, there is only one channel between every two SPN devices, and this channel may be called an SE channel, or an SE L1 channel.

例来说,如图3所示,SPN0与SPN1之间具有一条通道,SPN1与SPN2之间具有一条通道,SPN1与SPN3之间具有一条通道。For example, as shown in FIG. 3, there is one channel between SPN0 and SPN1, one channel between SPN1 and SPN2, and one channel between SPN1 and SPN3.

实际应用时,需要按照业务报文的传输方向配置SPN设备的通道的类型,如输入通道、输出通道。In practical application, the channel type of the SPN device, such as input channel and output channel, needs to be configured according to the transmission direction of service packets.

基于此,在一实施例中,所述方法还包括:Based on this, in one embodiment, the method further includes:

为所述SPN设备配置组播组对应的输入通道和输出通道。An input channel and an output channel corresponding to the multicast group are configured for the SPN device.

其中,两个SPN设备之间的通道用于输入业务报文,则通道可称为输入通道;两个SPN设备之间的通道用于输出业务报文,则通道可称为输出通道。The channel between the two SPN devices is used for inputting service packets, and the channel may be called an input channel; the channel between the two SPN devices is used for outputting service packets, and the channel may be called an output channel.

实际应用时,若配置了SPN设备的组播组、输入通道和输出通道的对应关系,则在SPN设备对业务报文进行组播传输的过程中,SPN设备可以基于自身的组播组、业务报文的输入通道,确定对应的至少两个输出通道,通过至少两个输出通道将业务报文发送给对应的至少两个接收设备。In practical application, if the corresponding relationship between the multicast group, input channel, and output channel of the SPN device is configured, the SPN device can perform multicast transmission based on its own multicast group, service The input channel of the message is determined by at least two corresponding output channels, and the service message is sent to the corresponding at least two receiving devices through the at least two output channels.

基于此,在一实施例中,所述方法还包括:Based on this, in one embodiment, the method further includes:

建立SPN设备的组播组、输入通道和输出通道的对应关系;Establish the correspondence between the multicast group, input channel and output channel of the SPN device;

将建立的组播组、输入通道和输出通道的对应关系携带于所述第一信息中。The established correspondence between the multicast group, the input channel and the output channel is carried in the first information.

举例来说,如表2所示,SPN0未配置组播组标识,输出通道用数字0表示;SPN1的组播组标识为组播组1,输入通道用数字0表示,输出通道用1和2表示;SPN2的组播组标识为组播组2,输入通道用数字1表示,输出通道用3和4表示;SPN3的组播组标识为组播组3,输入通道用数字2表示,输出通道用5和6表示。For example, as shown in Table 2, SPN0 is not configured with a multicast group ID, and the output channel is represented by number 0; the multicast group ID of SPN1 is multicast group 1, the input channel is represented by number 0, and the output channel is represented by 1 and 2 indicates; the multicast group of SPN2 is identified as multicast group 2, the input channel is represented by number 1, and the output channel is represented by 3 and 4; the multicast group of SPN3 is identified as multicast group 3, the input channel is represented by number 2, and the output channel is represented by number 2. Denoted by 5 and 6.

SPN设备SPN equipment 组播组标识multicast group ID 输入通道input channel 输出通道output channel SPN0SPN0 none none 00 SPN1SPN1 组播组1multicast group 1 00 1、21, 2 SPN2SPN2 组播组2multicast group 2 11 3、43, 4 SPN3SPN3 组播组3multicast group 3 22 5、65, 6

表2Table 2

这里,SDN设备为SPN设备配置组播组、输入通道和输出通道的对应关系,具备以下优点:Here, the SDN device configures the correspondence between multicast groups, input channels, and output channels for the SPN device, which has the following advantages:

在SPN设备对业务报文进行组播传输的过程中,SPN设备可以基于自身的组播组、业务报文的输入通道,确定对应的至少两个输出通道,通过至少两个输出通道将业务报文发送给对应的至少两个接收设备,从而实现SPN的组播传输功能。In the process of multicast transmission of service packets by the SPN device, the SPN device can determine at least two corresponding output channels based on its own multicast group and the input channel of the service packets, and transmit the service packets through the at least two output channels. The message is sent to at least two corresponding receiving devices, so as to realize the multicast transmission function of the SPN.

实际应用时,SPN设备可以包括一个输入端口和多个输出端口,输入端口可以与输入通道对应,多个输出端口可以与多个输出通道一一对应。In practical applications, the SPN device may include one input port and multiple output ports, the input ports may correspond to input channels, and the multiple output ports may correspond to multiple output channels one-to-one.

基于此,在一实施例中,所述方法还包括:Based on this, in one embodiment, the method further includes:

为所述SPN设备配置组播组对应的输入端口和输出端口;所述输入端口与输入通道对应;所述输出端口与输出通道对应。An input port and an output port corresponding to a multicast group are configured for the SPN device; the input port corresponds to an input channel; and the output port corresponds to an output channel.

基于此,在一实施例中,所述方法还包括:Based on this, in one embodiment, the method further includes:

建立SPN设备的组播组、输入端口和输出端口的对应关系;Establish the correspondence between the multicast group, input port and output port of the SPN device;

将建立的组播组、输入端口和输出端口的对应关系携带于所述第一信息中。The established correspondence between the multicast group, the input port and the output port is carried in the first information.

其中,SPN设备的输入端口与输入通道相连,则SPN设备可以基于输入端口接收输入通道输入的业务报文;SPN设备的输出端口与输出通道相连,则SPN设备可以基于输出端口输出业务报文到对应的输出通道上,最终发送给其他SPN设备。If the input port of the SPN device is connected to the input channel, the SPN device can receive service packets input from the input channel based on the input port; the output port of the SPN device is connected to the output channel, then the SPN device can output service packets based on the output port to the On the corresponding output channel, it is finally sent to other SPN devices.

采用本发明实施例的方案,SPN设备的输入通道与输出通道之间存在明确的对应关系,如此,通过多个SPN设备对业务报文进行组播传输(一对多传输)时,在两个SPN设备之间的通道上传输相同类型的业务报文时,无需占用多个独立的输入通道,如此,解决了SPN设备的通道的利用率不高的问题,避免了资源浪费。With the solution of the embodiment of the present invention, there is a clear correspondence between the input channel and the output channel of the SPN device. In this way, when multiple SPN devices perform multicast transmission (one-to-many transmission) on service packets, the two When the same type of service packets are transmitted on the channel between SPN devices, there is no need to occupy multiple independent input channels. In this way, the problem of low utilization rate of the channel of the SPN device is solved, and the waste of resources is avoided.

对应地,本发明实施例还提供了一种报文传输方法,应用于SPN设备,如图4所示,该方法包括:Correspondingly, an embodiment of the present invention also provides a packet transmission method, which is applied to an SPN device. As shown in FIG. 4 , the method includes:

步骤401:接收SDN设备发送的第一信息;所述第一信息至少表征所述SPN设备的输入通道与输出通道的对应关系;Step 401: Receive first information sent by an SDN device; the first information at least represents a correspondence between an input channel and an output channel of the SPN device;

步骤402:在获取业务报文后,根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道;Step 402: After acquiring the service message, according to the first information, determine at least two output channels corresponding to the input channel of the service message;

步骤403:将所述业务报文发送给与所述至少两个输出通道分别对应的接收设备。Step 403: Send the service message to the receiving devices corresponding to the at least two output channels respectively.

这里,所述SPN设备的输入通道与输出通道的对应关系可以是指SPN设备的一个输入通道与多个输出通道对应。在SPN设备的输入通道与输出通道的对应关系为一对多的情况下,每两个SPN设备之间无需建立多个独立的通道。换句话说,每两个SPN设备之间传输相同的业务报文时,无需占用多个独立通道,如此,在对业务报文进行组播传输时,无需占用多个独立的输入通道,如此,提高SPN设备的通道的利用率,避免了资源浪费。Here, the correspondence between the input channel and the output channel of the SPN device may refer to that one input channel of the SPN device corresponds to multiple output channels. In the case where the correspondence between the input channels and the output channels of the SPN devices is one-to-many, there is no need to establish multiple independent channels between every two SPN devices. In other words, when the same service packet is transmitted between every two SPN devices, there is no need to occupy multiple independent channels. In this way, when multicast transmission of service packets is performed, there is no need to occupy multiple independent input channels. In this way, The utilization rate of the channel of the SPN device is improved, and the waste of resources is avoided.

实际应用时,当SPN设备接收到业务报文后,若业务报文的类型是组播报文类型时,SPN设备可以对业务报文进行组播发送;若业务报文的类型不是组播报文类型时,SPN设备可以对业务报文进行单播发送。In practical applications, after the SPN device receives the service packet, if the type of the service packet is a multicast packet, the SPN device can multicast the service packet; if the type of the service packet is not a multicast packet When the message type is specified, the SPN device can unicast the service message.

基于此,在一实施例中,所述根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道,包括:Based on this, in an embodiment, the determining at least two output channels corresponding to the input channel of the service packet according to the first information includes:

获取业务报文的标识信息;Obtain the identification information of the service message;

根据报文标识与报文类型的对应关系,确定与所述业务报文的标识信息对应的类型;determining the type corresponding to the identification information of the service message according to the correspondence between the message identifier and the message type;

判断确定的类型是否与预设类型匹配;Determine whether the determined type matches the preset type;

当确定的类型与预设类型匹配时,根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道。When the determined type matches the preset type, at least two output channels corresponding to the input channel of the service message are determined according to the first information.

举例来说,假设业务报文的标识信息对应的字段的取值为0,则表明业务报文的类型为组播报文,假设业务报文的标识信息对应的字段的取值为1,则表明业务报文的类型为单播报文。For example, if the value of the field corresponding to the identification information of the service packet is 0, it indicates that the type of the service packet is a multicast packet. If the value of the field corresponding to the identification information of the service packet is 1, then Indicates that the type of service packets is unicast packets.

实际应用时,若SPN设备具备支持组播的功能,则在确定业务报文的类型为组播报文类型后,可以开启组播功能,以对业务报文进行组播传输;若SPN设备不具备支持组播的功能,则无需开启组播功能,对业务报文进行单播传输即可。In practical application, if the SPN device has the function of supporting multicast, after determining that the type of the service packet is the multicast packet type, the multicast function can be enabled to perform multicast transmission of the service packet; if the SPN device does not With the function of supporting multicast, there is no need to enable the multicast function, and unicast transmission of service packets can be performed.

所述当确定的类型与预设类型匹配时,根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道,包括:When the determined type matches the preset type, determining at least two output channels corresponding to the input channel of the service message according to the first information, including:

当确定的类型与预设类型匹配时,开启组播功能;When the determined type matches the preset type, the multicast function is enabled;

根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道。According to the first information, at least two output channels corresponding to the input channels of the service message are determined.

实际应用时,在确定业务报文类型是组播报文类型,且开启组播功能后,SPN设备可以根据组播组、输入通道、输出通道的对应关系,对业务报文进行组播发送。In practical application, after it is determined that the service packet type is a multicast packet type and the multicast function is enabled, the SPN device can multicast the service packets according to the corresponding relationship between multicast groups, input channels, and output channels.

基于此,在一实施例中,所述第一信息还表征SPN设备的组播组、输入通道和输出通道的对应关系;所述根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道,包括:Based on this, in an embodiment, the first information further represents the correspondence between the multicast group, the input channel, and the output channel of the SPN device; the first information is used to determine the input of the service message. At least two output channels corresponding to the channel, including:

确定当前SPN设备对应的第一组播组;Determine the first multicast group corresponding to the current SPN device;

根据所述第一信息,确定与所述第一组播组对应的至少两个输出通道;determining at least two output channels corresponding to the first multicast group according to the first information;

将确定的至少两个输出通道作为与所述业务报文的输入通道对应的至少两个输出通道。The determined at least two output channels are used as at least two output channels corresponding to the input channels of the service message.

其中,所述第一组播组可以是当前SPN设备的组播组标识。当前SPN设备的组播组标识可以携带于所述业务报文中。所述业务报文还可以携带当前SPN设备的输入通道的标识。Wherein, the first multicast group may be the multicast group identifier of the current SPN device. The multicast group identifier of the current SPN device may be carried in the service message. The service message may also carry the identifier of the input channel of the current SPN device.

这里,根据所述第一信息,确定与所述第一组播组对应的至少两个输出通道,具体包括以下两种情况:Here, at least two output channels corresponding to the first multicast group are determined according to the first information, which specifically includes the following two cases:

第一种情况,业务报文携带组播组标识。In the first case, the service packet carries the multicast group identifier.

具体地,将业务报文携带的组播组标识作为当前SPN设备的第一组播组;根据SPN设备的组播组、输入通道和输出通道的对应关系,确定与所述第一组播组对应的至少两个输出通道。Specifically, the multicast group identifier carried in the service packet is taken as the first multicast group of the current SPN device; corresponding at least two output channels.

举例来说,假设业务报文携带组播组标识为组播组1,查表2得到当前SPN设备SPN1对应的输出通道为输出通道1和输出通道2。For example, assuming that the service packet carries the multicast group identifier as multicast group 1, it is obtained by looking up Table 2 that the output channels corresponding to the current SPN device SPN1 are output channel 1 and output channel 2.

第二种情况,业务报文携带当前SPN设备的输入通道的标识。In the second case, the service packet carries the identifier of the input channel of the current SPN device.

具体地,根据SPN设备的组播组、输入通道和输出通道的对应关系,以及业务报文携带的当前SPN设备的输入通道的标识,确定与业务报文的输人通道对应的至少两个输出通道。Specifically, according to the correspondence between the multicast group, the input channel and the output channel of the SPN device, and the identifier of the input channel of the current SPN device carried in the service message, determine at least two outputs corresponding to the input channel of the service message aisle.

举例来说,假设业务报文携带输入通道的标识为输入通道1,查表2得到当前SPN设备SPN1对应的输出通道为输出通道3和输出通道4。For example, it is assumed that the service packet carries the identifier of the input channel as input channel 1, and the output channel corresponding to the current SPN device SPN1 is obtained by looking up table 2 as output channel 3 and output channel 4.

实际应用时,在确定业务报文类型是组播报文类型,且开启组播功能后,SPN设备还可以基于组播组与输入端口、输出端口的对应关系,将业务报文发送其他多个SPN设备。In practical applications, after determining that the service packet type is the multicast packet type and enabling the multicast function, the SPN device can also send the service packet to other multiple based on the corresponding relationship between the multicast group and the input port and output port. SPN device.

基于此,在一实施例中,所述第一信息还表征SPN设备的组播组与输入端口、输出端口的对应关系;所述将所述业务报文发送给与所述至少两个输出通道分别对应的接收设备,包括:Based on this, in an embodiment, the first information further represents the correspondence between the multicast group of the SPN device and the input port and the output port; the sending the service packet to the at least two output channels The corresponding receiving devices, including:

对所述业务报文进行复制,得到复制后的业务报文;Duplicating the service message to obtain the duplicated service message;

确定当前SPN设备对应的第一组播组;Determine the first multicast group corresponding to the current SPN device;

根据第一信息,确定与所述第一组播组对应的至少两个输出端口;determining at least two output ports corresponding to the first multicast group according to the first information;

通过所述至少两个输出端口,将复制后的业务报文按照时分复用方式传输给与所述至少两个输出通道,并通过至少两个输出通道发送给对应的接收设备。Through the at least two output ports, the duplicated service message is transmitted to the at least two output channels in a time-division multiplexing manner, and sent to the corresponding receiving device through the at least two output channels.

其中,SPN设备可以通过至少两个输出端口即NNI接口,将复制后的业务报文按照时分复用方式传输给与所述至少两个输出通道,并通过至少两个输出通道发送给对应的接收设备。The SPN device can transmit the duplicated service packets to the at least two output channels in a time-division multiplexing manner through at least two output ports, namely NNI interfaces, and send them to the corresponding receivers through the at least two output channels. equipment.

图5是SPN设备通过NNI接口将业务报文转发给其他SPN设备的示意图,如图5所示,在SPN设备的NNI接口,可以对业务报文进行分片处理,得到多个数据片段,每个数据片段与对应的时隙进行绑定,使用时分链路将各个数据片段发送给其他SPN设备。Figure 5 is a schematic diagram of the SPN device forwarding service packets to other SPN devices through the NNI interface. As shown in Figure 5, on the NNI interface of the SPN device, the service packet can be fragmented to obtain multiple data fragments. Each data segment is bound to the corresponding time slot, and each data segment is sent to other SPN devices using a time division link.

图6是NNI接口的示意图,NNI接口可以基于FlexE接口实现。FlexE接口可以在100GBASE-R协议栈的PCS层中实现。每个FlexE接口可以包含MAC、重组子层和XMII,FlexE接口以上的模块以FlexE接口的速率运行;FlexE接口以下的模块的参数没有修改,FlexE接口以下的模块包括100GBASE-R PMA,、optional FEC和PMD。FIG. 6 is a schematic diagram of the NNI interface, and the NNI interface can be implemented based on the FlexE interface. The FlexE interface can be implemented in the PCS layer of the 100GBASE-R protocol stack. Each FlexE interface can include MAC, reassembly sublayer and XMII. The modules above the FlexE interface run at the rate of the FlexE interface; the parameters of the modules below the FlexE interface are not modified, and the modules below the FlexE interface include 100GBASE-R PMA, optional FEC and PMD.

在一示例中,如图7所示,描述SPN设备对业务报文进行组播转发的过程,包括:In an example, as shown in FIG. 7 , the process of multicast forwarding of service packets by the SPN device is described, including:

步骤701:通过输入端口接收业务报文;Step 701: Receive a service message through an input port;

步骤702:判断是否为组播报文;当确定是组播报文时,执行步骤703;Step 702: determine whether it is a multicast message; when it is determined to be a multicast message, execute step 703;

步骤703:判断是否开启组播功能,当开启组播功能后,执行步骤704;Step 703: Determine whether to enable the multicast function, and after the multicast function is enabled, perform step 704;

步骤704:根据所述第一信息,对业务报文进行组播发送。Step 704: According to the first information, send the service packet by multicast.

具体地,根据第一信息表征的组播组、输入通道和输出通道的对应关系,确定与业务报文的输入通道对应的至少两个输出通道;将所述业务报文发送给与所述至少两个输出通道分别对应的接收设备。Specifically, according to the correspondence between the multicast group, the input channel and the output channel represented by the first information, at least two output channels corresponding to the input channel of the service message are determined; The two output channels correspond to the receiving device respectively.

本发明实施例提供了一种报文传输方法,如图8所示,该方法包括:An embodiment of the present invention provides a message transmission method, as shown in FIG. 8 , the method includes:

步骤801:SDN设备发送第一信息给SPN设备;Step 801: the SDN device sends the first information to the SPN device;

其中,所述第一信息至少表征所述SPN设备的输入通道与输出通道的对应关系;所述第一信息用于供所述SPN设备对业务报文进行组播发送。Wherein, the first information at least represents the corresponding relationship between the input channel and the output channel of the SPN device; the first information is used for the SPN device to perform multicast sending of service packets.

步骤802:SPN设备接收SDN设备发送的第一信息;在获取业务报文后,根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道;将所述业务报文发送给与所述至少两个输出通道分别对应的接收设备。Step 802: The SPN device receives the first information sent by the SDN device; after acquiring the service message, it determines at least two output channels corresponding to the input channel of the service message according to the first information; The message is sent to the receiving devices respectively corresponding to the at least two output channels.

需要说明的是:SDN设备和SPN设备的具体处理过程已在上文详述,这里不再赘述。It should be noted that the specific processing procedures of the SDN device and the SPN device have been described in detail above, and will not be repeated here.

本发明实施例提供的报文传输方法,SPN设备的输入通道与输出通道之间存在明确的对应关系,如此,SDN设备将第一信息发送给SPN设备后,在通过SPN设备对业务报文进行组播传输的过程中,当两个SPN设备之间的通道上传输相同类型的业务报文时,无需占用多个独立的输入通道,如此,解决了SPN设备的通道的利用率不高的问题,避免了资源浪费。In the packet transmission method provided by the embodiment of the present invention, there is a clear correspondence between the input channel and the output channel of the SPN device. In this way, after the SDN device sends the first information to the SPN device, the service packet is processed by the SPN device. In the process of multicast transmission, when the same type of service packets are transmitted on the channel between two SPN devices, there is no need to occupy multiple independent input channels. In this way, the problem of low utilization of the channel of the SPN device is solved. , to avoid wasting resources.

为了实现本发明实施例的方法,本发明实施例还提供了一种报文传输装置,设置在SDN设备上,如图9所示,该装置包括:In order to implement the method of the embodiment of the present invention, the embodiment of the present invention further provides a message transmission device, which is set on the SDN device. As shown in FIG. 9 , the device includes:

发送单元91,用于发送第一信息给SPN设备;其中,所述第一信息至少表征所述SPN设备的输入通道与输出通道的对应关系;所述第一信息用于供所述SPN设备对业务报文进行组播发送。The sending unit 91 is configured to send the first information to the SPN device; wherein, the first information at least represents the corresponding relationship between the input channel and the output channel of the SPN device; the first information is used for the SPN device to pair Service packets are sent by multicast.

在一实施例中,所述装置还包括:In one embodiment, the apparatus further includes:

配置单元,用于为所述SPN设备配置组播组。A configuration unit, configured to configure a multicast group for the SPN device.

在一实施例中,所述配置单元还用于:In one embodiment, the configuration unit is further used for:

为所述SPN设备配置组播组对应的输入通道和输出通道。An input channel and an output channel corresponding to the multicast group are configured for the SPN device.

在一实施例中,所述装置还包括:In one embodiment, the apparatus further includes:

建立单元,用于建立SPN设备的组播组、输入通道和输出通道的对应关系;Establishing unit, used for establishing the corresponding relationship of multicast group, input channel and output channel of SPN device;

将建立的组播组、输入通道和输出通道的对应关系携带于所述第一信息中。The established correspondence between the multicast group, the input channel and the output channel is carried in the first information.

在一实施例中,所述配置单元还用于:In one embodiment, the configuration unit is further used for:

为所述SPN设备配置组播组对应的输入端口和输出端口;所述输入端口与输入通道对应;所述输出端口与输出通道对应。An input port and an output port corresponding to a multicast group are configured for the SPN device; the input port corresponds to an input channel; and the output port corresponds to an output channel.

在一实施例中,所述建立单元还用于:In one embodiment, the establishment unit is further used for:

建立SPN设备的组播组、输入端口和输出端口的对应关系;Establish the correspondence between the multicast group, input port and output port of the SPN device;

将建立的组播组、输入端口和输出端口的对应关系携带于所述第一信息中。The established correspondence between the multicast group, the input port and the output port is carried in the first information.

实际应用时,所述发送单元91可由报文传输装置中的通信接口实现;所述配置单元、建立单元可由报文传输装置中的处理器结合通信接口实现。In practical application, the sending unit 91 may be implemented by a communication interface in the message transmission device; the configuration unit and the establishment unit may be implemented by a processor in the message transmission device combined with the communication interface.

为了实现本发明实施例SPN设备侧的方法,本发明实施例还提供了一种报文传输装置,设置在SPN设备上,如图10所示,该装置包括:In order to implement the method on the side of the SPN device according to the embodiment of the present invention, the embodiment of the present invention further provides a message transmission device, which is set on the SPN device. As shown in FIG. 10 , the device includes:

接收单元101,用于接收SDN设备发送的第一信息;所述第一信息至少表征所述SPN设备的输入通道与输出通道的对应关系;A receiving unit 101, configured to receive first information sent by an SDN device; the first information at least represents a correspondence between an input channel and an output channel of the SPN device;

处理单元102,用于在获取业务报文后,根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道;a processing unit 102, configured to determine at least two output channels corresponding to the input channels of the service message according to the first information after acquiring the service message;

发送单元103,用于将所述业务报文发送给与所述至少两个输出通道分别对应的接收设备。The sending unit 103 is configured to send the service message to the receiving devices respectively corresponding to the at least two output channels.

在一实施例中,所述处理单元102,具体用于:In one embodiment, the processing unit 102 is specifically configured to:

获取业务报文的标识信息;Obtain the identification information of the service message;

根据报文标识与报文类型的对应关系,确定与所述业务报文的标识信息对应的类型;determining the type corresponding to the identification information of the service message according to the correspondence between the message identifier and the message type;

判断确定的类型是否与预设类型匹配;Determine whether the determined type matches the preset type;

当确定的类型与预设类型匹配时,根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道。When the determined type matches the preset type, at least two output channels corresponding to the input channel of the service message are determined according to the first information.

在一实施例中,所述处理单元102,具体用于:In one embodiment, the processing unit 102 is specifically configured to:

当确定的类型与预设类型匹配时,开启组播功能;When the determined type matches the preset type, the multicast function is enabled;

根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道。According to the first information, at least two output channels corresponding to the input channels of the service message are determined.

在一实施例中,所述处理单元102,具体用于:In one embodiment, the processing unit 102 is specifically configured to:

所述第一信息还表征SPN设备的组播组、输入通道和输出通道的对应关系;The first information also represents the correspondence between the multicast group, the input channel and the output channel of the SPN device;

确定当前SPN设备对应的第一组播组;Determine the first multicast group corresponding to the current SPN device;

根据所述第一信息,确定与所述第一组播组对应的至少两个输出通道;determining at least two output channels corresponding to the first multicast group according to the first information;

将确定的至少两个输出通道作为与所述业务报文的输入通道对应的至少两个输出通道。The determined at least two output channels are used as at least two output channels corresponding to the input channels of the service message.

在一实施例中,所述处理单元102,具体用于:In one embodiment, the processing unit 102 is specifically configured to:

所述第一信息还表征SPN设备的组播组与输入端口、输出端口的对应关系;所述将所述业务报文发送给与所述至少两个输出通道分别对应的接收设备,包括:The first information also represents the correspondence between the multicast group of the SPN device and the input port and the output port; the sending the service message to the receiving devices corresponding to the at least two output channels respectively includes:

对所述业务报文进行复制,得到复制后的业务报文;Duplicating the service message to obtain the duplicated service message;

确定当前SPN设备对应的第一组播组;Determine the first multicast group corresponding to the current SPN device;

根据第一信息,确定与所述第一组播组对应的至少两个输出端口;determining at least two output ports corresponding to the first multicast group according to the first information;

通过所述至少两个输出端口,将复制后的业务报文按照时分复用方式传输给与所述至少两个输出通道,并通过至少两个输出通道发送给对应的接收设备。Through the at least two output ports, the duplicated service message is transmitted to the at least two output channels in a time-division multiplexing manner, and sent to the corresponding receiving device through the at least two output channels.

实际应用时,所述接收单元101、发送单元103可由报文传输装置中的通信接口实现;所述处理单元102可由报文传输装置中的处理器结合通信接口实现。In practical application, the receiving unit 101 and the sending unit 103 may be implemented by a communication interface in the message transmission device; the processing unit 102 may be implemented by a processor in the message transmission device combined with the communication interface.

需要说明的是:上述实施例提供的报文传输装置在进行报文传输时,仅以上述各程序模块的划分进行举例说明,实际应用中,可以根据需要而将上述处理分配由不同的程序模块完成,即将装置的内部结构划分成不同的程序模块,以完成以上描述的全部或者部分处理。另外,上述实施例提供的报文传输装置与报文传输方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the message transmission device provided in the above embodiment performs message transmission, only the division of the above program modules is used as an example for illustration. In practical applications, the above processing may be allocated to different program modules as required. Completion means dividing the internal structure of the device into different program modules to complete all or part of the processing described above. In addition, the message transmission apparatus and the message transmission method embodiments provided by the above embodiments belong to the same concept, and the specific implementation process thereof is detailed in the method embodiments, which will not be repeated here.

基于上述程序模块的硬件实现,且为了实现本发明实施例SDN设备侧的方法,本发明实施例还提供了一种SDN设备,如图11所示,包括:Based on the hardware implementation of the above program modules, and in order to implement the method on the SDN device side in the embodiment of the present invention, the embodiment of the present invention further provides an SDN device, as shown in FIG. 11 , including:

第一通信接口111,能够与第二通信设备进行信息交互;the first communication interface 111, capable of information interaction with the second communication device;

第一处理器112,与所述第一通信接口111连接,以实现与第二通信设备进行信息交互,用于运行计算机程序时,执行上述第一通信设备侧一个或多个技术方案提供的方法。而所述计算机程序存储在第一存储器113上。The first processor 112 is connected to the first communication interface 111 to realize information interaction with the second communication device, and is used to execute the method provided by one or more technical solutions on the side of the first communication device when running the computer program . And the computer program is stored on the first memory 113 .

具体地,specifically,

第一通信接口111,用于发送第一信息给SPN设备;其中,所述第一信息至少表征所述SPN设备的输入通道与输出通道的对应关系;所述第一信息用于供所述SPN设备对业务报文进行组播发送。The first communication interface 111 is used to send first information to the SPN device; wherein, the first information at least represents the corresponding relationship between the input channel and the output channel of the SPN device; the first information is used for the SPN device The device sends service packets through multicast.

在一实施例中,所述第一处理器112用于为所述SPN设备配置组播组。In an embodiment, the first processor 112 is configured to configure a multicast group for the SPN device.

在一实施例中,所述第一处理器112还用于:In one embodiment, the first processor 112 is further configured to:

为所述SPN设备配置组播组对应的输入通道和输出通道。An input channel and an output channel corresponding to the multicast group are configured for the SPN device.

在一实施例中,所第一处理器112还用于建立SPN设备的组播组、输入通道和输出通道的对应关系;In one embodiment, the first processor 112 is further configured to establish the correspondence between the multicast group, the input channel and the output channel of the SPN device;

将建立的组播组、输入通道和输出通道的对应关系携带于所述第一信息中。The established correspondence between the multicast group, the input channel and the output channel is carried in the first information.

在一实施例中,所述第一处理器112还用于:In one embodiment, the first processor 112 is further configured to:

为所述SPN设备配置组播组对应的输入端口和输出端口;所述输入端口与输入通道对应;所述输出端口与输出通道对应。An input port and an output port corresponding to a multicast group are configured for the SPN device; the input port corresponds to an input channel; and the output port corresponds to an output channel.

在一实施例中,所述第一处理器112还用于:In one embodiment, the first processor 112 is further configured to:

建立SPN设备的组播组、输入端口和输出端口的对应关系;Establish the correspondence between the multicast group, input port and output port of the SPN device;

将建立的组播组、输入端口和输出端口的对应关系携带于所述第一信息中。The established correspondence between the multicast group, the input port and the output port is carried in the first information.

需要说明的是:所述第一处理器112和第一通信接口111的具体处理过程详见方法实施例,这里不再赘述。It should be noted that: the specific processing procedures of the first processor 112 and the first communication interface 111 are detailed in the method embodiments, which will not be repeated here.

当然,实际应用时,SDN设备中的各个组件通过总线系统114耦合在一起。可理解,总线系统114用于实现这些组件之间的连接通信。总线系统114除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图11中将各种总线都标为总线系统114。Of course, in practical application, various components in the SDN device are coupled together through the bus system 114 . It will be appreciated that the bus system 114 is used to implement the connection communication between these components. In addition to the data bus, the bus system 114 also includes a power bus, a control bus, and a status signal bus. However, for clarity of illustration, the various buses are labeled as bus system 114 in FIG. 11 .

本发明实施例中的第一存储器113用于存储各种类型的数据以支持SDN设备的操作。这些数据的示例包括:用于在SDN设备上操作的任何计算机程序。The first memory 113 in the embodiment of the present invention is used to store various types of data to support the operation of the SDN device. Examples of such data include: any computer program used to operate on the SDN device.

上述本发明实施例揭示的方法可以应用于所述第一处理器112中,或者由所述第一处理器112实现。所述第一处理器112可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过所述第一处理器112中的硬件的集成逻辑电路或者软件形式的指令完成。上述的所述第一处理器112可以是通用处理器、数字信号处理器(DSP,Digital Signal Processor),或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。所述第一处理器112可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本发明实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于第一存储器113,所述第一处理器112读取第一存储器113中的信息,结合其硬件完成前述方法的步骤。The methods disclosed in the above embodiments of the present invention may be applied to the first processor 112 or implemented by the first processor 112 . The first processor 112 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the first processor 112 or an instruction in the form of software. The above-mentioned first processor 112 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. The first processor 112 may implement or execute the methods, steps, and logical block diagrams disclosed in the embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in combination with the embodiments of the present invention can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, and the storage medium is located in the first memory 113, and the first processor 112 reads the information in the first memory 113 and completes the steps of the foregoing method in combination with its hardware.

在示例性实施例中,SDN设备可以被一个或多个应用专用集成电路(ASIC,Application Specific Integrated Circuit)、DSP、可编程逻辑器件(PLD,ProgrammableLogic Device)、复杂可编程逻辑器件(CPLD,Complex Programmable Logic Device)、现场可编程门阵列(FPGA,Field-Programmable Gate Array)、通用处理器、控制器、微控制器(MCU,Micro Controller Unit)、微处理器(Microprocessor)、或者其他电子元件实现,用于执行前述方法。In an exemplary embodiment, the SDN device may be implemented by one or more Application Specific Integrated Circuit (ASIC, Application Specific Integrated Circuit), DSP, Programmable Logic Device (PLD, Programmable Logic Device), Complex Programmable Logic Device (CPLD, Complex) Programmable Logic Device), Field-Programmable Gate Array (FPGA, Field-Programmable Gate Array), general-purpose processor, controller, microcontroller (MCU, Micro Controller Unit), microprocessor (Microprocessor), or other electronic components to achieve , used to perform the aforementioned method.

基于上述程序模块的硬件实现,且为了实现本发明实施例SPN设备侧的方法,如图12所示,包括:Based on the hardware implementation of the above-mentioned program modules, and in order to realize the method on the SPN device side according to the embodiment of the present invention, as shown in FIG. 12 , it includes:

第二通信接口121,能够与第一通信设备进行信息交互;The second communication interface 121 is capable of information interaction with the first communication device;

第二处理器122,与所述第二通信接口121连接,以实现与第一通信设备进行信息交互,用于运行计算机程序时,执行上述第二通信设备侧一个或多个技术方案提供的方法。而所述计算机程序存储在所述第二存储器123上。The second processor 122 is connected to the second communication interface 121 to realize information interaction with the first communication device, and is used to execute the method provided by one or more technical solutions on the second communication device side when running the computer program . And the computer program is stored on the second memory 123 .

具体地,specifically,

第二通信接口121,用于接收SDN设备发送的第一信息;所述第一信息至少表征所述SPN设备的输入通道与输出通道的对应关系;The second communication interface 121 is used to receive the first information sent by the SDN device; the first information at least represents the correspondence between the input channel and the output channel of the SPN device;

第二处理器122,用于在获取业务报文后,根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道;The second processor 122 is configured to, after acquiring the service message, determine at least two output channels corresponding to the input channel of the service message according to the first information;

第二通信接口121,还用于将所述业务报文发送给与所述至少两个输出通道分别对应的接收设备。The second communication interface 121 is further configured to send the service message to the receiving devices corresponding to the at least two output channels respectively.

在一实施例中,所述第二处理器122,具体用于:In one embodiment, the second processor 122 is specifically configured to:

获取业务报文的标识信息;Obtain the identification information of the service message;

根据报文标识与报文类型的对应关系,确定与所述业务报文的标识信息对应的类型;determining the type corresponding to the identification information of the service message according to the correspondence between the message identifier and the message type;

判断确定的类型是否与预设类型匹配;Determine whether the determined type matches the preset type;

当确定的类型与预设类型匹配时,根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道。When the determined type matches the preset type, at least two output channels corresponding to the input channel of the service message are determined according to the first information.

在一实施例中,所述第二处理器122,具体用于:In one embodiment, the second processor 122 is specifically configured to:

当确定的类型与预设类型匹配时,开启组播功能;When the determined type matches the preset type, the multicast function is enabled;

根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道。According to the first information, at least two output channels corresponding to the input channels of the service message are determined.

在一实施例中,所述第二处理器122,具体用于:In one embodiment, the second processor 122 is specifically configured to:

所述第一信息还表征SPN设备的组播组、输入通道和输出通道的对应关系;The first information also represents the correspondence between the multicast group, the input channel and the output channel of the SPN device;

确定当前SPN设备对应的第一组播组;Determine the first multicast group corresponding to the current SPN device;

根据所述第一信息,确定与所述第一组播组对应的至少两个输出通道;determining at least two output channels corresponding to the first multicast group according to the first information;

将确定的至少两个输出通道作为与所述业务报文的输入通道对应的至少两个输出通道。The determined at least two output channels are used as at least two output channels corresponding to the input channels of the service message.

在一实施例中,所述第二处理器122,具体用于:In one embodiment, the second processor 122 is specifically configured to:

所述第一信息还表征SPN设备的组播组与输入端口、输出端口的对应关系;所述将所述业务报文发送给与所述至少两个输出通道分别对应的接收设备,包括:The first information also represents the correspondence between the multicast group of the SPN device and the input port and the output port; the sending the service message to the receiving devices corresponding to the at least two output channels respectively includes:

对所述业务报文进行复制,得到复制后的业务报文;Duplicating the service message to obtain the duplicated service message;

确定当前SPN设备对应的第一组播组;Determine the first multicast group corresponding to the current SPN device;

根据第一信息,确定与所述第一组播组对应的至少两个输出端口;determining at least two output ports corresponding to the first multicast group according to the first information;

通过所述至少两个输出端口,将复制后的业务报文按照时分复用方式传输给与所述至少两个输出通道,并通过至少两个输出通道发送给对应的接收设备。Through the at least two output ports, the duplicated service message is transmitted to the at least two output channels in a time-division multiplexing manner, and sent to the corresponding receiving device through the at least two output channels.

需要说明的是:所述第二处理器122和第二通信接口121的具体处理过程详见方法实施例,这里不再赘述。It should be noted that: the specific processing procedures of the second processor 122 and the second communication interface 121 are detailed in the method embodiments, which will not be repeated here.

当然,实际应用时,SPN设备中的各个组件通过总线系统124耦合在一起。可理解,总线系统124用于实现这些组件之间的连接通信。总线系统124除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图12中将各种总线都标为总线系统124。Of course, in practical application, various components in the SPN device are coupled together through the bus system 124 . It will be appreciated that the bus system 124 is used to implement the connection communication between these components. In addition to the data bus, the bus system 124 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, the various buses are labeled as bus system 124 in FIG. 12 .

本发明实施例中的第二存储器123用于存储各种类型的数据以支持SPN设备操作。这些数据的示例包括:用于在SPN设备上操作的任何计算机程序。The second memory 123 in the embodiment of the present invention is used to store various types of data to support the operation of the SPN device. Examples of such data include: any computer program used to operate on the SPN device.

上述本发明实施例揭示的方法可以应用于所述第二处理器122中,或者由所述第二处理器122实现。所述第二处理器122可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过所述第二处理器122中的硬件的集成逻辑电路或者软件形式的指令完成。上述的所述第二处理器122可以是通用处理器、DSP,或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。所述第二处理器122可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本发明实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于第二存储器123,所述第二处理器122读取第二存储器123中的信息,结合其硬件完成前述方法的步骤。The methods disclosed in the above embodiments of the present invention may be applied to the second processor 122 or implemented by the second processor 122 . The second processor 122 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above-mentioned method may be completed by an integrated logic circuit of hardware in the second processor 122 or an instruction in the form of software. The above-mentioned second processor 122 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. The second processor 122 may implement or execute the methods, steps, and logical block diagrams disclosed in the embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in combination with the embodiments of the present invention can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, and the storage medium is located in the second memory 123, and the second processor 122 reads the information in the second memory 123, and completes the steps of the foregoing method in combination with its hardware.

在示例性实施例中SPN设备可以被一个或多个ASIC、DSP、PLD、CPLD、FPGA、通用处理器、控制器、MCU、Microprocessor、或其他电子元件实现,用于执行前述方法。In an exemplary embodiment an SPN device may be implemented by one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, general purpose processors, controllers, MCUs, Microprocessors, or other electronic components for performing the aforementioned methods.

可以理解,本发明实施例的存储器(第一存储器113、第二存储器123)可以是易失性存储器或者非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(ROM,Read Only Memory)、可编程只读存储器(PROM,ProgrammableRead-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically ErasableProgrammable Read-Only Memory)、磁性随机存取存储器(FRAM,ferromagnetic randomaccess memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,Random Access Memory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,StaticRandom Access Memory)、同步静态随机存取存储器(SSRAM,Synchronous Static RandomAccess Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动态随机存取存储器(SDRAM,Synchronous Dynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic RandomAccess Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced SynchronousDynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,SyncLinkDynamic Random AccessMemory)、直接内存总线随机存取存储器(DRRAM,Direct RambusRandom Access Memory)。本发明实施例描述的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory (the first memory 113 and the second memory 123 ) in this embodiment of the present invention may be a volatile memory or a nonvolatile memory, and may also include both volatile and nonvolatile memory. Among them, the non-volatile memory may be a read-only memory (ROM, Read Only Memory), a programmable read-only memory (PROM, Programmable Read-Only Memory), an erasable programmable read-only memory (EPROM, Erasable Programmable Read-Only Memory) Memory), Electrically Erasable Programmable Read-Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), Magnetic Random Access Memory (FRAM, ferromagnetic randomaccess memory), Flash Memory, Magnetic Surface Memory, Optical Disc, Or compact disc read-only memory (CD-ROM, Compact Disc Read-Only Memory); magnetic surface memory can be magnetic disk memory or tape memory. The volatile memory may be random access memory (RAM, Random Access Memory), which is used as an external cache memory. By way of example and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory ( DRAM, Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous Dynamic Random Access Memory), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), Enhanced Synchronous Dynamic Random Access Memory Random Access Memory (ESDRAM, Enhanced SynchronousDynamic Random Access Memory), Synchronous Link Dynamic Random Access Memory (SLDRAM, SyncLink Dynamic Random Access Memory), Direct Memory Bus Random Access Memory (DRRAM, Direct Rambus Random Access Memory). The memory described in the embodiments of the present invention is intended to include, but not be limited to, these and any other suitable types of memory.

为实现本发明实施例的方法,本发明实施例还提供了一种报文传输系统,如图13所示,该系统包括:To implement the method of the embodiment of the present invention, the embodiment of the present invention further provides a message transmission system, as shown in FIG. 13 , the system includes:

SDN设备131,用于发送第一信息给SPN设备;SDN device 131, configured to send the first information to the SPN device;

其中,所述第一信息至少表征所述SPN设备的输入通道与输出通道的对应关系,Wherein, the first information at least represents the correspondence between the input channel and the output channel of the SPN device,

SPN设备132,用于接收SDN设备发送的第一信息;在获取业务报文后,根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道;将所述业务报文发送给与所述至少两个输出通道分别对应的接收设备。The SPN device 132 is configured to receive the first information sent by the SDN device; after acquiring the service packet, determine at least two output channels corresponding to the input channel of the service packet according to the first information; The service message is sent to the receiving devices respectively corresponding to the at least two output channels.

需要说明的是:第一通信设备81和第二通信设备82的具体处理过程已在上文详述,这里不再赘述。It should be noted that the specific processing procedures of the first communication device 81 and the second communication device 82 have been described in detail above, and will not be repeated here.

在示例性实施例中,本发明实施例还提供了一种存储介质,即计算机存储介质,具体为计算机可读存储介质,例如包括存储计算机程序的第一存储器113,上述计算机程序可由SDN设备的第一处理器112执行,以完成前述方法所述步骤。再比如包括存储计算机程序的第二存储器123,上述计算机程序可由SPN设备的第二处理器122执行,以完成前述方法所述步骤。计算机可读存储介质可以是FRAM、ROM、PROM、EPROM、EEPROM、Flash Memory、磁表面存储器、光盘、或CD-ROM等存储器。In an exemplary embodiment, the embodiment of the present invention further provides a storage medium, that is, a computer storage medium, specifically a computer-readable storage medium, for example, including a first memory 113 storing a computer program, and the above-mentioned computer program can be stored in an SDN device. The first processor 112 executes the steps described in the foregoing method. Another example includes the second memory 123 storing a computer program, and the computer program can be executed by the second processor 122 of the SPN device, so as to complete the steps of the aforementioned method. The computer-readable storage medium may be memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM.

需要说明的是:“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence.

另外,本发明实施例所记载的技术方案之间,在不冲突的情况下,可以任意组合。In addition, the technical solutions described in the embodiments of the present invention may be combined arbitrarily if there is no conflict.

以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention.

Claims (18)

1.一种报文传输方法,其特征在于,应用于软件定义网络SDN设备,包括:1. A message transmission method, characterized in that, applied to a software-defined network SDN device, comprising: 发送第一信息给切片分组网SPN设备;sending the first information to the sliced packet network SPN device; 其中,所述第一信息至少表征所述SPN设备的输入通道与输出通道的对应关系为一对多;所述第一信息用于供所述SPN设备对业务报文进行组播发送。Wherein, the first information at least indicates that the corresponding relationship between the input channel and the output channel of the SPN device is one-to-many; the first information is used for the SPN device to perform multicast sending of service packets. 2.根据权利要求1所述的方法,其特征在于,所述方法还包括:2. The method according to claim 1, wherein the method further comprises: 为所述SPN设备配置组播组。Configure a multicast group for the SPN device. 3.根据权利要求2所述的方法,其特征在于,所述方法还包括:3. The method according to claim 2, wherein the method further comprises: 为所述SPN设备配置组播组对应的输入通道和输出通道。An input channel and an output channel corresponding to the multicast group are configured for the SPN device. 4.根据权利要求3所述的方法,其特征在于,所述方法还包括:4. The method according to claim 3, wherein the method further comprises: 建立SPN设备的组播组、输入通道和输出通道的对应关系;Establish the correspondence between the multicast group, input channel and output channel of the SPN device; 将建立的组播组、输入通道和输出通道的对应关系携带于所述第一信息中。The established correspondence between the multicast group, the input channel and the output channel is carried in the first information. 5.根据权利要求4所述的方法,其特征在于,所述方法还包括:5. The method according to claim 4, wherein the method further comprises: 为所述SPN设备配置组播组对应的输入端口和输出端口;所述输入端口与输入通道对应;所述输出端口与输出通道对应。An input port and an output port corresponding to a multicast group are configured for the SPN device; the input port corresponds to an input channel; and the output port corresponds to an output channel. 6.根据权利要求5所述的方法,其特征在于,所述方法还包括:6. The method according to claim 5, wherein the method further comprises: 建立SPN设备的组播组、输入端口和输出端口的对应关系;Establish the correspondence between the multicast group, input port and output port of the SPN device; 将建立的组播组、输入端口和输出端口的对应关系携带于所述第一信息中。The established correspondence between the multicast group, the input port and the output port is carried in the first information. 7.一种报文传输方法,其特征在于,应用于SPN设备,所述方法包括:7. A message transmission method, characterized in that, applied to an SPN device, the method comprising: 接收SDN设备发送的第一信息;所述第一信息至少表征所述SPN设备的输入通道与输出通道的对应关系为一对多;Receive the first information sent by the SDN device; the first information at least represents that the correspondence between the input channel and the output channel of the SPN device is one-to-many; 在获取业务报文后,根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道;After acquiring the service message, determine at least two output channels corresponding to the input channel of the service message according to the first information; 将所述业务报文发送给与所述至少两个输出通道分别对应的接收设备。The service message is sent to the receiving devices corresponding to the at least two output channels respectively. 8.根据权利要求7所述的方法,其特征在于,所述根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道,包括:8. The method according to claim 7, wherein the determining, according to the first information, at least two output channels corresponding to the input channels of the service message, comprises: 获取业务报文的标识信息;Obtain the identification information of the service message; 根据报文标识与报文类型的对应关系,确定与所述业务报文的标识信息对应的类型;determining the type corresponding to the identification information of the service message according to the correspondence between the message identifier and the message type; 判断确定的类型是否与预设类型匹配;Determine whether the determined type matches the preset type; 当确定的类型与预设类型匹配时,根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道。When the determined type matches the preset type, at least two output channels corresponding to the input channel of the service message are determined according to the first information. 9.根据权利要求8所述的方法,其特征在于,所述当确定的类型与预设类型匹配时,根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道,包括:9 . The method according to claim 8 , wherein when the determined type matches a preset type, at least two channels corresponding to the input channel of the service message are determined according to the first information. 10 . Output channels, including: 当确定的类型与预设类型匹配时,开启组播功能;When the determined type matches the preset type, the multicast function is enabled; 根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道。According to the first information, at least two output channels corresponding to the input channels of the service message are determined. 10.根据权利要求7所述的方法,其特征在于,所述第一信息还表征SPN设备的组播组、输入通道和输出通道的对应关系;所述根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道,包括:10 . The method according to claim 7 , wherein the first information further represents the correspondence between multicast groups, input channels and output channels of the SPN device; the first information is used to determine the at least two output channels corresponding to the input channel of the service packet, including: 确定当前SPN设备对应的第一组播组;Determine the first multicast group corresponding to the current SPN device; 根据所述第一信息,确定与所述第一组播组对应的至少两个输出通道;determining at least two output channels corresponding to the first multicast group according to the first information; 将确定的至少两个输出通道作为与所述业务报文的输入通道对应的至少两个输出通道。The determined at least two output channels are used as at least two output channels corresponding to the input channels of the service message. 11.根据权利要求7所述的方法,其特征在于,所述第一信息还表征SPN设备的组播组与输入端口、输出端口的对应关系;所述将所述业务报文发送给与所述至少两个输出通道分别对应的接收设备,包括:11. The method according to claim 7, wherein the first information further represents the correspondence between the multicast group of the SPN device and the input port and the output port; The receiving devices corresponding to the at least two output channels respectively include: 对所述业务报文进行复制,得到复制后的业务报文;Duplicating the service message to obtain the duplicated service message; 确定当前SPN设备对应的第一组播组;Determine the first multicast group corresponding to the current SPN device; 根据第一信息,确定与所述第一组播组对应的至少两个输出端口;determining at least two output ports corresponding to the first multicast group according to the first information; 通过所述至少两个输出端口,将复制后的业务报文按照时分复用方式传输给与所述至少两个输出通道,并通过至少两个输出通道发送给对应的接收设备。Through the at least two output ports, the duplicated service message is transmitted to the at least two output channels in a time-division multiplexing manner, and sent to the corresponding receiving device through the at least two output channels. 12.一种报文传输装置,其特征在于,包括:12. A message transmission device, comprising: 发送单元,用于发送第一信息给SPN设备;其中,所述第一信息至少表征所述SPN设备的输入通道与输出通道的对应关系为一对多;所述第一信息用于供所述SPN设备对业务报文进行组播发送。a sending unit, configured to send first information to the SPN device; wherein, the first information at least represents that the correspondence between the input channel and the output channel of the SPN device is one-to-many; the first information is used for the The SPN device multicasts the service packets. 13.一种报文传输装置,其特征在于,包括:13. A message transmission device, comprising: 接收单元,接收SDN设备发送的第一信息;所述第一信息至少表征SPN设备的输入通道与输出通道的对应关系为一对多;a receiving unit, receiving the first information sent by the SDN device; the first information at least represents that the correspondence between the input channel and the output channel of the SPN device is one-to-many; 处理单元,用于在获取业务报文后,根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道;a processing unit, configured to, after acquiring the service message, determine at least two output channels corresponding to the input channel of the service message according to the first information; 发送单元,用于将所述业务报文发送给与所述至少两个输出通道分别对应的接收设备。A sending unit, configured to send the service message to the receiving devices corresponding to the at least two output channels respectively. 14.一种SDN设备,其特征在于,包括:14. An SDN device, comprising: 第一通信接口,用于发送第一信息给SPN设备;其中,所述第一信息至少表征所述SPN设备的输入通道与输出通道的对应关系为一对多;所述第一信息用于供所述SPN设备对业务报文进行组播发送。The first communication interface is used to send the first information to the SPN device; wherein, the first information at least represents that the corresponding relationship between the input channel and the output channel of the SPN device is one-to-many; the first information is used for providing The SPN device performs multicast transmission on the service message. 15.一种SPN设备,其特征在于,包括:15. An SPN device, comprising: 第二通信接口,接收SDN设备发送的第一信息;所述第一信息至少表征所述SPN设备的输入通道与输出通道的对应关系为一对多;The second communication interface receives the first information sent by the SDN device; the first information at least indicates that the correspondence between the input channel and the output channel of the SPN device is one-to-many; 处理器,用于在获取业务报文后,根据所述第一信息,确定与所述业务报文的输入通道对应的至少两个输出通道;a processor, configured to, after acquiring the service message, determine at least two output channels corresponding to the input channel of the service message according to the first information; 所述第二通信接口,还用于将所述业务报文发送给与所述至少两个输出通道分别对应的接收设备。The second communication interface is further configured to send the service message to the receiving devices respectively corresponding to the at least two output channels. 16.一种SDN设备,其特征在于,包括第一处理器和用于存储能够在处理器上运行的计算机程序的第一存储器,16. An SDN device, characterized by comprising a first processor and a first memory for storing a computer program that can run on the processor, 其中,所述处理器用于运行所述计算机程序时,执行权利要求1至6任一项所述方法的步骤。Wherein, when the processor is configured to execute the computer program, the steps of the method of any one of claims 1 to 6 are executed. 17.一种SPN设备,其特征在于,包括第二处理器和用于存储能够在处理器上运行的计算机程序的第二存储器,17. An SPN device, characterized in that it comprises a second processor and a second memory for storing a computer program that can run on the processor, 其中,所述处理器用于运行所述计算机程序时,执行权利要求7至11任一项所述方法的步骤。Wherein, when the processor is configured to execute the computer program, the steps of the method of any one of claims 7 to 11 are executed. 18.一种存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至6任一项所述方法的步骤,或者执行时实现权利要求7至11任一项所述方法的步骤。18. A storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the steps of the method of any one of claims 1 to 6 are realized, or the steps of claims 7 to 6 are realized when executed. 11. The steps of any one of the methods.
CN202010209016.9A 2020-03-23 2020-03-23 Message transmission method, device, related equipment and storage medium Active CN113438606B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010209016.9A CN113438606B (en) 2020-03-23 2020-03-23 Message transmission method, device, related equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010209016.9A CN113438606B (en) 2020-03-23 2020-03-23 Message transmission method, device, related equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113438606A CN113438606A (en) 2021-09-24
CN113438606B true CN113438606B (en) 2022-08-30

Family

ID=77752650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010209016.9A Active CN113438606B (en) 2020-03-23 2020-03-23 Message transmission method, device, related equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113438606B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115357596A (en) * 2022-08-26 2022-11-18 艾象科技(深圳)股份有限公司 Electronic commerce order generation system and order generation method
CN115695283B (en) * 2022-10-26 2025-04-18 北京星网锐捷网络技术有限公司 A service channel establishment method, device, electronic device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108092895A (en) * 2017-12-26 2018-05-29 重庆邮电大学 A kind of software defined network joint route selection and network function dispositions method
CN108235259A (en) * 2016-12-15 2018-06-29 中兴通讯股份有限公司 The multicast service realizing method and its device of Packet Transport Network, communication system
CN109379764A (en) * 2018-11-16 2019-02-22 Ut斯达康通讯有限公司 File transmitting method and device
WO2019056899A1 (en) * 2017-09-21 2019-03-28 中国移动通信有限公司研究院 Oam message transmission method and transmission device, and storage medium
WO2019134489A1 (en) * 2018-01-02 2019-07-11 中国移动通信有限公司研究院 Bandwidth adjustment method and apparatus

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3496438B1 (en) * 2016-09-19 2020-02-26 Huawei Technologies Co., Ltd. Packet transmission method, apparatus and system
CN110798415B (en) * 2018-08-03 2022-02-18 中兴通讯股份有限公司 Service transmission method, equipment and computer storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108235259A (en) * 2016-12-15 2018-06-29 中兴通讯股份有限公司 The multicast service realizing method and its device of Packet Transport Network, communication system
WO2019056899A1 (en) * 2017-09-21 2019-03-28 中国移动通信有限公司研究院 Oam message transmission method and transmission device, and storage medium
CN108092895A (en) * 2017-12-26 2018-05-29 重庆邮电大学 A kind of software defined network joint route selection and network function dispositions method
WO2019134489A1 (en) * 2018-01-02 2019-07-11 中国移动通信有限公司研究院 Bandwidth adjustment method and apparatus
CN109379764A (en) * 2018-11-16 2019-02-22 Ut斯达康通讯有限公司 File transmitting method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"LS161-att-TD-PLEN-338".《3GPP inbox\lss_from_external_bodies》.2018, *

Also Published As

Publication number Publication date
CN113438606A (en) 2021-09-24

Similar Documents

Publication Publication Date Title
CN103430499B (en) The method and apparatus of multicast packet Path Setup in network virtualization system
US20210281344A1 (en) Methods and Apparatus for Configuring a Flex Ethernet Node
CN111050403B (en) Data transmission method, device and equipment
CN104184828A (en) Hybrid network system, communication method and network nodes
CN107222321B (en) Configuration message sending method and device
CN113438606B (en) Message transmission method, device, related equipment and storage medium
CN111614580B (en) Data forwarding method, device and equipment
CN103067277A (en) Method of building control channel, forwarding point (FP) and controller
EP2798800A1 (en) Expanding member ports of a link aggregation group between clusters
US11206216B2 (en) Flexible ethernet frame forwarding method and apparatus
WO2020192443A1 (en) Heterogeneous operating system-based message transmission system and method, and vehicle
CN107204924A (en) Link discovery method and device
EP3032801A1 (en) Method and device for generating forwarding information
CN102347906B (en) Multi-cast method and multi-cast network system
CN110769460A (en) BSR transmission method, device, related equipment and storage medium
CN106487677A (en) Provider edge equipment and data forwarding method
WO2022001540A1 (en) Configuration method and apparatus, binding method and apparatus, and device, sending node, receiving node and medium
WO2018153123A1 (en) Outer multicast ip address allocation method and device
EP4170972A1 (en) Message forwarding method, device and system
CN103067280A (en) Method and device of message processing
CN115225585A (en) A method, network device and system for processing DCN messages
CN105227452B (en) data frame forwarding method and device
CN115996185B (en) Data sending method, data receiving method, switch and gateway server
CN111835644A (en) Packet forwarding method and switch
CN108123885A (en) The methods, devices and systems of Message processing

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