CN117857233A - Multicast high-availability market distribution method and device - Google Patents
Multicast high-availability market distribution method and device Download PDFInfo
- Publication number
- CN117857233A CN117857233A CN202311662210.2A CN202311662210A CN117857233A CN 117857233 A CN117857233 A CN 117857233A CN 202311662210 A CN202311662210 A CN 202311662210A CN 117857233 A CN117857233 A CN 117857233A
- Authority
- CN
- China
- Prior art keywords
- multicast
- market
- server
- market information
- network card
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
- H04L12/185—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
- H04L12/1863—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast comprising mechanisms for improved reliability, e.g. status reports
- H04L12/1868—Measures taken after transmission, e.g. acknowledgments
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/16—Multipoint routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/28—Routing or path finding of packets in data switching networks using route fault recovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
- H04L45/745—Address table lookup; Address filtering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/76—Routing in software-defined topologies, e.g. routing between virtual machines
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0823—Network architectures or network communication protocols for network security for authentication of entities using certificates
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域Technical Field
本发明涉及数据通信中网络地址转换的技术领域,尤其涉及一种组播高可用行情分发的方法及装置。The present invention relates to the technical field of network address translation in data communication, and in particular to a method and device for multicast high-availability market information distribution.
背景技术Background technique
当客户的证券股票业务部署在公有云内的云主机时,需要在公有云内支持组播功能。目前各大行情中心已经实现了行情源的灾备,如五大期货交易所都建立了交易主中心和交易备中心,服务提供商目前均是采用建立IDC机房,实现了行情中心的高可用,但会员单位本身的组播容灾系统并不健全:When the customer's securities and stock business is deployed on a cloud host in a public cloud, it is necessary to support multicast functions in the public cloud. At present, major market centers have realized disaster recovery of market sources. For example, the five major futures exchanges have established trading main centers and trading backup centers. Service providers currently use IDC computer rooms to achieve high availability of market centers, but the multicast disaster recovery system of member units themselves is not sound:
(1)、当会员单位的机房故障后,整个会员单位的不能接收行情信息。(1) When a member unit’s computer room fails, the entire member unit cannot receive market information.
(2)、二是每个会员单位均需要部署两个专线连接到生产中心和灾备中心,成本也比较高,其他各会员单位所需的行情信息内容均相同,行情中心给每个会员单位都发送一份行情,对网络带宽也造成了较大的消耗。(2) Secondly, each member unit needs to deploy two dedicated lines to connect to the production center and the disaster recovery center, which is also costly. The market information required by other member units is the same, and the market information center sends a copy of the market information to each member unit, which also consumes a lot of network bandwidth.
(3)、三是如果每个会员单位建立在两个机房部署两个行情服务器,一是专线数量增多,二是两个行情服务器彼此割裂,还需要购买两套证书,成本增高,且同时两个行情服务器接收行情对带宽也有消耗。(3) Third, if each member unit deploys two quotation servers in two computer rooms, firstly, the number of dedicated lines will increase, and secondly, the two quotation servers will be separated from each other. Two sets of certificates will also be required, which will increase the cost. In addition, the two quotation servers will consume bandwidth to receive quotation information.
发明内容Summary of the invention
本部分的目的在于概述本发明的实施例的一些方面以及简要介绍一些较佳实施例。在本部分以及本申请的说明书摘要和发明名称中可能会做些简化或省略以避免使本部分、说明书摘要和发明名称的目的模糊,而这种简化或省略不能用于限制本发明的范围。。The purpose of this section is to summarize some aspects of the embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the abstract and invention title of this application to avoid blurring the purpose of this section, the abstract and the invention title, and such simplifications or omissions shall not be used to limit the scope of the present invention.
鉴于上述现有一种组播高可用行情分发的方法及装置存在的问题,提出了本发明。In view of the problems existing in the above-mentioned existing method and device for multicast high-availability market information distribution, the present invention is proposed.
因此,本发明目的是提供一种组播高可用行情分发的方法及装置,其为了解决上述的问题。Therefore, the object of the present invention is to provide a method and device for multicast high-availability market information distribution, which is to solve the above-mentioned problems.
为解决上述技术问题,本发明提供如下技术方案:。In order to solve the above technical problems, the present invention provides the following technical solutions:.
作为本发明所述一种组播高可用行情分发的方法,流程方法如下:As a method for multicast high-availability market information distribution described in the present invention, the process method is as follows:
S1、部署一个组播网关MCGW,采用集群的方式在多个AZ间部署,例如AZ1部署一台,AZ2部署一台;S1. Deploy a multicast gateway MCGW in a cluster across multiple AZs. For example, deploy one MCGW in AZ1 and one MCGW in AZ2.
S2、组播网关MCGW通过两个AZ的DCI互联链路同步组播表项信息;S2. The multicast gateway MCGW synchronizes the multicast entry information through the DCI interconnection link of the two AZs;
S3、各会员单位将认证证书加密前置安装到MCGW组播网关上,由组播网关代理到各大行情中心作证书认证;S3. Each member unit will encrypt and pre-install the authentication certificate on the MCGW multicast gateway, which will then be sent to various market centers for certificate authentication.
S4、每个会员单位创建组播接收者弹性伸缩组,每个伸缩组在每个AZ至少有一台行情服务器,设定弹性伸缩组成员的优先级,例如会员单位1的组播接收者弹性伸缩组1有两个成员,且行情服务器1优先级为100,行情服务器2优先级为50,表示优先选取行情服务器1接收行情;S4. Each member unit creates a multicast receiver elastic scaling group. Each scaling group has at least one quotation server in each AZ. Set the priority of the elastic scaling group members. For example, the multicast receiver elastic scaling group 1 of member unit 1 has two members, and the priority of quotation server 1 is 100, and the priority of quotation server 2 is 50, indicating that quotation server 1 is selected first to receive quotation information.
S5、每个弹性伸缩组内的成员按照如下逻辑做组播组加入,创新性提出按照行情服务器网卡在一定时间内收到组播网关发送的查询报文,来判断该网卡和MCGW的可达性,从而也实现了同一个行情服务器同时间只有一个网卡做组播组加入的行为,保证了行情服务器同一时间不会从两个网卡收到相同的组播报文而导致行情服务器处理出现异常;S5. Each member in the elastic scaling group joins the multicast group according to the following logic. It innovatively proposes to judge the reachability of the network card and MCGW according to the query message sent by the multicast gateway received by the network card of the market information server within a certain period of time. In this way, only one network card of the same market information server joins the multicast group at the same time, ensuring that the market information server will not receive the same multicast message from two network cards at the same time, which will cause abnormal processing of the market information server.
S6、组播网关MCGW上配置生产中心和灾备中心的IP地址,并设置组播源优先级,例如将生产中心设置为100,灾备中心设置为50,假定数字越大越优先;S6. Configure the IP addresses of the production center and the disaster recovery center on the multicast gateway MCGW, and set the multicast source priority. For example, set the production center to 100 and the disaster recovery center to 50. It is assumed that the larger the number, the higher the priority.
S7、按照组播源的优先级优先选择生产中心发起单播证书认证,当生产中心单播不可达时,MCGW尝试向灾备行情中心发起证书认证,此时由于MCGW2到灾备中心的单播路由优先级更高,会优先通过MCGW2发起认证;S7. According to the priority of the multicast source, the production center is selected to initiate unicast certificate authentication. When the unicast of the production center is unreachable, MCGW attempts to initiate certificate authentication to the disaster recovery center. At this time, since the unicast route from MCGW2 to the disaster recovery center has a higher priority, MCGW2 will be used to initiate authentication.
S8、组播网关使用VIP和POP设备建立vxlan单播隧道,组播流量从两个AZ的POP设备进入并封装vxlan隧道进入组播网关,当生产中心作为组播源发送行情信息时,由于MCGW1和MCGW2均对POP发布VIP的BGP路由,但POP1收到来自MCGW1的VIP路由由于AS号更短被优选,因此由MCGW1来接收生产中心的组播行情信息;S8, the multicast gateway uses VIP and POP devices to establish a vxlan unicast tunnel. The multicast traffic enters from the POP devices of the two AZs and is encapsulated in the vxlan tunnel to enter the multicast gateway. When the production center sends market information as a multicast source, MCGW1 and MCGW2 both publish VIP BGP routes to POP, but POP1 receives the VIP route from MCGW1 because the AS number is shorter and is preferred. Therefore, MCGW1 receives the multicast market information of the production center.
S9、MCGW收到后,根据OVS地址信息,可以查询到该行情服务器所述的AZ和伸缩组信息,并记录组播组IGMP report消息后,会生成组播表项;S9. After receiving the message, MCGW can query the AZ and scaling group information described in the market server according to the OVS address information, and after recording the multicast group IGMP report message, it will generate a multicast table entry.
S10、MCGW的每个成员定期通过IGMP query对组播成员探活,超时不回应删除该组播组;S10. Each member of MCGW periodically checks the multicast members through IGMP query. If there is no response after the timeout, the multicast group will be deleted.
S11、当弹性伸缩组1中行情服务器1的网卡出现故障时,MCGW1和MCGW2发出的IGMPquery报文超时无回应,会检测到该故障时,将组播表项中网卡A删除,同时会员单位的行情服务器也会检测到不可达,从而使用另一块网卡向MCGW发送IGMP Join;S11. When the network card of market server 1 in elastic scaling group 1 fails, the IGMP query message sent by MCGW1 and MCGW2 times out without response. When the failure is detected, network card A in the multicast table is deleted. At the same time, the market server of the member unit will also detect that it is unreachable, and use another network card to send IGMP Join to MCGW.
S12、当会员单位服务器1故障,此时网卡A和网卡B不可达.当会员单位服务器1故障,此时网卡A和网卡B不可达,MCGW1会选择AZ2的网卡E.组播行情会通过生产中心到MCGW1再到DCI互联链路,再到达网卡E,同时发送告警,并自动再拉起一台新的虚拟机作为AZ1的会员单位的行情服务器;S12, when the member unit server 1 fails, network card A and network card B are unreachable. When the member unit server 1 fails, network card A and network card B are unreachable, MCGW1 will select network card E of AZ2. The multicast market information will pass through the production center to MCGW1 and then to the DCI interconnection link, and then to network card E. At the same time, an alarm will be sent, and a new virtual machine will be automatically pulled up as the market information server of the member unit of AZ1;
S13、当整个AZ1故障时,MCGW2通过组间同步消息超时检测到成员MCGW1不再活跃,会根据会员单位安装的证书向灾备中心发起单播认证。并检测到网卡A,B,C,D均不可达,查询组播表项从中选择另外一个AZ即AZ2的接收者,将AZ2的组播表项改为接收组播,选择向网卡E和网卡G发送组播行情数据。S13, when the entire AZ1 fails, MCGW2 detects that member MCGW1 is no longer active through the timeout of the inter-group synchronization message, and initiates unicast authentication to the disaster recovery center based on the certificate installed by the member unit. It also detects that network cards A, B, C, and D are all unreachable, queries the multicast table entry, selects another AZ, namely the receiver of AZ2, changes the multicast table entry of AZ2 to receive multicast, and selects to send multicast market data to network cards E and G.
作为本发明所述一种组播高可用行情分发的方法的一种优选方案,其中:多个所述会员单位放置到公有云平台,通过VPC进行资源的隔离,为了节约专线成本同时实现AZ及高可用,将生产中心和AZ1互联,行情中心的灾备中心和AZ2互联。As a preferred solution of the method for multicast high-availability market information distribution described in the present invention, wherein: multiple member units are placed on a public cloud platform, and resources are isolated through VPC. In order to save dedicated line costs and achieve AZ and high availability at the same time, the production center and AZ1 are interconnected, and the disaster recovery center of the market information center and AZ2 are interconnected.
作为本发明所述一种组播高可用行情分发的方法的一种优选方案,其中:所述会员单位1的弹性伸缩组为行情服务器1-100和行情服务器3-50,而会员单位2的弹性伸缩组2为行情服务器2和行情服务器4。As a preferred solution of the multicast high-availability market information distribution method described in the present invention, the elastic scaling group of member unit 1 is market information servers 1-100 and market information servers 3-50, and the elastic scaling group 2 of member unit 2 is market information servers 2 and market information servers 4.
作为本发明所述一种组播高可用行情分发的方法的一种优选方案,其中:每个所述会员单位的行情服务器会选取成员优先级最高的网卡做组播行情的转发,如会员单位1选择行情服务器1的网卡A接收行情。As a preferred solution of the method for multicast high-availability market information distribution described in the present invention, the market information server of each member unit will select the network card with the highest member priority to forward the multicast market information, such as member unit 1 selects network card A of market information server 1 to receive market information.
作为本发明所述一种组播高可用行情分发的方法的一种优选方案,其中:每个所述组播弹性伸缩组内的行情服务器均选择一个网卡向外发送IGMP Join组播组加入报文,此IGMP加入报文到达行情服务器的OVS后,由OVS根据流表加vxlan封装,外层vxlan地址源IP使用OVS地址,目的IP地址使用MCGW集群VIP地址。As a preferred solution of the method for multicast high-availability market distribution described in the present invention, wherein: each market server in the multicast elastic scaling group selects a network card to send an IGMP Join multicast group joining message to the outside. After this IGMP join message arrives at the OVS of the market server, the OVS adds vxlan encapsulation according to the flow table, the outer vxlan address source IP uses the OVS address, and the destination IP address uses the MCGW cluster VIP address.
作为本发明所述一种组播高可用行情分发的方法的一种优选方案,其中:所述行情信息从灾备中心经过组播网关成员MCGW2到达网卡E和网卡G,从而实现会员单位1和2的行情持续接收。As a preferred solution of the method for multicast high-availability market information distribution described in the present invention, the market information is transmitted from the disaster recovery center through the multicast gateway member MCGW2 to the network card E and the network card G, thereby realizing the continuous reception of market information of member units 1 and 2.
作为本发明所述一种组播高可用行情分发的方法的一种优选方案,其中:所述VXLAN为Virtual eXtensible LAN的简称,即可扩展虚拟局域网络,所述IGMP为InternetGroup Management Protocol的简称,即互联网组管理协议窥探。As a preferred solution of the method for multicast high-availability market information distribution described in the present invention, wherein: the VXLAN is the abbreviation of Virtual eXtensible LAN, that is, extensible virtual local area network, and the IGMP is the abbreviation of Internet Group Management Protocol, that is, Internet Group Management Protocol snooping.
作为本发明所述一种组播高可用行情分发的方法的一种优选方案,其中:所述VTEP为VXLAN Tunnel End Point的简称,即VXLAN隧道端点,所述VSI为Virtual SwitchInstance的简称,即虚拟交换实例,所述VTEP上为一个VXLAN提供二层交换服务的虚拟交换实例。As a preferred solution of the method for multicast high-availability market distribution described in the present invention, the VTEP is the abbreviation of VXLAN Tunnel End Point, that is, the VXLAN tunnel endpoint, the VSI is the abbreviation of Virtual SwitchInstance, that is, the virtual switching instance, and the VTEP is a virtual switching instance that provides a Layer 2 switching service for a VXLAN.
作为本发明所述一种组播高可用行情分发的方法的一种优选方案,其中:该方法使用一种组播高可用行情分发的装置,包括多个交换机和路由器,所述交换机和路由器构成的服务器运行时,权利要求1-8任意一项所述的一种组播高可用行情分发的方法。As a preferred solution of the method for multicast high-availability market distribution described in the present invention, the method uses a device for multicast high-availability market distribution, including multiple switches and routers. When the server composed of the switches and routers is running, the method for multicast high-availability market distribution described in any one of claims 1-8 is used.
本发明还提供了一种装置,包括:包括如权利要求9所述的一种组播高可用行情分发的装置,所述装置主要由多个交换机和路由器构成,同时外部组装有服务器壳体。The present invention also provides a device, including: a device for multicast high-availability market information distribution as described in claim 9, wherein the device is mainly composed of a plurality of switches and routers, and is externally assembled with a server housing.
本发明的有益效果:Beneficial effects of the present invention:
1、从行情中心到公有云只需要发送一份组播流量,实现了最优的组播复制,节约了行情中心到各会员中心的带宽成本;1. Only one copy of multicast traffic needs to be sent from the market center to the public cloud, achieving optimal multicast replication and saving bandwidth costs from the market center to each member center;
2、提出了组播接收者的弹性伸缩组,且为了节约AZ间带宽,就近选择弹性伸缩组一个AZ的成员作为组播接收者,只有当同一个伸缩组内同AZ的成员均故障才会选择伸缩组中另一个AZ的成员接收者,既节约带宽又达到了跨AZ高可用的效果;2. The elastic scaling group of multicast receivers is proposed. In order to save bandwidth between AZs, a member of an AZ in the elastic scaling group is selected as the multicast receiver. Only when all members in the same AZ in the same scaling group fail will a member receiver of another AZ in the scaling group be selected. This not only saves bandwidth but also achieves high availability across AZs.
3、实现组播网关跨AZ部署,并通过和POP接入点建立单播vxlan隧道,并根据BGPAZ号长度不同实现了到行情源的自动就近优选接收;3. Implement cross-AZ deployment of multicast gateways, establish unicast vxlan tunnels with POP access points, and automatically select the nearest optimal reception source based on the length of the BGPAZ number;
4、复用现有的IGMP query和report机制,创新性的实现了组播接收者对组播网关的反向健康检查,不额外增加探测报文,就能实现组播网关切换接收者,同时实现行情服务器切换网卡的双重效果,实现了会员单位行情接收AZ级别的高可用;4. Reusing the existing IGMP query and report mechanisms, innovatively implementing the reverse health check of the multicast receiver on the multicast gateway, without adding additional detection messages, the multicast gateway can switch the receiver, and at the same time achieve the dual effect of switching the network card of the market information server, achieving high availability of the AZ level for member units to receive market information;
5、组播网关从行情服务器网卡发出的携带vxlan封装的IGMP report加入消息,获取到组播组加入信息以及可以根据vxlan封装查询到行情服务器AZ信息,进而组播网关优选和组播源同AZ的行情服务器接收行情,从而实现了减少DCI跨AZ链路带宽的占用。5. The multicast gateway obtains the multicast group joining information from the IGMP report joining message carrying vxlan encapsulation sent by the market server network card, and can query the market server AZ information based on the vxlan encapsulation. Then the multicast gateway preferentially receives the market information from the market server with the same AZ as the multicast source, thereby reducing the occupancy of the DCI cross-AZ link bandwidth.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。其中:In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:
图1为本发明提出的一种组播高可用行情分发的方法的流程示意图;FIG1 is a flow chart of a method for multicast high-availability market information distribution proposed by the present invention;
图2为本发明弹性伸缩组的逻辑流程示意图;FIG2 is a schematic diagram of the logic flow of the elastic scaling group of the present invention;
图3为本发明组播网关的处理逻辑示意图;FIG3 is a schematic diagram of the processing logic of the multicast gateway of the present invention;
图4为本发明AZ1故障时的检测流程示意图。FIG4 is a schematic diagram of the detection flow when AZ1 fails in the present invention.
具体实施方式Detailed ways
为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合说明书附图对本发明的具体实施方式做详细的说明。In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
在下面的描述中阐述了很多具体细节以便于充分理解本发明,但是本发明还可以采用其他不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本发明内涵的情况下做类似推广,因此本发明不受下面公开的具体实施例的限制。In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
其次,此处所称的“一个实施例”或“实施例”是指可包含于本发明至少一个实现方式中的特定特征、结构或特性。在本说明书中不同地方出现的“在一个实施例中”并非均指同一个实施例,也不是单独的或选择性的与其他实施例互相排斥的实施例。Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
再其次,本发明结合示意图进行详细描述,在详述本发明实施例时,为便于说明,表示器件结构的剖面图会不依一般比例作局部放大,而且所述示意图只是示例,其在此不应限制本发明保护的范围。此外,在实际制作中应包含长度、宽度及深度的三维空间尺寸。Secondly, the present invention is described in detail with reference to schematic diagrams. When describing the embodiments of the present invention in detail, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional dimensions of length, width and depth should be included.
参照图1-4,本发明提供了一种组播高可用行情分发的方法,流程方法如下:1-4, the present invention provides a method for multicast high-availability market information distribution, the process method is as follows:
S1、部署一个组播网关MCGW,采用集群的方式在多个AZ间部署,例如AZ1部署一台,AZ2部署一台;S1. Deploy a multicast gateway MCGW in a cluster across multiple AZs. For example, deploy one MCGW in AZ1 and one MCGW in AZ2.
S2、组播网关MCGW通过两个AZ的DCI互联链路同步组播表项信息;S2. The multicast gateway MCGW synchronizes the multicast entry information through the DCI interconnection link of the two AZs;
S3、各会员单位将认证证书加密前置安装到MCGW组播网关上,由组播网关代理到各大行情中心作证书认证;S3. Each member unit will encrypt and pre-install the authentication certificate on the MCGW multicast gateway, which will then be sent to various market centers for certificate authentication.
S4、每个会员单位创建组播接收者弹性伸缩组,每个伸缩组在每个AZ至少有一台行情服务器,设定弹性伸缩组成员的优先级,例如会员单位1的组播接收者弹性伸缩组1有两个成员,且行情服务器1优先级为100,行情服务器2优先级为50,表示优先选取行情服务器1接收行情;S4. Each member unit creates a multicast receiver elastic scaling group. Each scaling group has at least one quotation server in each AZ. Set the priority of the elastic scaling group members. For example, the multicast receiver elastic scaling group 1 of member unit 1 has two members, and the priority of quotation server 1 is 100, and the priority of quotation server 2 is 50, indicating that quotation server 1 is selected first to receive quotation information.
S5、每个弹性伸缩组内的成员按照如下逻辑做组播组加入,创新性提出按照行情服务器网卡在一定时间内收到组播网关发送的查询报文,来判断该网卡和MCGW的可达性,从而也实现了同一个行情服务器同时间只有一个网卡做组播组加入的行为,保证了行情服务器同一时间不会从两个网卡收到相同的组播报文而导致行情服务器处理出现异常;S5. Each member in the elastic scaling group joins the multicast group according to the following logic. It innovatively proposes to judge the reachability of the network card and MCGW according to the query message sent by the multicast gateway received by the network card of the market information server within a certain period of time. In this way, only one network card of the same market information server joins the multicast group at the same time, ensuring that the market information server will not receive the same multicast message from two network cards at the same time, which will cause abnormal processing of the market information server.
S6、组播网关MCGW上配置生产中心和灾备中心的IP地址,并设置组播源优先级,例如将生产中心设置为100,灾备中心设置为50,假定数字越大越优先;S6. Configure the IP addresses of the production center and the disaster recovery center on the multicast gateway MCGW, and set the multicast source priority. For example, set the production center to 100 and the disaster recovery center to 50. It is assumed that the larger the number, the higher the priority.
S7、按照组播源的优先级优先选择生产中心发起单播证书认证,当生产中心单播不可达时,MCGW尝试向灾备行情中心发起证书认证,此时由于MCGW2到灾备中心的单播路由优先级更高,会优先通过MCGW2发起认证;S7. According to the priority of the multicast source, the production center is selected to initiate unicast certificate authentication. When the unicast of the production center is unreachable, MCGW attempts to initiate certificate authentication to the disaster recovery center. At this time, since the unicast route from MCGW2 to the disaster recovery center has a higher priority, MCGW2 will be used to initiate authentication.
S8、组播网关使用VIP和POP设备建立vxlan单播隧道,组播流量从两个AZ的POP设备进入并封装vxlan隧道进入组播网关,当生产中心作为组播源发送行情信息时,由于MCGW1和MCGW2均对POP发布VIP的BGP路由,但POP1收到来自MCGW1的VIP路由由于AS号更短被优选,因此由MCGW1来接收生产中心的组播行情信息;S8, the multicast gateway uses VIP and POP devices to establish a vxlan unicast tunnel. The multicast traffic enters from the POP devices of the two AZs and is encapsulated in the vxlan tunnel to enter the multicast gateway. When the production center sends market information as a multicast source, MCGW1 and MCGW2 both publish VIP BGP routes to POP, but POP1 receives the VIP route from MCGW1 because the AS number is shorter and is preferred. Therefore, MCGW1 receives the multicast market information of the production center.
S9、MCGW收到后,根据OVS地址信息,可以查询到该行情服务器的AZ和伸缩组信息,并记录组播组IGMP report消息后,会生成组播表项;S9. After receiving the message, MCGW can query the AZ and scaling group information of the market server according to the OVS address information, and after recording the multicast group IGMP report message, it will generate a multicast table entry.
S10、MCGW的每个成员定期通过IGMP query对组播成员探活,超时不回应删除该组播组;S10. Each member of MCGW periodically checks the multicast members through IGMP query. If there is no response after the timeout, the multicast group will be deleted.
S11、当弹性伸缩组1中行情服务器1的网卡出现故障时,MCGW1和MCGW2发出的IGMPquery报文超时无回应,会检测到该故障时,将组播表项中网卡A删除,同时会员单位的行情服务器也会检测到不可达,从而使用另一块网卡向MCGW发送IGMP Join;S11. When the network card of market server 1 in elastic scaling group 1 fails, the IGMP query message sent by MCGW1 and MCGW2 times out without response. When the failure is detected, network card A in the multicast table is deleted. At the same time, the market server of the member unit will also detect that it is unreachable, and use another network card to send IGMP Join to MCGW.
S12、当会员单位服务器1故障,此时网卡A和网卡B不可达.当会员单位服务器1故障,此时网卡A和网卡B不可达,MCGW1会选择AZ2的网卡E.组播行情会通过生产中心到MCGW1再到DCI互联链路,再到达网卡E,同时发送告警,并自动再拉起一台新的虚拟机作为AZ1的会员单位的行情服务器;S12, when the member unit server 1 fails, network card A and network card B are unreachable. When the member unit server 1 fails, network card A and network card B are unreachable, MCGW1 will select network card E of AZ2. The multicast market information will pass through the production center to MCGW1 and then to the DCI interconnection link, and then to network card E. At the same time, an alarm will be sent, and a new virtual machine will be automatically pulled up as the market information server of the member unit of AZ1;
S13、当整个AZ1故障时,MCGW2通过组间同步消息超时检测到成员MCGW1不再活跃,会根据会员单位安装的证书向灾备中心发起单播认证。并检测到网卡A,B,C,D均不可达,查询组播表项从中选择另外一个AZ即AZ2的接收者,将AZ2的组播表项改为接收组播,选择向网卡E和网卡G发送组播行情数据。S13, when the entire AZ1 fails, MCGW2 detects that member MCGW1 is no longer active through the timeout of the inter-group synchronization message, and initiates unicast authentication to the disaster recovery center based on the certificate installed by the member unit. It also detects that network cards A, B, C, and D are all unreachable, queries the multicast table entry, selects another AZ, namely the receiver of AZ2, changes the multicast table entry of AZ2 to receive multicast, and selects to send multicast market data to network cards E and G.
其中,多个会员单位放置到公有云平台,通过VPC进行资源的隔离,为了节约专线成本同时实现AZ及高可用,将生产中心和AZ1互联,行情中心的灾备中心和AZ2互联。Among them, multiple member units are placed on the public cloud platform, and resources are isolated through VPC. In order to save dedicated line costs and achieve AZ and high availability at the same time, the production center and AZ1 are interconnected, and the disaster recovery center of the market center and AZ2 are interconnected.
进一步的,会员单位1的弹性伸缩组为行情服务器1-100和行情服务器3-50,而会员单位2的弹性伸缩组2为行情服务器2和行情服务器4。Furthermore, the elastic scaling group of member unit 1 is market servers 1-100 and market servers 3-50, and the elastic scaling group 2 of member unit 2 is market servers 2 and market servers 4.
进一步的,每个会员单位的行情服务器会选取成员优先级最高的网卡做组播行情的转发,如会员单位1选择行情服务器1的网卡A接收行情。Furthermore, the market information server of each member unit will select the network card with the highest member priority to forward the multicast market information. For example, member unit 1 selects network card A of market information server 1 to receive the market information.
进一步的,每个组播弹性伸缩组内的行情服务器均选择一个网卡向外发送IGMPJoin组播组加入报文,此IGMP加入报文到达行情服务器的OVS后,由OVS根据流表加vxlan封装,外层vxlan地址源IP使用OVS地址,目的IP地址使用MCGW集群VIP地址。Furthermore, each market server in the multicast elastic scaling group selects a network card to send an IGMPJoin multicast group joining message. After this IGMP joining message reaches the OVS of the market server, OVS adds vxlan encapsulation according to the flow table. The outer vxlan address source IP uses the OVS address, and the destination IP address uses the MCGW cluster VIP address.
进一步的,行情信息从灾备中心经过组播网关成员MCGW2到达网卡E和网卡G,从而实现会员单位1和2的行情持续接收。Furthermore, the market information is transmitted from the disaster recovery center to the network cards E and G via the multicast gateway member MCGW2, thereby achieving continuous reception of market information of the member units 1 and 2.
进一步的,VXLAN为Virtual eXtensible LAN的简称,即可扩展虚拟局域网络,IGMP为Internet Group Management Protocol的简称,即互联网组管理协议窥探。Furthermore, VXLAN is the abbreviation of Virtual eXtensible LAN, which is an extensible virtual local area network, and IGMP is the abbreviation of Internet Group Management Protocol, which is Internet Group Management Protocol.
进一步的,VTEP为VXLAN Tunnel End Point的简称,即VXLAN隧道端点,VSI为Virtual Switch Instance的简称,即虚拟交换实例,VTEP上为一个VXLAN提供二层交换服务的虚拟交换实例。Furthermore, VTEP is the abbreviation of VXLAN Tunnel End Point, that is, the VXLAN tunnel endpoint, and VSI is the abbreviation of Virtual Switch Instance, that is, the virtual switching instance. VTEP is a virtual switching instance that provides a Layer 2 switching service for a VXLAN.
更近一步的,该方法使用一种组播高可用行情分发的装置,包括多个交换机和路由器,所述交换机和路由器构成的服务器运行时,权利要求1-8任意一项所述的一种组播高可用行情分发的方法。Furthermore, the method uses a device for multicast high-availability market distribution, including multiple switches and routers. When the server composed of the switches and routers is running, a method for multicast high-availability market distribution as described in any one of claims 1-8 is used.
本发明还提供了一种装置,包括如权利要求9所述的一种组播高可用行情分发的装置,所述装置主要由多个交换机和路由器构成,同时外部组装有服务器壳体。The present invention also provides a device, including a multicast high-availability market information distribution device as described in claim 9, wherein the device is mainly composed of a plurality of switches and routers, and is externally assembled with a server housing.
应说明的是,以上实施例仅用以说明本发明的技术方案而非限制,尽管参照较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或者等同替换,而不脱离本发明技术方案的精神和范围,其均应涵盖在本发明的权利要求范围当中。It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims (10)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311662210.2A CN117857233B (en) | 2023-12-06 | A method and device for multicast high-availability market information distribution | |
| PCT/CN2024/137498 WO2025119343A1 (en) | 2023-12-06 | 2024-12-06 | Method and apparatus for distributing multicast high-availability market condition |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311662210.2A CN117857233B (en) | 2023-12-06 | A method and device for multicast high-availability market information distribution |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN117857233A true CN117857233A (en) | 2024-04-09 |
| CN117857233B CN117857233B (en) | 2025-10-14 |
Family
ID=
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2025119343A1 (en) * | 2023-12-06 | 2025-06-12 | 天翼云科技有限公司 | Method and apparatus for distributing multicast high-availability market condition |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2003065677A1 (en) * | 2002-01-30 | 2003-08-07 | Huawei Technologies Co., Ltd. | System and implementation method of controlled multicast |
| CN1874224A (en) * | 2006-06-23 | 2006-12-06 | 东南大学 | Safety multicast method based on protocol of conversation initialization |
| WO2009036685A1 (en) * | 2007-09-17 | 2009-03-26 | Huawei Technologies Co., Ltd. | A method and apparatus for implementing multicast authentication |
| CN102946355A (en) * | 2012-09-29 | 2013-02-27 | 华为技术有限公司 | Multicast group processing method, DCI router and system |
| CN105262667A (en) * | 2015-09-17 | 2016-01-20 | 杭州数梦工场科技有限公司 | Method and device for controlling multicast transmission in Overlay network |
| CN108512762A (en) * | 2018-03-28 | 2018-09-07 | 新华三技术有限公司 | A kind of method of realizing group broadcasting and device |
| CN112134776A (en) * | 2019-06-25 | 2020-12-25 | 华为技术有限公司 | Method and access gateway for generating multicast forwarding entry |
| CN113595760A (en) * | 2021-06-23 | 2021-11-02 | 阿里巴巴新加坡控股有限公司 | System fault processing method and device |
| WO2023092778A1 (en) * | 2021-11-29 | 2023-06-01 | 中电信数智科技有限公司 | Method for realizing uninterrupted multicast traffic during migration of virtual machine |
| CN116418631A (en) * | 2023-03-09 | 2023-07-11 | 新华三技术有限公司 | Method and device for multicast transmission |
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2003065677A1 (en) * | 2002-01-30 | 2003-08-07 | Huawei Technologies Co., Ltd. | System and implementation method of controlled multicast |
| CN1874224A (en) * | 2006-06-23 | 2006-12-06 | 东南大学 | Safety multicast method based on protocol of conversation initialization |
| WO2009036685A1 (en) * | 2007-09-17 | 2009-03-26 | Huawei Technologies Co., Ltd. | A method and apparatus for implementing multicast authentication |
| CN102946355A (en) * | 2012-09-29 | 2013-02-27 | 华为技术有限公司 | Multicast group processing method, DCI router and system |
| CN105262667A (en) * | 2015-09-17 | 2016-01-20 | 杭州数梦工场科技有限公司 | Method and device for controlling multicast transmission in Overlay network |
| CN108512762A (en) * | 2018-03-28 | 2018-09-07 | 新华三技术有限公司 | A kind of method of realizing group broadcasting and device |
| CN112134776A (en) * | 2019-06-25 | 2020-12-25 | 华为技术有限公司 | Method and access gateway for generating multicast forwarding entry |
| CN113595760A (en) * | 2021-06-23 | 2021-11-02 | 阿里巴巴新加坡控股有限公司 | System fault processing method and device |
| WO2023092778A1 (en) * | 2021-11-29 | 2023-06-01 | 中电信数智科技有限公司 | Method for realizing uninterrupted multicast traffic during migration of virtual machine |
| CN116418631A (en) * | 2023-03-09 | 2023-07-11 | 新华三技术有限公司 | Method and device for multicast transmission |
Non-Patent Citations (2)
| Title |
|---|
| 佚名: "云搜索服务用户指南", 《华为技术手册》, 20 June 2023 (2023-06-20) * |
| 杨波, 王纯, 廖建新: "IP组播在路由交换机上的实现改进和计费策略研究", 现代电信科技, no. 11, 25 November 2005 (2005-11-25) * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2025119343A1 (en) * | 2023-12-06 | 2025-06-12 | 天翼云科技有限公司 | Method and apparatus for distributing multicast high-availability market condition |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2025119343A1 (en) | 2025-06-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112565046B (en) | Synchronizing multicast router capabilities | |
| US11509572B2 (en) | Optimizing IP multicast delivery with use of local source nodes and the propagation of advertisements therefor | |
| US9106569B2 (en) | System and method that routes flows via multicast flow transport for groups | |
| US20070008880A1 (en) | Router redundancy in data communication networks | |
| US8599851B2 (en) | System and method that routes flows via multicast flow transport for groups | |
| CN110601881B (en) | Two-layer private network system, configuration method and equipment | |
| Jia | A scalable multicast source routing architecture for data center networks | |
| JP2008527538A (en) | Caching engine in the messaging system | |
| Tian et al. | Robust and efficient path diversity in application-layer multicast for video streaming | |
| CN106549875A (en) | A kind of conversation managing method, device and load equalizer | |
| CN105683929A (en) | Method and equipment for sensing router by database and memory | |
| CN100539518C (en) | Overlay network fault detect and restoration methods based on quick switching | |
| CN107276846B (en) | Gateway disaster tolerance method, device and storage medium | |
| CN108259304B (en) | Forwarding table item synchronization method and device | |
| CN103546559B (en) | Data distributing method and device | |
| WO2018068588A1 (en) | Method and software-defined networking (sdn) controller for providing multicast service | |
| CN106452882B (en) | A backup switching method and system of a universal network passport server | |
| CN114640615B (en) | Route notification method, route generation method and device | |
| CN107888493B (en) | Method and device for establishing label switching path | |
| US20070104198A1 (en) | Apparatus and method for providing a high availability network mechanish | |
| CN104009919B (en) | Message forwarding method and device | |
| CN1207624A (en) | RAP Alternative Routing for Open Systems Interconnection 10589 | |
| CN114157597A (en) | Weighted Multicast Join Load Balancing | |
| CN107682165A (en) | Status information cross-network segment transmission method in a kind of power automatic system | |
| WO2021219049A1 (en) | Information submitting method, information processing method, apparatus, and device |
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 |